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

Text on TextLabel Will Not Change?

local Wave = game.StarterGui.ScreenGui.WaveNumber
Wave.Text = "Wave 1"

Nothing happens. Any ideas?

2 comments

0

Make sure your actually targeting the the text label. Also is this a local script? or Server side script.

0

local, the textlabel is named WaveNumber, is located in ScreenGui which is in StarterGui

2 answers

✓ Accepted answer

Hey,

You need to change it in the Player's PlayerGui, not in the StarterGui. Changes to the StarterGui only apply to the PlayerGui after reloading the character.

So the new script is:

local Wave = game.Players.LocalPlayer.PlayerGui.ScreenGui.WaveNumber
Wave.Text = "Wave 1"

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