From adbf49c25f224f74394aad35954c5a7d329b7465 Mon Sep 17 00:00:00 2001 From: Bitl Date: Sat, 12 Oct 2019 09:05:56 -0700 Subject: [PATCH] Attempt to Fix the Underlying Client Issue in Late Two-Thousand Nine and Above. --- clients/2009L/content/scripts/CSMPFunctions.lua | 8 +++----- clients/2010L/content/scripts/CSMPFunctions.lua | 8 +++----- clients/2011E/content/scripts/CSMPFunctions.lua | 15 ++++++++------- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/clients/2009L/content/scripts/CSMPFunctions.lua b/clients/2009L/content/scripts/CSMPFunctions.lua index 0788539..a872693 100644 --- a/clients/2009L/content/scripts/CSMPFunctions.lua +++ b/clients/2009L/content/scripts/CSMPFunctions.lua @@ -29,6 +29,8 @@ function LoadCharacterNew(playerApp,newChar) PlayerService = game:GetService("Players") Player = PlayerService:GetPlayerFromCharacter(newChar) + wait(0.65) + local function kick() KickPlayer(Player, "Modified Client") end @@ -404,7 +406,6 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5) LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting) if (char ~= nil) then LoadCharacterNew(newWaitForChild(Player,"Appearance"),char) - wait(0.65) end end) @@ -526,15 +527,14 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He end 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) - wait(0.65) InitalizeSecurityValues(Player,ClientEXEMD5,LauncherMD5,ClientScriptMD5) pcall(function() Player:SetUnder13(false) end) pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end) pcall(function() Player:SetAccountAge(365) end) Player:SetSuperSafeChat(false) Player.CharacterAppearance=0 - pcall(function() Player.Name=PlayerName or "" end) pcall(function() Visit:SetUploadUrl("") end) game:GetService("Visit") end @@ -547,9 +547,7 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID, plr:LoadCharacter() plr.CharacterAppearance=0 InitalizeClientAppearance(plr,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID) - wait(0.65) LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false) - wait(0.65) game:GetService("Visit") while true do wait() if (plr.Character.Humanoid.Health == 0) then diff --git a/clients/2010L/content/scripts/CSMPFunctions.lua b/clients/2010L/content/scripts/CSMPFunctions.lua index b229f14..183db80 100644 --- a/clients/2010L/content/scripts/CSMPFunctions.lua +++ b/clients/2010L/content/scripts/CSMPFunctions.lua @@ -29,6 +29,8 @@ function LoadCharacterNew(playerApp,newChar) PlayerService = game:GetService("Players") Player = PlayerService:GetPlayerFromCharacter(newChar) + wait(0.65) + local function kick() KickPlayer(Player, "Modified Client") end @@ -404,7 +406,6 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5) LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting) if (char ~= nil) then LoadCharacterNew(newWaitForChild(Player,"Appearance"),char) - wait(0.65) end end) @@ -526,15 +527,14 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He end 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) - wait(0.65) InitalizeSecurityValues(Player,ClientEXEMD5,LauncherMD5,ClientScriptMD5) pcall(function() Player:SetUnder13(false) end) pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end) pcall(function() Player:SetAccountAge(365) end) Player:SetSuperSafeChat(false) Player.CharacterAppearance=0 - pcall(function() Player.Name=PlayerName or "" end) pcall(function() Visit:SetUploadUrl("") end) game:GetService("Visit") end @@ -546,9 +546,7 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID, plr:LoadCharacter() plr.CharacterAppearance=0 InitalizeClientAppearance(plr,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID) - wait(0.65) LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false) - wait(0.65) game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm") newWaitForChild(game.StarterGui, "Health") game.StarterGui.Health:clone().Parent = plr.PlayerGui diff --git a/clients/2011E/content/scripts/CSMPFunctions.lua b/clients/2011E/content/scripts/CSMPFunctions.lua index d5d52af..442a58c 100644 --- a/clients/2011E/content/scripts/CSMPFunctions.lua +++ b/clients/2011E/content/scripts/CSMPFunctions.lua @@ -45,6 +45,8 @@ function LoadCharacterNew(playerApp,newChar) PlayerService = game:GetService("Players") Player = PlayerService:GetPlayerFromCharacter(newChar) + wait(0.65) + local function kick() KickPlayer(Player, "Modified Client") end @@ -420,7 +422,6 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5) LoadSecurity(newWaitForChild(Player,"Security"),Player,game.Lighting) if (char ~= nil) then LoadCharacterNew(newWaitForChild(Player,"Appearance"),char) - wait(0.65) end end) @@ -541,7 +542,12 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He SetMessage("Failed to connect to the Game.") end end + + pcall(function() Player.Name=PlayerName or "" end) pcall(function() Player:SetUnder13(false) end) + pcall(function() Player:SetAccountAge(365) end) + Player:SetSuperSafeChat(false) + Player.CharacterAppearance=0 game.GuiRoot.ScoreHud:Remove() if (IconType == "BC") then Player:SetMembershipType(Enum.MembershipType.BuildersClub) @@ -552,10 +558,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He elseif (IconType == "NBC") then Player:SetMembershipType(Enum.MembershipType.None) end - pcall(function() Player:SetAccountAge(365) end) - Player:SetSuperSafeChat(false) - Player.CharacterAppearance=0 - pcall(function() Player.Name=PlayerName or "" end) + pcall(function() Visit:SetUploadUrl("") end) game:GetService("Visit") InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID) @@ -580,9 +583,7 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID, game.GuiRoot.ScoreHud:Remove() plr.CharacterAppearance=0 InitalizeClientAppearance(plr,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID) - wait(0.65) LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false) - wait(0.65) game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm") newWaitForChild(game.StarterGui, "Dialogs") newWaitForChild(game.StarterGui, "Health")