local sign = game.Lighting:FindFirstChild("SING") local houso = game.Lighting:FindFirstChild("door") local tnt = game.Lighting:FindFirstChild("dynamite") local towa = game.Lighting:FindFirstChild("tower") wait(5) among:Clone().Parent = workspace me:Clone().Parent = workspace sign:Clone().Parent = workspace houso:Clone().Parent = workspace tnt:Clone().Parent = workspace towa:Clone().Parent = workspace print("cloned") local scrips = game.ServerScriptService.lava:GetChildren() for i,v in pairs(scrips) do v.Disabled = false end --game.StarterGui.ScreenGui.TextLabel.Text = "Lava will rise" print("enabled") wait(60) ------------------------------------------------------- local amon1 = game.Workspace:FindFirstChild("Ambrogus") local m1 = game.Workspace:FindFirstChild("hi") local sig1 = game.Workspace:FindFirstChild("SING") local hous1 = game.Workspace:FindFirstChild("door") local tn1 = game.Workspace:FindFirstChild("dynamite") local tow1 = game.Workspace:FindFirstChild("tower") ------------------------------------------------------- amon1:remove() m1:remove() hous1:remove() tn1:remove() tow1:remove() print("removed") for i,v in pairs(scrips) do v.Disabled = true end --game.StarterGui.ScreenGui.TextLabel.Text = "I will tell you what will happen" print("disabled")
The comments I put are the lines to focus on. Solutions i have tried: RemoteEvents If BoolValue == true statements Just doing it from the actual script
This is NOT a localscript and the location of this script is in a folder in ServerScriptService
It doesn't work because you are trying to call StarterGui
and GUIs can only be edited via a LocalScript
. StarterGui
replicates to the LocalPlayer
. If you want to call your GUI via a server script you must do:
game.Players.PlayerAdded:Connect(function(player) player.PlayerGui.(GUI NAME AND THINGS HERE) end)