its wont working
function onTouched(hit) damage = 5 human.Health = human.Health - damage script.Parent.Human:LoadAnimation(script.Parent.Slash):Play() end script.Parent.Touched:connect(onTouched)
Human = Humanoid but its enemy
function onTouched(hit) damage = 5 human.Health = human.Health - damage local track = script.Parent.Human:LoadAnimation(script.Parent.Slash):Play() -- means you loaded it in track:Play() -- must play the track end script.Parent.Touched:Connect(onTouched) -- always uppercase the connect it's preferred for signals