Ducksneedhelp1

Animation Script For HD Application

Dec 25th, 2020 (edited)
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. local player = game.Players.LocalPlayer -- Defins the local player
  2. local character = player.Character or player.CharacterAdded:Wait() -- This defines the player character.
  3.  
  4.  
  5. local Animation = Instance.new("Animation") -- This makes a new animation.
  6. Animation.AnimationId = "rbxassetid://6098851709" -- This tells the animation ID we should use.
  7.  
  8.  
  9. local DanceAnimation = character:WaitForChild("Humanoid"):LoadAnimation(Animation) -- This means that it waits for the Humanoid and then it Loads the animation which is the animation we defined up there.
  10.    
  11. DanceAnimation:Play() -- This plays the animation.
  12.  
Add Comment
Please, Sign In to add comment