Hi, I wonder what pcall does, and can someone explain it to me. I plan on using it in Data Stores. Thanks!
pcall
(which stands for protected call), the output errors don't show, and if the script does throw an error, it will not break. Take this for example:local success, message = pcall(function() -- pcall returns two things, a boolean if it didn't throw an error, and if it DID, returns the error msg PRiNt("HI") -- attempt to call a nil value end) if success then -- if it didn't throw an error print("No errors! :D") else -- there was an error :( print(message) --> attempt to call a nil value end