@PiggyJingles just no, you then need to call it on every player MANUALLY, and the explanation? ._.
You need to check on every player each tick (200 ms) if he's/she's dead, first create a LOCALSCRIPT and add a function like this:
1 | local player = game.Players.LocalPlayer |
2 | function teleportOnDeath() |
3 | player.Position = Vector 3. new(xCoord, yCoord, zCoord) |
After that we need to call it using the Died:connect(player) event, add this under everything:
1 | player.CharacterAdded:connect( function (character) |
2 | character:WaitForChild( "Humanoid" ).Died:connect(teleportOnDeath) |
That's it!