Since pcall is used to prevent errors why isn't it always used? What are the disadvantages?
pcall
does not really have disadvantages, but people just find it to be excess when using in every function they use (ex: you have a touched function that works, you would not need pcall for it).
As such, pcall
is mostly used for Datastore, because it is much more ethical in that field of functions. But there are cases that people use them in other functions, so feel free to use your preference, albeit not recommended,
You are not supposed to write code that can error. The only places you should be using pcall is when you're experimenting with stuff or using any HTTP or third-party API and don't have control over the other end.