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

is there any way I can pause the function progress? like a Break

is there any way I can pause the function progress? like a Break

2 answers

You can simply use the function break this will break the function of your loop also you can use a return because return breaks loops/values

2 comments

0

break is to break out of loops and return will make the function return a value, stopping it on that line.

0

Ik

If you're looking to PAUSE a function, I don't believe there an official function for that BUT you can do it a hacky way.

repeat wait() until value == true

This would yield the script until the value (it may be a local value or an instance value) turns true.

If you're looking to break a function completely though, you can simply use the break or return functions.

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