Why does this not work? Help!
script.Parent.ChangeMode.MouseButton1Click:connect(function()
on = not on
if on then
script.Parent.ChangeMode.Text = "On"
script.Parent.ChangeMode.ImageLabel.BackgroundColor3 = {0,170,0}
else
script.Parent.ChangeMode.Text = "Off"
script.Parent.ChangeMode.ImageLabel.BackgroundColor3 = {255,0,0}
end
end)
Thanks!