Skip to content
Roblox API Reference

RotationCurve

Represents a sequence of rotations and the interpolation curve between them.
Memory category
Instances
Own members
9
Inherited members
75
Subclasses
0
Siblings
608

Properties25

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byRotationCurve2

Property categoryData

  • RotationCurve.Length: number = 0
    Number of rotation keys in this curve.
    • Read only
    • Read capabilities: Basic
    • Save only
  • RotationCurve.ValuesAndTimes: string = "\u0001"
    • Hidden
    • Not scriptable
    • Read capabilities: Basic

Methods49

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byRotationCurve7
  • RotationCurve:GetKeyAtIndex(index: number): RotationCurveKey
    Returns a copy of a key at a given index.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    index: number
    Index of the key to return.
    Returns
    TypeDescription
    RotationCurveKey
    Copy of the RotationCurveKey stored at index.
  • RotationCurve:GetKeyIndicesAtTime(time: number): { any }
    Returns the index of the last and first key of a period of time.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    time: number
    Time to look up within the curve.
    Returns
    TypeDescription
    { any }
    Array with the indices of the keys that bracket time.
  • RotationCurve:GetKeys(): { any }
    Returns a copy of all the keys in the rotation curve as a Luau array of RotationCurveKeys.
    • Capabilities: Basic
    Returns
    TypeDescription
    { any }
    Array of RotationCurveKeys.
  • RotationCurve:GetValueAtTime(time: number): CFrame?
    Samples the rotation curve at a given time and returns the corresponding rotation as a CFrame.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    time: number
    Time at which to sample the curve.
    Returns
    TypeDescription
    CFrame?
    Value of the curve at the requested time.
  • RotationCurve:InsertKey(key: RotationCurveKey): { any }
    Adds the key passed as an argument to this curve. If a key at the same time is found, it will be replaced.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    key: RotationCurveKey
    RotationCurveKey to insert.
    Returns
    TypeDescription
    { any }
    (see description) .
  • RotationCurve:RemoveKeyAtIndex(startingIndex: number,count: number? = 1,): number
    Removes a given number of keys starting from a given index.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    startingIndex: number
    Starting index from which to remove keys.
    count: number? = 1
    Number of keys to remove.
    Returns
    TypeDescription
    number
    Number of keys removed.
  • RotationCurve:SetKeys(keys: { any }): number
    Resets this curve's keys using the RotationCurveKey array passed as an argument.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    keys: { any }
    Array of RotationCurveKeys.
    Returns
    TypeDescription
    number
    Number of keys inserted.

Events10

Inherited fromObject1
Inherited fromInstance9