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

Skip errors in scripts when people leave?

Asked by 4 years ago

If this isn't allowed on this site, I'll take it down. Is there a way to make scripts skip over an error rather than have the whole game break?

For example, if code is running on a player that leaves. Can I just skip the error and move on?

Thanks

1 answer

Log in to vote
0
Answered by
JesseSong 3916 Moderation Voter Community Moderator
4 years ago

You can use a pcall to check whether you script is going to work or not.

Ad

Answer this question