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

Why won't this script work?

Here is the script:

gui = game.StarterGui.ScreenGui.TextLabel

while true do
gui.Text = "Welcome to Brick Builders!"
wait(3)
gui.Text = "To get your building tools, go to the office."
wait(3)

Can you help?

2 comments

0

1, did you end it? 2, and it might not be this but, i tried something similiar and it was because StarterGui only updates when your character spawns, so if you run this script then reset it will change the text, but not automatically

0

Oh! Now I get it. I need to use PlayerGui, not StarterGui!

1 answer

✓ Accepted answer

Firstly, you need to end the while loop.

while true do
gui.Text = "Welcome to Brick Builders!"
wait(3)
gui.Text = "To get your building tools, go to the office."
wait(3)
end

Also, the GUI won't be in StarterGui, it will be in the player's PlayerGui. In order to locate this, you need to make sure this is a local script, and use gui = game.Players.LocalPlayer.PlayerGui.ScreenGui.TextLabel

Hope I helped.

1 comment

0

Thanks.

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