Skip to content
Roblox API Reference

LineForce

Applies a force along the theoretical line connecting its two Attachments.
Memory category
BaseParts
Own members
5
Inherited members
83
Subclasses
0
Siblings
18

Properties34

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Inherited fromConstraint6

Property categoryAppearance

Property categoryAttachments

Property categoryBehavior

  • Indicates if the constraint is currently active in the world.
    • Read only
    • Read capabilities: Physics
    • Simulation access
  • Toggles whether or not the constraint is enabled.
    • Read capabilities: Physics
    • Simulation access
Defined byLineForce5

Property categoryLineForce

  • LineForce.ApplyAtCenterOfMass: boolean = false
    Whether force is applied at the center of mass of the parent assembly.
    • Read capabilities: Physics
    • Simulation access
  • LineForce.InverseSquareLaw: boolean = false
    When true, the force magnitude is multiplied by the inverse square of the distance.
    • Read capabilities: Physics
    • Simulation access
  • LineForce.Magnitude: number = 1000
    The magnitude of the force.
    • Read capabilities: Physics
    • Simulation access
  • LineForce.MaxForce: number = INF
    Maximum absolute force that can be applied.
    • Read capabilities: Physics
    • Simulation access
  • LineForce.ReactionForceEnabled: boolean = false
    Enables an equal and opposite reaction force on the parent of Attachment1.
    • Read capabilities: Physics
    • Simulation access

Methods44

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
Inherited fromConstraint2

Events10

Inherited fromObject1
Inherited fromInstance9