Loading...

pcall is very cool!!! | Forum

Topic location: Forum home » Other » Off topic
Save
Save Apr 13 '23

33 Posts

i love pcall laughing.giflaughing.giflaughing.gifit lets me catch errors
oh yeah spawn is very cool too cuz it lets u run stuff without stopping everything else in the script

local success,reason = pcall(function()
    game:remove() 
end)
if not success then 
    print(reason)

end

i havent really read that much documentation on pcall though so idk how to make it return the line number as well 
though i should read on xpcall and ypcall
only if debug.profile existed in 2015 swearing.gif

anyways heres a really useful site

The Forum post is edited by Save Apr 13 '23
vqrkbeki
vqrkbeki Oct 3 '25

89 Posts

ܦܥܵ ܦ܋ܫ ܏ܫر