For some reason my script cannot determine that i am the owner of the game even though game.CreatorId and plr.UserId are the same
Here is the code:
function module.IsOwner(plr)
if game.CreatorType == Enum.CreatorType.User then
if plr.UserId == game.CreatorId then
return true
end
elseif game.CreatorType == Enum.CreatorType.Group then
if plr:IsInGroup(game.CreatorId) then
if plr:GetRankInGroup(game.CreatorId) == 255 then
return true
end
end
end
return false
end

4 comments
Did you actually require this module?
Can I see the script that uses this module?
Try using player.name, that will probably work.
No that will not, the CreatorId is a UserId.