Reposted because I'm sure not of people was awake late at night
function Fire(ShootingHandle, InputPos)
if FireAnim then FireAnim:Play(nil,nil,Module.FireAnimationSpeed) end
-- Controller controls
if isVibrationSupported then
HapticService:SetMotor(Enum.UserInputType.Gamepad1, Enum.VibrationMotor.Small, vibrationScale)
end
-- end of controller controls
local FireDirection = (InputPos - ShootingHandle:FindFirstChild("GunFirePoint").WorldPosition).unit
Player.PlayerScripts.BulletVisualizerClientScript.Visualize:Fire(Tool,ShootingHandle,FireDirection,
-- Insert other codes here
Can't do
if isVibrationSupported then
wait(.1) -- or something
-- insert vibration thing being 0
end
That slows down the gun's firerate
also the error that keeps popping up: attempt to call a nil value

1 comment
isVibrationSupported is nil