Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I see if a player is not in a certain group? [SelfSolved]

Asked by 9 years ago
game.Players.PlayerAdded:connect(function(plr)
    if plr:IsInGroup(12345) then

How would I see if the player is not in that group? I'm confused and feel like I should know this.

1
Would it be something like... if not plr:IsInGroup(12345) then ? alphawolvess 1784 — 9y
1
That is the correct line of code to use if the Player is not in the group. TheeDeathCaster 2368 — 9y
0
Oh, Iol. Ty. I tried and it worked. I forgot about "not" for a moment. alphawolvess 1784 — 9y

Answer this question