Function of World
world.zone
Makes a box of blocks, both corners included, that knows who is in it; checked once a tick by feet position. Ends with the script.
world.zone(opts: { from: Vec3, to: Vec3, on_enter: ((player: Player) -> ())?, on_leave: ((player: Player) -> ())? }) → ZoneParameters
Returns
ZoneUsed in
coin.zone = world.zone{Guide: Coin rush- `world.zone` is a box of blocks. Here it is one block, and `on_enter`Guide: Coin rushroom.world.zone{ from = from, to = to, on_enter = function(p)Guide: Parkour, a room eachroom.world.zone{ from = vec3(-40, 30, -10), to = vec3(40, 58, c.finish.z + 10), on_enter = function(p)Guide: Parkour, a room eachlocal goal = world.zone{ from = vec3(10, 64, 10), to = vec3(14, 66, 14),Zones and raycasts