Skip to content

Class · inherits Instance

MarkerCurve

Official docs ↗

Represents a list of strings markers in chronological order.

About MarkerCurve

The MarkerCurve instance lets you place markers as string values at certain times on a timeline. The string at each marker cannot exceed 64 characters and must only contain printable characters.

Properties 1

  • Length: intReadOnlyNotReplicatedReturns the number of markers in the MarkerCurve.

Methods 4

  • GetMarkerAtIndex(index: int) → DictionaryReturns the time and string value of the marker at the provided index.
  • GetMarkers() → ArrayReturns the time and string value of all markers in the MarkerCurve.
  • InsertMarkerAtTime(time: float, marker: string) → ArrayInserts a marker with the provided string value at the provided time.

    Inserts a marker with the provided string value at the provided time. The provided string cannot exceed 64 characters and must only contain printable characters.

  • RemoveMarkerAtIndex(startingIndex: int, count: int = 1) → intRemove several markers in the MarkerCurve starting at the provided index.

MarkerCurve also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.