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

What are some ways to use pcall instead of datatsores?

What if i wanted to use pcall for something like to check if a object is in a position or not or something else more creative thats object oriented

1 answer

I mostly use what I call "lazy pcalls" so if I have some code which is erroring BUT the code is still running the way I want OR if certain code errors SOMETIMES and breaks the rest of the script but works other times, then I will wrap the offending code in a pcall.

As far as checking if things exist, it would be better, I think to use something like FindFirstChild.

For checking positions I would do an if statement.

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