Skip to content
Roblox API Reference

HapticService

Provides haptic feedback to controllers and devices.
  • Not creatable
  • Not replicated
  • Service
Memory category
Instances
Own members
4
Inherited members
75
Subclasses
0
Siblings
608

Properties23

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Methods46

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 byHapticService4
  • HapticService:GetMotor(inputType: Enum.UserInputType,vibrationMotor: Enum.VibrationMotor,): ...any
    Returns the current vibration value set to the specified UserInputType and VibrationMotor.
    • Capabilities: Input
    Parameters
    ParameterDescription
    inputType: Enum.UserInputType
    The specified UserInputType.
    vibrationMotor: Enum.VibrationMotor
    The specified VibrationMotor.
    Returns
    TypeDescription
    ...any
    The current vibration value set to the specified UserInputType and VibrationMotor or nil if SetMotor() has not been called prior.
  • HapticService:IsMotorSupported(inputType: Enum.UserInputType,vibrationMotor: Enum.VibrationMotor,): boolean
    Returns true if the specified motor is available to be used with the specified UserInputType.
    • Capabilities: Input
    Parameters
    ParameterDescription
    inputType: Enum.UserInputType
    The specific UserInputType being checked for VibrationMotor support.
    vibrationMotor: Enum.VibrationMotor
    The specified VibrationMotor checked to see if it supports the specified UserInputType.
    Returns
    TypeDescription
    boolean
    Boolean of true if the specified motor is available to be used with the specified UserInputType, false if not.
  • HapticService:IsVibrationSupported(inputType: Enum.UserInputType): boolean
    Returns true if the specified UserInputType supports haptic feedback.
    • Capabilities: Input
    Parameters
    ParameterDescription
    inputType: Enum.UserInputType
    The specified UserInputType checked to see if it supports haptic feedback.
    Returns
    TypeDescription
    boolean
    Boolean of true if the specified UserInputType supports haptic feedback.
  • HapticService:SetMotor(inputType: Enum.UserInputType,vibrationMotor: Enum.VibrationMotor,...: any,)
    Sets the vibration intensity of the specified UserInputType and VibrationMotor.
    • Capabilities: Input
    Parameters
    ParameterDescription
    inputType: Enum.UserInputType
    The specified UserInputType.
    vibrationMotor: Enum.VibrationMotor
    The specified VibrationMotor.
    ...: any
    How intensely the motor should vibrate. Only uses the first value in the tuple, which should be a number.

Events10

Inherited fromObject1
Inherited fromInstance9