bounce = true
while true do
wait(1)
if bounce == true then
bounce = false
for i = 0, 100, 1 do
wait(0.1)
script.Parent.Rotation = script.Parent.Rotation + Vector3.new(0, 1, 0)
if i == 100 then
for i = 0, 100, 1 do
script.Parent.Rotation = script.Parent.Rotation + Vector3.new(0, -1, 0)
if i == 100 then
bounce = true
end
end
end
end
end
end
trying to make something rotate in a 2016 studio client.
I get the error:
21:24:32.940 - Workspace.Money.SpinScript:7: 'then' expected near 'end'
I have no idea why this is happening

2 comments
upgrade studio
cause im not getting any errors and you have as many ends as you should have so just update