WHEN COLLIDING WITH PLAYER
Codeblocks below the when colliding with player line will execute when a player’s head or torso collides with the object the script is attached to. The object must be configured to detect collisions.
The player who collided with the object this script is attached to.
WHEN COLLIDING WITH OBJECT precedes this tutorial
Example 1: Respawn a player
Imagine this script is attached to an object that causes a player to respawn.