Skip to main content

Track Setup

Tracks are the major component of this system.

It's used in both Framework and Recorder APIs

  • Overview of different types of tracks
  • Quick tutorial of converting a Spaceks or NL2 track to a PointToPoint2 Track

What is a Track?

Included Tracks:

  • PointToPoint
  • PointToPoint2
  • MovingSection
  • Hinge
  • LerpedPoints
  • Offset
  • Point

See Framework's createFromInstance for more information.

When setting up a track in your game, the root Instance should have a child StringValue named TrackClass.

Then, you need to set the StringValue.Value to one of the the above track classes in order for the Recorder and Framework to be able to know which class to use when setting it up.

PointToPoint2 Track

PointToPoint2 Track is the recommend track to use for roller coasters and other track-based rides.

Children:

{
TrackClass: StringValue, // Value should be set to "PointToPoint2"
Points: Instance,
IsCircuited: BoolValue,
HashInterval: NumberValue,
}

Track

  • Set TrackClass.Value to PointToPoint2
  • Points is a group of OrderedPoints
  • IsCircuited sets whether the last and first points will be connected to each other. Used in full circuit rides.
  • HashInterval is used behind the scenes for indexing/getting a point at a given position.
    • Recommended to leave this at 5

Ordered Points Setup

What is Ordered Points?

OrderedPoints are Parts which are ordered from 1-N, where N is the total number of Parts.

These Parts' CFrames are then extracted into an array and used to create the track line.

They are prominently used in coasters, though you can use it with other types of rides.

note

Indexing starts at 1 because Lua's also starts at 1

Setup from Tutorial

  • DoubleLoopDoubleCorkscrew track

NWSpacek Coaster Plugin

  • Use my edited version of NWSpacek plugin
  • Select spline with Select
  • Click Compile 123
  • Points should be in workspace

Importing from No Limits 2 (NL2)

  • NL2 Professional Required!
  • NL2 to Roblox Plugin
  • Follow the instructions in the description and import
    • MUST USE CENTER OF RAILS!
  • Points should be in workspace