My problem is, i'm making an animation that can do damage but it works without animation which I don't want:
mouse.KeyDown:connect(function(key) if key == "e" and True then True = false local aT1 = hum:LoadAnimation(anim) aT1:Play() animSound:Play() RightArm.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild("Humanoid") if h then h:TakeDamage(20) wait(3) True = true end end) end end)
I ran into this thing before you need to return the hit after the animation finished
mouse.KeyDown:connect(function(key) if key == "e" and True then True = false local aT1 = hum:LoadAnimation(anim) aT1:Play() animSound:Play() RightArm.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild("Humanoid") if h then h:TakeDamage(20) wait(3) return hit True = true end end) end end)
If this worked then please accept this answer