terrain ending.

is possible to make a script for player dont go out of terrain?

I would say just use colliders for that or you can write re-spawn scripts for when the player gets a certain distance or fall off the terrain.

thank’s,ive solved.