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

This If statement is not working? I have tried everything.

Asked by
Manby7 32
3 years ago

This if statement won't work. I keep getting this error in the output:

"ServerScriptService.Script:5: Expected 'then' when parsing if statement, got '='"

It's probably a careless mistake lol.

This is the script:

while true do

    local tab = workspace.Suitcases:GetChildren()

    if #tab => 20 then
        game.ReplicatedStorage.Stop.Value = true
    end
    wait(0.000000000000000000000000000001)
end
0
it should be >= instead of => sxmmerniqhts 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

The sign is actually >=. This makes sense, because when you speak, you would normally say "bigger than or equal to" rather than "equal to or bigger than" or at least that was how i was taught to say it. None the less, that is the symbol. Also, instead of putting all the zeros in the wait, just type wait()

It does the same thing

:)

Ad

Answer this question