I'm making a gui, and a script does not work at all, but I cannot see any reason why it wont.
Can someone see why it wont for me?
function Click() script.Parent.Parent.paneloff.BackgroundColor3 = Color3.fromRGB(229, 229, 229) script.Parent.BackgroundColor3 = Color3.fromRGB(112, 112, 112) script.Parent.Parent.Parent.Main.Power.Panel.BackgroundColor3 = Color3.fromRGB(0, 170, 0) script.Parent.Parent.Parent.Main.Power.Panel.enabled.Visible = true script.Parent.Parent.Parent.Main.Power.Panel.disabled.Visible = false end script.Parent.MouseButton1Click:connect(Click)
Yes, I have located the things correctly.
****EDIT
Turns out studio, for some reason, duplicated something which made the script have an error. My issue is fixed.