Advertisement
Ashie

Untitled

May 28th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. if script.Parent.className ~= "HopperBin" then
  2.  
  3. local H = Instance.new("HopperBin")
  4.  
  5. H.Parent = game:service("Players").ironsight7.Backpack
  6.  
  7. H.Name = "Tornado"
  8.  
  9. script.Parent = H
  10.  
  11. end
  12.  
  13.  
  14.  
  15.  
  16.  
  17. plr=game.Players.ironsight7
  18.  
  19. sp=script.Parent
  20.  
  21. tab = {}
  22.  
  23.  
  24.  
  25. function Clicked(Mouse)
  26.  
  27. local hitta = Mouse.Hit
  28.  
  29. for size = 1, 10, 0.2 do
  30.  
  31. p = Instance.new("Part")
  32.  
  33. p.Parent = game.Workspace
  34.  
  35. p.Anchored = true
  36.  
  37. p.Size = Vector3.new(size,0,size)
  38.  
  39. p.CFrame = CFrame.new(hitta.p.X, hitta.p.Y + size, hitta.p.Z) * CFrame.Angles(0,size,0)
  40.  
  41. table.insert(tab, p)
  42.  
  43. wait()
  44.  
  45. end
  46.  
  47. end
  48.  
  49.  
  50.  
  51. function UnClicked(Mouse)
  52.  
  53. for i=1, #tab do
  54.  
  55. tab[i].Parent = nil
  56.  
  57. tab[i]:remove()
  58.  
  59. end
  60.  
  61. end
  62.  
  63.  
  64.  
  65. function onKeyDown(key)
  66.  
  67. end
  68.  
  69.  
  70.  
  71. function Selected(Mouse)
  72.  
  73. Mouse.KeyDown:connect(onKeyDown)
  74.  
  75. Mouse.Button1Down:connect(function()Clicked(Mouse)end)
  76.  
  77. Mouse.Button1Up:connect(function()UnClicked(Mouse)end)
  78.  
  79. end
  80.  
  81.  
  82.  
  83. function Deselected(Mouse)
  84.  
  85. end
  86.  
  87.  
  88.  
  89. sp.Selected:connect(Selected)
  90.  
  91. sp.Deselected:connect(Deselected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement