local CanAttack = true
local i = script:WaitForChild("Idle")
local a = script:WaitForChild("Attack")
local hum = script.Parent.Parent:WaitForChild("Humanoid")
i.Parent = hum
a.Parent = hum
local idle = hum:LoadAnimation(i)
local attack = hum:LoadAnimation(a)
script.Parent.Equipped:connect(function()
    idle:Play()
end)
script.Parent.Activated:connect(function()
if CanAttack == true then
    attack:Play()
    idle:Stop()
    wait(1)
    attack:Stop()
    idle:Play()
    CanAttack = true
    script.Parent.CanDamage.Value = true
    end
end)

4 comments

0

Did you use eppobots tutorial? i found that tutorial very useful and because of it i made my own fully functioning sword with my own animations

0

i tried but it did not work

0

What errors are you getting

0

none