Did this code. No error but the animation isn’t playing!
function onTouched(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if human then
local anim = human:LoadAnimation(script.Animation)
anim:Play()
end
end
script.Parent.Touched:connect(onTouched)
The game is R6 but I think it’s the second problem. I’ll try message him to make the animation public. If that will work I will give you the solution mark. Thanks!