Update 1
This commit is contained in:
parent
af2573d997
commit
7203529ebc
|
|
@ -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
|
|
||||||
Loading…
Reference in New Issue