Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. if script.Parent.className ~= "HopperBin" then
  2. local h = Instance.new("HopperBin")
  3. h.Parent = game.Players.TehAwsomeDud.Backpack
  4. h.Name = "SuicideBomb!"
  5. local p = Instance.new("Part")
  6. p.Parent = game.Workspace.TehAwsomeDud
  7. p.Name = "SuicideBomb"
  8. p.Size = Vector3.new(2,2,1)
  9. p.TopSurface = 0
  10. p.BottomSurface = 0
  11. p.Locked = true
  12. p.BrickColor = BrickColor.new("Really black")
  13. local w = Instance.new("Weld")
  14. w.Parent = p.Parent
  15. w.Part0 = p
  16. w.Part1 = p.Parent.Torso
  17. w.C0 = CFrame.new(0,0,-1)
  18. script.Parent = h
  19. local d = Instance.new("Decal")
  20. d.Parent = p
  21. d.Face = "Back"
  22. d.Texture = "http://www.roblox.com/asset/?id=28824625"
  23. Instance.new("BlockMesh").Parent = p
  24. end
  25.  
  26. tool = script.Parent
  27.  
  28. function click(mouse)
  29. if game.Workspace.TehAwsomeDud:FindFirstChild("SuicideBomb") ~= nil then
  30. local s = Instance.new("Sparkles")
  31. s.Parent = game.Workspace.TehAwsomeDud.SuicideBomb
  32. s.Color = Color3.new(.5,.5,0)
  33. wait(3)
  34. local e = Instance.new("Explosion")
  35. e.Parent = game.Workspace
  36. e.BlastPressure = 1000000
  37. e.BlastRadius = 15
  38. e.Position = game.Workspace.TehAwsomeDud.SuicideBomb.Position
  39. else
  40. script.Parent:Remove()
  41. end
  42. end
  43.  
  44. function selected(mouse)
  45. mouse.Button1Down:connect(function () click(mouse) end)
  46. end
  47.  
  48. tool.Selected:connect(selected
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement