This commit is contained in:
Thomas G 2022-07-05 14:14:09 +10:00
parent af2573d997
commit 7203529ebc
1 changed files with 1 additions and 21 deletions

View File

@ -92,24 +92,4 @@ if game.CoreGui.Version >= 3 then
waitForChild(screenGui.CurrentLoadout.TempSlot,"SlotNumber") waitForChild(screenGui.CurrentLoadout.TempSlot,"SlotNumber")
-- Backpack Script -- Backpack Script
scriptContext:AddCoreScript(13,screenGui.CurrentLoadout,"BackpackScript") scriptContext:AddCoreScript(13,screenGui.CurrentLoadout,"BackpackScript")
end end
local IsPersonalServer = not not game.Workspace:FindFirstChild("PSVariable")
if IsPersonalServer then
game:GetService("ScriptContext"):AddCoreScript(16,game.Players.LocalPlayer,"BuildToolManager")
end
game.Workspace.ChildAdded:connect(function(nchild)
if nchild.Name=='PSVariable' and nchild:IsA('BoolValue') then
IsPersonalServer = true
game:GetService("ScriptContext"):AddCoreScript(16,game.Players.LocalPlayer,"BuildToolManager")
end
end)
if touchEnabled then -- touch devices don't use same control frame
waitForChild(screenGui, 'ControlFrame')
waitForChild(screenGui.ControlFrame, 'BottomLeftControl')
screenGui.ControlFrame.BottomLeftControl.Visible = false
waitForChild(screenGui.ControlFrame, 'TopLeftControl')
screenGui.ControlFrame.TopLeftControl.Visible = false
end