Ad
Log in to vote
0

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

Asked by 3 days 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 3 days 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