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

Skip errors in scripts when people leave?

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

✓ Accepted answer

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

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