while true do
wait(0.03)
if script.Parent.on == true then
script.Parent.G1.a.Transparency = 0
script.Parent.G1.a.SurfaceLight.Enabled = true
script.Parent.right.Transparency = 0
wait(0.05)
script.Parent.G1.a.Transparency = 1
script.Parent.G1.a.SurfaceLight.Enabled = false
script.Parent.right.Transparency = 1
wait(0.05)
script.Parent.G1.a.Transparency = 0
script.Parent.G1.a.SurfaceLight.Enabled = true
script.Parent.right.Transparency = 0
wait(0.05)
script.Parent.G1.a.Transparency = 1
script.Parent.G1.a.SurfaceLight.Enabled = false
script.Parent.right.Transparency = 1
script.Parent.G2.b.Transparency = 0
script.Parent.G2.b.SurfaceLight.Enabled = true
script.Parent.left.Transparency = 0
wait(0.05)
script.Parent.G2.b.Transparency = 1
script.Parent.G2.b.SurfaceLight.Enabled = false
script.Parent.left.Transparency = 1
wait(0.05)
script.Parent.G2.b.Transparency = 0
script.Parent.G2.b.SurfaceLight.Enabled = true
script.Parent.left.Transparency = 0
wait(0.05)
script.Parent.G2.b.Transparency = 1
script.Parent.G2.b.SurfaceLight.Enabled = false
script.Parent.left.Transparency = 1
end
end
I have this script. I am trying to make it so if on is true the following will run. It is not working in game and not listening at all. It also won't return any errors.

1 comment
What is "on" supposed to be?