So I'm fixing my whitelist and here's my code so far:
game.Players.PlayerAdded:connect(function(p)
if game.CreatorType == Enum.CreatorType.Group then
Group = game.CreatorId
print('yes')
print(Group)
end
Now this issue with this is I want to figure out if the player is the owner of the group, if the player isn't, I return. If it is, a value will be checked. I added just one line which is as follows.
elseif p:GetRankInGroup(Group) == 255 then
So the code looks like this
game.Players.PlayerAdded:connect(function(p)
if game.CreatorType == Enum.CreatorType.Group then
Group = game.CreatorId
elseif p:GetRankInGroup(Group) == 255 then
print('yes')
print(Group)
end
But when I publish the module, it doesn't print the group id or yes. How can I fix this?

3 comments
Why you don't want to use IF?
because if I use it, the code breaks.
;-; how dose the code break if you use IF?