TheUnknownDiscord

dog bomb

Feb 21st, 2022 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.82 KB | None | 0 0
  1. tool = Instance.new("Tool",owner.Backpack)
  2. tool.Name = "dog bomb"
  3. part = Instance.new("Part",tool)
  4. part.Name = "Handle"
  5. part.Size = Vector3.new(1.5,1.5,1.5)
  6. part.Shape = "Ball"
  7. part.Color = Color3.fromRGB(138, 94, 0)
  8. part.Material = "SmoothPlastic"
  9. local part2 = Instance.new("Part",part)
  10. part2.Size = Vector3.new(0.25,1.25,0.5)
  11. part2.Material = "SmoothPlastic"
  12. part2.Color = Color3.fromRGB(138, 94, 0)
  13. local weld = Instance.new("Weld",part)
  14. weld.Part0 = part2
  15. weld.Part1 = part
  16. weld.C0 = CFrame.new(-0.65,0.25,0) * CFrame.Angles(0,0,math.rad(-15))
  17. local part3 = Instance.new("Part",part)
  18. part3.Size = Vector3.new(0.25,1.25,0.5)
  19. part3.Material = "SmoothPlastic"
  20. part3.Color = Color3.fromRGB(138, 94, 0)
  21. local weld2 = Instance.new("Weld",part)
  22. weld2.Part0 = part3
  23. weld2.Part1 = part
  24. weld2.C0 = CFrame.new(0.65,0.25,0) * CFrame.Angles(0,0,math.rad(15))
  25. local part4 = Instance.new("Part",part)
  26. part4.Size = Vector3.new(1,0.75,1.25)
  27. part4.Material = "SmoothPlastic"
  28. part4.Color = Color3.fromRGB(252, 206, 88)
  29. local weld3 = Instance.new("Weld",part)
  30. weld3.Part0 = part4
  31. weld3.Part1 = part
  32. weld3.C0 = CFrame.new(0,0.25,0.5)
  33. local part5 = Instance.new("Part",part)
  34. part5.Size = Vector3.new(1.25,0.25,0.25)
  35. part5.Material = "SmoothPlastic"
  36. local weld4 = Instance.new("Weld",part)
  37. weld4.Part0 = part5
  38. weld4.Part1 = part
  39. weld4.C0 = CFrame.new(0,-0.25,0.65)
  40. local Mesh2 = Instance.new("SpecialMesh")
  41. Mesh2.Parent = part5
  42. Mesh2.MeshId = "http://www.roblox.com/asset/?id=863723693"
  43. Mesh2.TextureId = "http://www.roblox.com/asset/?id=863723700"
  44. Mesh2.Scale = Vector3.new(.24, .24, .24)
  45. local mesh = Instance.new("SpecialMesh", part2)
  46. mesh.MeshType = Enum.MeshType.Sphere
  47. local mesh = Instance.new("SpecialMesh", part3)
  48. mesh.MeshType = Enum.MeshType.Sphere
  49. local mesh = Instance.new("SpecialMesh", part4)
  50. mesh.MeshType = Enum.MeshType.Sphere
  51. local PartA = Instance.new("Part")
  52. PartA.Transparency = 1
  53. PartA.CanCollide = false
  54. local SA = Instance.new("Sound",PartA)
  55. SA.SoundId = "rbxasset://sounds/bass.mp3"
  56. SA.PlayOnRemove = true
  57. SA.TimePosition = 0.2
  58. local PartB = Instance.new("Part")
  59. PartB.Transparency = 1
  60. PartB.CanCollide = false
  61. local SB = Instance.new("Sound",PartB)
  62. SB.SoundId = "rbxassetid://7153032891"
  63. SB.PlayOnRemove = true
  64. SB.TimePosition = 0.2
  65. local PartC = Instance.new("Part")
  66. PartC.Transparency = 1
  67. PartC.CanCollide = false
  68. local SC = Instance.new("Sound",PartC)
  69. SC.SoundId = "rbxassetid://7511645861"
  70. SC.PlayOnRemove = true
  71. SC.TimePosition = 0.2
  72. PartA.Anchored = true
  73. PartB.Anchored = true
  74. PartC.Anchored = true
  75. local SoundCount = 0
  76. function PlayFX(type,pitch,vol,pos)
  77. if SoundCount < 30 then
  78. local waiter = 0
  79. local Part,Sound
  80. if type == "A" then
  81. Part,Sound,waiter = PartA,SA,1
  82. elseif type == "B" then
  83. Part,Sound,waiter = PartB,SB,0.4
  84. elseif type == "C" then
  85. Part,Sound,waiter = PartC,SC,0.4
  86. end
  87. Sound.PlaybackSpeed = pitch
  88. Sound.Volume = vol
  89. Part.Position = pos
  90. Part.Parent = script
  91. Part.Parent = nil
  92. SoundCount = SoundCount + 1
  93. delay(waiter/pitch,function()
  94. SoundCount = SoundCount - 1
  95. end)
  96. end
  97. end
  98. local on = false
  99. function explod(pos)
  100. coroutine.wrap(function()
  101. local pard = Instance.new("Part",script)
  102. pard.Anchored = true
  103. pard.Position = pos
  104. pard.CanCollide = false
  105. pard.Transparency = 0.75
  106. pard.Size = Vector3.new(25,25,25)
  107. pard.Shape = "Ball"
  108. pard.Color = Color3.fromRGB(219, 106, 0)
  109. pard.Material = "Neon"
  110. local pard2 = Instance.new("Part",script)
  111. pard2.Anchored = true
  112. pard2.Position = pos
  113. pard2.CanCollide = false
  114. pard2.Transparency = 0.75
  115. pard2.Size = Vector3.new(25,25,25)
  116. pard2.Shape = "Ball"
  117. pard2.Color = Color3.fromRGB(219, 73, 0)
  118. pard2.Material = "Neon"
  119. game:GetService("Debris"):AddItem(pard2,1)
  120. game:GetService("Debris"):AddItem(pard,1)
  121. coroutine.wrap(function()
  122. for i = 1,5 do
  123. PlayFX("B",1+i*0.075,2,pard.Position)
  124. wait(0.5 - i*0.15)
  125. end
  126. end)()
  127. game:GetService("Debris"):AddItem(pard,25)
  128. task.wait()
  129. local explosion = Instance.new("Explosion")
  130. explosion.Position = pos
  131. explosion.BlastRadius = 12.5
  132. explosion.Visible = false
  133. explosion.Parent = workspace
  134. explosion.DestroyJointRadiusPercent = 0
  135. local modelsHit = {}
  136. explosion.Hit:Connect(function(part, distance)
  137. local parentModel = part.Parent
  138. if parentModel then
  139. if modelsHit[parentModel] then
  140. return
  141. end
  142. modelsHit[parentModel] = true
  143. local humanoid = parentModel:FindFirstChild("Humanoid")
  144. if humanoid then
  145. local distanceFactor = distance / explosion.BlastRadius
  146. distanceFactor = 1 - distanceFactor
  147. humanoid.Health -= (250 * distanceFactor)
  148. end
  149. end
  150. end)
  151. end)()
  152. end
  153. local partf
  154. local sped = 0.25
  155. tool.Activated:Connect(function()
  156. if not on then
  157. on = true
  158. partf = part:Clone()
  159. local part6 = Instance.new("Part",partf)
  160. part6.Material = "SmoothPlastic"
  161. part6.Size = Vector3.new(2.36914285714, 2.92171428571, 1.49714285714)
  162. local Mesh = Instance.new("SpecialMesh")
  163. Mesh.Parent = part6
  164. part6.Color = partf.Color
  165. Mesh.MeshId = "http://www.roblox.com/asset/?id=6072643648"
  166. Mesh.Scale = Vector3.new(0.57142857142,0.57142857142,0.57142857142)
  167. local weld5 = Instance.new("Weld",partf)
  168. weld5.Part0 = part6
  169. weld5.Part1 = partf
  170. weld5.C0 = CFrame.new(0,1.75,0)
  171. local part7 = Instance.new("Part",partf)
  172. part7.Material = "SmoothPlastic"
  173. part7.Size = Vector3.new(1.5, 3, 1.5)
  174. local Mesh3 = Instance.new("SpecialMesh")
  175. Mesh3.Parent = part7
  176. part7.Color = partf.Color
  177. Mesh3.MeshId = "http://www.roblox.com/asset/?id=4390260244"
  178. Mesh3.TextureId = "rbxassetid://8897759435"
  179. Mesh3.Scale = Vector3.new(1.5,1.5,1.5)
  180. local weld6 = Instance.new("Weld",partf)
  181. weld6.Part0 = part7
  182. weld6.Part1 = partf
  183. weld6.C0 = CFrame.new(-2,2.25,0.5)
  184. local part8 = Instance.new("Part",partf)
  185. part8.Material = "SmoothPlastic"
  186. part8.Size = Vector3.new(1.5, 3, 1.5)
  187. local Mesh4 = Instance.new("SpecialMesh")
  188. Mesh4.Parent = part8
  189. part8.Color = partf.Color
  190. Mesh4.MeshId = "http://www.roblox.com/asset/?id=4390258469"
  191. Mesh4.Scale = Vector3.new(1.5,1.5,1.5)
  192. local weld7 = Instance.new("Weld",partf)
  193. weld7.Part0 = part8
  194. weld7.Part1 = partf
  195. weld7.C0 = CFrame.new(2,2.25,0.5)
  196. local part9 = Instance.new("Part",partf)
  197. part9.Material = "SmoothPlastic"
  198. part9.Size = Vector3.new(1.5, 3, 1.5)
  199. local Mesh5 = Instance.new("SpecialMesh")
  200. Mesh5.Parent = part9
  201. part9.Color = partf.Color
  202. Mesh5.MeshId = "http://www.roblox.com/asset/?id=4390259439"
  203. Mesh5.Scale = Vector3.new(1.25,1.25,1.25)
  204. local weld8 = Instance.new("Weld",partf)
  205. weld8.Part0 = part9
  206. weld8.Part1 = partf
  207. weld8.C0 = CFrame.new(0.65,4.75,0.25)
  208. local part10 = Instance.new("Part",partf)
  209. part10.Material = "SmoothPlastic"
  210. part10.Size = Vector3.new(1.5, 3, 1.5)
  211. local Mesh6 = Instance.new("SpecialMesh")
  212. Mesh6.Parent = part10
  213. part10.Color = partf.Color
  214. Mesh6.MeshId = "http://www.roblox.com/asset/?id=4390261070"
  215. Mesh6.Scale = Vector3.new(1.25,1.25,1.25)
  216. local weld9 = Instance.new("Weld",partf)
  217. weld9.Part0 = part10
  218. weld9.Part1 = partf
  219. weld9.C0 = CFrame.new(-0.65,4.75,0.25)
  220. Mesh4.TextureId = "rbxassetid://8897759435"
  221. Mesh5.TextureId = "rbxassetid://8897759435"
  222. Mesh6.TextureId = "rbxassetid://8897759435"
  223. for i,v in pairs(partf:GetDescendants()) do
  224. if v:IsA("Part") then
  225. v.CanCollide = false
  226. end
  227. end
  228. wait()
  229. partf.Parent = script
  230. partf.Anchored = true
  231. partf.CFrame = part.CFrame * CFrame.new(0,6,-2)
  232. wait()
  233. coroutine.wrap(function()
  234. while on do
  235. task.wait()
  236. partf.CFrame = partf.CFrame * CFrame.new(0,0,-sped)
  237. sped += 0.0025
  238. end
  239. end)()
  240. coroutine.wrap(function()
  241. PlayFX("C",1,1,partf.Position)
  242. wait(0.25)
  243. for i = 1,75 do
  244. if on then
  245. PlayFX("C",1+i*0.025,1,partf.Position)
  246. if i == 75 then
  247. on = false
  248. partf.Anchored = false
  249. sped = 0.25
  250. partf.Touched:Wait()
  251. explod(partf.Position)
  252. partf:Destroy()
  253. end
  254. wait(0.35 - i*0.015)
  255. end
  256. end
  257. end)()
  258. elseif on then
  259. on = false
  260. partf.Anchored = false
  261. sped = 0.25
  262. partf.Touched:Wait()
  263. explod(partf.Position)
  264. partf:Destroy()
  265. end
  266. end)
Add Comment
Please, Sign In to add comment