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 2 years ago
Edited 2 years 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
2 years 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 — 2y
0
Np MattVSNNL 620 — 2y
Ad

Answer this question