local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local right = Instance.new("Animation")
local left = Instance.new("Animation")
right.AnimationId = "http://www.roblox.com/Asset?ID=2984919647"
left.AnimationId = "http://www.roblox.com/Asset?ID=2987291306"
enable = true
local dmg = true
Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.KeyDown:Connect(function(Key)
if Key == "e" then
local anim = character:WaitForChild("Humanoid"):LoadAnimation(right)
if enable == true then
anim:Play()
wait(0.2)
end
elseif Key == "q" then
local anim = character:WaitForChild("Humanoid"):LoadAnimation(left)
if enable == true then
anim:Play()
wait(0.2)
end
end
end)

3 comments
this is not optimized for a damage snippet to be easily fitted
btw u can manually script the animation instead of adding it makes it more dynamic
I need this for it can be used on script builders( I dont know how to script an animation also)