while true do
if script.Parent.Parent.On.Value == true then
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0)
wait()
end
end
When I set the value to true, nothing happens, at all.
while true do
if script.Parent.Parent.On.Value == true then
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0)
wait()
end
end
When I set the value to true, nothing happens, at all.
You need to put the wait() outside of the if statement, put it right before the end that ends the loop.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
youre putting the wait in the wrong thread because if it isnt on it will break
Could you print script.Parent.Parent.On.Value. If it's false, that's the problem.
Misha, where do I need to put the wait?
Also, write it as an answer to the question so I can accept it if it works.