So basically I have a thing that can sometimes fail
Which is this
Sometimes it fails so I need to know how to make it so if it does fail it wont stop the rest of the code after it.
Cause I dont know how to lol
You would use a pcall. A pcall is short for protected call and is used for calling functions that may possibly error so that it does not stop the script and we can handle it manually.
local success, errormessage = pcall(function()
if success then
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.