Hello, I want to ask, for what and what is pcall in lua?

I would appreciate it if you would help me with this question, thank you!

If you don't know what pcall is, I'll show you a code under this paragraph.

pcall()

I really want to know what it's for!

Thank you!

3 comments

0

pcall is for error catching, it should only be used on things that could error such as calling datastores. https://www.lua.org/pil/8.4.html

0

Okay, thanks.