Haptic service does not vibrate when the player is killed

local HapticService = game:GetService("HapticService")

game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:connect(function()
	HapticService:SetMotor(Enum.UserInputType.Gamepad1, Enum.VibrationMotor.Large, .5)
end)

Why does not this code work? Can someone help?