I believe this works, At least I hope so, as it works in my studio build. (an older version of the roblox studio)
1 | local spawnLocation = game.Workspace:WaitForChild( "Brick" ) |
2 | local people = game.Players:GetPlayers() |
4 | people [ i ] .Character.HumanoidRootPart.CFrame = spawnLocation.CFrame |
Explanation:
1 | local people = game.Players:GetPlayers() |
put this before the teleportation, as every-time the script for teleporting is ran, it checks all the players on the game at the time the script is run.
keeps checking for people to do the loop until theres none more to teleport.
1 | people [ i ] .Character.HumanoidRootPart.CFrame = spawnLocation.CFrame |
teleports the person's RootPart CFrame to the spawnLocation CFrame.