Advertisement
HenloMyDude

jjkblaster

Aug 25th, 2019
1,266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.10 KB | None | 0 0
  1.  
  2. script.Name = "Blaster"
  3. wait(0.25)
  4. if owner == nil then script:Destroy() return end
  5. local SA = Instance.new("Sound",script)
  6. SA.SoundId = "rbxasset://sounds/bass.mp3"
  7. SA.Volume = 0.35
  8. local PartB = Instance.new("Part")
  9. local SB = Instance.new("Sound",PartB)
  10. SB.SoundId = "rbxasset://sounds/impact_explosion_03.mp3"
  11. SB.Volume = 1.4
  12. SB.PlayOnRemove = true
  13. local PartC = Instance.new("Part")
  14. local SC = Instance.new("Sound",PartC)
  15. SC.SoundId = "rbxasset://sounds/collide.wav"
  16. SC.Volume = 1.4
  17. SC.PlayOnRemove = true
  18. local PartD = Instance.new("Part")
  19. local SD = Instance.new("Sound",PartD)
  20. SD.SoundId = "rbxasset://sounds/Rocket shot.wav"
  21. SD.Volume = 1.4
  22. SD.PlayOnRemove = true
  23. PartB.Anchored = true
  24. PartC.Anchored = true
  25. PartD.Anchored = true
  26. function HitSound(pos)
  27. local random = math.random(1,3)
  28. if random == 1 then
  29. if SB and SB.Parent then
  30. SB.PlaybackSpeed = math.random(240,360) / 100
  31. end
  32. if PartB then
  33. PartB.Position = pos
  34. PartB.Parent = script
  35. PartB.Parent = nil
  36. end
  37. elseif random == 2 then
  38. if SC then
  39. SC.PlaybackSpeed = math.random(140,360) / 100
  40. end
  41. if PartC then
  42. PartC.Position = pos
  43. PartC.Parent = script
  44. PartC.Parent = nil
  45. end
  46. elseif random == 3 then
  47. if SD then
  48. SD.PlaybackSpeed = math.random(1600,2000) / 100
  49. end
  50. if PartD then
  51. PartD.Position = pos
  52. PartD.Parent = script
  53. PartD.Parent = nil
  54. end
  55. end
  56. end
  57. function Kaboom(pos)
  58. local random = math.random(1,3)
  59. if random == 1 then
  60. if SB and SB.Parent then
  61. SB.PlaybackSpeed = math.random(80,160) / 100
  62. end
  63. if PartB then
  64. PartB.Position = pos
  65. PartB.Parent = script
  66. PartB.Parent = nil
  67. end
  68. elseif random == 2 then
  69. if SC then
  70. SC.PlaybackSpeed = math.random(60,120) / 100
  71. end
  72. if PartC then
  73. PartC.Position = pos
  74. PartC.Parent = script
  75. PartC.Parent = nil
  76. end
  77. elseif random == 3 then
  78. if SD then
  79. SD.PlaybackSpeed = math.random(120,240) / 100
  80. end
  81. if PartD then
  82. PartD.Position = pos
  83. PartD.Parent = script
  84. PartD.Parent = nil
  85. end
  86. end
  87. end
  88. function BombsAway(T,V,S,o)
  89. local Collision = false
  90. local F = Instance.new("Fire",T)
  91. F.Size = 4
  92. F.Color = T.Color
  93. F.SecondaryColor = T.Color
  94. for e = 1,150 do
  95. if Collision == false then
  96. for i = 1,20 do
  97. if Collision == false then
  98. V = V - Vector3.new(0,game.Workspace.Gravity * 0.002,0)
  99. T.CFrame = T.CFrame + Vector3.new(V.X * 0.002,V.Y * 0.002,V.Z * 0.002)
  100. if e >= 5 then
  101. local T = T:GetTouchingParts()
  102. for i = 1,#T do
  103. if T[i].CanCollide then
  104. Collision = true
  105. end
  106. end
  107. end
  108. end
  109. end
  110. wait(0.04)
  111. end
  112. end
  113. if S and S.Parent then
  114. S:Stop()
  115. end
  116. if T and T.Parent then
  117. T.Material = Enum.Material.Neon
  118. T.Transparency = 0.95
  119. T.CanCollide = false
  120. if o and o.Parent and o.Neutral == false then
  121. T.BrickColor = o.TeamColor
  122. end
  123. end
  124. if F then
  125. if o and o.Parent and o.Neutral == false then
  126. F.Color = o.TeamColor.Color
  127. F.SecondaryColor = o.TeamColor.Color
  128. end
  129. end
  130. delay(0,function()
  131. if T then
  132. Kaboom(T.Position)
  133. end
  134. end)
  135. if T and T.Parent then
  136. local P = Instance.new("Part",script)
  137. P.Name = "Kaboom"
  138. P.Shape = Enum.PartType.Ball
  139. P.Size = Vector3.new(42,42,42)
  140. P.Transparency = 0.5
  141. P.Material = Enum.Material.Neon
  142. P.CFrame = T.CFrame
  143. P.Anchored = true
  144. P.BrickColor = T.BrickColor
  145. if o and o.Parent and o.Neutral == false then
  146. P.BrickColor = o.TeamColor
  147. end
  148. local Attachment = Instance.new("Attachment",P)
  149. local Particles = Instance.new("ParticleEmitter",Attachment)
  150. Particles.LightEmission = 1
  151. Particles.LightInfluence = 0.2
  152. Particles.Drag = 5
  153. Particles.Enabled = false
  154. Particles.Lifetime = NumberRange.new(0.5,1)
  155. Particles.Rate = 100
  156. Particles.Rotation = NumberRange.new(-360,360)
  157. Particles.SpreadAngle = Vector2.new(-360,360)
  158. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  159. Particles.Color = ColorSequence.new(T.Color)
  160. Particles.Texture = "rbxasset://textures/particles/smoke_main.dds"
  161. Particles.Speed = NumberRange.new(70,70)
  162. Particles.Size = NumberSequence.new(7,7)
  163. Particles:Emit(500)
  164. for i = 1,9 do
  165. local Part = Instance.new("Part",script)
  166. Part.Name = "Debris"
  167. Part.BrickColor = P.BrickColor
  168. Part.Material = Enum.Material.Neon
  169. Part.Locked = true
  170. Part.Size = Vector3.new(0.5,0.5,0.5)
  171. Part.CFrame = P.CFrame + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  172. Part.Velocity = Vector3.new(math.random(-24,24),math.random(-24,24),math.random(-24,24))
  173. local A0 = Instance.new("Attachment",Part)
  174. A0.Position = Vector3.new(-0.25,0,0)
  175. local A1 = Instance.new("Attachment",Part)
  176. A1.Position = Vector3.new(0.25,0,0)
  177. local Trail = Instance.new("Trail",script)
  178. Trail.Color = ColorSequence.new(P.Color)
  179. Trail.Transparency = NumberSequence.new(0,1)
  180. Trail.MinLength = 0.02
  181. Trail.Lifetime = 0.3
  182. Trail.FaceCamera = true
  183. Trail.Attachment0 = A0
  184. Trail.Attachment1 = A1
  185. game:GetService("Debris"):AddItem(Part,5)
  186. end
  187. local Explosion = Instance.new("Explosion")
  188. Explosion.Position = P.Position
  189. Explosion.BlastRadius = 21
  190. Explosion.BlastPressure = 1000000
  191. Explosion.Visible = false
  192. Explosion.Parent = game.Workspace
  193. local function Hit(part)
  194. if part and part.Parent:FindFirstChildWhichIsA("Humanoid") then
  195. part.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(2048)
  196. local creator = Instance.new("ObjectValue",part.Parent:FindFirstChildWhichIsA("Humanoid"))
  197. creator.Name = "creator"
  198. if o and o.Parent then
  199. creator.Value = o
  200. end
  201. game:GetService("Debris"):AddItem(creator,0.2)
  202. delay(0,function()
  203. HitSound(Explosion.Position)
  204. end)
  205. elseif part and part.Parent:FindFirstChild("FakeHumanoid") and part.Parent.FakeHumanoid:IsA("StringValue") and o and o.Parent then
  206. part.Parent.FakeHumanoid.Value = o.Name
  207. end
  208. end
  209. Explosion.Hit:Connect(Hit)
  210. for i = 1,10 do
  211. wait(0.12)
  212. if P and P.Parent then
  213. P.Transparency = P.Transparency + 0.05
  214. local Touch = P:GetTouchingParts()
  215. for i = 1,#Touch do
  216. if Touch[i] and Touch[i].Parent and Touch[i].Parent:FindFirstChildWhichIsA("Humanoid") then
  217. local Humanoid = Touch[i].Parent:FindFirstChildWhichIsA("Humanoid")
  218. if not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  219. Humanoid:TakeDamage(2048)
  220. local creator = Instance.new("ObjectValue",Humanoid)
  221. creator.Name = "creator"
  222. if o and o.Parent then
  223. creator.Value = o
  224. end
  225. game:GetService("Debris"):AddItem(creator,0.2)
  226. delay(0,function()
  227. HitSound(P.Position)
  228. end)
  229. end
  230. local Tag2 = Touch[i].Parent:FindFirstChild("FakeHumanoid")
  231. if Tag2 and o and o.Parent then
  232. Tag2.Value = o.Name
  233. end
  234. end
  235. end
  236. end
  237. end
  238. if P and P.Parent then
  239. P:Destroy()
  240. end
  241. end
  242. if T and T.Parent ~= nil then
  243. T.Name = "Effect"
  244. game:GetService("Debris"):AddItem(T,10)
  245. end
  246. end
  247. function NearNumber(a,b)
  248. if a + 0.375 >= b and a - 0.375 <= b then
  249. return true
  250. else
  251. return false
  252. end
  253. end
  254. function Shoot(C,bc,f,s,b,o)
  255. local P = Instance.new("Part",script)
  256. P.Name = "Laser"
  257. P.Anchored = true
  258. P.Locked = true
  259. P.Size = Vector3.new(1,1,10)
  260. P.Material = Enum.Material.Neon
  261. P.CFrame = C
  262. local At = Instance.new("Attachment",P)
  263. At.Position = Vector3.new(0,0,5)
  264. local A0 = Instance.new("Attachment",P)
  265. A0.Position = Vector3.new(-0.5,0,5)
  266. local A1 = Instance.new("Attachment",P)
  267. A1.Position = Vector3.new(0.5,0,5)
  268. local Trail = Instance.new("Trail",script)
  269. Trail.Color = ColorSequence.new(bc.Color)
  270. Trail.Transparency = NumberSequence.new(0,1)
  271. Trail.MinLength = 0.02
  272. Trail.Lifetime = 0.6
  273. Trail.FaceCamera = true
  274. Trail.Attachment0 = A0
  275. Trail.Attachment1 = A1
  276. if b then
  277. b.Color = ColorSequence.new(bc.Color)
  278. b.Attachment1 = At
  279. delay(0.12,function()
  280. if b then
  281. b.Attachment1 = nil
  282. end
  283. end)
  284. end
  285. delay(10,function()
  286. if Trail and Trail.Parent then
  287. Trail:Destroy()
  288. end
  289. end)
  290. if f == true and s == true then
  291. P.CFrame = P.CFrame * CFrame.new(0,0,0,-0.25,0,0,1)
  292. end
  293. P.BrickColor = bc
  294. P.Velocity = P.CFrame.lookVector * 80
  295. local Alternate = false
  296. local LaserHit = false
  297. local TouchConnection = P.Touched:Connect(function(hit)
  298. if hit == nil or (hit and hit.CanCollide) then
  299. LaserHit = true
  300. if hit and hit.Parent then
  301. local Humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  302. if Humanoid and not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  303. Humanoid:TakeDamage(35)
  304. if f == true then
  305. Humanoid:TakeDamage(2013)
  306. end
  307. local creator = Instance.new("ObjectValue",Humanoid)
  308. creator.Name = "creator"
  309. if o and o.Parent then
  310. creator.Value = o
  311. end
  312. game:GetService("Debris"):AddItem(creator,0.2)
  313. delay(0,function()
  314. HitSound(P.Position)
  315. end)
  316. end
  317. local Tag2 = hit.Parent:FindFirstChild("FakeHumanoid")
  318. if Tag2 and o and o.Parent then
  319. Tag2.Value = o.Name
  320. end
  321. end
  322. end
  323. end)
  324. for i = 1,32 do
  325. if P and P.Parent then
  326. if Alternate == true and f == true then
  327. P.BrickColor = BrickColor.new("Institutional white")
  328. else
  329. P.BrickColor = bc
  330. end
  331. Alternate = not Alternate
  332. for i = 1,40 do
  333. if LaserHit == false then
  334. P.CFrame = P.CFrame * CFrame.new(0,0,-2)
  335. local T = P:GetTouchingParts()
  336. for i = 1,#T do
  337. if T[i] and T[i].Parent then
  338. if T[i].CanCollide or T[i].Parent:FindFirstChildWhichIsA("Humanoid") then
  339. LaserHit = true
  340. local Humanoid = T[i].Parent:FindFirstChildWhichIsA("Humanoid")
  341. if Humanoid and not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  342. Humanoid:TakeDamage(35)
  343. if f == true then
  344. Humanoid:TakeDamage(2013)
  345. end
  346. local creator = Instance.new("ObjectValue",Humanoid)
  347. creator.Name = "creator"
  348. if o and o.Parent then
  349. creator.Value = o
  350. end
  351. game:GetService("Debris"):AddItem(creator,0.2)
  352. delay(0,function()
  353. HitSound(P.Position)
  354. end)
  355. end
  356. local Tag2 = T[i].Parent:FindFirstChild("FakeHumanoid")
  357. if Tag2 and o and o.Parent then
  358. Tag2.Value = o.Name
  359. end
  360. end
  361. end
  362. end
  363. end
  364. end
  365. wait(0.02)
  366. if LaserHit == true then
  367. break
  368. end
  369. end
  370. end
  371. TouchConnection:Disconnect()
  372. if P and P.Parent then
  373. P.CFrame = P.CFrame * CFrame.new(0,0,-5)
  374. P.Shape = Enum.PartType.Ball
  375. if f == true then
  376. P.BrickColor = bc
  377. P.Size = Vector3.new(42,42,42)
  378. local Attachment = Instance.new("Attachment",P)
  379. local Particles = Instance.new("ParticleEmitter",Attachment)
  380. Particles.LightEmission = 1
  381. Particles.LightInfluence = 0.2
  382. Particles.Drag = 5
  383. Particles.Enabled = false
  384. Particles.Lifetime = NumberRange.new(0.5,1)
  385. Particles.Rate = 100
  386. Particles.Rotation = NumberRange.new(-360,360)
  387. Particles.SpreadAngle = Vector2.new(-360,360)
  388. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  389. Particles.Color = ColorSequence.new(bc.Color)
  390. Particles.Texture = "rbxasset://textures/particles/smoke_main.dds"
  391. Particles.Speed = NumberRange.new(70,70)
  392. Particles.Size = NumberSequence.new(7,7)
  393. Particles:Emit(500)
  394. local Explosion = Instance.new("Explosion")
  395. Explosion.Position = P.Position
  396. Explosion.BlastRadius = 21
  397. Explosion.BlastPressure = 1000000
  398. Explosion.Visible = false
  399. Explosion.Parent = game.Workspace
  400. local function Hit(part)
  401. if part and part.Parent:FindFirstChildWhichIsA("Humanoid") then
  402. part.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(2048)
  403. local creator = Instance.new("ObjectValue",part.Parent:FindFirstChildWhichIsA("Humanoid"))
  404. creator.Name = "creator"
  405. if o and o.Parent then
  406. creator.Value = o
  407. end
  408. game:GetService("Debris"):AddItem(creator,0.2)
  409. elseif part and part.Parent:FindFirstChild("FakeHumanoid") and part.Parent.FakeHumanoid:IsA("StringValue") and o and o.Parent then
  410. part.Parent.FakeHumanoid.Value = o.Name
  411. end
  412. end
  413. Explosion.Hit:Connect(Hit)
  414. delay(0,function()
  415. Kaboom(P.Position)
  416. end)
  417. else
  418. P.Size = Vector3.new(4,4,4)
  419. end
  420. for i = 1,2 do
  421. local Part = Instance.new("Part",script)
  422. Part.Name = "Debris"
  423. Part.BrickColor = bc
  424. Part.Material = Enum.Material.Neon
  425. Part.Locked = true
  426. Part.Size = Vector3.new(0.5,0.5,0.5)
  427. Part.CFrame = P.CFrame + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  428. Part.Velocity = Vector3.new(math.random(-24,24),math.random(-24,24),math.random(-24,24))
  429. local A0 = Instance.new("Attachment",Part)
  430. A0.Position = Vector3.new(-0.25,0,0)
  431. local A1 = Instance.new("Attachment",Part)
  432. A1.Position = Vector3.new(0.25,0,0)
  433. local Trail = Instance.new("Trail",script)
  434. Trail.Color = ColorSequence.new(bc.Color)
  435. Trail.Transparency = NumberSequence.new(0,1)
  436. Trail.MinLength = 0.02
  437. Trail.Lifetime = 0.3
  438. Trail.FaceCamera = true
  439. Trail.Attachment0 = A0
  440. Trail.Attachment1 = A1
  441. game:GetService("Debris"):AddItem(Part,5)
  442. end
  443. if f == true then
  444. for i = 1,7 do
  445. local Part = Instance.new("Part",script)
  446. Part.Name = "Debris"
  447. Part.BrickColor = P.BrickColor
  448. Part.Material = Enum.Material.Neon
  449. Part.Locked = true
  450. Part.Size = Vector3.new(0.5,0.5,0.5)
  451. Part.CFrame = P.CFrame + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  452. Part.Velocity = Vector3.new(math.random(-24,24),math.random(-24,24),math.random(-24,24))
  453. local A0 = Instance.new("Attachment",Part)
  454. A0.Position = Vector3.new(-0.25,0,0)
  455. local A1 = Instance.new("Attachment",Part)
  456. A1.Position = Vector3.new(0.25,0,0)
  457. local Trail = Instance.new("Trail",script)
  458. Trail.Color = ColorSequence.new(bc.Color)
  459. Trail.Transparency = NumberSequence.new(0,1)
  460. Trail.MinLength = 0.02
  461. Trail.Lifetime = 0.3
  462. Trail.FaceCamera = true
  463. Trail.Attachment0 = A0
  464. Trail.Attachment1 = A1
  465. game:GetService("Debris"):AddItem(Part,5)
  466. end
  467. end
  468. local T = P:GetTouchingParts()
  469. for i = 1,#T do
  470. if T[i] and T[i].Parent and T[i].Parent:FindFirstChildWhichIsA("Humanoid") then
  471. local Humanoid = T[i].Parent:FindFirstChildWhichIsA("Humanoid")
  472. if not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  473. Humanoid:TakeDamage(35)
  474. if f == true then
  475. Humanoid:TakeDamage(2013)
  476. end
  477. local creator = Instance.new("ObjectValue",Humanoid)
  478. creator.Name = "creator"
  479. if o and o.Parent then
  480. creator.Value = o
  481. end
  482. game:GetService("Debris"):AddItem(creator,0.2)
  483. delay(0,function()
  484. HitSound(P.Position)
  485. end)
  486. end
  487. local Tag2 = T[i].Parent:FindFirstChild("FakeHumanoid")
  488. if Tag2 and o and o.Parent then
  489. Tag2.Value = o.Name
  490. end
  491. end
  492. end
  493. if f == true then
  494. P.Transparency = 0.5
  495. for i = 1,10 do
  496. if P and P.Parent then
  497. P.Transparency = P.Transparency + 0.05
  498. end
  499. wait(0.12)
  500. end
  501. if P and P.Parent then
  502. P:Destroy()
  503. end
  504. else
  505. wait(0.08)
  506. if P and P.Parent then
  507. P:Destroy()
  508. end
  509. end
  510. end
  511. end
  512. function Ready()
  513. local Tool = Instance.new("Tool",owner.Backpack)
  514. Tool.Name = "Blaster"
  515. Tool.TextureId = "rbxasset://textures/MouseLockedCursor.png"
  516. Tool.GripPos = Vector3.new(0,-0.5,1.25)
  517. local Torso = Instance.new("Part",Tool)
  518. Torso.Name = "Handle"
  519. Torso.Size = Vector3.new(1,1,3)
  520. Torso.BrickColor = BrickColor.new("Medium stone grey")
  521. Torso.Locked = true
  522. local PointLight = Instance.new("PointLight",Torso)
  523. PointLight.Range = 14
  524. PointLight.Shadows = true
  525. PointLight.Brightness = 5
  526. local SpotLight = Instance.new("SpotLight",Torso)
  527. SpotLight.Range = 60
  528. SpotLight.Shadows = true
  529. SpotLight.Brightness = 5
  530. local SoundA = Instance.new("Sound",Torso)
  531. SoundA.SoundId = "rbxasset://sounds/Launching rocket.wav"
  532. SoundA.Volume = 1.2
  533. local A = Instance.new("Attachment",Torso)
  534. A.Position = Vector3.new(0,0,-1.5)
  535. local BA0 = Instance.new("Attachment",Torso)
  536. BA0.Position = Vector3.new(-0.5,0,1.5)
  537. local BA1 = Instance.new("Attachment",Torso)
  538. BA1.Position = Vector3.new(0.5,0,1.5)
  539. local ShipTrail = Instance.new("Trail",script)
  540. ShipTrail.Color = ColorSequence.new(Torso.Color)
  541. ShipTrail.Transparency = NumberSequence.new(0,1)
  542. ShipTrail.MinLength = 0.02
  543. ShipTrail.Lifetime = 0.3
  544. ShipTrail.FaceCamera = true
  545. ShipTrail.Attachment0 = BA0
  546. ShipTrail.Attachment1 = BA1
  547. local Beam = Instance.new("Beam",script)
  548. Beam.Attachment0 = A
  549. Beam.FaceCamera = true
  550. Fire = 0
  551. local HP = owner.Character:FindFirstChildWhichIsA("Humanoid")
  552. local function Equipped()
  553. Fire = math.max(-72,Fire)
  554. for i = 1,3 do
  555. wait(0.04)
  556. end
  557. local toolanim = Instance.new("StringValue",Tool)
  558. toolanim.Name = "toolanim"
  559. toolanim.Value = "Lunge"
  560. end
  561. Tool.Equipped:Connect(Equipped)
  562. local function ValueChange()
  563. if Tool.Enabled == false then
  564. if Torso and Fire <= 0 then
  565. local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  566. local Character = Tool.Parent
  567. local Humanoid
  568. if Character then
  569. Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  570. end
  571. if Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  572. local ExplodingShot = (Fire <= -75)
  573. if SoundA then
  574. SoundA.PlaybackSpeed = 3.6
  575. SoundA:Play()
  576. end
  577. local BombLaunch = (Humanoid.MoveDirection.X == 0 and Humanoid.MoveDirection.Z == 0)
  578. delay(0,function()
  579. Shoot(((Torso.CFrame + Torso.Velocity * 0.002) * CFrame.new(0,0,-6)),Torso.BrickColor,ExplodingShot,false,Beam,Player)
  580. end)
  581. delay(0,function()
  582. if ExplodingShot == true and BombLaunch == true then
  583. local Part = Instance.new("Part",script)
  584. Part.Name = "Bomb"
  585. Part.Anchored = true
  586. Part.Locked = true
  587. Part.Material = Enum.Material.Metal
  588. Part.BrickColor = Torso.BrickColor
  589. Part.Size = Vector3.new(1,2,1)
  590. Part.CFrame = Torso.CFrame * CFrame.new(0,4,-2)
  591. local SoundC = Instance.new("Sound",Part)
  592. SoundC.SoundId = "rbxassetid://280101905"
  593. SoundC.Volume = 0.4
  594. SoundC.Looped = true
  595. SoundC:Play()
  596. BombsAway(Part,Torso.Velocity + Vector3.new(0,180,0),SoundC,Player)
  597. end
  598. end)
  599. Fire = 3
  600. end
  601. end
  602. end
  603. end
  604. Tool:GetPropertyChangedSignal("Enabled"):Connect(ValueChange)
  605. local function Activated()
  606. Tool.Enabled = false
  607. local toolanim = Instance.new("StringValue",Tool)
  608. toolanim.Name = "toolanim"
  609. toolanim.Value = "Lunge"
  610. end
  611. Tool.Activated:Connect(Activated)
  612. while Tool and Tool:FindFirstAncestorWhichIsA("DataModel") do
  613. Fire = Fire - 1
  614. if Fire == 0 then
  615. Tool.Enabled = true
  616. end
  617. if Torso and (Fire <= -75 or Fire > 0) then
  618. Torso.Material = Enum.Material.Neon
  619. elseif Torso then
  620. Torso.Material = Enum.Material.Metal
  621. end
  622. Tool.ToolTip = "H = "..math.ceil(HP.Health)
  623. if Torso then
  624. if HP.Health > 80 then
  625. Torso.BrickColor = BrickColor.new("Toothpaste")
  626. if ShipTrail then
  627. ShipTrail.Color = ColorSequence.new(Color3.new(0,1,1))
  628. end
  629. elseif HP.Health > 60 then
  630. Torso.BrickColor = BrickColor.new("Lime green")
  631. if ShipTrail then
  632. ShipTrail.Color = ColorSequence.new(Color3.new(0,1,0))
  633. end
  634. elseif HP.Health > 40 then
  635. Torso.BrickColor = BrickColor.new("New Yeller")
  636. if ShipTrail then
  637. ShipTrail.Color = ColorSequence.new(Color3.new(1,1,0))
  638. end
  639. elseif HP.Health > 20 then
  640. Torso.BrickColor = BrickColor.new("Hot pink")
  641. if ShipTrail then
  642. ShipTrail.Color = ColorSequence.new(Color3.new(1,0,1))
  643. end
  644. else
  645. Torso.BrickColor = BrickColor.new("Really red")
  646. if ShipTrail then
  647. ShipTrail.Color = ColorSequence.new(Color3.new(1,0,0))
  648. end
  649. end
  650. end
  651. if owner and owner.Parent and owner.Neutral == false then
  652. local TeamColor = owner.TeamColor
  653. Torso.BrickColor = TeamColor
  654. end
  655. if Torso and PointLight then
  656. PointLight.Color = Torso.Color
  657. end
  658. if Torso and SpotLight then
  659. if HP.Health <= 40 then
  660. if SpotLight.Brightness == 5 then
  661. SpotLight.Brightness = 3.5
  662. elseif SpotLight.Brightness == 3.5 then
  663. SpotLight.Brightness = 1.5
  664. elseif SpotLight.Brightness == 1.5 then
  665. SpotLight.Brightness = 1
  666. elseif SpotLight.Brightness == 1 then
  667. SpotLight.Brightness = 2.5
  668. elseif SpotLight.Brightness == 2.5 then
  669. SpotLight.Brightness = 4.5
  670. elseif SpotLight.Brightness == 4.5 then
  671. SpotLight.Brightness = 5
  672. end
  673. else
  674. SpotLight.Brightness = 5
  675. end
  676. end
  677. wait(0.04)
  678. end
  679. end
  680. Ready()
  681. game:GetService("Debris"):AddItem(script)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement