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)

3 comments
np
Players.Player1.Backpack.CharacterAnimationScript:22: 'end' expected (to close 'if' at line 19) near 'wait' all ends are there??
show me the animation script