✓ Accepted answer
If you want only one rank to get to a certain team then you shouldn't use the signal >= as It'll apply for everyone in that group that has a rank equal or above 8, use == instead so It'll check only for the players that is on that specific rank which is 8.
To set the player's team you should use the TeamService and set the player's to the specific team you want from there. Your code would be:
Also try to use :Connect more as :connect is deprecated.
local TeamService = game:GetService("Teams")
game:GetService("Players").PlayerAdded:Connect(function(Player)
if Player:GetRankInGroup(4183500) == 8 then
Player.Team = TeamService["YourTeamName"]
end
end)
I suggest to take a look at this Team article as it explains, gives some examples of what you can do with the Team property which will for sure help you with some issues related to that!
Hopefully this helps you with your issue, make sure to accept it if it did solve it!
3 comments
Please post your code together your your thread.
Ok
It’s at the bottom of the Answer, near “Report” and the Comments section. it’ll also be prompted to you on the Right.