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

How to set a GUI TextLabel BackgroundColor3?

Asked by 5 years ago

This is what I have right now: script.Parent.Parent.Main.Main.BackgroundColor3 = Color3.fromRGB(209, 209, 209)

For some reason, it doesn't work and I have no idea how to fix it.

0
you should use waitforchilds if you don't want to try to add a wait(2) to the start of your script, if it still doesn't work tell the errors =/ User#20388 0 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

That code is correct actually, you probably have the wrong code for the "script.Parent.Parent.Main.Main" and you should add WaitForChild's instead because sometimes the script looks for the TextLabel before everything loads in.

Ad

Answer this question