Basically, I have a problem with the animation. Here's the code:
while part.parent.Humanoid.health >= 1 do
pew:Play()
part.parent.Humanoid.Health = part.parent.Humanoid.Health -5
wait(pew.Length)
wait(.1)
end
The animation plays, but what happens is the gun goes in a burst, and the code does too. So the health goes down 5 twice in this burst.
Everything else in the code works fine, it's just the animation and humanoid help. Here's a short video of what happens: https://gyazo.com/1d65b907a1023bcdefac8315d7535a78
