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)

3 comments
What thing is script.Parent.Parent.Parent.Parent.Parent? Is it placed in playerGui.screnGui?
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.
to imfrostic : thx i changed it now its working