If I did a teleportion script how would I get all the players to telport not just 1 person to telport
Well first you would do a for statment such as
1 | for i,v |
then you would get all players.
1 | for i,v (game.Players:GetChildren()) do |
now you get their character and teleport them :D like...
1 | v.Character:MoveTo(Vector 3. new(INSERT CORDNATES HERE!)) |
or you could make it so that they all teleport to a part..
1 | v.Character:MoveTo(Vector 3. new(game.Workspace.Part.Position)) |
full code:
1 | for i,v in pairs (game.Players:GetPlayers()) do |
2 | v.Character:MovTeTo(Vector 3. new(INSERT CORDNATES HERE!)) |
hope this helped!