Let me explain a bit farther about the script. So, this script is going to kick such people who aren’t in the group, who already got the rank, and ranks higher than customer. For instance, if a Senior Waitress/Waiter were to do the application again, the bot is going to rank them down to Trainee. And, there’s nothing I can do with the software empowering this software, Hyra, so I made my own script.
This script is a normal script which I put inside of ServerScriptService.
local groupID = 6241748
local rankNeeded = 3
local Player = game:GetService("Players")
Player.PlayerAdded:Connect(function(player)
if not player.GetRankInGroup(groupID) == 3 then
player:Kick()
end
end)
The result of running this script is the fact that it does nothing. I joined on my alt which is ranked at Trainee but it isn’t kicking the alt out of the game.
I appreciate feedback below! Thanks! 
Hello !
You should put :
local groupID = 6241748
local rankNeeded = 3
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
if not player.GetRankInGroup(groupID) >= rankNeeded then
player:Kick()
end
end)
Because currently it kicks only those who have the rank 3 in the group.
If you want to make it not take into account those who have the rank 3 then replace the >= by >.
Hope it helps you 
Thanks! I’ll give this a try, and let you know if this works. Although, it says not at the start. If you’re not not in the group and that specific rank, then you should be kicked! I might also try and see if I am outside of the group, if it has any affect.
Try this:
local groupID = 6241748
local rankNeeded = 3
local KickMessage = "You've been kicked!"
local Player = game:GetService("Players")
Player.PlayerAdded:Connect(function(player)
if player:GetRankInGroup(groupID) > rankNeeded then -- > or >= | Here can be another operator, i'll put link to them
player:Kick(KickMessage)
end
end)
Link for operators, which you can use.
1 Like
hello, easy fix.
Its
--if player:GetRankInGroup(groupID) ~= 3 then
Okay! So, with what I saw you did, it certainly worked with kicking, but now, it’s also kicking the rank in which I want to be able to join. Also, I forgot that the rank number for customer is 1, not 3 lol. Anyways… here’s the script.
local groupID = 6241748
local rankNeeded = 1
local KickMessage = "You've been kicked!"
local Player = game:GetService("Players")
Player.PlayerAdded:Connect(function(player)
if player:GetRankInGroup(groupID) > rankNeeded then -- > or >= | Here can be another operator, i'll put link to them
player:Kick(KickMessage)
end
if player:GetRankInGroup(groupID) < rankNeeded then -- > or >= | Here can be another operator, i'll put link to them
player:Kick(KickMessage)
end
end)
Can you little bit explain what do you want to achieve?
Does you want if your group rank is 1 then you’ll be kicked from game?
1 Like
I’m looking for if my group rank is 1, then you can proceed to the application. If your group rank is lower than one, 0, which means your not apart of the group, you get kicked, or if your group rank is greater than 1, you also get kicked.
What’s happening is that it’s kicking you regardless if your group rank is 1 or less than or greater than.
local groupID = 6241748
local rankNeeded = 1
local KickMessage = "You've been kicked!"
local Player = game:GetService("Players")
Player.PlayerAdded:Connect(function(player)
if player:GetRankInGroup(groupID) == rankNeeded then -- If your rank is equal to 1 then you can join to game
print("You can join to game!")
elseif player:GetRankInGroup(groupID) > rankNeeded or player:GetRankInGroup(groupID) < rankNeeded then -- if your rank is lower or higher than 1 then you'll be kicked from game
player:Kick(KickMessage)
end
end)
1 Like
Yep! I’m still having problems with the code! It’s still somehow kicking me regardless, same thing as the code before.
local groupID = 6241748
local rankNeeded = 1
local KickMessage = "You've been kicked!"
local Player = game:GetService("Players")
Player.PlayerAdded:Connect(function(player)
if player:GetRankInGroup(groupID) ~= rankNeeded then
player:Kick(KickMessage)
end
end)
1 Like
It’s still doing the same thing. I don’t know what’s wrong with it from working, but there seems to be something wrong that we just don’t know yet what.