This is a callable function I'm using to get a user's ID. The issue is, when I call it with a valid username, it returns nil.
function getid(name) local s,e = pcall(function() local id = game.Players:GetUserIdFromNameAsync(name) return id end) if not s then warn(e) end end