Blacklisting Group script not working

I was making a Black list groups script for a group which kept trolling at my place. So I decided to make a script. Once I made the script, it didn’t work. I don’t see anything wrong with it so I am a little confused.
When I made the script, I joined that black listed group and then joined my game. For some reason I didn’t get kicked.
I have tried re doing the script to see if that would solve the issue but it didn’t.

Here is my script.

The argument doesn’t seem to be complete. And I wouldn’t use :GetRankInGroup() for a case such as this.

This would work better :

    if plr:IsInGroup(GroupId) then
1 Like

Thank you so much, it worked but the message doesn’t show. But it’s fine :slight_smile:

1 Like