Advertisement
princeofheaven

Untitled

Jul 17th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. me = game.Players.PrinceOfHeaven
  2. if script.Parent.className ~= "HopperBin" then
  3. h = Instance.new("HopperBin")
  4. h.Parent = me.Backpack
  5. h.Name = "Thing"
  6. script.Parent = h
  7. end
  8.  
  9. sp = script.Parent
  10. hold = false
  11. function sel(mouse)
  12. mouse.Button1Down:connect(function()
  13. hold = true
  14. local char = me.Character
  15. local namb = 0
  16. while hold == true do
  17. wait()
  18. local p = Instance.new("Part")
  19. p.Parent = char
  20. p.Anchored = true
  21. p.Size = Vector3.new(10,2,2)
  22. p.CFrame = char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,namb,0.5) * CFrame.new(100,10,0)
  23. namb = math.random(-100,100)
  24. coroutine.resume(coroutine.create(function()
  25. for i=1, 40 do
  26. wait()
  27. p.CFrame = p.CFrame * CFrame.new(-2,0,0)
  28. end
  29. p:remove()
  30. end))
  31. end
  32. end)
  33. mouse.Button1Up:connect(function()
  34. hold = false
  35. end)
  36. end
  37.  
  38. sp.Selected:connect(sel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement