Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Something is erroring with my Animation Attack Script I made It keeps saying Can not load Animation?

Asked by 7 years ago

I cant get this script I made to work... is there anything I'm doing wrong

wait(3)

local Anim = script.Parent.Zombie:LoadAnimation(script.Parent.Attack1)

local Enabled = false

script.Parent.UpperTorso.Touched:connect(function(part)

if part.Parent:FindFirstChild("Humanoid") then

if Enabled == false then

    Enabled = true

    Anim:Play()

    wait(0.3)

    part.Parent:FindFirstChild("Humanoid"):TakeDamage(20)

    wait(0.2)

    Enabled = false

    end

end

end)

Answer this question