ok so I have the script that choose a random place within the model and teleports it there. The parts in the model are all named "StartingPlaceOne-Twelve" how would I make it so it's not random and teleports the first player to the first one and the second player to the second one etc...
--Here is the global table
_G.StartingPlaces = {"StartingPlaceOne","StartingPlaceTwo","StartingPlaceThree","StartingPlaceFour","StartingPlaceFive","StartingPlaceSix","StartingPlaceSeven","StartingPlaceEight","StartingPlaceNine","StartingPlaceTen","StartingPlaceEleven","StartingPlaceTwelve"}
Spawns = game.Workspace:WaitForChild("Spawns")
Players = game.Players:GetPlayers() --Define players
for PlayerTeleport = 1, #Players do
if Players[PlayerTeleport]:WaitForChild("AFK").Value == true then
local char = Players[PlayerTeleport].Character --Essentially waits for the CharacterAdded event to fire, then returns the character.
char:WaitForChild("Torso").CFrame = Spawns[_G.StartingPlaces[math.random(1,#_G.StartingPlaces)]].CFrame * CFrame.new(0,8,0) --here
end
end

1 comment
lmaooo accept my answer ^.^