of     1   

InnovatedFighting
#184851733Sunday, March 06, 2016 7:40 AM GMT

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.
crome60
#184852124Sunday, March 06, 2016 7:55 AM GMT

Use GetGroupsAsync http://wiki.roblox.com/index.php?title=API:Class/GroupService/GetGroupsAsync Using IsPrimary, you can find the primary group of a given user.
foreverpower
#184855752Sunday, March 06, 2016 10:56 AM GMT

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)

    of     1