Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My gui wont pop up when theres on player in the can someone tell whY?

if game.Players.Numplayers == 1 then game.Workspace.StarterGui.Menu.Frame.Visible = true end

the gui i have with the visiblee thing unchecked wont appear

1 answer

✓ Accepted answer

I have no idea what you're trying to modify ("game.Workspace.StarterGui"??) You should be modifying a player's gui, not anything in the workspace nor in the StarterGui (ex, do game.Players.LocalPlayer.PlayerGui.Menu.Frame.Visible = true). Further, Numplayers doesn't exist (NumPlayers and numPlayers do, but are deprecated). Use if #game.Players:GetPlayers() == 1 then instead.

Also, make sure your script is a LocalScript.

This discussion is preserved as it was. New answers, comments, and votes are closed.