Hey guys, I’m making a battle axe, but I’ve noticed that it is quite weird in what it does and it just doesn’t feel smooth. Here is a video of me swinging it: robloxapp-20200815-1506186.wmv (1.3 MB)
MY CODE:
local animations = {"3208682938","3352120414","3363060046"} -- put ur animation ids here
local CanAttack = true
script.Parent.Activated:Connect(function()
if CanAttack == true then
script.Parent.CanDamage.Value = true
local animation = Instance.new("Animation", script.Parent.Parent)
animation.AnimationId = "http://www.roblox.com/asset?id="..animations[math.random(1, #animations)]
local chosenanim = script.Parent.Parent.Humanoid:LoadAnimation(animation)
chosenanim:Play()
CanAttack = false
wait(1)
CanAttack = true
script.Parent.CanDamage.Value = false
end
end)
You see how the animations doesn’t return to its original spot, that might be why. It would be best to make add a return to original spot on your current animation. I’m not an expert at this but what’s what I would do.