Advertisement
Scriptorz5

Explode Tool

May 7th, 2018
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1.  
  2. if script.Parent.className ~= "HopperBin" then
  3. bin = Instance.new("HopperBin")
  4. bin.Name = "build"
  5. bin.Parent = game.Players.atu1000.Backpack
  6. script.Parent = bin
  7. end
  8.  
  9. bin = script.Parent
  10.  
  11. size = 25
  12.  
  13. function onButton1Down(mouse)
  14. part = Instance.new("Explosion")
  15. part.Parent = workspace
  16. part.BlastRadius = size
  17. part.Position = Vector3.new(mouse.Hit.x,mouse.Hit.y,mouse.Hit.z)
  18. end
  19.  
  20. bin.Selected:connect(function(mouse)
  21. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  22. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  23. mouse.KeyDown:connect(function(key) KD(key, mouse) end)
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement