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

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

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

1 comment

0

it should be >= instead of =>

1 answer

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

:)

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