It seems not like to load like I don't know what's wrong?
s = script.Parent ss = s.Parent
local lel = script.Parent.Parent.Configuration.ReloadTimeBeforeHit.Value
action = false
local NA = script.Parent.Parent.Configuration.MaxDamage.Value
local NAZ = script.Parent.Parent.Configuration.MinDamage.Value
bd = ss.HumanoidRootPart.RootJoint
a1 = ss.Torso:FindFirstChild("Left Shoulder")
a2 = ss.Torso:FindFirstChild("Right Shoulder")
l1 = ss.Torso:FindFirstChild("Left Hip")
l2 = ss.Torso:FindFirstChild("Right Hip")
s.Handle.Touched:connect(function(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
if h ~= nil then
if action == false and ss.Enemy.Health > 0 then
action = true
local anim = script.Parent.Parent.LeftSlash
script.Parent.Parent.Enemy:LoadAnimation(anim) -- The enemy is the humanoid.
action = false
script.Disabled=true
wait(lel)
script.Disabled=false
end
end
end)

1 comment
Why don't you :Play() the animation?