Skip to content
Roblox API Reference

Tool

An object, such as a weapon, that can be equipped by a Humanoid.
Memory category
BaseParts
Own members
17
Inherited members
116
Subclasses
1
Siblings
2

Properties51

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Inherited fromPVInstance2

Property categoryPivot

  • Editor-only property that displays and edits the pivot's CFrame relative to the instance, moving only the pivot and leaving the instance in place.
    • Not replicated
    • Not scriptable

Property categoryTransform

  • Editor-only property that reads and sets the world CFrame of the PVInstance's pivot, moving the entire instance when changed from the Studio Properties window.
    • Not replicated
    • Not scriptable
Inherited fromModel14

Property categoryAppearance

Property categoryBehavior

Property categoryData

Property categoryPivot

Inherited fromBackpackItem2

Property categoryData

Defined byTool10

Property categoryAppearance

  • Tool.ToolTip: string = ""
    Controls the message displayed when the player's mouse hovers over the tool in their backpack.
    • Read capabilities: Input

Property categoryBehavior

  • Tool.CanBeDropped: boolean = true
    Controls whether the player can drop the tool.
    • Read capabilities: Input
  • Tool.ManualActivationOnly: boolean = false
    Controls whether the Tool can be activated without executing Tool:Activate().
    • Read capabilities: Input
  • Tool.RequiresHandle: boolean = true
    Determines whether a Tool functions without a handle.
    • Read capabilities: Input

Property categoryState

  • Tool.Enabled: boolean = true
    Relates to whether or not the tool can be used.
    • Read capabilities: Input
    • Simulation access

Property categoryTransform

  • Tool.Grip: CFrame = CFrame.identity
    Stores the tool's "grip" properties as one CFrame.
    • Read capabilities: Input
    • Simulation access
  • Tool.GripForward: Vector3 = Vector3.new(-0, -0, -1)
    Represents the R02, R12, and R22 values of the grip CFrame rotation matrix.
    • Hidden
    • Not replicated
    • Read capabilities: Input
  • Tool.GripPos: Vector3 = Vector3.zero
    The positional offset of the tool's weld matrix.
    • Hidden
    • Not replicated
    • Read capabilities: Input
  • Tool.GripRight: Vector3 = Vector3.new(1, 0, 0)
    Represents the R00, R10, and R20 values of the grip CFrame rotation matrix.
    • Hidden
    • Not replicated
    • Read capabilities: Input
  • Tool.GripUp: Vector3 = Vector3.new(0, 1, 0)
    Represents the R01, R11, and R21 values of the grip CFrame rotation matrix.
    • Hidden
    • Not replicated
    • Read capabilities: Input

Methods67

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 fromPVInstance2
Inherited fromModel21
Defined byTool2
  • Tool:Activate()
    Simulates activation of the Tool.
    • Capabilities: Input
  • Tool:Deactivate()
    Simulates deactivation of the Tool.
    • Capabilities: Input

Events15

Inherited fromObject1
Inherited fromInstance9
Defined byTool5
  • Tool.Activated: RBXScriptSignal<()>
    Fires when the player clicks while the tool is equipped.
    • Capabilities: Input
  • Tool.Deactivated: RBXScriptSignal<()>
    Fires when the player releases their click while the tool is equipped and activated.
    • Capabilities: Input
  • Tool.Equipped: RBXScriptSignal<(mouse: Mouse)>
    Fires when the tool is equipped.
    • Capabilities: Input
    Parameters
    Parameter
    mouse: Mouse
  • Tool.Unequipped: RBXScriptSignal<()>
    Fires when the tool is unequipped.
    • Capabilities: Input
  • Tool.VRLaserPointerClicked: RBXScriptSignal<(player: Player)>
    • Hidden
    • Roblox engine security
    • Capabilities: Input
    Parameters
    Parameter
    player: Player