Hi everybody, I’ve been trying to get my controller to vibrate through a script but it wont work. I also checked if the controller has vibrations, and the script thinks it doesn’t even though it’s DualSense PS5 Controller which has haptic feedback.
This is the script I’ve been using to check, it’s basically the one from the Roblox documentation.
local UserInputService = game:GetService("UserInputService")
local hapticservice = game:GetService("HapticService")
local availableInputs = UserInputService:GetSupportedGamepadKeyCodes(Enum.UserInputType.Gamepad1)
local gamepad = Enum.UserInputType.Gamepad1
print("This controller supports the following controls:")
for _, control in availableInputs do
print(control)
end
print(hapticservice:IsVibrationSupported(gamepad))
Is somebody able to explain why it’s returning false? Thanks.
This could be because either your controller doesn’t support vibrating or isn’t supported through Roblox’s haptic service, you might want to look through documentation for more information
I’m certain the console has haptic feedback, and what’s weird is that the controller is listed on the documentation too. So I’m thinking that I’m doing something wrong in the script.
Did you connect the controller wirelessly or using a cable? Also I’m playing another game right now, the controller is vibrating just fine, so it’s roblox.
If it’s a problem with roblox you might wanna make a post in a bugs category or reach out to roblox support
(roblox support might just give a robot response, has happened to me many times)