Advertisement
Zarcus

Untitled

Aug 19th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. if script.Parent.className ~= "HopperBin" then
  2. local H = Instance.new("HopperBin")
  3. H.Parent = game:service("Players").Max5709.Backpack
  4. H.Name = "Tornado"
  5. script.Parent = H
  6. end
  7.  
  8.  
  9. plr=game.Players.Max5709
  10. sp=script.Parent
  11. tab = {}
  12.  
  13. function Clicked(Mouse)
  14. local hitta = Mouse.Hit
  15. for size = 1, 10, 0.2 do
  16. p = Instance.new("Part")
  17. p.Parent = game.Workspace
  18. p.Anchored = true
  19. p.Size = Vector3.new(size,0,size)
  20. p.CFrame = CFrame.new(hitta.p.X, hitta.p.Y + size, hitta.p.Z) * CFrame.Angles(0,size,0)
  21. table.insert(tab, p)
  22. wait()
  23. end
  24. end
  25.  
  26. function UnClicked(Mouse)
  27. for i=1, #tab do
  28. tab[i].Parent = nil
  29. tab[i]:remove()
  30. end
  31. end
  32.  
  33. function onKeyDown(key)
  34. end
  35.  
  36. function Selected(Mouse)
  37. Mouse.KeyDown:connect(onKeyDown)
  38. Mouse.Button1Down:connect(function()Clicked(Mouse)end)
  39. Mouse.Button1Up:connect(function()UnClicked(Mouse)end)
  40. end
  41.  
  42. function Deselected(Mouse)
  43. end
  44.  
  45. sp.Selected:connect(Selected)
  46. sp.Deselected:connect(Deselected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement