Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local WA - Instance.new("animation")
- local IA = Instance.new("animation")
- Wa.AnimationId = "Put your animation ID"
- IA.AnimationID = "Put your animation ID"
- local humanoid = script.Parent.Humanoid
- local WalkAnimation = humanoid:LoadAnimation(WA)
- local IdleAnimation = humanoid:LoadAnimation(IA)
- humanoid.Running:Connect(function(s)
- if a > 1 then
- IdleAnimation:Stop()
- WalkAnimation:Play()
- else
- WalkAnimation:Stop()
- IdleAnimation:Play()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement