I have been trying to get this to work for a while and it’s still teaming people wrong whenever they join the game. I don’t know if the script is outdated, because I am not a scripter, I just need to script a group spawner. I have 2 separate teams and one is scripted with the group script and the other isn’t. One more question: Do I put the script in the team or in the spawner?
[READ] Please use either pictures or descriptive instructions.
Picture of the Script:

1 Like
Try doing this,
Plr.Team = game.Teams.(name of team)
instead of Plr.TeamColor = BrickColor.new(“Bright red”)
Also, if you really need to do it using teamcolor, make sure you actually have the teams and the colors correct inside the ‘teams’ folder in explorer.
1 Like
Your code looks fine. The script should go in ServerScriptService
.
2 Likes
Thank you for all the help! I will do that.
Just use put a script into ServerScriptService and write this into it. Basically this code just checks if the player has a rank higher than x and if he does he moves his Torso, basically his whole body by getting the CFrame of the torso and moving it to the CFrame of the spawn location.
game.Players.PlayerAdded:Connect(function(Player)
if Plater:GetRoleInGroup(GroupId) <= RankId then do
print("User has rank")
local Char = Player.Character
Char:WaitForChild("UpperTorso").CFrame = game.Workspace.RoleSpawn.CFrame
end
end)