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
I solved this my using a different method, thanks anyone who tried to help!