From 334464e9e545834085c7cfa88f06a1fbf865bf44 Mon Sep 17 00:00:00 2001 From: Quacky Date: Thu, 17 Aug 2017 23:36:00 -0500 Subject: [PATCH] fix guis on play solo --- CSMPFunctions.lua | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/CSMPFunctions.lua b/CSMPFunctions.lua index 6ec9d5b..878093d 100644 --- a/CSMPFunctions.lua +++ b/CSMPFunctions.lua @@ -989,7 +989,27 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID, game:GetService("RunService"):run() end game.Workspace:InsertContent("rbxasset://fonts//libraries.rbxm") - + if (rbxlegacyversion == 10) then + waitForChild(game.StarterGui,"Playerlist") + waitForChild(game.StarterGui,"Menu") + waitForChild(game.StarterGui,"Backpack") + waitForChild(game.StarterGui,"Dialogs") + waitForChild(game.StarterGui,"Health") + waitForChild(game.StarterGui,"Notifications") + game.StarterGui.Menu.Workaround:remove() + elseif (rbxlegacyversion == 11) then + waitForChild(game.StarterGui,"Playerlist") + waitForChild(game.StarterGui,"Menu") + waitForChild(game.StarterGui,"Backpack") + waitForChild(game.StarterGui,"Dialogs") + waitForChild(game.StarterGui,"Health") + waitForChild(game.StarterGui,"Notifications") + waitForChild(game.StarterGui,"Chat") + game.StarterGui.Menu.Workaround:remove() + elseif (rbxlegacyversion == 7) then + waitForChild(game.StarterGui,"Health") + game.StarterGui.Health.Workaround:remove() + end local plr = game.Players:CreateLocalPlayer(UserID) plr.Name = PlayerName plr:LoadCharacter() @@ -1053,11 +1073,6 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID, Humanoid.Died:connect(function() delay(5,function() plr:LoadCharacter() LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,plr.Backpack) end) end) end end - - if (rbxlegacyversion > 8) then - waitForChild(game.StarterGui,"Menu") - game.StarterGui.Menu.Workaround:remove() - end end function CS3DView(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,TorsoID,RArmID,LArmID,RLegID,LLegID,Gear1,Gear2,Gear3,IconType)