I made multiple pcalls before and they work, but nowdays they dont work. Here is one of my scripts I was making with someone else.
local s, m = pcall(FindPlayer())
if s then
--stuff
else
warn('Attempted to add "'..plr:GetFullName()..'" to the list!')
end
The function:
function FindPlayer()
game.Players:GetPlayerFromCharacter(plr)
end
The error says
ServerScriptService.MainScript:68: bad argument #1 to 'pcall' (function expected, got no value)
even though it is a function.

2 comments
Also put all of your code into the function. pcall also returns whether the code threw an error, not whether whatever you wanted it to do happened.
Thanks!