How, do i allow the Users rank 9 and up to join the game and kick ranks under 9?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to allow my Helpers and MR’S + to help host a training and i want to kick the ranks above 3 up to 9

  2. What is the issue? The code has a error when i run it

  3. What solutions have you tried so far? I have tried to debug it

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!


local players = game:GetService("Players").PlayerAdded:Connect(function(player)
	if player:GetRankInGroup(10886396) <= 3 then
		player:Kick("Inccificent Rank")
	else
		if player:GetRanbkInGroup(10886396) <=9 then
			print("Player is Host, cohost, Helper")
		end
	end
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

you misspelled rank right here, probably the cause of the error. Also, you word it quite confusing or I’m honestly having a brain fart, but do you mean for everyone with a lower rank than 9 to be kicked? or all of the ranks between 3 and 9 to be kicked?

2 Likes

In addition to this.

if player:GetRankInGroup(10886396) >= 9 then

The operator should be >= so that the conditional statement matches any player with a group rank of 9 or above.