Can someone tell me why this script doesn't work when the value is changed to true, but it work's for like 3 time's after it's changed to false then stop's?
val = script.Parent.on
g1 = script.Parent.G1
g2 = script.Parent.G2
val.Changed:connect(function()
if val.Value == true then
repeat wait() until val.Value == false
print("True")
for _,v in pairs(g1:GetChildren()) do
v.Point.Enabled = true
v.Lighto.Enabled = true
wait(0.02)
v.Point.Enabled = false
v.Lighto.Enabled = false
wait(0.02)
end
for _,v in pairs(g2:GetChildren()) do
v.Point.Enabled = true
v.Lighto.Enabled = true
wait(0.02)
v.Point.Enabled = false
v.Lighto.Enabled = false
wait(0.02)
end
end
end)

1 comment
Have you checked why in F9?