@rbxts/zone-plus
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

@rbxts/zone-plus

Typings for ForeverHD's ZonePlus v3 module

Installation

npm i @rbxts/zone-plus

Example Usage

import { Zone } from "@rbxts/zone-plus";
import { CollectionService } from "@rbxts/services";

for (const zonePart of CollectionService.GetTagged("Zone")) {
	if (!zonePart.IsA("BasePart")) {
		continue;
	}

	const zone = new Zone(zonePart);

	zone.playerEntered.Connect((player) => {
		print(`${player.Name} entered the zone!`);
	});

	zone.playerExited.Connect((player) => {
		print(`${player.Name} exited the zone!`);
	});	
}

Package Sidebar

Install

npm i @rbxts/zone-plus

Weekly Downloads

26

Version

3.2.0

License

ISC

Unpacked Size

92.1 kB

Total Files

21

Last publish

Collaborators

  • scyfren