OK so i'm making a fall animation when you hit the barrier you fall problem is its not working here's the code Please help me on this problem.

local animationController = Instance.new("AnimationController")
animationController.Parent = game.workspace.DeathBlock2
    local animationTrack = animationController:LoadAnimation(game.workspace.YOUFALL)
    
    
function onTouched(part)
 local h = part.Parent:findFirstChild("Humanoid")

   
   
   
    animationTrack:Play()
    print("worked boiii")

 if h~=nil then 
  wait(0.00001)
   animationTrack:Play()
  
 end
end

script.Parent.Touched:connect(onTouched)

Theres the code