This script is meant to give you team based on your rank in a group, but it instead causes you to join a “neutral” team. There are no errors, so I really have no idea,
local Teams = game:GetService("Teams")
local Players = game:GetService("Players")
local function playerAdded(player:Player)
local playerRank = player:GetRankInGroup(33160241)
if playerRank == 2 then
player.Team = Teams:FindFirstChild("Military")
end
if playerRank == 1 then
player.Team = Teams:FindFirstChild("Immigrant")
end
if playerRank == 254 or 255 then
player.Team = Teams:FindFirstChild("Owner")
end
end