I am making a game called "Memory Madness" in which players must repeat a sequence of colors to survive, those who do not put in the correct sequence are eliminated. I am up to the intermission part and where players are teleported into the map. After I randomize the teams, I want to make sure that the person on the Green team gets teleported to the green spot, and that the Red team gets teleported to the red stop and so on. How would I achieve this?
Assuming you don't want to do SpawnLocations, it'd work like this.
Players = game:GetService('Players') for _,player in pairs(Players:GetPlayer()) do if player.Team = game.Teams['TEAMNAMEHERE'] then player.Character.HumanoidRootPart.CFrame = Vector3.new(0,0,0) -- Replace with whatever vector you want. end end