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

have absolutely no idea of why i cant change a text label?

Asked by
x28_97 -9
4 years ago
Edited by DeceptiveCaster 4 years ago

So my code is a remote function that returns values that work fine but when i try to change the text labels in screenGuis some code works but one does here is my code:

working:

Players:WaitForChild(player.Name).PlayerGui:WaitForChild("MoneyGuis").moneyLabel.Text = "$: ".. money

NOT WORKING:

Players:WaitForChild(player.Name).PlayerGui:WaitForChild("aGui"):WaitForChild("data").killsTextLabel.Text = money

please and ty i have no clue on why this doesnt work

0
Out of curiosity, what kind of script are you using to change the text? DeceptiveCaster 3761 — 4y
0
I have no clue! Seems good to me. alexfinger21 341 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Optional, works best for me

If you're making a script where you adjust something from the ScreenGUI then i'd recommend inserting a 'Local Script', in the ScreenGUI.

Apologies for lack of elaborate answer.

0
thanks it worked but i was trying to keep the script in replicatedfirst so it would run first but im not sure if that matters? x28_97 -9 — 4y
0
I don't think i have control over that; but great question! maxpax2009 340 — 4y
0
thanks bud x28_97 -9 — 4y
Ad
Log in to vote
0
Answered by
XDvvvDX 186
4 years ago

If the script is a normal script change it to a local. It seems pretty good. If it helped please upvote me it would be much appreciated^

Answer this question