Hello, I have a question is, player:IsNotInGroup() a form?
COMMUNITY QUESTION
is this Player:IsNotInGroup() a form?
1 answer
Yes. But it's worded differently. If you want to check if a player is not in a group You can use Player:IsInGroup(GroupId). as an alternative. It returns a boolvalue of either true or false.
local player = game.Players.LocalPlayer --You can use game.Players.PlayerAdded as well.
local groupId = 0 --Change the 0 to your groupid.
if not player:IsInGroup(groupId) then --If you put a not, it will check for a false value, rather than a true.
--run code
end
So in conclusion, no, it doesn't exist. Use this alternative.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Thank you so much, Sir!
Accept the answer man.
How can i add muttiple groups in it? with if not player:IsInGroup(groupId) and player:IsInGroup(groupId) and player:IsInGroup(groupId) then?
if not player:IsInGroup(group1) and not player:IsInGroup(group2) then
What he said. ^