Advertisement
pklo

Untitled

Mar 17th, 2016
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. -- When you want to fool around in script builder
  2. -- Local script: do not change anything
  3.  
  4. clientPlayer = game:GetService('Players').LocalPlayer
  5. canUse = true
  6.  
  7. local HB = Instance.new('HopperBin', clientPlayer.Backpack)
  8. HB.Name = 'XSCREAM4'
  9. HB.Selected:connect(function (mouse)
  10. mouse.Button1Down:connect(function ()
  11. if canUse == false then return end
  12. canUse = false
  13. local xs = Instance.new('Sound', clientPlayer.Character.Head)
  14. xs.Volume = 0.25
  15. xs.SoundId = 'rbxassetid://274630399'
  16. local an = Instance.new('Animation', clientPlayer.Character)
  17. an.AnimationId = 'http://www.roblox.com/Asset?ID=190013771'
  18. local nan = clientPlayer.Character.Humanoid:LoadAnimation(an)
  19. xs:Play()
  20. nan:Play()
  21. wait(5)
  22. xs:Stop()
  23. nan:Stop()
  24. xs:remove()
  25. nan:remove()
  26. canUse = true
  27. end)
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement