Death_Data

Bomb Vest

Dec 28th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. local Me = game:GetService("Players").LocalPlayer
  2. local Char = Me.Character
  3. local Torso = Char.Torso
  4. local TickWait = 1
  5. local Color = "Dark stone grey"
  6. local Dead = false
  7.  
  8. local Tool = Instance.new("HopperBin", Me.Backpack)
  9. Tool.Name = "Bomb Vest"
  10.  
  11. local Position = Vector3.new(0,100,0)
  12. function NewPart(Parent)
  13. local Part = Instance.new("Part", Parent)
  14. Part.CanCollide = false
  15. Part.FormFactor = "Custom"
  16. Part.Position = Position
  17. Part.TopSurface = "SmoothNoOutlines"
  18. Part.FrontSurface = "SmoothNoOutlines"
  19. Part.BackSurface = "SmoothNoOutlines"
  20. Part.LeftSurface = "SmoothNoOutlines"
  21. Part.RightSurface = "SmoothNoOutlines"
  22. Part.BottomSurface = "SmoothNoOutlines"
  23. Part.Material = "Granite"
  24. Part.BrickColor = BrickColor.new(Color)
  25. Position = Position + Vector3.new(0,Part.Size.Y + 10,0)
  26. return Part
  27. end
  28.  
  29. local Model = Char:FindFirstChild("Bomb")
  30. if Model then Model:Destroy() end
  31.  
  32. Model = Instance.new("Model", Char)
  33. Model.Name = "Bomb"
  34.  
  35. local Belt = NewPart(Model)
  36. Belt.Material = "Granite"
  37. Belt.Size = Vector3.new(2.2,0.5,1.2)
  38. local Weld = Instance.new("Weld", Belt)
  39. Weld.Part0 = Belt
  40. Weld.Part1 = Torso
  41. Weld.C0 = CFrame.new(0,1.1,0)
  42. local Light = Instance.new("PointLight", Belt)
  43. Light.Range = 15
  44. Light.Brightness = 5
  45. Light.Color = Color3.new(1,0,0)
  46. local Beep = Instance.new("Sound", Belt)
  47. Beep.SoundId = "http://www.roblox.com/asset/?id=188588790"
  48. local ExplodeSound = Instance.new("Sound", Belt)
  49. ExplodeSound.SoundId = "http://www.roblox.com/asset/?id="..(tonumber((math.ceil(1776.66^2)+17).."."..string.rep("36",3))*77)+0.00003 --144507765
  50. ExplodeSound.EmitterSize = 20
  51. ExplodeSound.Pitch = 2.9
  52. ExplodeSound.Volume = 10
  53.  
  54. local Back = NewPart(Model)
  55. Back.Material = "Granite"
  56. Back.BackSurface = "Motor"
  57. Back.Size = Vector3.new(1.5,1.5,0.5)
  58. local Weld = Instance.new("Weld", Back)
  59. Weld.Part0 = Back
  60. Weld.Part1 = Torso
  61. Weld.C0 = CFrame.new(0,0.1,-0.75)
  62.  
  63. local StrapLeft = NewPart(Model)
  64. StrapLeft.Material = "Granite"
  65. StrapLeft.Size = Vector3.new(0.2,0.5,1.6)
  66. local Weld = Instance.new("Weld", StrapLeft)
  67. Weld.Part0 = StrapLeft
  68. Weld.Part1 = Torso
  69. Weld.C0 = CFrame.new(0.65,-0.9,-0.2)
  70.  
  71. local BuckleLeft = NewPart(Model)
  72. BuckleLeft.Material = "Granite"
  73. BuckleLeft.Size = Vector3.new(0.2,1.5,0.2)
  74. local Weld = Instance.new("Weld", BuckleLeft)
  75. Weld.Part0 = BuckleLeft
  76. Weld.Part1 = Torso
  77. Weld.C0 = CFrame.new(0.65,0.1,0.5)
  78.  
  79. local StrapRight = NewPart(Model)
  80. StrapRight.Material = "Granite"
  81. StrapRight.Size = Vector3.new(0.2,0.5,1.6)
  82. local Weld = Instance.new("Weld", StrapRight)
  83. Weld.Part0 = StrapRight
  84. Weld.Part1 = Torso
  85. Weld.C0 = CFrame.new(-0.65,-0.9,-0.2)
  86.  
  87. local BuckleRight = NewPart(Model)
  88. BuckleRight.Material = "Granite"
  89. BuckleRight.Size = Vector3.new(0.2,1.5,0.2)
  90. local Weld = Instance.new("Weld", BuckleRight)
  91. Weld.Part0 = BuckleRight
  92. Weld.Part1 = Torso
  93. Weld.C0 = CFrame.new(-0.65,0.1,0.5)
  94.  
  95. Tool.Selected:connect(function(Mouse)
  96. TickWait = 0.3
  97. Mouse.Icon = "http://www.roblox.com/asset/?id=9109985"
  98.  
  99. Mouse.Button1Down:connect(function()
  100. if Dead == false then
  101. Dead = true
  102. ExplodeSound:Play()
  103. wait(1.4)
  104. local Explosion = Instance.new("Explosion", Workspace)
  105. Explosion.Position = Belt.Position
  106. Explosion.BlastPressure = 100000
  107. Explosion.DestroyJointRadiusPercent = 0.7
  108. Explosion.ExplosionType = "CratersAndDebris"
  109. Explosion.BlastRadius = 100
  110. Explosion.Hit:connect(function(Part, Distance)
  111. Part.Anchored = false
  112. if Distance <= 10 then
  113. Part:BreakJoints()
  114. end
  115. end)
  116. end
  117. end)
  118. end)
  119.  
  120. Tool.Deselected:connect(function()
  121. TickWait = 1
  122. end)
  123.  
  124. coroutine.wrap(function()
  125. repeat
  126. wait(TickWait)
  127. Light.Enabled = not Light.Enabled
  128. Beep:Play()
  129. until Dead == true
  130. end)()
Add Comment
Please, Sign In to add comment