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
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
For loops are good for specific loops, or you can use repeat until you can use the Scripting Glossary to help
This discussion is preserved as it was. New answers, comments, and votes are closed.