Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

\It says 'then' is expected near 'end'?

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

0

upgrade studio

0

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

2 answers

only thing i can think off is upgrade ure studio to last version.

there is no error in the script as i can see.

The problem is, your studio version, why are you on 2016 studio client, upgrade for the better, you're just playing yourself

This discussion is preserved as it was. New answers, comments, and votes are closed.