I was wondering if anyone can tell me how you'd use stuff like GetRoleInGroup() on a Player that isn't in the same server as you, in a different game, or offline. I've tried local Player = game.Players:GetNameFromUserIdAsync(40973680) print(Player:GetRoleInGroup(7013)), and it get's the Player but it won't print their rank instead it returns the error attempt to call method 'GetRoleInGroup' (a nil value). Would this be possible in a ROBLOX game or would it require HttpService(API or something)?
Script I've tried:
local Player = game.Players:GetNameFromUserIdAsync(40973680)
print(Player:GetRoleInGroup(7013))
Any help appreciated, sorry I can't really explain it any better.

2 comments
I think you need to use their ID instead of their Name.
What?