Advertisement
Versqual

Untitled

Jun 27th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.38 KB | None | 0 0
  1. immune = {"Dr4gOnh4ck3r2", "Fenrier", "Zewl", "xSoulStealerx"}
  2.  
  3. boom = false
  4. start = false
  5. time = 10
  6. over = 0
  7. incr = 1
  8. decr = 1
  9.  
  10. local mm = Instance.new("Model")
  11. mm.Parent = workspace
  12. mm.Name = "BlackBomb"
  13.  
  14. local m = Instance.new("Model")
  15. m.Parent = mm
  16. m.Name = "-Black Bomb- "..time.." -Black Bomb-"
  17.  
  18. local x = Instance.new("Part")
  19. x.Parent = m
  20. x.Name = "Explosive"
  21. x.BrickColor = BrickColor.new("Really black")
  22. x.Size = Vector3.new(1,1,1)
  23. x.CanCollide = false
  24. x.Anchored = true
  25. x.CFrame = workspace.Base.CFrame + Vector3.new(0,1.4,0)
  26. x.TopSurface = "Smooth"
  27. x.BottomSurface = "Smooth"
  28.  
  29. local c = Instance.new("SpecialMesh")
  30. c.Parent = x
  31. c.MeshType = "Sphere"
  32. c.Scale = Vector3.new(1,1,1)
  33.  
  34. local x22 = Instance.new("Humanoid")
  35. x22.Parent = m
  36. x22.Name = "Humanoid"
  37. x22.MaxHealth = 0
  38.  
  39.  
  40. local x2 = Instance.new("Part")
  41. x2.Parent = m
  42. x2.Name = "Head"
  43. x2.BrickColor = BrickColor.new("Really black")
  44. x2.Size = Vector3.new(2,2,2)
  45. x2.CanCollide = true
  46. x2.Anchored = true
  47. x2.CFrame = workspace.Base.CFrame + Vector3.new(0,1.4,0)
  48. x2.TopSurface = "Smooth"
  49. x2.BottomSurface = "Smooth"
  50.  
  51. local x3 = Instance.new("Part")
  52. x3.Parent = m
  53. x3.Name = "Start"
  54. x3.BrickColor = BrickColor.new("Bright violet")
  55. x3.Size = Vector3.new(1,0,1)
  56. x3.FormFactor = "Plate"
  57. x3.CanCollide = true
  58. x3.Anchored = true
  59. x3.CFrame = workspace.Base.CFrame + Vector3.new(-0.45,2,0.45)
  60. x3.TopSurface = "Smooth"
  61. x3.BottomSurface = "Smooth"
  62.  
  63.  
  64. local c = Instance.new("ClickDetector")
  65. c.Parent = x3
  66. c.MaxActivationDistance = 1000
  67.  
  68. local x4 = Instance.new("Part")
  69. x4.Parent = m
  70. x4.Name = "Stop"
  71. x4.BrickColor = BrickColor.new("Bright red")
  72. x4.Size = Vector3.new(1,0,1)
  73. x4.FormFactor = "Plate"
  74. x4.CanCollide = true
  75. x4.Anchored = true
  76. x4.CFrame = workspace.Base.CFrame + Vector3.new(0.45,2,0.45)
  77. x4.TopSurface = "Smooth"
  78. x4.BottomSurface = "Smooth"
  79.  
  80.  
  81. local x44 = Instance.new("Part")
  82. x44.Parent = m
  83. x44.Name = "Stop"
  84. x44.BrickColor = BrickColor.new("Bright orange")
  85. x44.Size = Vector3.new(1,0,1)
  86. x44.FormFactor = "Plate"
  87. x44.CanCollide = true
  88. x44.Anchored = true
  89. x44.CFrame = workspace.Base.CFrame + Vector3.new(0.45,2,-0.45)
  90. x44.TopSurface = "Smooth"
  91. x44.BottomSurface = "Smooth"
  92.  
  93. local x33 = Instance.new("Part")
  94. x33.Parent = m
  95. x33.Name = "Start"
  96. x33.BrickColor = BrickColor.new("Bright green")
  97. x33.Size = Vector3.new(1,0,1)
  98. x33.FormFactor = "Plate"
  99. x33.CanCollide = true
  100. x33.Anchored = true
  101. x33.CFrame = workspace.Base.CFrame + Vector3.new(-0.45,2,-0.45)
  102. x33.TopSurface = "Smooth"
  103. x33.BottomSurface = "Smooth"
  104.  
  105.  
  106. local c = Instance.new("ClickDetector")
  107. c.Parent = x33
  108. c.MaxActivationDistance = 1000
  109.  
  110. local c = Instance.new("ClickDetector")
  111. c.Parent = x4
  112. c.MaxActivationDistance = 1000
  113.  
  114. local c = Instance.new("ClickDetector")
  115. c.Parent = x44
  116. c.MaxActivationDistance = 1000
  117.  
  118. function explode(part)
  119. for i = 1 , 100 do
  120. wait()
  121. x.Reflectance = x.Reflectance + 0.01
  122. end
  123. wait(0)
  124. x.Reflectance = 0
  125. cDir=Vector3.new(math.random(-1,1)/2,math.random(-1,1)/2,math.random(-1,1)/2)
  126. game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=2101159")
  127. for ubervolume=1, 5 do
  128. s=Instance.new("Sound")
  129. s.SoundId="http://www.roblox.com/asset/?id=2101159"
  130. s.Pitch=2
  131. s.Name="Kaboom"
  132. s.Volume=1
  133. s.Parent=x
  134. s:Play()
  135. end
  136. wait(0.1)
  137. for ubervolume=1, 5 do
  138. s=Instance.new("Sound")
  139. s.SoundId="http://www.roblox.com/asset/?id=2101159"
  140. s.Pitch=2
  141. s.Name="Kaboom"
  142. s.Volume=1
  143. s.Parent=x
  144. s:Play()
  145. end
  146. wait(0.1)
  147. for ubervolume=1, 5 do
  148. s=Instance.new("Sound")
  149. s.SoundId="http://www.roblox.com/asset/?id=2101159"
  150. s.Pitch=2
  151. s.Name="Kaboom"
  152. s.Volume=1
  153. s.Parent=x
  154. s:Play()
  155. end
  156. wait(0.1)
  157. for ubervolume=1, 5 do
  158. s=Instance.new("Sound")
  159. s.SoundId="http://www.roblox.com/asset/?id=2101159"
  160. s.Pitch=2
  161. s.Name="Kaboom"
  162. s.Volume=1
  163. s.Parent=x
  164. s:Play()
  165. end
  166. c=x.CFrame
  167. onTouched=function(v)
  168. if v.Parent==nil then
  169. return
  170. end
  171. if v.Anchored==false then
  172. wait()
  173. v.Velocity=(((v.Position-x.Position).unit*100+Vector3.new(math.random(-2,2),0,math.random(-2,2))))
  174. v.RotVelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  175. r=Instance.new("BodyAngularVelocity")
  176. r.P=1000
  177. r.maxTorque=Vector3.new(50000,50000,50000)*500
  178. r.angularvelocity=v.RotVelocity
  179. r.Parent=v
  180. game:GetService("Debris"):AddItem(r,.5)
  181. if v.Parent:FindFirstChild("Humanoid")~=nil and v.Parent.Name ~= immune[1] and v.Parent.Name ~= immune[2] and v.Parent.Name ~= immune[3] then
  182. --v.Parent.Humanoid.PlatformStand = true
  183. v.Parent.Torso:Remove()
  184. v.Parent.Head:Remove()
  185. v.Parent["Right Leg"]:Remove()
  186. v.Parent["Right Arm"]:Remove()
  187. v.Parent["Left Leg"]:Remove()
  188. v.Parent["Left Arm"]:Remove()
  189. end
  190. end
  191. end
  192. con=x.Touched:connect(onTouched)
  193. p=Instance.new("Part")
  194. p.TopSurface=0
  195. p.BottomSurface=0
  196. p.Reflectance=.2
  197. p.formFactor="Symmetric"
  198. p.BrickColor=BrickColor.new("Teal")
  199. p.Size=Vector3.new(1,1,1)
  200. p.Anchored=true
  201. p.CanCollide=false
  202. v=Instance.new("BodyPosition")
  203. v.P=3000
  204. v.maxForce=Vector3.new(50000,50000,50000)*50000
  205. v.position=CFrame.new(x.Position).p
  206. v.Parent=p
  207. p.Name="Blast"
  208. p.CFrame=CFrame.new(x.Position)*CFrame.fromEulerAnglesXYZ(math.random(-20,20)/20,math.random(-10,10)/20,math.random(-20,20)/20)
  209. p.Parent=workspace
  210. p.Transparency=1
  211. p.CanCollide=false
  212. m=Instance.new("BlockMesh")
  213. m.Scale=Vector3.new(1,0,1)
  214. m.Parent=p
  215. game:GetService("Debris"):AddItem(p,5)
  216.  
  217. d=Instance.new("Decal")
  218. d.Texture="http://www.roblox.com/asset/?id=11187115"
  219. d.Face="Top"
  220. d.Parent=p
  221. d=Instance.new("Decal")
  222. d.Texture="http://www.roblox.com/asset/?id=11187115"
  223. d.Face="Top"
  224. d.Parent=p
  225. orp=p.CFrame
  226. coroutine.resume(coroutine.create(function(p,orp)
  227. for i=1, 20 do
  228. p.Size=p.Size+Vector3.new(7,7,7)
  229. p.CFrame=orp
  230. wait()
  231. end
  232. p.Parent=nil
  233. end),p,p.CFrame)
  234.  
  235. p=Instance.new("Part")
  236. p.TopSurface=0
  237. p.BottomSurface=0
  238. p.Reflectance=.2
  239. p.formFactor="Symmetric"
  240. p.BrickColor=BrickColor.new("Teal")
  241. p.Size=Vector3.new(1,1,1)
  242. p.Anchored=true
  243. p.CanCollide=false
  244. v=Instance.new("BodyPosition")
  245. v.P=3000
  246. v.maxForce=Vector3.new(50000,50000,50000)*50000
  247. v.position=CFrame.new(x.Position).p
  248. v.Parent=p
  249. p.Name="Blast"
  250. p.CFrame=CFrame.new(x.Position)*CFrame.fromEulerAnglesXYZ(math.random(-20,20)/20,math.random(-10,10)/20,math.random(-20,20)/20)
  251. p.Parent=workspace
  252. p.Transparency=1
  253. p.CanCollide=false
  254. m=Instance.new("BlockMesh")
  255. m.Scale=Vector3.new(1,0,1)
  256. m.Parent=p
  257. game:GetService("Debris"):AddItem(p,5)
  258.  
  259. d=Instance.new("Decal")
  260. d.Texture="http://www.roblox.com/asset/?id=11187115"
  261. d.Face="Top"
  262. d.Parent=p
  263. d=Instance.new("Decal")
  264. d.Texture="http://www.roblox.com/asset/?id=11187115"
  265. d.Face="Top"
  266. d.Parent=p
  267. orp=p.CFrame
  268. coroutine.resume(coroutine.create(function(p,orp)
  269. for i=1, 15 do
  270. p.Size=p.Size+Vector3.new(9,9,9)
  271. p.CFrame=orp
  272. wait()
  273. end
  274. p.Parent=nil
  275. end),p,p.CFrame)
  276.  
  277. p=Instance.new("Part")
  278. p.TopSurface=0
  279. p.BottomSurface=0
  280. p.Reflectance=.2
  281. p.formFactor="Symmetric"
  282. p.BrickColor=BrickColor.new("Teal")
  283. p.Size=Vector3.new(1,1,1)
  284. p.Anchored=true
  285. p.CanCollide=false
  286. v=Instance.new("BodyPosition")
  287. v.P=3000
  288. v.maxForce=Vector3.new(50000,50000,50000)*50000
  289. v.position=CFrame.new(x.Position).p
  290. v.Parent=p
  291. p.Name="Blast"
  292. p.CFrame=CFrame.new(x.Position)*CFrame.fromEulerAnglesXYZ(math.random(-20,20)/20,math.random(-10,10)/20,math.random(-20,20)/20)
  293. p.Parent=workspace
  294. p.Transparency=1
  295. p.CanCollide=false
  296. m=Instance.new("BlockMesh")
  297. m.Scale=Vector3.new(1,0,1)
  298. m.Parent=p
  299. game:GetService("Debris"):AddItem(p,5)
  300.  
  301. d=Instance.new("Decal")
  302. d.Texture="http://www.roblox.com/asset/?id=11187115"
  303. d.Face="Top"
  304. d.Parent=p
  305. d=Instance.new("Decal")
  306. d.Texture="http://www.roblox.com/asset/?id=11187115"
  307. d.Face="Top"
  308. d.Parent=p
  309. orp=p.CFrame
  310. coroutine.resume(coroutine.create(function(p,orp)
  311. for i=1, 15 do
  312. p.Size=p.Size+Vector3.new(10,10,10)
  313. p.CFrame=orp
  314. wait()
  315. end
  316. p.Parent=nil
  317. end),p,p.CFrame)
  318. for i=1, 10 do
  319. wait()
  320. x.Transparency=i/20
  321. ccDir=cDir*i
  322. x.Size=x.Size+Vector3.new(5,5,5)
  323. x.CFrame=c*CFrame.fromEulerAnglesXYZ(ccDir.x,ccDir.y,ccDir.z)*CFrame.new(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  324. end
  325. for i=1, 10 do
  326. wait()
  327. x.Transparency=i/20+.25
  328. ccDir=cDir*i
  329. x.Size=x.Size+Vector3.new(5,5,5)
  330. x.CFrame=c*CFrame.fromEulerAnglesXYZ(ccDir.x,ccDir.y,ccDir.z)*CFrame.new(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  331. end
  332. for i=1, 10 do
  333. wait()
  334. x.Transparency=i/20+.50
  335. ccDir=cDir*i
  336. x.Size=x.Size+Vector3.new(4,4,4)
  337. x.CFrame=c*CFrame.fromEulerAnglesXYZ(ccDir.x,ccDir.y,ccDir.z)*CFrame.new(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  338. end
  339. for i=1, 10 do
  340. wait()
  341. x.Transparency=i/20+.75
  342. ccDir=cDir*i
  343. x.Size=x.Size+Vector3.new(3,3,3)
  344. x.CFrame=c*CFrame.fromEulerAnglesXYZ(ccDir.x,ccDir.y,ccDir.z)*CFrame.new(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  345. end
  346. for i=1, 10 do
  347. wait()
  348. x.Transparency=i/20+.325
  349. ccDir=cDir*i
  350. x.Size=x.Size+Vector3.new(2,2,2)
  351. x.CFrame=c*CFrame.fromEulerAnglesXYZ(ccDir.x,ccDir.y,ccDir.z)*CFrame.new(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  352. end
  353. for i=1, 10 do
  354. wait()
  355. x.Transparency=i/20+.325
  356. ccDir=cDir*i
  357. x.Size=x.Size+Vector3.new(1,1,1)
  358. x.CFrame=c*CFrame.fromEulerAnglesXYZ(ccDir.x,ccDir.y,ccDir.z)*CFrame.new(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  359. end
  360. for i=1, 5 do
  361. wait()
  362. x.CFrame=c*CFrame.fromEulerAnglesXYZ(ccDir.x,ccDir.y,ccDir.z)*CFrame.new(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  363. end
  364. wait(0.2)
  365. mm:Remove()
  366. end
  367.  
  368.  
  369. function onClicked()
  370. start = true
  371. end
  372. x3.ClickDetector.MouseClick:connect(onClicked)
  373.  
  374. function onClicked()
  375. start = false
  376. end
  377. x4.ClickDetector.MouseClick:connect(onClicked)
  378.  
  379.  
  380. function onClicked()
  381. if boom == false then
  382. time = time -1
  383. m.Name = "-Black Bomb- "..time.." -Black Bomb-"
  384. end
  385. end
  386. x44.ClickDetector.MouseClick:connect(onClicked)
  387.  
  388.  
  389. function onClicked()
  390. if boom == false then
  391. time = time +1
  392. m.Name = "-Black Bomb- "..time.." -Black Bomb-"
  393. end
  394. end
  395. x33.ClickDetector.MouseClick:connect(onClicked)
  396.  
  397. while true do
  398. wait(1)
  399. if start == true then
  400. time = time - 1
  401. m.Name = "-Black Bomb- "..time.." -Black Bomb-"
  402. if time <= 1 and boom == false then
  403. explode(x)
  404. boom = true
  405. end
  406. end
  407. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement