Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 5 years ago
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

0
upgrade studio Gameplayer365247v2 1055 — 5y
0
cause im not getting any errors and you have as many ends as you should have so just update Gameplayer365247v2 1055 — 5y

2 answers

Log in to vote
1
Answered by 5 years ago

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

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

Ad
Log in to vote
0
Answered by 5 years ago

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

Answer this question