KrYn0MoRe

monster mash

May 7th, 2020
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. local plr = owner
  2. local char = plr.Character
  3. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  4. local hum = char:FindFirstChildOfClass("Humanoid")
  5.  
  6. if hum.RigType ~= Enum.HumanoidRigType.R6 then warn('Character rig must be R6.') return end
  7.  
  8. local tool = Instance.new("Tool")
  9. tool.Name = 'Monster Mash'
  10. tool.ToolTip = 'Do da mash!'
  11. tool.CanBeDropped = false
  12. tool.RequiresHandle = false
  13. tool.Parent = plr['Backpack']
  14.  
  15. local mash = Instance.new("Sound")
  16. mash.SoundId = 'rbxassetid://2517519047'
  17. mash.Looped = true
  18. mash.Volume = 1
  19. mash.Parent = torso
  20.  
  21. local dance = Instance.new("Animation")
  22. dance.AnimationId = 'rbxassetid://35654637'
  23. dance.Parent = tool
  24.  
  25. tool.Activated:Connect(function()
  26.     hum:LoadAnimation(dance):Play()
  27.     mash:Play()
  28. end)
Add Comment
Please, Sign In to add comment