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

How do I use a loop? Because I don't know how.

Asked by 3 years ago

hi im very new to scripting and idk how to make a loop forever this is all i have

loop(1)
print("Test")
end

if anyone could help id appreciate it

1 answer

Log in to vote
2
Answered by
2_MMZ 1059 Moderation Voter
3 years ago

In order to use a loop, you must first make a while true do, which will make the script loop forever. Here's a script:

while true do
wait(1)
print("Test")
end
Ad

Answer this question