My script is not working and I don’t get anny errors pleas help I don’t know what to do
local animation = script:WaitForChild(‘AnimationID’)
local humanoid = script.Parent:WaitForChild(‘Humanoid’)
local d = humanoid:LoadAnimation(animation)
function onTouched(part)
local h = part.Parent:findFirstChild(“Humanoid”)
if h~=nil then
d:Play()
wait(8)
end
end
script.Parent.Touched:connect(onTouched)