#Why doesnt this work?

1 messages · Page 1 of 1 (latest)

toxic pivot
#

local gui = workspace.Stats.ServerStats:WaitForChild("SurfaceGui"):WaitForChild("Frame"):WaitForChild("Type")

local function getServerType()
if game.PrivateServerId ~= "" then
if game.PrivateServerOwnerId ~= 0 then
gui.Text = "Type: Private"
else
gui.Text = "Type: Reserved"
end
else
gui.Text = "Type: Public"
end
end

forest patrol
#

try using print() on every possible scenario

#

also if its on client and streamingenabled is on try using WaitForChild for stats and serverstats too

mild tulip
#

Is the local function being ran?