code:
function setTeam(player, teamName)
player.TeamColor = game.Teams[teamName].TeamColor
if player.Character then --Just in case the character doesn't exist for some reason
player.Character:BreakJoints() -- Kills the players' character
end
end
--How it's used
wait(2)
game.Players.PlayerAdded:Connect(function(plr)
if plr.Name == "SUPERGIZMO3607" then
setTeam(game.Players.SUPERGIZMO3607, "Hr")
else
setTeam(game.Players.plr.Name, "Customer")
end
end)
i am going to try to change my team to "Hr" but everytime i join but instead it just changes me to a random team like staff or customer

1 comment
Make sure you have AutoAssignable ON