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

what is a good way to script so that a loop goes when a condition is true while counting up?

For example, if I wanna create a flag capture point, would this be a good idea to check if the player is on for 10 seconds?:

while wait(1) do
if mag < 10 then
i = i + 1
if i == 10 then
	print("captured")
		end
	end
end

1 answer

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