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

How would I make it so people with a group rank get kicked?

Asked by 2 years ago

As you see, that is my question. I already have the group rank numbers, but I'm not sure how.

1 answer

Log in to vote
0
Answered by 2 years ago

Just a simple if statement could be used to check if a player's rank in a group is equal to a certain number! Using :GetRankInGroup() returns the number value, so you could do something like this:

if game.Players.player:GetRankInGroup(num)==num2 then
    game.Players.player:Kick("You are banned")
end
Ad

Answer this question