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)
COMMUNITY QUESTION
I am making a sword and wonder why does this script not work ?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
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
i tried but it did not work
What errors are you getting
none