Respawns a player to a spawn point gizmo. If the spawn point is set to “set position only” it will not rotate the player. The spawn point can also change the player's speed and gravity.
Parameters
player, object
Respawns the player to the spawn gizmo object.
Example 1: Respawn/teleport trigger
Placing a trigger under your world with this script allows you to catch any fallen players, or those who experience severe lag. You can also use this script to teleport players.
Example 2: Water balloon that respawns a player when hit