Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Skip errors in scripts when people leave?

Asked by 4 months 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 1430 Moderation Voter
4 months ago

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

Ad

Answer this question