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

Problems changing Text Label Text?

Asked by 5 years ago
Edited 5 years ago

Ok... I'm changing the value of a text label using a regular script, and this is the output:

18:55:35.376 - Workspace.Scripts.Chat.StarterIsland.Script:16: attempt to index field 'TextLabel' (a string value)

What i technically typed was :

game.Players.PlayerAdded:Connect(function(plr)
    local gui = plr.PlayerGui.ScreenGui.Frame -- or whatever
    gui.TextLabel.Text = "Hiya"
    wait(2)
    gui.TextLabel.Text = "I SAID HIYA"
end)

Ples help lol

0
why don't you just change it in the properties windows? MasterToothBrush 0 — 5y
0
cause it is constantly changing Clasterboy 72 — 5y
0
Full script? Golembyte -5 — 5y
0
Do plr.PlayerGui:WaitForChild() SuperSamyGamer 316 — 5y

Answer this question