TextLabel = game.Players.PlayerGui.ScreenGui.TextLabel game.Players.PlayerGui.ScreenGui.TextLabel.Text = "Finished loading! Welcome to " ..game.Name wait(10) for countdown = 10, 0, -1 do TextLabel.Text = "Remaining time: " ..countdown end --I don't know how to make this look like actual code.. sorry
✓ ANSWER ACCEPTED
How to define a gui in the players view? (all players) Error: PlayerGui not in Players
2 answers
✓ Accepted answer
just do:
game.StarterGui.ScreenGui.TextLabel.Text = "Finished loading! Welcome to "..game.Name
wait(10)
for countdown = 10,0,-1 do
TextLabel.Text = "Remaining time:"..countdown
end
2 comments
0
Whatt? why would you change the starterGui?
0
That was the problem, I didn't know how to state player's gui. Thanks!
TextLabel = game.Players.PlayerGui.ScreenGui.TextLabel
You didnt define the player
it should be
TextLabel = game.Players.[PlayerName].PlayerGui.ScreenGui.TextLabel
Also click the Lua icon when writing to create a code block thingy like the one i just did
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
What are you trying to do, there is not much reason to reference the playergui.