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=2984842184"
left.AnimationId = "http://www.roblox.com/Asset?ID=2984913037"
enable = false
Mouse = game.Players.LocalPlayer:GetMouse()
enable = false
Mouse.KeyDown:Connect(function(Key)
if Key == "e" then
local anim = character:LoadAnimation(right)
if enable == false then
anim:Play()
wait(0.2)
else
print('test')
end
if Key =='q' then
local anim = character:LoadAnimation(left)
if enable == false then
anim:Play()
wait(0.2)
else
print('test')
end
end
end
end)
I tested the script and here are the problems:
I hope I helped somehow.