You must pass a function as the first argument, otherwise it wont work.
pcall
is used for error handling. It will execute the function, and if the function errors, it will handle it and give you the error, rather than erroring in your main thread and stopping.
The example you provided does pass a function as the first argument, func
, and then the DevInfo
and Player
as extra arguments.