I have a script in ServerScripts...
game.Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function(c) wait() c.Parent = game.Lighting p.PlayerGui.Health.Enabled = false p.PlayerGui.CharChoose.Enabled = true end) end)
it wont work, i even tried adding a wait(5) and that gives me time to look in the player's PlayerGui, and the screengui is THERE! but there is output error saying
CharChoose is not a valid member of PlayerGui
Please help!
The need to use "WaitForChild"
game.Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function(c) wait() c.Parent = game.Lighting local gui = p:WaitForChild('PlayerGui') local health = gui:WaitForChild('Health') local charchoo = gui:WaitForChild('CharChoose') helath.Enabled = false charchoo.Enabled = true end) end)