Need help how to set player spawn point when touch a part

Hello devs , I wanted to know if it was possible to set the spawnpoint of a player when he touches a certain part. (Basically he touches a share and if he dies he respawns to that share)

-Tnks

You could use RespawnLocation to set where a player respawns next time. (although keep in mind the object must be a SpawnLocation). Alternatively you could use PivotTo to move the player’s Character when they respawn (detect with Player.CharacterAdded).