updated scripts
This commit is contained in:
parent
45cb29e6ca
commit
255065df61
|
|
@ -127,21 +127,21 @@ function LoadSecurity(playerApp,Player,ServerSecurityLocation)
|
||||||
|
|
||||||
for _,newVal in pairs(playerApp:GetChildren()) do
|
for _,newVal in pairs(playerApp:GetChildren()) do
|
||||||
if (newVal.Name == "ClientEXEMD5") then
|
if (newVal.Name == "ClientEXEMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "LauncherMD5") then
|
if (newVal.Name == "LauncherMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "ClientScriptMD5") then
|
if (newVal.Name == "ClientScriptMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
@ -166,6 +166,31 @@ function InitalizeSecurityValues(Location,ClientEXEMD5,LauncherMD5,ClientScriptM
|
||||||
scriptValue.Name = "ClientScriptMD5"
|
scriptValue.Name = "ClientScriptMD5"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function InitalizeTripcode(Location,Tripcode)
|
||||||
|
local code = Instance.new("StringValue", Location)
|
||||||
|
code.Value = Tripcode or ""
|
||||||
|
code.Name = "Tripcode"
|
||||||
|
end
|
||||||
|
|
||||||
|
function LoadTripcode(Player)
|
||||||
|
local function kick()
|
||||||
|
KickPlayer(Player, "Modified Client")
|
||||||
|
end
|
||||||
|
|
||||||
|
if (not Player:FindFirstChild("Tripcode")) then
|
||||||
|
kick()
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,newVal in pairs(Player:GetChildren()) do
|
||||||
|
if (newVal.Name == "Tripcode") then
|
||||||
|
if (newVal.Value == "") then
|
||||||
|
kick()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function InitalizeClientName(Location)
|
function InitalizeClientName(Location)
|
||||||
local newName = Instance.new("StringValue",Location)
|
local newName = Instance.new("StringValue",Location)
|
||||||
newName.Value = "2006S"
|
newName.Value = "2006S"
|
||||||
|
|
@ -194,6 +219,9 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
||||||
Player:LoadCharacter()
|
Player:LoadCharacter()
|
||||||
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
||||||
|
newWaitForChild(Player,"Tripcode")
|
||||||
|
LoadTripcode(Player)
|
||||||
|
pcall(function() print("Player '" .. Player.Name .. "-" .. Player.userId .. "' security check success. Tripcode: '" .. Player.Tripcode.Value .. "'") end)
|
||||||
if (Player.Character ~= nil) then
|
if (Player.Character ~= nil) then
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
||||||
end
|
end
|
||||||
|
|
@ -223,7 +251,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
local suc, err = pcall(function()
|
local suc, err = pcall(function()
|
||||||
client = game:GetService("NetworkClient")
|
client = game:GetService("NetworkClient")
|
||||||
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
||||||
|
|
@ -236,6 +264,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He
|
||||||
game:GetService("Visit")
|
game:GetService("Visit")
|
||||||
InitalizeClientAppearance(player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
InitalizeClientAppearance(player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
||||||
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
InitalizeTripcode(player,Tripcode)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function dieerror(errmsg)
|
local function dieerror(errmsg)
|
||||||
|
|
|
||||||
|
|
@ -204,21 +204,21 @@ function LoadSecurity(playerApp,Player,ServerSecurityLocation)
|
||||||
|
|
||||||
for _,newVal in pairs(playerApp:GetChildren()) do
|
for _,newVal in pairs(playerApp:GetChildren()) do
|
||||||
if (newVal.Name == "ClientEXEMD5") then
|
if (newVal.Name == "ClientEXEMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "LauncherMD5") then
|
if (newVal.Name == "LauncherMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "ClientScriptMD5") then
|
if (newVal.Name == "ClientScriptMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
@ -243,9 +243,34 @@ function InitalizeSecurityValues(Location,ClientEXEMD5,LauncherMD5,ClientScriptM
|
||||||
scriptValue.Name = "ClientScriptMD5"
|
scriptValue.Name = "ClientScriptMD5"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function InitalizeTripcode(Location,Tripcode)
|
||||||
|
local code = Instance.new("StringValue", Location)
|
||||||
|
code.Value = Tripcode or ""
|
||||||
|
code.Name = "Tripcode"
|
||||||
|
end
|
||||||
|
|
||||||
|
function LoadTripcode(Player)
|
||||||
|
local function kick()
|
||||||
|
KickPlayer(Player, "Modified Client")
|
||||||
|
end
|
||||||
|
|
||||||
|
if (not Player:FindFirstChild("Tripcode")) then
|
||||||
|
kick()
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,newVal in pairs(Player:GetChildren()) do
|
||||||
|
if (newVal.Name == "Tripcode") then
|
||||||
|
if (newVal.Value == "") then
|
||||||
|
kick()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function InitalizeClientName(Location)
|
function InitalizeClientName(Location)
|
||||||
local newName = Instance.new("StringValue",Location)
|
local newName = Instance.new("StringValue",Location)
|
||||||
newName.Value = "2007M"
|
newName.Value = "2007M-Shaders"
|
||||||
newName.Name = "Name"
|
newName.Name = "Name"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -270,6 +295,9 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
||||||
Player:LoadCharacter()
|
Player:LoadCharacter()
|
||||||
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
||||||
|
newWaitForChild(Player,"Tripcode")
|
||||||
|
LoadTripcode(Player)
|
||||||
|
pcall(function() print("Player '" .. Player.Name .. "-" .. Player.userId .. "' security check success. Tripcode: '" .. Player.Tripcode.Value .. "'") end)
|
||||||
if (Player.Character ~= nil) then
|
if (Player.Character ~= nil) then
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
||||||
end
|
end
|
||||||
|
|
@ -301,11 +329,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
local suc, err = pcall(function()
|
local suc, err = pcall(function()
|
||||||
client = game:GetService("NetworkClient")
|
client = game:GetService("NetworkClient")
|
||||||
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
||||||
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
InitalizeTripcode(player,Tripcode)
|
||||||
player:SetSuperSafeChat(false)
|
player:SetSuperSafeChat(false)
|
||||||
pcall(function() player:SetUnder13(false) end)
|
pcall(function() player:SetUnder13(false) end)
|
||||||
pcall(function() player:SetAccountAge(365) end)
|
pcall(function() player:SetAccountAge(365) end)
|
||||||
|
|
|
||||||
|
|
@ -204,21 +204,21 @@ function LoadSecurity(playerApp,Player,ServerSecurityLocation)
|
||||||
|
|
||||||
for _,newVal in pairs(playerApp:GetChildren()) do
|
for _,newVal in pairs(playerApp:GetChildren()) do
|
||||||
if (newVal.Name == "ClientEXEMD5") then
|
if (newVal.Name == "ClientEXEMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "LauncherMD5") then
|
if (newVal.Name == "LauncherMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "ClientScriptMD5") then
|
if (newVal.Name == "ClientScriptMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
@ -243,6 +243,31 @@ function InitalizeSecurityValues(Location,ClientEXEMD5,LauncherMD5,ClientScriptM
|
||||||
scriptValue.Name = "ClientScriptMD5"
|
scriptValue.Name = "ClientScriptMD5"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function InitalizeTripcode(Location,Tripcode)
|
||||||
|
local code = Instance.new("StringValue", Location)
|
||||||
|
code.Value = Tripcode or ""
|
||||||
|
code.Name = "Tripcode"
|
||||||
|
end
|
||||||
|
|
||||||
|
function LoadTripcode(Player)
|
||||||
|
local function kick()
|
||||||
|
KickPlayer(Player, "Modified Client")
|
||||||
|
end
|
||||||
|
|
||||||
|
if (not Player:FindFirstChild("Tripcode")) then
|
||||||
|
kick()
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,newVal in pairs(Player:GetChildren()) do
|
||||||
|
if (newVal.Name == "Tripcode") then
|
||||||
|
if (newVal.Value == "") then
|
||||||
|
kick()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function InitalizeClientName(Location)
|
function InitalizeClientName(Location)
|
||||||
local newName = Instance.new("StringValue",Location)
|
local newName = Instance.new("StringValue",Location)
|
||||||
newName.Value = "2007M"
|
newName.Value = "2007M"
|
||||||
|
|
@ -270,6 +295,9 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
||||||
Player:LoadCharacter()
|
Player:LoadCharacter()
|
||||||
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
||||||
|
newWaitForChild(Player,"Tripcode")
|
||||||
|
LoadTripcode(Player)
|
||||||
|
pcall(function() print("Player '" .. Player.Name .. "-" .. Player.userId .. "' security check success. Tripcode: '" .. Player.Tripcode.Value .. "'") end)
|
||||||
if (Player.Character ~= nil) then
|
if (Player.Character ~= nil) then
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
||||||
end
|
end
|
||||||
|
|
@ -301,11 +329,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
local suc, err = pcall(function()
|
local suc, err = pcall(function()
|
||||||
client = game:GetService("NetworkClient")
|
client = game:GetService("NetworkClient")
|
||||||
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
||||||
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
InitalizeTripcode(player,Tripcode)
|
||||||
player:SetSuperSafeChat(false)
|
player:SetSuperSafeChat(false)
|
||||||
pcall(function() player:SetUnder13(false) end)
|
pcall(function() player:SetUnder13(false) end)
|
||||||
pcall(function() player:SetAccountAge(365) end)
|
pcall(function() player:SetAccountAge(365) end)
|
||||||
|
|
|
||||||
|
|
@ -285,21 +285,21 @@ function LoadSecurity(playerApp,Player,ServerSecurityLocation)
|
||||||
|
|
||||||
for _,newVal in pairs(playerApp:GetChildren()) do
|
for _,newVal in pairs(playerApp:GetChildren()) do
|
||||||
if (newVal.Name == "ClientEXEMD5") then
|
if (newVal.Name == "ClientEXEMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "LauncherMD5") then
|
if (newVal.Name == "LauncherMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "ClientScriptMD5") then
|
if (newVal.Name == "ClientScriptMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
@ -324,6 +324,31 @@ function InitalizeSecurityValues(Location,ClientEXEMD5,LauncherMD5,ClientScriptM
|
||||||
scriptValue.Name = "ClientScriptMD5"
|
scriptValue.Name = "ClientScriptMD5"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function InitalizeTripcode(Location,Tripcode)
|
||||||
|
local code = Instance.new("StringValue", Location)
|
||||||
|
code.Value = Tripcode or ""
|
||||||
|
code.Name = "Tripcode"
|
||||||
|
end
|
||||||
|
|
||||||
|
function LoadTripcode(Player)
|
||||||
|
local function kick()
|
||||||
|
KickPlayer(Player, "Modified Client")
|
||||||
|
end
|
||||||
|
|
||||||
|
if (not Player:FindFirstChild("Tripcode")) then
|
||||||
|
kick()
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,newVal in pairs(Player:GetChildren()) do
|
||||||
|
if (newVal.Name == "Tripcode") then
|
||||||
|
if (newVal.Value == "") then
|
||||||
|
kick()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function InitalizeClientName(Location)
|
function InitalizeClientName(Location)
|
||||||
local newName = Instance.new("StringValue",Location)
|
local newName = Instance.new("StringValue",Location)
|
||||||
newName.Value = "2008M"
|
newName.Value = "2008M"
|
||||||
|
|
@ -352,6 +377,9 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
||||||
Player:LoadCharacter()
|
Player:LoadCharacter()
|
||||||
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
||||||
|
newWaitForChild(Player,"Tripcode")
|
||||||
|
LoadTripcode(Player)
|
||||||
|
pcall(function() print("Player '" .. Player.Name .. "-" .. Player.userId .. "' security check success. Tripcode: '" .. Player.Tripcode.Value .. "'") end)
|
||||||
if (Player.Character ~= nil) then
|
if (Player.Character ~= nil) then
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
||||||
end
|
end
|
||||||
|
|
@ -381,7 +409,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
local suc, err = pcall(function()
|
local suc, err = pcall(function()
|
||||||
client = game:GetService("NetworkClient")
|
client = game:GetService("NetworkClient")
|
||||||
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
||||||
|
|
@ -394,6 +422,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He
|
||||||
game:GetService("Visit")
|
game:GetService("Visit")
|
||||||
InitalizeClientAppearance(player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
InitalizeClientAppearance(player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
||||||
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
InitalizeTripcode(player,Tripcode)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function dieerror(errmsg)
|
local function dieerror(errmsg)
|
||||||
|
|
|
||||||
|
|
@ -336,21 +336,21 @@ function LoadSecurity(playerApp,Player,ServerSecurityLocation)
|
||||||
|
|
||||||
for _,newVal in pairs(playerApp:GetChildren()) do
|
for _,newVal in pairs(playerApp:GetChildren()) do
|
||||||
if (newVal.Name == "ClientEXEMD5") then
|
if (newVal.Name == "ClientEXEMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "LauncherMD5") then
|
if (newVal.Name == "LauncherMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "ClientScriptMD5") then
|
if (newVal.Name == "ClientScriptMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
@ -375,6 +375,31 @@ function InitalizeSecurityValues(Location,ClientEXEMD5,LauncherMD5,ClientScriptM
|
||||||
scriptValue.Name = "ClientScriptMD5"
|
scriptValue.Name = "ClientScriptMD5"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function InitalizeTripcode(Location,Tripcode)
|
||||||
|
local code = Instance.new("StringValue", Location)
|
||||||
|
code.Value = Tripcode or ""
|
||||||
|
code.Name = "Tripcode"
|
||||||
|
end
|
||||||
|
|
||||||
|
function LoadTripcode(Player)
|
||||||
|
local function kick()
|
||||||
|
KickPlayer(Player, "Modified Client")
|
||||||
|
end
|
||||||
|
|
||||||
|
if (not Player:FindFirstChild("Tripcode")) then
|
||||||
|
kick()
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,newVal in pairs(Player:GetChildren()) do
|
||||||
|
if (newVal.Name == "Tripcode") then
|
||||||
|
if (newVal.Value == "") then
|
||||||
|
kick()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function InitalizeClientName(Location)
|
function InitalizeClientName(Location)
|
||||||
local newName = Instance.new("StringValue",Location)
|
local newName = Instance.new("StringValue",Location)
|
||||||
newName.Value = "2009E"
|
newName.Value = "2009E"
|
||||||
|
|
@ -403,6 +428,9 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added")
|
||||||
Player:LoadCharacter()
|
Player:LoadCharacter()
|
||||||
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
||||||
|
newWaitForChild(Player,"Tripcode")
|
||||||
|
LoadTripcode(Player)
|
||||||
|
pcall(function() print("Player '" .. Player.Name .. "-" .. Player.userId .. "' security check success. Tripcode: '" .. Player.Tripcode.Value .. "'") end)
|
||||||
if (Player.Character ~= nil) then
|
if (Player.Character ~= nil) then
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
||||||
end
|
end
|
||||||
|
|
@ -431,7 +459,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
InitalizeClientName(game.Lighting)
|
InitalizeClientName(game.Lighting)
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
end
|
end
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
pcall(function() game:SetPlaceID(-1, false) end)
|
pcall(function() game:SetPlaceID(-1, false) end)
|
||||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
||||||
|
|
||||||
|
|
@ -457,6 +485,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He
|
||||||
game:GetService("Visit")
|
game:GetService("Visit")
|
||||||
InitalizeClientAppearance(player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
InitalizeClientAppearance(player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
||||||
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
InitalizeSecurityValues(player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
InitalizeTripcode(player,Tripcode)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function dieerror(errmsg)
|
local function dieerror(errmsg)
|
||||||
|
|
|
||||||
|
|
@ -338,21 +338,21 @@ function LoadSecurity(playerApp,Player,ServerSecurityLocation)
|
||||||
|
|
||||||
for _,newVal in pairs(playerApp:GetChildren()) do
|
for _,newVal in pairs(playerApp:GetChildren()) do
|
||||||
if (newVal.Name == "ClientEXEMD5") then
|
if (newVal.Name == "ClientEXEMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "LauncherMD5") then
|
if (newVal.Name == "LauncherMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "ClientScriptMD5") then
|
if (newVal.Name == "ClientScriptMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
@ -377,6 +377,31 @@ function InitalizeSecurityValues(Location,ClientEXEMD5,LauncherMD5,ClientScriptM
|
||||||
scriptValue.Name = "ClientScriptMD5"
|
scriptValue.Name = "ClientScriptMD5"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function InitalizeTripcode(Location,Tripcode)
|
||||||
|
local code = Instance.new("StringValue", Location)
|
||||||
|
code.Value = Tripcode or ""
|
||||||
|
code.Name = "Tripcode"
|
||||||
|
end
|
||||||
|
|
||||||
|
function LoadTripcode(Player)
|
||||||
|
local function kick()
|
||||||
|
KickPlayer(Player, "Modified Client")
|
||||||
|
end
|
||||||
|
|
||||||
|
if (not Player:FindFirstChild("Tripcode")) then
|
||||||
|
kick()
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,newVal in pairs(Player:GetChildren()) do
|
||||||
|
if (newVal.Name == "Tripcode") then
|
||||||
|
if (newVal.Value == "") then
|
||||||
|
kick()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function InitalizeClientName(Location)
|
function InitalizeClientName(Location)
|
||||||
local newName = Instance.new("StringValue",Location)
|
local newName = Instance.new("StringValue",Location)
|
||||||
newName.Value = "2009L"
|
newName.Value = "2009L"
|
||||||
|
|
@ -404,6 +429,9 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
|
||||||
Player.CharacterAdded:connect(function(char)
|
Player.CharacterAdded:connect(function(char)
|
||||||
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
||||||
|
newWaitForChild(Player,"Tripcode")
|
||||||
|
LoadTripcode(Player)
|
||||||
|
pcall(function() print("Player '" .. Player.Name .. "-" .. Player.userId .. "' security check success. Tripcode: '" .. Player.Tripcode.Value .. "'") end)
|
||||||
if (char ~= nil) then
|
if (char ~= nil) then
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),char)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),char)
|
||||||
end
|
end
|
||||||
|
|
@ -434,7 +462,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
pcall(function() game:SetPlaceID(-1, false) end)
|
pcall(function() game:SetPlaceID(-1, false) end)
|
||||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
||||||
|
|
||||||
|
|
@ -530,6 +558,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He
|
||||||
pcall(function() Player.Name=PlayerName or "" end)
|
pcall(function() Player.Name=PlayerName or "" end)
|
||||||
InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
||||||
InitalizeSecurityValues(Player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
InitalizeSecurityValues(Player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
InitalizeTripcode(Player,Tripcode)
|
||||||
pcall(function() Player:SetUnder13(false) end)
|
pcall(function() Player:SetUnder13(false) end)
|
||||||
pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end)
|
pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end)
|
||||||
pcall(function() Player:SetAccountAge(365) end)
|
pcall(function() Player:SetAccountAge(365) end)
|
||||||
|
|
|
||||||
|
|
@ -338,21 +338,21 @@ function LoadSecurity(playerApp,Player,ServerSecurityLocation)
|
||||||
|
|
||||||
for _,newVal in pairs(playerApp:GetChildren()) do
|
for _,newVal in pairs(playerApp:GetChildren()) do
|
||||||
if (newVal.Name == "ClientEXEMD5") then
|
if (newVal.Name == "ClientEXEMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "LauncherMD5") then
|
if (newVal.Name == "LauncherMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "ClientScriptMD5") then
|
if (newVal.Name == "ClientScriptMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
@ -377,6 +377,31 @@ function InitalizeSecurityValues(Location,ClientEXEMD5,LauncherMD5,ClientScriptM
|
||||||
scriptValue.Name = "ClientScriptMD5"
|
scriptValue.Name = "ClientScriptMD5"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function InitalizeTripcode(Location,Tripcode)
|
||||||
|
local code = Instance.new("StringValue", Location)
|
||||||
|
code.Value = Tripcode or ""
|
||||||
|
code.Name = "Tripcode"
|
||||||
|
end
|
||||||
|
|
||||||
|
function LoadTripcode(Player)
|
||||||
|
local function kick()
|
||||||
|
KickPlayer(Player, "Modified Client")
|
||||||
|
end
|
||||||
|
|
||||||
|
if (not Player:FindFirstChild("Tripcode")) then
|
||||||
|
kick()
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,newVal in pairs(Player:GetChildren()) do
|
||||||
|
if (newVal.Name == "Tripcode") then
|
||||||
|
if (newVal.Value == "") then
|
||||||
|
kick()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function InitalizeClientName(Location)
|
function InitalizeClientName(Location)
|
||||||
local newName = Instance.new("StringValue",Location)
|
local newName = Instance.new("StringValue",Location)
|
||||||
newName.Value = "2010L"
|
newName.Value = "2010L"
|
||||||
|
|
@ -404,6 +429,9 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
|
||||||
Player.CharacterAdded:connect(function(char)
|
Player.CharacterAdded:connect(function(char)
|
||||||
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
||||||
|
newWaitForChild(Player,"Tripcode")
|
||||||
|
LoadTripcode(Player)
|
||||||
|
pcall(function() print("Player '" .. Player.Name .. "-" .. Player.userId .. "' security check success. Tripcode: '" .. Player.Tripcode.Value .. "'") end)
|
||||||
if (char ~= nil) then
|
if (char ~= nil) then
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),char)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),char)
|
||||||
end
|
end
|
||||||
|
|
@ -434,7 +462,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
pcall(function() game:SetPlaceID(-1, false) end)
|
pcall(function() game:SetPlaceID(-1, false) end)
|
||||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
||||||
|
|
||||||
|
|
@ -530,6 +558,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He
|
||||||
pcall(function() Player.Name=PlayerName or "" end)
|
pcall(function() Player.Name=PlayerName or "" end)
|
||||||
InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
||||||
InitalizeSecurityValues(Player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
InitalizeSecurityValues(Player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
InitalizeTripcode(Player,Tripcode)
|
||||||
pcall(function() Player:SetUnder13(false) end)
|
pcall(function() Player:SetUnder13(false) end)
|
||||||
pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end)
|
pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end)
|
||||||
pcall(function() Player:SetAccountAge(365) end)
|
pcall(function() Player:SetAccountAge(365) end)
|
||||||
|
|
|
||||||
|
|
@ -354,21 +354,21 @@ function LoadSecurity(playerApp,Player,ServerSecurityLocation)
|
||||||
|
|
||||||
for _,newVal in pairs(playerApp:GetChildren()) do
|
for _,newVal in pairs(playerApp:GetChildren()) do
|
||||||
if (newVal.Name == "ClientEXEMD5") then
|
if (newVal.Name == "ClientEXEMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientEXEMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "LauncherMD5") then
|
if (newVal.Name == "LauncherMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.LauncherMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (newVal.Name == "ClientScriptMD5") then
|
if (newVal.Name == "ClientScriptMD5") then
|
||||||
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == nil) then
|
if (newVal.Value ~= ServerSecurityLocation.Security.ClientScriptMD5.Value or newVal.Value == "") then
|
||||||
kick()
|
kick()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
@ -393,6 +393,31 @@ function InitalizeSecurityValues(Location,ClientEXEMD5,LauncherMD5,ClientScriptM
|
||||||
scriptValue.Name = "ClientScriptMD5"
|
scriptValue.Name = "ClientScriptMD5"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function InitalizeTripcode(Location,Tripcode)
|
||||||
|
local code = Instance.new("StringValue", Location)
|
||||||
|
code.Value = Tripcode or ""
|
||||||
|
code.Name = "Tripcode"
|
||||||
|
end
|
||||||
|
|
||||||
|
function LoadTripcode(Player)
|
||||||
|
local function kick()
|
||||||
|
KickPlayer(Player, "Modified Client")
|
||||||
|
end
|
||||||
|
|
||||||
|
if (not Player:FindFirstChild("Tripcode")) then
|
||||||
|
kick()
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,newVal in pairs(Player:GetChildren()) do
|
||||||
|
if (newVal.Name == "Tripcode") then
|
||||||
|
if (newVal.Value == "") then
|
||||||
|
kick()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function InitalizeClientName(Location)
|
function InitalizeClientName(Location)
|
||||||
local newName = Instance.new("StringValue",Location)
|
local newName = Instance.new("StringValue",Location)
|
||||||
newName.Value = "2011E"
|
newName.Value = "2011E"
|
||||||
|
|
@ -420,6 +445,9 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
|
||||||
Player.CharacterAdded:connect(function(char)
|
Player.CharacterAdded:connect(function(char)
|
||||||
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting)
|
||||||
|
newWaitForChild(Player,"Tripcode")
|
||||||
|
LoadTripcode(Player)
|
||||||
|
pcall(function() print("Player '" .. Player.Name .. "-" .. Player.userId .. "' security check success. Tripcode: '" .. Player.Tripcode.Value .. "'") end)
|
||||||
if (char ~= nil) then
|
if (char ~= nil) then
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),char)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),char)
|
||||||
end
|
end
|
||||||
|
|
@ -450,7 +478,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
pcall(function() game:SetPlaceID(-1, false) end)
|
pcall(function() game:SetPlaceID(-1, false) end)
|
||||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
||||||
|
|
||||||
|
|
@ -564,6 +592,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He
|
||||||
InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
|
||||||
wait(0.65)
|
wait(0.65)
|
||||||
InitalizeSecurityValues(Player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
InitalizeSecurityValues(Player,ClientEXEMD5,LauncherMD5,ClientScriptMD5)
|
||||||
|
InitalizeTripcode(Player,Tripcode)
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID)
|
function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue