EasyVibration: Simple haptic feedback

EasyVibration

A simple module providing basic vibration feedback for connected gamepads. It does not include trigger haptics yet, because Roblox doesn’t actually support it.

What It Does:

  • Checks if vibration is supported
  • Applies small or large motor vibration
  • Lets you set strength and duration
  • Provides a Stop(motor) function to manually end ongoing vibration

Example Usage:

local EasyVibration = require(game.ReplicatedStorage.EasyVibration)
EasyVibration.Vibrate("s", 100, 1, false)

Stopping Vibrations:

EasyVibration.Stop("s") -- Stops small motor vibration
EasyVibration.Stop("l") -- Stops large motor vibration
EasyVibration.Stop("")  -- Stops both if no motor specified

Parameters:

  • motor: “s” or “l” (for small and large)
  • strength: 0–100
  • duration: seconds
  • hold: true/false

Roblox Model
Github Link

3 Likes

Looks very good, could you show a video of it in action?

1 Like

I don’t know to show controller haptic feedback in a video. However you can experience it in the latest version of my game using a controller, as the same module is implemented there.

1 Like

Looks nice! Add a function that lets the vibration end prematurely so it can be deactivated on an event rather than using task.wait(). But other than that, looks good!

1 Like

Thanks, I just updated the code and the post accordingly.

1 Like