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

Why is the text not changing and repeating?

Asked by 4 years ago
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"
0
Done! LioshaPlay 66 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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 :)

Ad

Answer this question