carlosname

Untitled

Nov 5th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Character = Player.Character
  3. local id = "507776043"--This is the Default R15 Dance animation id it will work on everygame that supports R15
  4. local Anim = Instance.new("Animation")
  5. local Mouse = Player:GetMouse()
  6. local ResetKey = "F"
  7. local UseKey = "E"
  8. Anim.AnimationId = "rbxassetid://"..id
  9.  
  10. local Hum = Character:FindFirstChild("Humanoid")
  11.  
  12. local Animation_To_Play = Hum:LoadAnimation(Anim)
  13. Animation_To_Play.Priority = Enum.AnimationPriority.Action
  14. Animation_To_Play:Play(1)
  15.  
  16. Mouse.KeyDown:Connect(function(kd)
  17. print(kd)
  18. if kd == ResetKey:lower() then
  19. Animation_To_Play:Stop(1)
  20. elseif kd == UseKey:lower() then
  21. Animation_To_Play:Play(1)
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment