Skip to content

TrackGroup

Extends Section

Builds all the Sections it holds along a section of track at once.

TrackGroup : BaseSection {
    Name : string,

    Sections : BaseSection[],
}

Methods

Create

Creates a Model

TrackGroup:Create(cframeTrack: CFrameTrack, startPosition: number, endPosition: number) -> Model

CreateAsync

Like Create, but wraps this call in a Promise and returns it.

TrackGroup:CreateAsync(cframeTrack: CFrameTrack, startPosition: number, endPosition: number) -> Promise<Model>

Constructors

fromData

TrackGroup.fromData(data: table) -> TrackGroup
data
{
    Name : ?string,

    Sections : BaseSection[]
}

fromInstance

TrackGroup.fromInstance(instance: Instance) -> TrackGroup

Configurations will be converted to TrackGroups

Instances named ASSETS will be ignored.

Everything else will be converted to Sections.