Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 7 years ago

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

Log in to vote
0
Answered by 7 years ago

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.

Ad

Answer this question