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

Changing frame background color doesn't work?

Asked by 6 years ago
Edited 6 years ago

Hey

So I created a personal player guis tat contains player in-game info with some customisation,however,it doesn't work the way i want it to work.It doesn't change its colour at all and there is no output errors

changed

The only thing output says (it is print)

I don't know why it doesn't work.Please help

local button = script.Parent

but.MouseButton1Click:connect(function()
    script.Parent.Parent.Parent.Parent.Parent.BackgroundColor3= Color3.fromRGB(255, 53, 47)
    print("changed")
end)



0
What thing is script.Parent.Parent.Parent.Parent.Parent? Is it placed in playerGui.screnGui? repsej112 0 — 6y
0
Never defining what "but" is? Also use :Connect() instead of :connect(). :connect() is depreciated. Figure out what script.Parent.Parent.Parent.Parent.Parent is, and check to see if it is what you want it to be. W_intry 15 — 6y
0
to imfrostic : thx i changed it now its working KawaiiX_Jimin 54 — 6y

Answer this question