Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

is this Player:IsNotInGroup() a form?

Hello, I have a question is, 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.

5 comments

0

Thank you so much, Sir!

0

Accept the answer man.

0

How can i add muttiple groups in it? with if not player:IsInGroup(groupId) and player:IsInGroup(groupId) and player:IsInGroup(groupId) then?

0

if not player:IsInGroup(group1) and not player:IsInGroup(group2) then

0

What he said. ^

This discussion is preserved as it was. New answers, comments, and votes are closed.