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

How do I fix TextLabel not changing?

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

✓ Accepted answer

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.

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!***

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