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

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

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

2 comments

0

Out of curiosity, what kind of script are you using to change the text?

0

I have no clue! Seems good to me.

2 answers

✓ Accepted answer

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.

3 comments

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?

0

I don't think i have control over that; but great question!

0

thanks bud

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^

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