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

How do the functions pcall and spawn work?

I havent seen the wiki page for pcall and spawn yet, but I believe I can get a more descriptive way on here, if anyhow possible try to make the explanation easy to understand.

2 comments

2

Pcall can be seen short for protected call, which when an error occurs, it'll prevent it from breaking the rest of the script. As for spawn, it creates a separate thread than the rest of a script.

0

Put that as a answer and ill put it as as answer

1 answer

heres the awner: Pcall can be seen short for protected call, which when an error occurs, it'll prevent it from breaking the rest of the script. As for spawn, it creates a separate thread than the rest of a script.I hoped i helped :D

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