How would you go about getting the primary group of the owner of the game? I'm guessing using http service but I'm not very understanding of webAPI. Thank you in advance.
function getPrimaryGroupId(playerId)
local groupInfo = game:GetService("GroupService"):GetGroupsAsync(playerId)
for i,v in pairs(groupInfo) do
if v.IsPrimary then
return v.Id
end
end
end
local creatorPrimaryId = getPrimaryGroupId(game.CreatorId)