Skip to content

ZoneController

Functions

getZones

local zonesArray = ZoneController.getZones()

getTouchingZones

local touchingZonesArray, touchingPartsDictionary = ZoneController.getTouchingZones(player)

setGroup

local settingsGroup = ZoneController.setGroup(settingsGroupName, properties)

properties is a dictionary defining the groups settings. The default properties are:

{
    onlyEnterOnceExitedAll = true, -- When set to `true`, it prevents items (players, parts, etc) from entering multiple zones at once within that group.
}
A zone can be bound to a group using zone:bindToGroup.


getGroup

local settingsGroup = ZoneController.getGroup(settingsGroupName)