function OnJoinz()
local g=game.StarterGui.ScreenGui.TextBox
g.Position.new(0,600,0,200)
g.Text=('Green is Starting Game.Red is Not Enough Players')
end
game.Players.PlayerAdded:connect(OnJoinz)
✓ ANSWER ACCEPTED
Why is this not working?
1 answer
✓ Accepted answer
This is how you would make it so that the player that joins only sees it:
Game.Players.PlayerAdded:connect(function(player) -- defining the player when they join
local g = player.PlayerGui.ScreenGui.TextBox -- Defining the gui
g.Position.new(0,600,0,200)
g.Text=('Green is Starting Game. Red is Not Enough Players')
end)
2 comments
0
I onlY wanted the player that just joined to see the gui.
0
Ok let me test cause your old script didn't show the Gui know why I don't...
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I edited my answer the new one should work