Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get the Owner ID of game made by a group ?

Asked by 1 year ago
Edited 1 year ago

SOLVED

I want to make a code and i need to have the Owner ID of the group that made the game. Someone can help me, because i check many doc but i'v found no solution.

1 answer

Log in to vote
1
Answered by
MattVSNNL 620 Moderation Voter
1 year ago
if game.CreatorType == Enum.CreatorType.Group then
      local success, result = pcall(function()
            return player:GetRankInGroup(game.CreatorId) == 255
      end)
      if success and result then
            -- PLAYER IS AN OWNER
      end
end
0
Thx, that working ! DylanMonrency 4 — 1y
0
Np MattVSNNL 620 — 1y
Ad

Answer this question