Advertisement
jericoalejo

Untitled

Sep 21st, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. name = "jericoalejo"
  2. me = game.Players[name]
  3.  
  4. if script.Parent.className ~= "HopperBin" then
  5. hoppa = Instance.new("HopperBin")
  6. hoppa.Parent = me.Backpack
  7. hoppa.Name = "Telekinesis"
  8. script.Parent = hoppa
  9. end
  10. bps = {}
  11. fair = {}
  12. hold = false
  13. function sel(mouse)
  14. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  15. mouse.Button1Down:connect(function()
  16. local targ = mouse.Target
  17. if targ ~= nil then
  18. hold = true
  19. if targ:GetMass() >= 400 then return end
  20. local bp = Instance.new("BodyPosition")
  21. bp.Parent = targ
  22. bp.maxForce = Vector3.new(6000 * targ:GetMass(),6000 * targ:GetMass(),6000 * targ:GetMass())
  23. bp.position = me.Character.Head.Position + Vector3.new(0,6,0)
  24. table.insert(bps,bp)
  25. targ.Anchored = false
  26. while hold == true do
  27. wait()
  28. bp.position = me.Character.Head.Position + Vector3.new(0,6,0)
  29. end
  30. end
  31. end)
  32. mouse.Button1Up:connect(function()
  33. hold = false
  34. wait(0.03)
  35. for i=1, #bps do
  36. bps[i].position = me.Character.Head.Position + Vector3.new(math.random(-20,20),math.random(5,20),math.random(-20,20))
  37. local hu = bps[i].Parent.Parent:findFirstChild("Humanoid")
  38. if hu ~= nil then
  39. hu.Sit = true
  40. end
  41. bps[i].Parent.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  42. wait(0.1)
  43. bps[i]:remove()
  44. table.remove(bps, i)
  45. end
  46. end)
  47. end
  48.  
  49. function desel()
  50. hold = false
  51. for i=1, #bps do
  52. bps[i]:remove()
  53. table.remove(bps, i)
  54. end
  55. end
  56.  
  57. script.Parent.Selected:connect(sel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement