Advertisement
Surhaykingtr

Tornado

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