ZoneComponent
Child class of Zone. Represents a part in a Zone.
Public
ZoneComponent.Shape
ZoneComponent.Shape -- Enum.PartType
ZoneComponent.CFrame
ZoneComponent.CFrame -- CFrame
ZoneComponent.Size
ZoneComponent.Size -- Vector3
ZoneComponent:Query(QueryType: string, Params: OverlapParams)
local PartList = ZoneComponent:Query("Full", OverlapParams) -> {BasePart}
Full or Bounds. Returns an array of BasePart inside the ZoneComponent.
ZoneComponent:GetCharacters(CharacterResolution: string, QueryType: string, Params: OverlapParams)
local CharacterList = ZoneComponent:GetCharacters("OnePart", "Bounds", OverlapParams) -> {Model}
FullBody or Root or Head or OnePart. QueryType can be Full or Bounds. Returns an array of Characters inside the ZoneComponent.
ZoneComponent:GetPlayers(CharacterResolution: string, QueryType: string, Params: OverlapParams)
local PlayerCharacterList = ZoneComponent:GetPlayers("OnePart", "Bounds", OverlapParams) -> {Model}
FullBody or Root or Head or OnePart. QueryType can be Full or Bounds. Returns an array of PlayerCharacters inside the ZoneComponent.
ZoneComponent:Destroy()
ZoneComponent:Destroy()
Private
ZoneComponent._Part
ZoneComponent._Part -- BasePart or nil
ZoneComponent._State
ZoneComponent._State -- string
Active, Paused or Dead. If the state is Dead, the ZoneComponent should not be referenced anymore.
ZoneComponent:_NewPart()
ZoneComponent:_NewPart()