NNickey

Untitled

Apr 14th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. local part=Instance.new("Part",Workspace)
  2. part.Size=Vector3.new(1,1,1)
  3. part.Position=Workspace.Nickoplier.Head.Position
  4. local cd=Instance.new("ClickDetector",part)
  5. local t=true
  6. local sound=Instance.new("Sound",part)
  7. function set(id)
  8. sound.SoundId="rbxassetid://"..id
  9. end
  10. cd.MouseClick:connect(function()
  11. if t==true then
  12. num=math.random(1,4)
  13. if num==1 then set(155319906)
  14. elseif num==2 then set(151667588)
  15. elseif num==3 then set(143204341)
  16. elseif num==4 then set(158406889)
  17. end
  18. sound:Play()
  19. sound.Pitch=math.random(75,125)/100
  20. t=false
  21. else
  22. t=true
  23. sound:Stop()
  24. end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment