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

Why is the text not changing and repeating?

repeat
game.StarterGui.Note.ImageLabel.TextLabel.Text = "Note if you purchase a rank gamepass, you will have to wait up to 24 hours for your rank."
wait(5)
game.StarterGui.Note.ImageLabel.TextLabel.Text = "Note The game is in beta phase still."

	
until
game.StarterGui.Note.ImageLabel.TextLabel.Text == "no"

1 comment

0

Done!

1 answer

✓ Accepted answer

Hello! The fact is that this script tries to perform actions with text in the directory "Workspase -> StarterGui" when it is necessary that actions with text be performed in the directory "Players -> (PlayerName) -> PlayerGui". Simply put, the script changes the text only in the game itself, and not on the character’s screen. To fix this, you must put the script in "StarterGui -> Note" and specify the path to the text through "script.Parent". Below I wrote a fixed script:

repeat
script.Parent.ImageLabel.TextLabel.Text = "Note if you purchase a rank gamepass, you will have to wait up to 24 hours for your rank."
wait(5)
script.Parent.ImageLabel.TextLabel.Text = "Note The game is in beta phase still."


until
script.Parent.ImageLabel.TextLabel.Text == "no"

If you understand, accept this as an answer :)

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