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

How do I make a gui script work when it has no noticable issues? [Solved]

Asked by
Zeluxis 100
7 years ago
Edited by Pyrondon 7 years ago

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.

Answer this question