Death zone

How do i get a death zone that kills when a player fall of the map?

just make a giant box under your map, make it a trigger and detect when your character hits it. You can turn the renderer off so you can’t see it.

attach code below to a colider set as trigger.
drag your player in player inspector.

var player : GameObject;

function OnTriggerEnter (hit : Collider)
{
Destroy(player.gameObject);

}

I would use application.loadlevel or pop up an interface instead of destroy normally :slight_smile: