Advertisement
iiJosephCats205

Taunts(WIP) for Void Script Builder

May 22nd, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. --//Main\\--
  2. local player = game.Players.LocalPlayer
  3. local mouse = player:GetMouse()
  4.  
  5. --//Debounce\\--
  6. local taunting = false
  7.  
  8. --//Making Dab Animation\\--
  9. local dab = Instance.new("Animation",game.Players.LocalPlayer)
  10. dab.AnimationId = "rbxassetid://1824991240"
  11. dab.Name = "Dab"
  12.  
  13. --//Create Sound Function\\--
  14. function createSound(SoundID,Looped,Volume,Parent,Name)
  15. local sound = Instance.new("Sound",Parent)
  16. sound.Looped = Looped
  17. sound.Volume = Volume
  18. sound.SoundId = SoundID
  19. sound.Name = Name
  20. sound:Play()
  21. sound.Ended:Connect(function()
  22. sound:Destroy()
  23. end)
  24. end
  25.  
  26. --//Functions\\--
  27. function Dab()
  28. createSound("http://www.roblox.com/asset/?id=1087356234",false,1,player.Character.Head,"Bass")
  29. taunting = true
  30. local PlayDabAnimation = player.Character.Humanoid:LoadAnimation(dab)
  31. PlayDabAnimation:Play()
  32. warn("You dabbed")
  33. wait(4)
  34. PlayDabAnimation:Stop()
  35. taunting = false
  36. end
  37.  
  38. mouse.KeyDown:Connect(function(key)
  39. if taunting == false then
  40. if key == "u" then
  41. Dab()
  42. elseif key == "f" then
  43. print("WIP")
  44. end
  45. end
  46. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement