of     1   

cody123454321
#207672682Friday, January 20, 2017 2:57 AM GMT

The problem with error is that it posts an error message. In scripts, you can do do return end to exit, but scripts are a bunch of functions that render this useless. Just strip the error message off error() and you got yourself an exit.
MyPWisRule22
#207673267Friday, January 20, 2017 3:04 AM GMT

ok
mypasswrdiswaazup11
#207674428Friday, January 20, 2017 3:17 AM GMT

lol no
PhantomVisual
#207674754Friday, January 20, 2017 3:21 AM GMT

Just stick with return end. If you need to run two loops at once, use the Spawn() function or some other method. function loop1() while true do wait(1) print"loop1 is running" end end Spawn(loop1) while true do wait(1) print"loop2 is running" end Output: loop1 is running loop2 is running loop1 is running loop2 is running loop1 is running loop2 is running loop1 is running loop2 is running and whatnot.
MyPWisRule22
#207675127Friday, January 20, 2017 3:26 AM GMT

would cause lag
cody123454321
#207684697Friday, January 20, 2017 5:44 AM GMT

Misunderstood I guess, exit() is for completely stopping a script. Having to return safely from the script requires way more work than just stopping execution.
cody123454321
#207877128Sunday, January 22, 2017 3:56 AM GMT

bump
dardo99
#207879360Sunday, January 22, 2017 4:20 AM GMT

you can already stop a script with script.Active = false Im equiped with https://www.roblox.com/library/305170648/ODer-Repellent
PhantomVisual
#207880478Sunday, January 22, 2017 4:31 AM GMT

or script.Disabled = true

    of     1