--[[**
	Gets an array of the given player's groups.
	@param [Instance<Player>] Player The player you are checking for. Can also be their UserID.
	@returns [Array] All of the groups the player is in.
**--]]

function GroupService:GetGroupsAsync(Player)
	local UserId = (typeof(Player) == "Instance" and Player:IsA("Player")) and Player.UserId or type(Player) == "number" and Player
	local Success, Groups = pcall(RbxGroupService.GetGroupsAsync, RbxGroupService, UserId)
	return Success and Groups or {}
end
