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

Text on TextLabel Will Not Change?

Asked by
Wyqkrn 9
5 years ago
local Wave = game.StarterGui.ScreenGui.WaveNumber
Wave.Text = "Wave 1"

Nothing happens. Any ideas?

0
Make sure your actually targeting the the text label. Also is this a local script? or Server side script. User#24928 0 — 5y
0
local, the textlabel is named WaveNumber, is located in ScreenGui which is in StarterGui Wyqkrn 9 — 5y

2 answers

Log in to vote
2
Answered by
Asceylos 562 Moderation Voter
5 years ago

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"
Ad
Log in to vote
0
Answered by 5 years ago

Try Script.Parent.Parent.Text = "Wave 1"

Answer this question