Ad
Log in to vote
0

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

Asked by 6 days ago
Edited 6 days 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 614 Moderation Voter
6 days 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 2 — 6d
0
Np MattVSNNL 614 — 6d
Ad

Answer this question