Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Controller Vibration not working ?

i plugged in my PS4 controller into my computer through USB and i can move around and everything, but i have this code to make the controller vibrate and its not working.

local HapticService = game:GetService("HapticService")
wait(5)
	print("working")
	largeSupported = HapticService:IsMotorSupported(Enum.UserInputType.Gamepad1, Enum.VibrationMotor.Large)
	HapticService:SetMotor(Enum.UserInputType.Gamepad1, Enum.VibrationMotor.RightTrigger, 1)

1 answer

You are trying to set the RightTrigger vibration amplitude to 1, but the PS4 controller doesn't have rumble motors in either trigger.

Try setting either the Large or Small rumble motors' amplitude instead and you should get some vibration.

2 comments

0

this does not work either

0

print out largeSupported and see if that is true

This discussion is preserved as it was. New answers, comments, and votes are closed.