Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help my animation script isnt working animation not loading in?

Asked by 4 years ago

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

Answer this question