I am trying to add haptic feed back to my game, but as i was testing it i realized that although i set the motors to 0 they would not stop and sometimes they would even continue to run after i stopped the game
this is the code i used to try and control the haptic feedback
local uis = game:GetService(“UserInputService”)
local HapticService = game:GetService(“HapticService”)
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.ButtonX then
HapticService:SetMotor(Enum.UserInputType.Gamepad1, Enum.VibrationMotor.Small, 0.5)
wait(2)
HapticService:SetMotor(Enum.UserInputType.Gamepad1, Enum.VibrationMotor.Small, 0)
print(“Off”)
end
end)
ive tried looking around the forums and i saw 1 other person mention the problem but i saw no solution
i dont know if its a bug or something, please help