1 | for i, v in pairs (game.Players:GetPlayers()) do |
2 | v.Character.MoveTo(game.Workspace.Spawn) |
3 | end |
it only teleports one player not all the players?
Here's your fix:
1 | for i, v in pairs (game.Players:GetPlayers()) do |
2 | if v:IsA( "Player" ) then |
3 | v.Character:MoveTo(game.Workspace.Spawn.Position) |
4 | end |
5 | end |
If you think that you can move the torso with a Vector3 value, then don't. The Torso loses all of its connectors to the other limbs and you die.
Use a CFrame value, as they are smoother and more flexible than Vector3s.
``game.Workspace.Player.Torso.CFrame = workspace.Spawn.CFrame * CFrame.new(0,5,0)