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

How do I fix TextLabel not changing?

Asked by 8 years ago

I was trying to make a screengui that changed text after 5 seconds. But why It doesn't works?

Game.StarterGui.ScreenGui.TextLabel.Text = ("I think I need to get out of the playground")
wait(5)
Game.StarterGui.ScreenGui.TextLabel.Text = ("Find your way out of the playground")

I hope you guys can help this.

2 answers

Log in to vote
2
Answered by 8 years ago
Edited 8 years ago

You're probably confusing PlayerGui and StarterGui

PlayerGui is the Gui inside the player, and it's what people see. StarterGui is the service that replicates Guis to the PlayerGui.

Read this article for more.

Good Luck

If I helped, please don't forget to accept my answer.
Ad
Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

I use this in everything to change guy text.


for i,v in pairs(game.Players:GetPlayers()) do -- get players v.PlayerGui.ScreenGui.TextLabel.Text = "" -- change -- also do not put the brackets end

***If this helps a lot, answer!

Also, good luck making the playground game!***

Answer this question