Advertisement
HenloMyDude

jjkmine

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