Advertisement
HenloMyDude

itemspack

Aug 24th, 2019
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.39 KB | None | 0 0
  1. script.Name = "Blaster"
  2. wait(0.25)
  3. if owner == nil then script:Destroy() return end
  4. local SA = Instance.new("Sound",script)
  5. SA.SoundId = "rbxasset://sounds/bass.mp3"
  6. SA.Volume = 0.35
  7. local PartB = Instance.new("Part")
  8. local SB = Instance.new("Sound",PartB)
  9. SB.SoundId = "rbxasset://sounds/impact_explosion_03.mp3"
  10. SB.Volume = 1.4
  11. SB.PlayOnRemove = true
  12. local PartC = Instance.new("Part")
  13. local SC = Instance.new("Sound",PartC)
  14. SC.SoundId = "rbxasset://sounds/collide.wav"
  15. SC.Volume = 1.4
  16. SC.PlayOnRemove = true
  17. local PartD = Instance.new("Part")
  18. local SD = Instance.new("Sound",PartD)
  19. SD.SoundId = "rbxasset://sounds/Rocket shot.wav"
  20. SD.Volume = 1.4
  21. SD.PlayOnRemove = true
  22. PartB.Anchored = true
  23. PartC.Anchored = true
  24. PartD.Anchored = true
  25. function HitSound(pos)
  26. local random = math.random(1,3)
  27. if random == 1 then
  28. if SB and SB.Parent then
  29. SB.PlaybackSpeed = math.random(240,360) / 100
  30. end
  31. if PartB then
  32. PartB.Position = pos
  33. PartB.Parent = script
  34. PartB.Parent = nil
  35. end
  36. elseif random == 2 then
  37. if SC then
  38. SC.PlaybackSpeed = math.random(140,360) / 100
  39. end
  40. if PartC then
  41. PartC.Position = pos
  42. PartC.Parent = script
  43. PartC.Parent = nil
  44. end
  45. elseif random == 3 then
  46. if SD then
  47. SD.PlaybackSpeed = math.random(1600,2000) / 100
  48. end
  49. if PartD then
  50. PartD.Position = pos
  51. PartD.Parent = script
  52. PartD.Parent = nil
  53. end
  54. end
  55. end
  56. function Kaboom(pos)
  57. local random = math.random(1,3)
  58. if random == 1 then
  59. if SB and SB.Parent then
  60. SB.PlaybackSpeed = math.random(80,160) / 100
  61. end
  62. if PartB then
  63. PartB.Position = pos
  64. PartB.Parent = script
  65. PartB.Parent = nil
  66. end
  67. elseif random == 2 then
  68. if SC then
  69. SC.PlaybackSpeed = math.random(60,120) / 100
  70. end
  71. if PartC then
  72. PartC.Position = pos
  73. PartC.Parent = script
  74. PartC.Parent = nil
  75. end
  76. elseif random == 3 then
  77. if SD then
  78. SD.PlaybackSpeed = math.random(120,240) / 100
  79. end
  80. if PartD then
  81. PartD.Position = pos
  82. PartD.Parent = script
  83. PartD.Parent = nil
  84. end
  85. end
  86. end
  87. function BombsAway(T,V,S,o)
  88. local Collision = false
  89. local F = Instance.new("Fire",T)
  90. F.Size = 4
  91. F.Color = T.Color
  92. F.SecondaryColor = T.Color
  93. for e = 1,150 do
  94. if Collision == false then
  95. for i = 1,20 do
  96. if Collision == false then
  97. V = V - Vector3.new(0,game.Workspace.Gravity * 0.002,0)
  98. T.CFrame = T.CFrame + Vector3.new(V.X * 0.002,V.Y * 0.002,V.Z * 0.002)
  99. if e >= 5 then
  100. local T = T:GetTouchingParts()
  101. for i = 1,#T do
  102. if T[i].CanCollide then
  103. Collision = true
  104. end
  105. end
  106. end
  107. end
  108. end
  109. wait(0.04)
  110. end
  111. end
  112. if S and S.Parent then
  113. S:Stop()
  114. end
  115. if T and T.Parent then
  116. T.Material = Enum.Material.Neon
  117. T.Transparency = 0.95
  118. T.CanCollide = false
  119. if o and o.Parent and o.Neutral == false then
  120. T.BrickColor = o.TeamColor
  121. end
  122. end
  123. if F then
  124. if o and o.Parent and o.Neutral == false then
  125. F.Color = o.TeamColor.Color
  126. F.SecondaryColor = o.TeamColor.Color
  127. end
  128. end
  129. delay(0,function()
  130. if T then
  131. Kaboom(T.Position)
  132. end
  133. end)
  134. if T and T.Parent then
  135. local P = Instance.new("Part",script)
  136. P.Name = "Kaboom"
  137. P.Shape = Enum.PartType.Ball
  138. P.Size = Vector3.new(42,42,42)
  139. P.Transparency = 0.5
  140. P.Material = Enum.Material.Neon
  141. P.CFrame = T.CFrame
  142. P.Anchored = true
  143. P.BrickColor = T.BrickColor
  144. if o and o.Parent and o.Neutral == false then
  145. P.BrickColor = o.TeamColor
  146. end
  147. local Attachment = Instance.new("Attachment",P)
  148. local Particles = Instance.new("ParticleEmitter",Attachment)
  149. Particles.LightEmission = 1
  150. Particles.LightInfluence = 0.2
  151. Particles.Drag = 5
  152. Particles.Enabled = false
  153. Particles.Lifetime = NumberRange.new(0.5,1)
  154. Particles.Rate = 100
  155. Particles.Rotation = NumberRange.new(-360,360)
  156. Particles.SpreadAngle = Vector2.new(-360,360)
  157. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  158. Particles.Color = ColorSequence.new(T.Color)
  159. Particles.Texture = "rbxasset://textures/particles/smoke_main.dds"
  160. Particles.Speed = NumberRange.new(70,70)
  161. Particles.Size = NumberSequence.new(7,7)
  162. Particles:Emit(500)
  163. for i = 1,9 do
  164. local Part = Instance.new("Part",script)
  165. Part.Name = "Debris"
  166. Part.BrickColor = P.BrickColor
  167. Part.Material = Enum.Material.Neon
  168. Part.Locked = true
  169. Part.Size = Vector3.new(0.5,0.5,0.5)
  170. Part.CFrame = P.CFrame + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  171. Part.Velocity = Vector3.new(math.random(-24,24),math.random(-24,24),math.random(-24,24))
  172. local A0 = Instance.new("Attachment",Part)
  173. A0.Position = Vector3.new(-0.25,0,0)
  174. local A1 = Instance.new("Attachment",Part)
  175. A1.Position = Vector3.new(0.25,0,0)
  176. local Trail = Instance.new("Trail",script)
  177. Trail.Color = ColorSequence.new(P.Color)
  178. Trail.Transparency = NumberSequence.new(0,1)
  179. Trail.MinLength = 0.02
  180. Trail.Lifetime = 0.3
  181. Trail.FaceCamera = true
  182. Trail.Attachment0 = A0
  183. Trail.Attachment1 = A1
  184. game:GetService("Debris"):AddItem(Part,5)
  185. end
  186. local Explosion = Instance.new("Explosion")
  187. Explosion.Position = P.Position
  188. Explosion.BlastRadius = 21
  189. Explosion.BlastPressure = 1000000
  190. Explosion.Visible = false
  191. Explosion.Parent = game.Workspace
  192. local function Hit(part)
  193. if part and part.Parent:FindFirstChildWhichIsA("Humanoid") then
  194. part.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(2048)
  195. local creator = Instance.new("ObjectValue",part.Parent:FindFirstChildWhichIsA("Humanoid"))
  196. creator.Name = "creator"
  197. if o and o.Parent then
  198. creator.Value = o
  199. end
  200. game:GetService("Debris"):AddItem(creator,0.2)
  201. delay(0,function()
  202. HitSound(Explosion.Position)
  203. end)
  204. elseif part and part.Parent:FindFirstChild("FakeHumanoid") and part.Parent.FakeHumanoid:IsA("StringValue") and o and o.Parent then
  205. part.Parent.FakeHumanoid.Value = o.Name
  206. end
  207. end
  208. Explosion.Hit:Connect(Hit)
  209. for i = 1,10 do
  210. wait(0.12)
  211. if P and P.Parent then
  212. P.Transparency = P.Transparency + 0.05
  213. local Touch = P:GetTouchingParts()
  214. for i = 1,#Touch do
  215. if Touch[i] and Touch[i].Parent and Touch[i].Parent:FindFirstChildWhichIsA("Humanoid") then
  216. local Humanoid = Touch[i].Parent:FindFirstChildWhichIsA("Humanoid")
  217. if not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  218. Humanoid:TakeDamage(2048)
  219. local creator = Instance.new("ObjectValue",Humanoid)
  220. creator.Name = "creator"
  221. if o and o.Parent then
  222. creator.Value = o
  223. end
  224. game:GetService("Debris"):AddItem(creator,0.2)
  225. delay(0,function()
  226. HitSound(P.Position)
  227. end)
  228. end
  229. local Tag2 = Touch[i].Parent:FindFirstChild("FakeHumanoid")
  230. if Tag2 and o and o.Parent then
  231. Tag2.Value = o.Name
  232. end
  233. end
  234. end
  235. end
  236. end
  237. if P and P.Parent then
  238. P:Destroy()
  239. end
  240. end
  241. if T and T.Parent ~= nil then
  242. T.Name = "Effect"
  243. game:GetService("Debris"):AddItem(T,10)
  244. end
  245. end
  246. function NearNumber(a,b)
  247. if a + 0.375 >= b and a - 0.375 <= b then
  248. return true
  249. else
  250. return false
  251. end
  252. end
  253. function Shoot(C,bc,f,s,b,o)
  254. local P = Instance.new("Part",script)
  255. P.Name = "Laser"
  256. P.Anchored = true
  257. P.Locked = true
  258. P.Size = Vector3.new(1,1,10)
  259. P.Material = Enum.Material.Neon
  260. P.CFrame = C
  261. local At = Instance.new("Attachment",P)
  262. At.Position = Vector3.new(0,0,5)
  263. local A0 = Instance.new("Attachment",P)
  264. A0.Position = Vector3.new(-0.5,0,5)
  265. local A1 = Instance.new("Attachment",P)
  266. A1.Position = Vector3.new(0.5,0,5)
  267. local Trail = Instance.new("Trail",script)
  268. Trail.Color = ColorSequence.new(bc.Color)
  269. Trail.Transparency = NumberSequence.new(0,1)
  270. Trail.MinLength = 0.02
  271. Trail.Lifetime = 0.6
  272. Trail.FaceCamera = true
  273. Trail.Attachment0 = A0
  274. Trail.Attachment1 = A1
  275. if b then
  276. b.Color = ColorSequence.new(bc.Color)
  277. b.Attachment1 = At
  278. delay(0.12,function()
  279. if b then
  280. b.Attachment1 = nil
  281. end
  282. end)
  283. end
  284. delay(10,function()
  285. if Trail and Trail.Parent then
  286. Trail:Destroy()
  287. end
  288. end)
  289. if f == true and s == true then
  290. P.CFrame = P.CFrame * CFrame.new(0,0,0,-0.25,0,0,1)
  291. end
  292. P.BrickColor = bc
  293. P.Velocity = P.CFrame.lookVector * 80
  294. local Alternate = false
  295. local LaserHit = false
  296. local TouchConnection = P.Touched:Connect(function(hit)
  297. if hit == nil or (hit and hit.CanCollide) then
  298. LaserHit = true
  299. if hit and hit.Parent then
  300. local Humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  301. if Humanoid and not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  302. Humanoid:TakeDamage(35)
  303. if f == true then
  304. Humanoid:TakeDamage(2013)
  305. end
  306. local creator = Instance.new("ObjectValue",Humanoid)
  307. creator.Name = "creator"
  308. if o and o.Parent then
  309. creator.Value = o
  310. end
  311. game:GetService("Debris"):AddItem(creator,0.2)
  312. delay(0,function()
  313. HitSound(P.Position)
  314. end)
  315. end
  316. local Tag2 = hit.Parent:FindFirstChild("FakeHumanoid")
  317. if Tag2 and o and o.Parent then
  318. Tag2.Value = o.Name
  319. end
  320. end
  321. end
  322. end)
  323. for i = 1,32 do
  324. if P and P.Parent then
  325. if Alternate == true and f == true then
  326. P.BrickColor = BrickColor.new("Institutional white")
  327. else
  328. P.BrickColor = bc
  329. end
  330. Alternate = not Alternate
  331. for i = 1,40 do
  332. if LaserHit == false then
  333. P.CFrame = P.CFrame * CFrame.new(0,0,-2)
  334. local T = P:GetTouchingParts()
  335. for i = 1,#T do
  336. if T[i] and T[i].Parent then
  337. if T[i].CanCollide or T[i].Parent:FindFirstChildWhichIsA("Humanoid") then
  338. LaserHit = true
  339. local Humanoid = T[i].Parent:FindFirstChildWhichIsA("Humanoid")
  340. if Humanoid and not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  341. Humanoid:TakeDamage(35)
  342. if f == true then
  343. Humanoid:TakeDamage(2013)
  344. end
  345. local creator = Instance.new("ObjectValue",Humanoid)
  346. creator.Name = "creator"
  347. if o and o.Parent then
  348. creator.Value = o
  349. end
  350. game:GetService("Debris"):AddItem(creator,0.2)
  351. delay(0,function()
  352. HitSound(P.Position)
  353. end)
  354. end
  355. local Tag2 = T[i].Parent:FindFirstChild("FakeHumanoid")
  356. if Tag2 and o and o.Parent then
  357. Tag2.Value = o.Name
  358. end
  359. end
  360. end
  361. end
  362. end
  363. end
  364. wait(0.02)
  365. if LaserHit == true then
  366. break
  367. end
  368. end
  369. end
  370. TouchConnection:Disconnect()
  371. if P and P.Parent then
  372. P.CFrame = P.CFrame * CFrame.new(0,0,-5)
  373. P.Shape = Enum.PartType.Ball
  374. if f == true then
  375. P.BrickColor = bc
  376. P.Size = Vector3.new(42,42,42)
  377. local Attachment = Instance.new("Attachment",P)
  378. local Particles = Instance.new("ParticleEmitter",Attachment)
  379. Particles.LightEmission = 1
  380. Particles.LightInfluence = 0.2
  381. Particles.Drag = 5
  382. Particles.Enabled = false
  383. Particles.Lifetime = NumberRange.new(0.5,1)
  384. Particles.Rate = 100
  385. Particles.Rotation = NumberRange.new(-360,360)
  386. Particles.SpreadAngle = Vector2.new(-360,360)
  387. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  388. Particles.Color = ColorSequence.new(bc.Color)
  389. Particles.Texture = "rbxasset://textures/particles/smoke_main.dds"
  390. Particles.Speed = NumberRange.new(70,70)
  391. Particles.Size = NumberSequence.new(7,7)
  392. Particles:Emit(500)
  393. local Explosion = Instance.new("Explosion")
  394. Explosion.Position = P.Position
  395. Explosion.BlastRadius = 21
  396. Explosion.BlastPressure = 1000000
  397. Explosion.Visible = false
  398. Explosion.Parent = game.Workspace
  399. local function Hit(part)
  400. if part and part.Parent:FindFirstChildWhichIsA("Humanoid") then
  401. part.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(2048)
  402. local creator = Instance.new("ObjectValue",part.Parent:FindFirstChildWhichIsA("Humanoid"))
  403. creator.Name = "creator"
  404. if o and o.Parent then
  405. creator.Value = o
  406. end
  407. game:GetService("Debris"):AddItem(creator,0.2)
  408. elseif part and part.Parent:FindFirstChild("FakeHumanoid") and part.Parent.FakeHumanoid:IsA("StringValue") and o and o.Parent then
  409. part.Parent.FakeHumanoid.Value = o.Name
  410. end
  411. end
  412. Explosion.Hit:Connect(Hit)
  413. delay(0,function()
  414. Kaboom(P.Position)
  415. end)
  416. else
  417. P.Size = Vector3.new(4,4,4)
  418. end
  419. for i = 1,2 do
  420. local Part = Instance.new("Part",script)
  421. Part.Name = "Debris"
  422. Part.BrickColor = bc
  423. Part.Material = Enum.Material.Neon
  424. Part.Locked = true
  425. Part.Size = Vector3.new(0.5,0.5,0.5)
  426. Part.CFrame = P.CFrame + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  427. Part.Velocity = Vector3.new(math.random(-24,24),math.random(-24,24),math.random(-24,24))
  428. local A0 = Instance.new("Attachment",Part)
  429. A0.Position = Vector3.new(-0.25,0,0)
  430. local A1 = Instance.new("Attachment",Part)
  431. A1.Position = Vector3.new(0.25,0,0)
  432. local Trail = Instance.new("Trail",script)
  433. Trail.Color = ColorSequence.new(bc.Color)
  434. Trail.Transparency = NumberSequence.new(0,1)
  435. Trail.MinLength = 0.02
  436. Trail.Lifetime = 0.3
  437. Trail.FaceCamera = true
  438. Trail.Attachment0 = A0
  439. Trail.Attachment1 = A1
  440. game:GetService("Debris"):AddItem(Part,5)
  441. end
  442. if f == true then
  443. for i = 1,7 do
  444. local Part = Instance.new("Part",script)
  445. Part.Name = "Debris"
  446. Part.BrickColor = P.BrickColor
  447. Part.Material = Enum.Material.Neon
  448. Part.Locked = true
  449. Part.Size = Vector3.new(0.5,0.5,0.5)
  450. Part.CFrame = P.CFrame + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  451. Part.Velocity = Vector3.new(math.random(-24,24),math.random(-24,24),math.random(-24,24))
  452. local A0 = Instance.new("Attachment",Part)
  453. A0.Position = Vector3.new(-0.25,0,0)
  454. local A1 = Instance.new("Attachment",Part)
  455. A1.Position = Vector3.new(0.25,0,0)
  456. local Trail = Instance.new("Trail",script)
  457. Trail.Color = ColorSequence.new(bc.Color)
  458. Trail.Transparency = NumberSequence.new(0,1)
  459. Trail.MinLength = 0.02
  460. Trail.Lifetime = 0.3
  461. Trail.FaceCamera = true
  462. Trail.Attachment0 = A0
  463. Trail.Attachment1 = A1
  464. game:GetService("Debris"):AddItem(Part,5)
  465. end
  466. end
  467. local T = P:GetTouchingParts()
  468. for i = 1,#T do
  469. if T[i] and T[i].Parent and T[i].Parent:FindFirstChildWhichIsA("Humanoid") then
  470. local Humanoid = T[i].Parent:FindFirstChildWhichIsA("Humanoid")
  471. if not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  472. Humanoid:TakeDamage(35)
  473. if f == true then
  474. Humanoid:TakeDamage(2013)
  475. end
  476. local creator = Instance.new("ObjectValue",Humanoid)
  477. creator.Name = "creator"
  478. if o and o.Parent then
  479. creator.Value = o
  480. end
  481. game:GetService("Debris"):AddItem(creator,0.2)
  482. delay(0,function()
  483. HitSound(P.Position)
  484. end)
  485. end
  486. local Tag2 = T[i].Parent:FindFirstChild("FakeHumanoid")
  487. if Tag2 and o and o.Parent then
  488. Tag2.Value = o.Name
  489. end
  490. end
  491. end
  492. if f == true then
  493. P.Transparency = 0.5
  494. for i = 1,10 do
  495. if P and P.Parent then
  496. P.Transparency = P.Transparency + 0.05
  497. end
  498. wait(0.12)
  499. end
  500. if P and P.Parent then
  501. P:Destroy()
  502. end
  503. else
  504. wait(0.08)
  505. if P and P.Parent then
  506. P:Destroy()
  507. end
  508. end
  509. end
  510. end
  511. function Ready()
  512. local Tool = Instance.new("Tool",owner.Backpack)
  513. Tool.Name = "Blaster"
  514. Tool.TextureId = "rbxasset://textures/MouseLockedCursor.png"
  515. Tool.GripPos = Vector3.new(0,-0.5,1.25)
  516. local Torso = Instance.new("Part",Tool)
  517. Torso.Name = "Handle"
  518. Torso.Size = Vector3.new(1,1,3)
  519. Torso.BrickColor = BrickColor.new("Medium stone grey")
  520. Torso.Locked = true
  521. local PointLight = Instance.new("PointLight",Torso)
  522. PointLight.Range = 14
  523. PointLight.Shadows = true
  524. PointLight.Brightness = 5
  525. local SpotLight = Instance.new("SpotLight",Torso)
  526. SpotLight.Range = 60
  527. SpotLight.Shadows = true
  528. SpotLight.Brightness = 5
  529. local SoundA = Instance.new("Sound",Torso)
  530. SoundA.SoundId = "rbxasset://sounds/Launching rocket.wav"
  531. SoundA.Volume = 1.2
  532. local A = Instance.new("Attachment",Torso)
  533. A.Position = Vector3.new(0,0,-1.5)
  534. local BA0 = Instance.new("Attachment",Torso)
  535. BA0.Position = Vector3.new(-0.5,0,1.5)
  536. local BA1 = Instance.new("Attachment",Torso)
  537. BA1.Position = Vector3.new(0.5,0,1.5)
  538. local ShipTrail = Instance.new("Trail",script)
  539. ShipTrail.Color = ColorSequence.new(Torso.Color)
  540. ShipTrail.Transparency = NumberSequence.new(0,1)
  541. ShipTrail.MinLength = 0.02
  542. ShipTrail.Lifetime = 0.3
  543. ShipTrail.FaceCamera = true
  544. ShipTrail.Attachment0 = BA0
  545. ShipTrail.Attachment1 = BA1
  546. local Beam = Instance.new("Beam",script)
  547. Beam.Attachment0 = A
  548. Beam.FaceCamera = true
  549. Fire = 0
  550. local HP = owner.Character:FindFirstChildWhichIsA("Humanoid")
  551. local function Equipped()
  552. Fire = math.max(-72,Fire)
  553. for i = 1,3 do
  554. wait(0.04)
  555. end
  556. local toolanim = Instance.new("StringValue",Tool)
  557. toolanim.Name = "toolanim"
  558. toolanim.Value = "Lunge"
  559. end
  560. Tool.Equipped:Connect(Equipped)
  561. local function ValueChange()
  562. if Tool.Enabled == false then
  563. if Torso and Fire <= 0 then
  564. local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  565. local Character = Tool.Parent
  566. local Humanoid
  567. if Character then
  568. Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  569. end
  570. if Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  571. local ExplodingShot = (Fire <= -75)
  572. if SoundA then
  573. SoundA.PlaybackSpeed = 3.6
  574. SoundA:Play()
  575. end
  576. local BombLaunch = (Humanoid.MoveDirection.X == 0 and Humanoid.MoveDirection.Z == 0)
  577. delay(0,function()
  578. Shoot(((Torso.CFrame + Torso.Velocity * 0.002) * CFrame.new(0,0,-6)),Torso.BrickColor,ExplodingShot,false,Beam,Player)
  579. end)
  580. delay(0,function()
  581. if ExplodingShot == true and BombLaunch == true then
  582. local Part = Instance.new("Part",script)
  583. Part.Name = "Bomb"
  584. Part.Anchored = true
  585. Part.Locked = true
  586. Part.Material = Enum.Material.Metal
  587. Part.BrickColor = Torso.BrickColor
  588. Part.Size = Vector3.new(1,2,1)
  589. Part.CFrame = Torso.CFrame * CFrame.new(0,4,-2)
  590. local SoundC = Instance.new("Sound",Part)
  591. SoundC.SoundId = "rbxassetid://280101905"
  592. SoundC.Volume = 0.4
  593. SoundC.Looped = true
  594. SoundC:Play()
  595. BombsAway(Part,Torso.Velocity + Vector3.new(0,180,0),SoundC,Player)
  596. end
  597. end)
  598. Fire = 3
  599. end
  600. end
  601. end
  602. end
  603. Tool:GetPropertyChangedSignal("Enabled"):Connect(ValueChange)
  604. local function Activated()
  605. Tool.Enabled = false
  606. local toolanim = Instance.new("StringValue",Tool)
  607. toolanim.Name = "toolanim"
  608. toolanim.Value = "Lunge"
  609. end
  610. Tool.Activated:Connect(Activated)
  611. coroutine.resume(coroutine.create(function()
  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. end))
  682. game:GetService("Debris"):AddItem(script)
  683.  
  684. script.Name = "Medic"
  685. wait(0.25)
  686. if owner == nil then script:Destroy() return end
  687. function Hit(hit,p,d,s)
  688. if hit and hit.Parent then
  689. local Humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  690. if Humanoid then
  691. if p then
  692. p:Emit(16)
  693. end
  694. Humanoid.Health = Humanoid.Health + 3
  695. if s then
  696. Humanoid.Health = Humanoid.Health + 24
  697. if d then
  698. d.PlaybackSpeed = 1.2
  699. d:Play()
  700. end
  701. end
  702.  
  703. end
  704. end
  705. end
  706. function Ready()
  707. local Tool = Instance.new("Tool",owner.Backpack)
  708. Tool.Name = "Medic"
  709. Tool.TextureId = "rbxasset://textures/DevConsole/Maximize.png"
  710. Tool.GripPos = Vector3.new(0.4,0,1)
  711. local Torso = Instance.new("Part",Tool)
  712. Torso.Name = "Handle"
  713. Torso.Size = Vector3.new(1,2,3)
  714. Torso.BrickColor = BrickColor.new("Medium stone grey")
  715. Torso.Material = Enum.Material.Wood
  716. Torso.Locked = true
  717. local SoundA = Instance.new("Sound",Torso)
  718. SoundA.SoundId = "rbxasset://sounds/swordslash.wav"
  719. SoundA.Volume = 1.2
  720. local SoundB = Instance.new("Sound",Torso)
  721. SoundB.SoundId = "rbxasset://sounds/swordlunge.wav"
  722. SoundB.Volume = 1.2
  723. local SoundC = Instance.new("Sound",Torso)
  724. SoundC.SoundId = "rbxasset://sounds/flashbulb.wav"
  725. SoundC.Volume = 1.2
  726. local SoundD = Instance.new("Sound",Torso)
  727. SoundD.SoundId = "rbxasset://sounds/hit.wav"
  728. SoundD.Volume = 1.2
  729. local A = Instance.new("Attachment",Torso)
  730. local Particles = Instance.new("ParticleEmitter",A)
  731. Particles.LightEmission = 1
  732. Particles.LightInfluence = 0.2
  733. Particles.Drag = 16
  734. Particles.Enabled = false
  735. Particles.Lifetime = NumberRange.new(0.8,1.4)
  736. Particles.Rate = 100
  737. Particles.EmissionDirection = Enum.NormalId.Top
  738. Particles.SpreadAngle = Vector2.new(-360,360)
  739. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  740. Particles.Texture = "rbxasset://textures/DevConsole/Maximize.png"
  741. Particles.Acceleration = Vector3.new(0,40,0)
  742. Particles.Speed = NumberRange.new(40,40)
  743. Particles.Size = NumberSequence.new(0.7,0.7)
  744. local BA0 = Instance.new("Attachment",Torso)
  745. BA0.Position = Vector3.new(-0.5,0,0.5)
  746. local BA1 = Instance.new("Attachment",Torso)
  747. BA1.Position = Vector3.new(0.5,0,0.5)
  748. local ShipTrail = Instance.new("Trail",script)
  749. ShipTrail.Color = ColorSequence.new(Torso.Color)
  750. ShipTrail.Transparency = NumberSequence.new(0,1)
  751. ShipTrail.MinLength = 0.02
  752. ShipTrail.Lifetime = 0.3
  753. ShipTrail.FaceCamera = true
  754. ShipTrail.Attachment0 = BA0
  755. ShipTrail.Attachment1 = BA1
  756. local Beam = Instance.new("Beam",script)
  757. Beam.Attachment0 = A
  758. Beam.FaceCamera = true
  759. Fire = 0
  760. local CurrentHumanoid
  761. local LastSuper = false
  762. local function Equipped()
  763. Fire = math.max(-55,math.min(0,Fire))
  764. Tool.Enabled = true
  765. local Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  766. if Humanoid then
  767. CurrentHumanoid = Humanoid
  768. end
  769. end
  770. local function Unequipped()
  771. if CurrentHumanoid then
  772. CurrentHumanoid = nil
  773. end
  774. end
  775. Tool.Equipped:Connect(Equipped)
  776. Tool.Unequipped:Connect(Unequipped)
  777. local function Touched(hit)
  778. local Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  779. if Humanoid and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead and Fire > 0 then
  780. Hit(hit,Particles,SoundD,LastSuper)
  781. if Particles then
  782. Particles.Color = ColorSequence.new(Torso.Color)
  783. end
  784. if SoundC then
  785. SoundC.PlaybackSpeed = 1.6
  786. SoundC:Play()
  787. end
  788. end
  789. end
  790. Torso.Touched:Connect(Touched)
  791. local function ValueChange()
  792. if Tool.Enabled == false then
  793. if Torso and Fire <= -24 then
  794. local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  795. local Character = Tool.Parent
  796. local Humanoid
  797. if Character then
  798. Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  799. end
  800. if Humanoid and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  801. local Super = (Fire <= -75)
  802. LastSuper = false
  803. if Super == true then
  804. LastSuper = true
  805. end
  806. if Super then
  807. local toolanim = Instance.new("StringValue",Tool)
  808. toolanim.Name = "toolanim"
  809. toolanim.Value = "Lunge"
  810. else
  811. local toolanim = Instance.new("StringValue",Tool)
  812. toolanim.Name = "toolanim"
  813. toolanim.Value = "Slash"
  814. end
  815. if Super == true then
  816. SoundB.PlaybackSpeed = 1.75
  817. SoundB:Play()
  818. end
  819. if SoundA then
  820. SoundA.PlaybackSpeed = 1.4
  821. SoundA:Play()
  822. end
  823. Fire = 12
  824. if Super == true then
  825. Fire = 16
  826. end
  827. end
  828. end
  829. end
  830. end
  831. Tool:GetPropertyChangedSignal("Enabled"):Connect(ValueChange)
  832. local function Activated()
  833. Tool.Enabled = false
  834. end
  835. Tool.Activated:Connect(Activated)
  836. coroutine.resume(coroutine.create(function()
  837. while Tool and Tool:FindFirstAncestorWhichIsA("DataModel") do
  838. Fire = Fire - 1
  839. if Fire == 0 then
  840. if CurrentHumanoid then
  841. if LastSuper then
  842. CurrentHumanoid.Health = CurrentHumanoid.Health + 480
  843. SoundD.PlaybackSpeed = 1.2
  844. SoundD:Play()
  845. else
  846. CurrentHumanoid.Health = CurrentHumanoid.Health + 12
  847. end
  848. end
  849. end
  850. if Fire == -24 then
  851. Tool.Enabled = true
  852. end
  853. if Torso and Fire <= -75 then
  854. Torso.Material = Enum.Material.Neon
  855. elseif Torso then
  856. Torso.Material = Enum.Material.Wood
  857. end
  858. if Torso then
  859. if Fire < 0 and Fire > -24 then
  860. Torso.BrickColor = BrickColor.new("Hot pink")
  861. if ShipTrail then
  862. ShipTrail.Color = ColorSequence.new(Color3.new(1,0,1))
  863. end
  864. else
  865. Torso.BrickColor = BrickColor.new("Lime green")
  866. if ShipTrail then
  867. ShipTrail.Color = ColorSequence.new(Color3.new(0,1,0))
  868. end
  869. end
  870. end
  871. if owner and owner.Parent and owner.Neutral == false then
  872. local TeamColor = owner.TeamColor
  873. Torso.BrickColor = TeamColor
  874. end
  875. wait(0.04)
  876. end
  877. end
  878. Ready()
  879. end))
  880. game:GetService("Debris"):AddItem(script)
  881.  
  882. script.Name = "Mine"
  883. wait(0.25)
  884. if owner == nil then script:Destroy() return end
  885. local PartB = Instance.new("Part")
  886. local SB = Instance.new("Sound",PartB)
  887. SB.SoundId = "rbxasset://sounds/impact_explosion_03.mp3"
  888. SB.Volume = 1.4
  889. SB.PlayOnRemove = true
  890. local PartC = Instance.new("Part")
  891. local SC = Instance.new("Sound",PartC)
  892. SC.SoundId = "rbxasset://sounds/collide.wav"
  893. SC.Volume = 1.4
  894. SC.PlayOnRemove = true
  895. local PartD = Instance.new("Part")
  896. local SD = Instance.new("Sound",PartD)
  897. SD.SoundId = "rbxasset://sounds/Rocket shot.wav"
  898. SD.Volume = 1.4
  899. SD.PlayOnRemove = true
  900. PartB.Anchored = true
  901. PartC.Anchored = true
  902. PartD.Anchored = true
  903. function HitSound(pos)
  904. local random = math.random(1,3)
  905. if random == 1 then
  906. if SB and SB.Parent then
  907. SB.PlaybackSpeed = math.random(240,360) / 100
  908. end
  909. if PartB then
  910. PartB.Position = pos
  911. PartB.Parent = script
  912. PartB.Parent = nil
  913. end
  914. elseif random == 2 then
  915. if SC then
  916. SC.PlaybackSpeed = math.random(140,360) / 100
  917. end
  918. if PartC then
  919. PartC.Position = pos
  920. PartC.Parent = script
  921. PartC.Parent = nil
  922. end
  923. elseif random == 3 then
  924. if SD then
  925. SD.PlaybackSpeed = math.random(1600,2000) / 100
  926. end
  927. if PartD then
  928. PartD.Position = pos
  929. PartD.Parent = script
  930. PartD.Parent = nil
  931. end
  932. end
  933. end
  934. function Kaboom(pos)
  935. local random = math.random(1,3)
  936. if random == 1 then
  937. if SB and SB.Parent then
  938. SB.PlaybackSpeed = math.random(80,160) / 100
  939. end
  940. if PartB then
  941. PartB.Position = pos
  942. PartB.Parent = script
  943. PartB.Parent = nil
  944. end
  945. elseif random == 2 then
  946. if SC then
  947. SC.PlaybackSpeed = math.random(60,120) / 100
  948. end
  949. if PartC then
  950. PartC.Position = pos
  951. PartC.Parent = script
  952. PartC.Parent = nil
  953. end
  954. elseif random == 3 then
  955. if SD then
  956. SD.PlaybackSpeed = math.random(120,240) / 100
  957. end
  958. if PartD then
  959. PartD.Position = pos
  960. PartD.Parent = script
  961. PartD.Parent = nil
  962. end
  963. end
  964. end
  965. function BombsAway(T,t,S,o)
  966. local Collision = false
  967. local Yikes = false
  968. local LastPos = T.Position
  969. local F = Instance.new("Fire",T)
  970. F.Size = 4
  971. F.Color = T.Color
  972. F.SecondaryColor = T.Color
  973. F.Enabled = false
  974. if T and T.Parent then
  975. local P = Instance.new("Part")
  976. P.Name = "Kaboom"
  977. P.Shape = Enum.PartType.Ball
  978. P.Size = Vector3.new(42,42,42)
  979. P.Transparency = 0.5
  980. P.Material = Enum.Material.Neon
  981. P.Anchored = true
  982. P.BrickColor = T.BrickColor
  983. if o and o.Parent and o.Neutral == false then
  984. P.BrickColor = o.TeamColor
  985. end
  986. local Attachment = Instance.new("Attachment",P)
  987. local Particles = Instance.new("ParticleEmitter",Attachment)
  988. Particles.LightEmission = 1
  989. Particles.LightInfluence = 0.2
  990. Particles.Drag = 5
  991. Particles.Enabled = false
  992. Particles.Lifetime = NumberRange.new(0.5,1)
  993. Particles.Rate = 100
  994. Particles.Rotation = NumberRange.new(-360,360)
  995. Particles.SpreadAngle = Vector2.new(-360,360)
  996. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  997. Particles.Color = ColorSequence.new(T.Color)
  998. Particles.Texture = "rbxasset://textures/particles/smoke_main.dds"
  999. Particles.Speed = NumberRange.new(70,70)
  1000. Particles.Size = NumberSequence.new(7,7)
  1001. local Explosion = Instance.new("Explosion")
  1002. Explosion.BlastRadius = 21
  1003. Explosion.BlastPressure = 1000000
  1004. Explosion.Visible = false
  1005. local function Hit(part)
  1006. if part and part.Parent:FindFirstChildWhichIsA("Humanoid") then
  1007. part.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(2048)
  1008. local creator = Instance.new("ObjectValue",part.Parent:FindFirstChildWhichIsA("Humanoid"))
  1009. creator.Name = "creator"
  1010. if o and o.Parent then
  1011. creator.Value = o
  1012. end
  1013. game:GetService("Debris"):AddItem(creator,0.2)
  1014. delay(0,function()
  1015. HitSound(Explosion.Position)
  1016. end)
  1017. elseif part and part.Parent:FindFirstChild("FakeHumanoid") and part.Parent.FakeHumanoid:IsA("StringValue") and o and o.Parent then
  1018. part.Parent.FakeHumanoid.Value = o.Name
  1019. end
  1020. end
  1021. Explosion.Hit:Connect(Hit)
  1022. wait(2)
  1023. if T and T.Parent then
  1024. T.Transparency = 0.93
  1025. if t and t.Parent then
  1026. t.Transparency = 1
  1027. end
  1028. end
  1029. local function Touched(hit)
  1030. if hit == nil or hit.Parent == nil then
  1031. Collision = true
  1032. elseif hit and hit.Parent and (hit.CanCollide == true or hit.Parent:FindFirstChildWhichIsA("Humanoid")) then
  1033. Collision = true
  1034. if game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) == o then
  1035. Yikes = true
  1036. end
  1037. end
  1038. end
  1039. if T then
  1040. T.Touched:Connect(Touched)
  1041. end
  1042. local function DescendantAdded(item)
  1043. if item:IsA("Explosion") then
  1044. local function Hit(part)
  1045. if part == T then
  1046. Collision = true
  1047. end
  1048. end
  1049. item.Hit:Connect(Hit)
  1050. end
  1051. end
  1052. game.Workspace.DescendantAdded:Connect(DescendantAdded)
  1053. for i = 1,720 do
  1054. if Collision or T == nil or T.Parent == nil then
  1055. break
  1056. else
  1057. LastPos = T.Position
  1058. local T = T:GetTouchingParts()
  1059. for i = 1,#T do
  1060. if T[i].CanCollide or T[i].Parent:FindFirstChildWhichIsA("Humanoid") then
  1061. Collision = true
  1062. if game:GetService("Players"):GetPlayerFromCharacter(T[i].Parent) == o then
  1063. Yikes = true
  1064. end
  1065. end
  1066. end
  1067. if i == 720 then
  1068. Yikes = true
  1069. end
  1070. end
  1071. wait(0.25)
  1072. end
  1073. if T and T.Parent then
  1074. T.Transparency = 0
  1075. if t and t.Parent then
  1076. t.Transparency = 0
  1077. end
  1078. if o and o.Parent and o.Neutral == false then
  1079. T.BrickColor = o.TeamColor
  1080. end
  1081. if Yikes then
  1082. if S then
  1083. S:Play()
  1084. end
  1085. for i = 1,13 do
  1086. if T then
  1087. T.Material = Enum.Material.Neon
  1088. end
  1089. wait(0.1)
  1090. if T then
  1091. T.Material = Enum.Material.Metal
  1092. end
  1093. wait(0.1)
  1094. end
  1095. end
  1096. if T then
  1097. LastPos = T.Position
  1098. T.Material = Enum.Material.Neon
  1099. end
  1100. end
  1101. if F then
  1102. F.Enabled = true
  1103. if o and o.Parent and o.Neutral == false then
  1104. F.Color = o.TeamColor.Color
  1105. F.SecondaryColor = o.TeamColor.Color
  1106. end
  1107. end
  1108. P.Position = LastPos
  1109. P.Parent = script
  1110. Explosion.Position = LastPos
  1111. Explosion.Parent = game.Workspace
  1112. Particles:Emit(500)
  1113. delay(0,function()
  1114. if T then
  1115. Kaboom(T.Position)
  1116. end
  1117. end)
  1118. if S and S.Parent then
  1119. S:Stop()
  1120. end
  1121. for i = 1,10 do
  1122. wait(0.12)
  1123. if P and P.Parent then
  1124. P.Transparency = P.Transparency + 0.05
  1125. local Touch = P:GetTouchingParts()
  1126. for i = 1,#Touch do
  1127. if Touch[i] and Touch[i].Parent and Touch[i].Parent:FindFirstChildWhichIsA("Humanoid") then
  1128. local Humanoid = Touch[i].Parent:FindFirstChildWhichIsA("Humanoid")
  1129. if not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
  1130. Humanoid:TakeDamage(2048)
  1131. local creator = Instance.new("ObjectValue",Humanoid)
  1132. creator.Name = "creator"
  1133. if o and o.Parent then
  1134. creator.Value = o
  1135. end
  1136. game:GetService("Debris"):AddItem(creator,0.2)
  1137. delay(0,function()
  1138. HitSound(P.Position)
  1139. end)
  1140. end
  1141. local Tag2 = Touch[i].Parent:FindFirstChild("FakeHumanoid")
  1142. if Tag2 and o and o.Parent then
  1143. Tag2.Value = o.Name
  1144. end
  1145. end
  1146. end
  1147. end
  1148. end
  1149. if P and P.Parent then
  1150. P:Destroy()
  1151. end
  1152. end
  1153. if T and T.Parent ~= nil then
  1154. T.Name = "Effect"
  1155. game:GetService("Debris"):AddItem(T,10)
  1156. end
  1157. end
  1158. function NameMatch(a)
  1159. local name = string.lower(a.Name)
  1160. 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
  1161. return true
  1162. else
  1163. return false
  1164. end
  1165. end
  1166. function Hit(hit,p,o,d,s,t,a,B,I)
  1167. local OOF = math.random(1,10) == 1
  1168. if hit and hit.Parent then
  1169. local Humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  1170. if Humanoid then
  1171. if p then
  1172. p:Emit(100)
  1173. end
  1174. Humanoid:TakeDamage(16)
  1175. local creator = Instance.new("ObjectValue",Humanoid)
  1176. creator.Name = "creator"
  1177. if o and o.Parent then
  1178. creator.Value = o
  1179. end
  1180. game:GetService("Debris"):AddItem(creator,0.2)
  1181. if s then
  1182. Humanoid:TakeDamage(20)
  1183. if d then
  1184. d.PlaybackSpeed = 1.14
  1185. d:Play()
  1186. end
  1187. if OOF then
  1188. Humanoid:TakeDamage(1164)
  1189. end
  1190. end
  1191. if a then
  1192. a.PlaybackSpeed = 1
  1193. a:Play()
  1194. end
  1195. elseif Humanoid == nil and (hit:GetMass() < 120 or (s and hit:GetMass() < 2400)) then
  1196. if p then
  1197. p:Emit(100)
  1198. end
  1199. hit:BreakJoints()
  1200. if a then
  1201. a.PlaybackSpeed = 1
  1202. a:Play()
  1203. end
  1204. end
  1205. local Tag2 = hit.Parent:FindFirstChild("FakeHumanoid")
  1206. if Tag2 and o and o.Parent then
  1207. Tag2.Value = o.Name
  1208. end
  1209. if s == true then
  1210. if p then
  1211. p:Emit(100)
  1212. end
  1213. if OOF then
  1214. B.StudsOffsetWorldSpace = t.Position
  1215. I.ImageColor3 = t.Color
  1216. I.ImageTransparency = 0
  1217. hit:BreakJoints()
  1218. p:Emit(320)
  1219. HitSound(hit.Position)
  1220. if hit.Anchored == false and hit.Size.Magnitude < 20 then
  1221. hit.Transparency = 0.5
  1222. local Parent = hit.Parent
  1223. if Parent:IsA("Tool") or Parent:IsA("Accoutrement") then
  1224. local FoundOtherPart = false
  1225. local D = Parent:GetDescendants()
  1226. for i = 1,#D do
  1227. if D[i]:IsA("BasePart") and D[i] ~= hit then
  1228. FoundOtherPart = true
  1229. end
  1230. end
  1231. if FoundOtherPart == false then
  1232. game:GetService("Debris"):AddItem(Parent,0.5)
  1233. end
  1234. end
  1235. game:GetService("Debris"):AddItem(hit,0.5)
  1236. end
  1237. end
  1238. end
  1239. end
  1240. end
  1241. function Ready()
  1242. local Tool = Instance.new("Tool",owner.Backpack)
  1243. Tool.Name = "Sword"
  1244. Tool.TextureId = "rbxasset://textures/DevConsole/Close.png"
  1245. Tool.GripPos = Vector3.new(0,-2,0.25)
  1246. Tool.GripForward = Vector3.new(0,0.5,-0.85)
  1247. local Torso = Instance.new("Part",Tool)
  1248. Torso.Name = "Handle"
  1249. Torso.Size = Vector3.new(0.2,4,1)
  1250. Torso.BrickColor = BrickColor.new("Medium stone grey")
  1251. Torso.Material = Enum.Material.Metal
  1252. Torso.Locked = true
  1253. Torso.CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.Metal)
  1254. local PointLight = Instance.new("PointLight",Torso)
  1255. PointLight.Range = 21
  1256. PointLight.Shadows = true
  1257. PointLight.Brightness = 5
  1258. local SoundA = Instance.new("Sound",Torso)
  1259. SoundA.SoundId = "rbxasset://sounds/swordslash.wav"
  1260. SoundA.Volume = 1.2
  1261. local SoundB = Instance.new("Sound",Torso)
  1262. SoundB.SoundId = "rbxasset://sounds/swordlunge.wav"
  1263. SoundB.Volume = 1.2
  1264. local SoundC = Instance.new("Sound",Torso)
  1265. SoundC.SoundId = "rbxasset://sounds/flashbulb.wav"
  1266. SoundC.Volume = 1.2
  1267. local SoundD = Instance.new("Sound",Torso)
  1268. SoundD.SoundId = "rbxasset://sounds/uuhhh.mp3"
  1269. SoundD.Volume = 1.2
  1270. local SoundE = Instance.new("Sound",Torso)
  1271. SoundE.SoundId = "rbxasset://sounds/kerplunk.wav"
  1272. SoundE.Volume = 1.2
  1273. local SoundF = Instance.new("Sound",Torso)
  1274. SoundF.SoundId = "rbxasset://sounds/bass.mp3"
  1275. SoundF.Volume = 1.2
  1276. local A = Instance.new("Attachment",Torso)
  1277. local Particles = Instance.new("ParticleEmitter",A)
  1278. Particles.LightEmission = 1
  1279. Particles.LightInfluence = 0.2
  1280. Particles.Drag = 16
  1281. Particles.Enabled = false
  1282. Particles.Lifetime = NumberRange.new(0.1,0.4)
  1283. Particles.Rate = 100
  1284. Particles.Rotation = NumberRange.new(-360,360)
  1285. Particles.SpreadAngle = Vector2.new(-360,360)
  1286. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  1287. Particles.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  1288. Particles.Speed = NumberRange.new(70,70)
  1289. Particles.Size = NumberSequence.new(0.7,0.7)
  1290. local BA0 = Instance.new("Attachment",Torso)
  1291. BA0.Position = Vector3.new(0,2,0.5)
  1292. local BA1 = Instance.new("Attachment",Torso)
  1293. BA1.Position = Vector3.new(0,-2,0.5)
  1294. local ShipTrail = Instance.new("Trail",script)
  1295. ShipTrail.Color = ColorSequence.new(Torso.Color)
  1296. ShipTrail.Transparency = NumberSequence.new(0,1)
  1297. ShipTrail.MinLength = 0.02
  1298. ShipTrail.Lifetime = 0.3
  1299. ShipTrail.Attachment0 = BA0
  1300. ShipTrail.Attachment1 = BA1
  1301. local Beam = Instance.new("Beam",script)
  1302. Beam.Attachment0 = A
  1303. local Bill = Instance.new("BillboardGui",script)
  1304. Bill.Size = UDim2.new(16,0,16,0)
  1305. local Image = Instance.new("ImageLabel",Bill)
  1306. Image.Image = "rbxasset://textures/sparkle.png"
  1307. Image.Size = UDim2.new(1,0,1,0)
  1308. Image.Position = UDim2.new(0.5,0,0.5,0)
  1309. Image.AnchorPoint = Vector2.new(0.5,0.5)
  1310. Image.ImageTransparency = 1
  1311. Image.BackgroundTransparency = 1
  1312. local Alternate = 0
  1313. local Fire = 0
  1314. local Detect = 6
  1315. local HP = owner.Character:FindFirstChildWhichIsA("Humanoid")
  1316. local LastDist = math.huge
  1317. local LastSuper = false
  1318. local LastLaunch = false
  1319. local Stood = false
  1320. local function Equipped()
  1321. Fire = math.max(-20,math.min(0,Fire))
  1322. Tool.Enabled = true
  1323. end
  1324. Tool.Equipped:Connect(Equipped)
  1325. local function Touched(hit)
  1326. local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  1327. local Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  1328. if Humanoid and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead and Fire > 0 then
  1329. Hit(hit,Particles,Player,SoundD,LastSuper,Torso,SoundE,Bill,Image)
  1330. if SoundC then
  1331. SoundC.PlaybackSpeed = 1.6
  1332. SoundC:Play()
  1333. end
  1334. if Particles then
  1335. Particles.Color = ColorSequence.new(Torso.Color)
  1336. Particles:Emit(16)
  1337. end
  1338. end
  1339. end
  1340. Torso.Touched:Connect(Touched)
  1341. local function ValueChange()
  1342. if Tool.Enabled == false then
  1343. if Torso and Fire <= 0 then
  1344. local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  1345. local Character = Tool.Parent
  1346. local Humanoid
  1347. if Character then
  1348. Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  1349. end
  1350. if Humanoid and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  1351. Tool.GripForward = Vector3.new(0,0.99,0.01)
  1352. local Super = (Fire <= -30)
  1353. local LaunchDirection = Vector3.new(0,0,0)
  1354. local Launch = false
  1355. if Humanoid.MoveDirection.X ~= 0 or Humanoid.MoveDirection.Z ~= 0 then
  1356. LaunchDirection = Torso.CFrame.UpVector
  1357. Launch = true
  1358. end
  1359. if Humanoid:GetState() ~= Enum.HumanoidStateType.Running and Humanoid:GetState() ~= Enum.HumanoidStateType.RunningNoPhysics then
  1360. LaunchDirection = LaunchDirection + Vector3.new(0,2,0)
  1361. if Launch == true then
  1362. LaunchDirection = LaunchDirection + Vector3.new(0,-1,0)
  1363. end
  1364. Launch = true
  1365. end
  1366. LastSuper = false
  1367. LastLaunch = false
  1368. if Super == true then
  1369. LastSuper = true
  1370. end
  1371. if Launch == true then
  1372. LastLaunch = true
  1373. else
  1374. Tool.GripForward = Vector3.new(0,0.5,-0.85)
  1375. end
  1376. if Super and Launch then
  1377. local toolanim = Instance.new("StringValue",Tool)
  1378. toolanim.Name = "toolanim"
  1379. toolanim.Value = "Lunge"
  1380. else
  1381. local toolanim = Instance.new("StringValue",Tool)
  1382. toolanim.Name = "toolanim"
  1383. toolanim.Value = "Slash"
  1384. end
  1385. if Super and Humanoid.MoveDirection.X == 0 and Humanoid.MoveDirection.Z == 0 then
  1386. Stood = true
  1387. else
  1388. Stood = false
  1389. end
  1390. if Super == true and Launch == true then
  1391. SoundB.PlaybackSpeed = 1.15
  1392. SoundB:Play()
  1393. if Humanoid.SeatPart == nil then
  1394. Humanoid.PlatformStand = false
  1395. Humanoid.Sit = false
  1396. Humanoid.Jump = true
  1397. elseif LaunchDirection.Y > 0 then
  1398. LaunchDirection = Vector3.new(LaunchDirection.X,LaunchDirection.Y * 0.2,LaunchDirection.Z)
  1399. end
  1400. local BodyVelocity = Instance.new("BodyVelocity",Torso)
  1401. BodyVelocity.MaxForce = Vector3.new(1000000,100000,1000000)
  1402. BodyVelocity.Velocity = LaunchDirection * 60
  1403. game:GetService("Debris"):AddItem(BodyVelocity,0.6)
  1404. end
  1405. if SoundA then
  1406. SoundA.PlaybackSpeed = 1.4
  1407. SoundA:Play()
  1408. end
  1409. Fire = 12
  1410. if Super == true then
  1411. Fire = 16
  1412. end
  1413. end
  1414. end
  1415. end
  1416. end
  1417. Tool:GetPropertyChangedSignal("Enabled"):Connect(ValueChange)
  1418. local function Activated()
  1419. Tool.Enabled = false
  1420. end
  1421. Tool.Activated:Connect(Activated)
  1422. coroutine.resume(coroutine.create(function()
  1423. while Tool and Tool:FindFirstAncestorWhichIsA("DataModel") do
  1424. if Tool.Parent then
  1425. local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  1426. local Character = Tool.Parent
  1427. local Humanoid
  1428. if Character then
  1429. Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  1430. end
  1431. if Detect <= 0 then
  1432. LastDist = math.huge
  1433. end
  1434. if Tool:FindFirstAncestorWhichIsA("Workspace") and Detect <= 0 then
  1435. Detect = 6
  1436. local E = {}
  1437. local D = game.Workspace:GetDescendants()
  1438. for i = 1,#D do
  1439. 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
  1440. if NameMatch(D[i]) or D[i]:FindFirstChildWhichIsA("TouchTransmitter") then
  1441. table.insert(E,D[i])
  1442. end
  1443. end
  1444. end
  1445. local ClosestDist = math.huge
  1446. for i = 1,#E do
  1447. local Dist = (E[i].Position - Torso.Position).Magnitude
  1448. if Dist < 126 then
  1449. if Dist < ClosestDist then
  1450. ClosestDist = Dist
  1451. end
  1452. local SelectionBox = Instance.new("SelectionBox",script)
  1453. SelectionBox.LineThickness = 0.05
  1454. SelectionBox.Color3 = Torso.Color
  1455. SelectionBox.SurfaceColor3 = E[i].Color
  1456. SelectionBox.SurfaceTransparency = 0.5
  1457. SelectionBox.Adornee = E[i]
  1458. delay(0.12,function()
  1459. SelectionBox:Destroy()
  1460. end)
  1461. if Dist <= 31.5 then
  1462. delay(0.12,function()
  1463. local SelectionBox = Instance.new("SelectionBox",script)
  1464. SelectionBox.LineThickness = 0.05
  1465. SelectionBox.Color3 = Torso.Color
  1466. SelectionBox.SurfaceColor3 = E[i].Color
  1467. SelectionBox.SurfaceTransparency = 0.5
  1468. SelectionBox.Adornee = E[i]
  1469. delay(0.12,function()
  1470. SelectionBox:Destroy()
  1471. end)
  1472. end)
  1473. end
  1474. end
  1475. end
  1476. if SoundF then
  1477. SoundF.Volume = (126 - ClosestDist) / 150
  1478. if ClosestDist <= 126 then
  1479. SoundF.PlaybackSpeed = 1.6
  1480. SoundF.TimePosition = 0.2
  1481. SoundF:Play()
  1482. if ClosestDist <= 31.5 then
  1483. delay(0.12,function()
  1484. SoundF.PlaybackSpeed = 1.2
  1485. SoundF.TimePosition = 0.2
  1486. SoundF:Play()
  1487. end)
  1488. end
  1489. else
  1490. SoundF:Stop()
  1491. end
  1492. end
  1493. LastDist = ClosestDist
  1494. end
  1495. if LastSuper and Fire == 0 and Humanoid and Humanoid.MoveDirection.X == 0 and Humanoid.MoveDirection.Z == 0 and Stood then
  1496. local Part = Instance.new("Part",script)
  1497. Part.Name = "Bomb"
  1498. Part.Locked = true
  1499. Part.Material = Enum.Material.Metal
  1500. Part.BrickColor = Torso.BrickColor
  1501. Part.Size = Vector3.new(1.5,1,1.5)
  1502. Part.Position = Torso.Position
  1503. local Part2 = Part:Clone()
  1504. Part2.Name = "BombBase"
  1505. Part2.Size = Vector3.new(1.75,1,1.75)
  1506. Part2.Parent = Part
  1507. Part2.BrickColor = BrickColor.new("Dark stone grey")
  1508. local Weld = Instance.new("Weld",Part)
  1509. Weld.Part0 = Part
  1510. Weld.Part1 = Part2
  1511. Weld.C0 = CFrame.new(0,-1,0)
  1512. local SoundG = Instance.new("Sound",Part)
  1513. SoundG.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  1514. SoundG.Volume = 0.4
  1515. delay(0,function()
  1516. BombsAway(Part,Part2,SoundG,Player)
  1517. end)
  1518. end
  1519. if Fire > 0 then
  1520. if LastSuper and LastLaunch then
  1521. Tool.GripForward = Vector3.new(0,0.99,0.01)
  1522. else
  1523. Tool.GripForward = Vector3.new(0,0.5,-0.85)
  1524. end
  1525. else
  1526. Tool.GripForward = Vector3.new(0,0.5,-0.85)
  1527. end
  1528. Image.ImageTransparency = Image.ImageTransparency + 0.1
  1529. Fire = Fire - 1
  1530. Detect = Detect - 1
  1531. if Fire == 0 then
  1532. Tool.Enabled = true
  1533. end
  1534. if Torso and Fire <= -30 then
  1535. Torso.Material = Enum.Material.Neon
  1536. elseif Torso then
  1537. Torso.Material = Enum.Material.Metal
  1538. end
  1539. Tool.ToolTip = "D = "..math.ceil(LastDist)
  1540. if LastDist == math.huge then
  1541. Tool.ToolTip = "D = ???"
  1542. end
  1543. if Torso then
  1544. if LastDist > 126 then
  1545. Torso.BrickColor = BrickColor.new("Toothpaste")
  1546. if ShipTrail then
  1547. ShipTrail.Color = ColorSequence.new(Color3.new(0,1,1))
  1548. end
  1549. elseif LastDist > 94.5 then
  1550. Torso.BrickColor = BrickColor.new("Lime green")
  1551. if ShipTrail then
  1552. ShipTrail.Color = ColorSequence.new(Color3.new(0,1,0))
  1553. end
  1554. elseif LastDist > 63 then
  1555. Torso.BrickColor = BrickColor.new("New Yeller")
  1556. if ShipTrail then
  1557. ShipTrail.Color = ColorSequence.new(Color3.new(1,1,0))
  1558. end
  1559. elseif LastDist > 31.5 then
  1560. Torso.BrickColor = BrickColor.new("Hot pink")
  1561. if ShipTrail then
  1562. ShipTrail.Color = ColorSequence.new(Color3.new(1,0,1))
  1563. end
  1564. else
  1565. Torso.BrickColor = BrickColor.new("Really red")
  1566. if ShipTrail then
  1567. ShipTrail.Color = ColorSequence.new(Color3.new(1,0,0))
  1568. end
  1569. end
  1570. end
  1571. if owner and owner.Parent and owner.Neutral == false then
  1572. local TeamColor = owner.TeamColor
  1573. Torso.BrickColor = TeamColor
  1574. end
  1575. if Torso and PointLight then
  1576. Alternate = Alternate + 1
  1577. if Alternate > 8 then
  1578. Alternate = 0
  1579. end
  1580. if Alternate <= 3 then
  1581. PointLight.Color = Color3.new(1,1,1)
  1582. else
  1583. PointLight.Color = Torso.Color
  1584. end
  1585. if HP.Health <= 40 then
  1586. if PointLight.Brightness == 5 then
  1587. PointLight.Brightness = 3.5
  1588. elseif PointLight.Brightness == 3.5 then
  1589. PointLight.Brightness = 1.5
  1590. elseif PointLight.Brightness == 1.5 then
  1591. PointLight.Brightness = 1
  1592. elseif PointLight.Brightness == 1 then
  1593. PointLight.Brightness = 2.5
  1594. elseif PointLight.Brightness == 2.5 then
  1595. PointLight.Brightness = 4.5
  1596. elseif PointLight.Brightness == 4.5 then
  1597. PointLight.Brightness = 5
  1598. end
  1599. else
  1600. PointLight.Brightness = 5
  1601. end
  1602. end
  1603. end
  1604. wait(0.04)
  1605. end
  1606. end
  1607. Ready()
  1608. end))
  1609. game:GetService("Debris"):AddItem(script,600)
  1610.  
  1611. script.Name = "Shield"
  1612. wait(0.25)
  1613. if owner == nil then script:Destroy() return end
  1614. local PartB = Instance.new("Part")
  1615. local SB = Instance.new("Sound",PartB)
  1616. SB.SoundId = "rbxasset://sounds/impact_explosion_03.mp3"
  1617. SB.Volume = 1.4
  1618. SB.PlayOnRemove = true
  1619. local PartC = Instance.new("Part")
  1620. local SC = Instance.new("Sound",PartC)
  1621. SC.SoundId = "rbxasset://sounds/collide.wav"
  1622. SC.Volume = 1.4
  1623. SC.PlayOnRemove = true
  1624. local PartD = Instance.new("Part")
  1625. local SD = Instance.new("Sound",PartD)
  1626. SD.SoundId = "rbxasset://sounds/Rocket shot.wav"
  1627. SD.Volume = 1.4
  1628. SD.PlayOnRemove = true
  1629. PartB.Anchored = true
  1630. PartC.Anchored = true
  1631. PartD.Anchored = true
  1632. function HitSound(pos)
  1633. local random = math.random(1,3)
  1634. if random == 1 then
  1635. if SB and SB.Parent then
  1636. SB.PlaybackSpeed = math.random(240,360) / 100
  1637. end
  1638. if PartB then
  1639. PartB.Position = pos
  1640. PartB.Parent = script
  1641. PartB.Parent = nil
  1642. end
  1643. elseif random == 2 then
  1644. if SC then
  1645. SC.PlaybackSpeed = math.random(140,360) / 100
  1646. end
  1647. if PartC then
  1648. PartC.Position = pos
  1649. PartC.Parent = script
  1650. PartC.Parent = nil
  1651. end
  1652. elseif random == 3 then
  1653. if SD then
  1654. SD.PlaybackSpeed = math.random(1600,2000) / 100
  1655. end
  1656. if PartD then
  1657. PartD.Position = pos
  1658. PartD.Parent = script
  1659. PartD.Parent = nil
  1660. end
  1661. end
  1662. end
  1663. function Kaboom(pos)
  1664. local random = math.random(1,3)
  1665. if random == 1 then
  1666. if SB and SB.Parent then
  1667. SB.PlaybackSpeed = math.random(80,160) / 100
  1668. end
  1669. if PartB then
  1670. PartB.Position = pos
  1671. PartB.Parent = script
  1672. PartB.Parent = nil
  1673. end
  1674. elseif random == 2 then
  1675. if SC then
  1676. SC.PlaybackSpeed = math.random(60,120) / 100
  1677. end
  1678. if PartC then
  1679. PartC.Position = pos
  1680. PartC.Parent = script
  1681. PartC.Parent = nil
  1682. end
  1683. elseif random == 3 then
  1684. if SD then
  1685. SD.PlaybackSpeed = math.random(120,240) / 100
  1686. end
  1687. if PartD then
  1688. PartD.Position = pos
  1689. PartD.Parent = script
  1690. PartD.Parent = nil
  1691. end
  1692. end
  1693. end
  1694. function NearNumber(a,b)
  1695. if a + 0.375 >= b and a - 0.375 <= b then
  1696. return true
  1697. else
  1698. return false
  1699. end
  1700. end
  1701. function Hit(hit,p,o,d,s,t)
  1702. if hit and hit.Parent then
  1703. local Humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  1704. if Humanoid then
  1705. if p then
  1706. p:Emit(100)
  1707. end
  1708. Humanoid:TakeDamage(12)
  1709. local creator = Instance.new("ObjectValue",Humanoid)
  1710. creator.Name = "creator"
  1711. if o and o.Parent then
  1712. creator.Value = o
  1713. end
  1714. game:GetService("Debris"):AddItem(creator,0.2)
  1715. if s then
  1716. Humanoid:TakeDamage(588)
  1717. if d then
  1718. d.PlaybackSpeed = 1.175
  1719. d:Play()
  1720. end
  1721. end
  1722. delay(0,function()
  1723. HitSound(hit.Position)
  1724. end)
  1725. elseif Humanoid == nil and (hit:GetMass() < 120 or (s and hit:GetMass() < 2400)) then
  1726. if p then
  1727. p:Emit(100)
  1728. end
  1729. hit:BreakJoints()
  1730. delay(0,function()
  1731. HitSound(hit.Position)
  1732. end)
  1733. end
  1734. local Tag2 = hit.Parent:FindFirstChild("FakeHumanoid")
  1735. if Tag2 and o and o.Parent then
  1736. Tag2.Value = o.Name
  1737. end
  1738. if s == true then
  1739. if p then
  1740. p:Emit(100)
  1741. end
  1742. delay(0,function()
  1743. HitSound(hit.Position)
  1744. end)
  1745. local Direction = (hit.Position - t.Position).unit
  1746. local BodyForce = Instance.new("BodyForce",hit)
  1747. BodyForce.Force = Direction * 160000
  1748. game:GetService("Debris"):AddItem(BodyForce,0.2)
  1749. if math.random(1,32) == 1 then
  1750. hit:BreakJoints()
  1751. p:Emit(320)
  1752. Kaboom(hit.Position)
  1753. end
  1754. end
  1755. end
  1756. end
  1757. function Ready()
  1758. local Tool = Instance.new("Tool",owner.Backpack)
  1759. Tool.Name = "Shield"
  1760. Tool.TextureId = "rbxasset://textures/blackBkg_round.png"
  1761. Tool.GripPos = Vector3.new(1,0.5,0.5)
  1762. local Torso = Instance.new("Part",Tool)
  1763. Torso.Name = "Handle"
  1764. Torso.Size = Vector3.new(4,4,1)
  1765. Torso.BrickColor = BrickColor.new("Medium stone grey")
  1766. Torso.Material = Enum.Material.Metal
  1767. Torso.Locked = true
  1768. Torso.CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.Metal)
  1769. local SoundA = Instance.new("Sound",Torso)
  1770. SoundA.SoundId = "rbxasset://sounds/swordslash.wav"
  1771. SoundA.Volume = 1.2
  1772. local SoundB = Instance.new("Sound",Torso)
  1773. SoundB.SoundId = "rbxasset://sounds/Shoulder fired rocket.wav"
  1774. SoundB.Volume = 1.2
  1775. local SoundC = Instance.new("Sound",Torso)
  1776. SoundC.SoundId = "rbxasset://sounds/flashbulb.wav"
  1777. SoundC.Volume = 1.2
  1778. local SoundD = Instance.new("Sound",Torso)
  1779. SoundD.SoundId = "rbxasset://sounds/Kid saying Ouch.wav"
  1780. SoundD.Volume = 1.2
  1781. local A = Instance.new("Attachment",Torso)
  1782. local Particles = Instance.new("ParticleEmitter",A)
  1783. Particles.LightEmission = 1
  1784. Particles.LightInfluence = 0.2
  1785. Particles.Drag = 16
  1786. Particles.Enabled = false
  1787. Particles.Lifetime = NumberRange.new(0.1,0.4)
  1788. Particles.Rate = 100
  1789. Particles.Rotation = NumberRange.new(-360,360)
  1790. Particles.SpreadAngle = Vector2.new(-360,360)
  1791. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  1792. Particles.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  1793. Particles.Speed = NumberRange.new(70,70)
  1794. Particles.Size = NumberSequence.new(0.7,0.7)
  1795. local BA0 = Instance.new("Attachment",Torso)
  1796. BA0.Position = Vector3.new(-2,0,0.5)
  1797. local BA1 = Instance.new("Attachment",Torso)
  1798. BA1.Position = Vector3.new(2,0,0.5)
  1799. local ShipTrail = Instance.new("Trail",script)
  1800. ShipTrail.Color = ColorSequence.new(Torso.Color)
  1801. ShipTrail.Transparency = NumberSequence.new(0,1)
  1802. ShipTrail.MinLength = 0.02
  1803. ShipTrail.Lifetime = 0.3
  1804. ShipTrail.FaceCamera = true
  1805. ShipTrail.Attachment0 = BA0
  1806. ShipTrail.Attachment1 = BA1
  1807. local Beam = Instance.new("Beam",script)
  1808. Beam.Attachment0 = A
  1809. Beam.FaceCamera = true
  1810. local Bill = Instance.new("BillboardGui",script)
  1811. Bill.Size = UDim2.new(16,0,16,0)
  1812. local Image = Instance.new("ImageLabel",Bill)
  1813. Image.Image = "rbxasset://textures/sparkle.png"
  1814. Image.Size = UDim2.new(1,0,1,0)
  1815. Image.Position = UDim2.new(0.5,0,0.5,0)
  1816. Image.AnchorPoint = Vector2.new(0.5,0.5)
  1817. Image.ImageTransparency = 1
  1818. Image.BackgroundTransparency = 1
  1819. Fire = 0
  1820. local Resistance = 200
  1821. local Connection
  1822. local CurrentHumanoid
  1823. local CurrentHealth
  1824. local LastSuper = false
  1825. local function HealthChanged(NewHealth)
  1826. if CurrentHumanoid ~= nil then
  1827. if CurrentHumanoid.Health < CurrentHealth then
  1828. Resistance = Resistance - math.min(CurrentHealth - CurrentHumanoid.Health,60)
  1829. CurrentHumanoid.Health = CurrentHealth
  1830. if Torso then
  1831. HitSound(Torso.Position)
  1832. Bill.StudsOffsetWorldSpace = Torso.Position
  1833. Image.ImageColor3 = Torso.Color
  1834. Image.ImageTransparency = 0
  1835. end
  1836. if Resistance <= 0 then
  1837. local Player = game:GetService("Players"):GetPlayerFromCharacter(CurrentHumanoid.Parent)
  1838. if Player then
  1839. Tool.Parent = Player:FindFirstChildWhichIsA("Backpack")
  1840. else
  1841. Tool.Parent = nil
  1842. end
  1843. end
  1844. end
  1845. if CurrentHumanoid ~= nil then
  1846. CurrentHealth = CurrentHumanoid.Health
  1847. end
  1848. end
  1849. end
  1850. local function Equipped()
  1851. Resistance = math.max(80,Resistance)
  1852. Fire = math.max(-55,math.min(0,Fire))
  1853. Tool.Enabled = true
  1854. local Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  1855. if Humanoid then
  1856. CurrentHumanoid = Humanoid
  1857. CurrentHealth = Humanoid.Health
  1858. Connection = Humanoid.HealthChanged:Connect(HealthChanged)
  1859. end
  1860. end
  1861. local function Unequipped()
  1862. local a = Connection
  1863. local b = CurrentHumanoid
  1864. if a then
  1865. a:Disconnect()
  1866. end
  1867. if CurrentHumanoid then
  1868. CurrentHumanoid = nil
  1869. end
  1870. local ch = b.Health
  1871. local Connect = b.HealthChanged:Connect(function(NewHealth)
  1872. if b.Health < ch then
  1873. if Torso then
  1874. HitSound(Torso.Position)
  1875. Bill.StudsOffsetWorldSpace = Torso.Position
  1876. Image.ImageColor3 = Torso.Color
  1877. Image.ImageTransparency = 0
  1878. end
  1879. b.Health = ch
  1880. end
  1881. ch = b.Health
  1882. end)
  1883. delay(0.8,function()
  1884. Connect:Disconnect()
  1885. end)
  1886. end
  1887. Tool.Equipped:Connect(Equipped)
  1888. Tool.Unequipped:Connect(Unequipped)
  1889. local function Touched(hit)
  1890. local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  1891. local Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  1892. if Humanoid and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead and Fire > 0 then
  1893. Hit(hit,Particles,Player,SoundD,LastSuper,Torso)
  1894. if SoundC then
  1895. SoundC.PlaybackSpeed = 1.6
  1896. SoundC:Play()
  1897. end
  1898. if Particles then
  1899. Particles.Color = ColorSequence.new(Torso.Color)
  1900. Particles:Emit(16)
  1901. end
  1902. end
  1903. end
  1904. Torso.Touched:Connect(Touched)
  1905. local function ValueChange()
  1906. if Tool.Enabled == false then
  1907. if Torso and Fire <= 0 then
  1908. local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  1909. local Character = Tool.Parent
  1910. local Humanoid
  1911. if Character then
  1912. Humanoid = Tool.Parent:FindFirstChildWhichIsA("Humanoid")
  1913. end
  1914. if Humanoid and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  1915. local Super = (Fire <= -75)
  1916. local LaunchDirection = Vector3.new(0,0,0)
  1917. local Launch = false
  1918. if Humanoid.MoveDirection.X ~= 0 or Humanoid.MoveDirection.Z ~= 0 then
  1919. LaunchDirection = Torso.CFrame.lookVector
  1920. Launch = true
  1921. end
  1922. if Humanoid:GetState() ~= Enum.HumanoidStateType.Running and Humanoid:GetState() ~= Enum.HumanoidStateType.RunningNoPhysics then
  1923. LaunchDirection = LaunchDirection + Vector3.new(0,2,0)
  1924. if Launch == true then
  1925. LaunchDirection = LaunchDirection + Vector3.new(0,-1,0)
  1926. end
  1927. Launch = true
  1928. end
  1929. LastSuper = false
  1930. if Super == true then
  1931. LastSuper = true
  1932. end
  1933. if Super and Launch then
  1934. local toolanim = Instance.new("StringValue",Tool)
  1935. toolanim.Name = "toolanim"
  1936. toolanim.Value = "Lunge"
  1937. else
  1938. local toolanim = Instance.new("StringValue",Tool)
  1939. toolanim.Name = "toolanim"
  1940. toolanim.Value = "Slash"
  1941. end
  1942. if Super == true and Launch == true then
  1943. SoundB.PlaybackSpeed = 1.75
  1944. SoundB:Play()
  1945. if Humanoid.SeatPart == nil then
  1946. Humanoid.PlatformStand = false
  1947. Humanoid.Sit = false
  1948. Humanoid.Jump = true
  1949. elseif LaunchDirection.Y > 0 then
  1950. LaunchDirection = Vector3.new(LaunchDirection.X,LaunchDirection.Y * 0.2,LaunchDirection.Z)
  1951. end
  1952. local BodyVelocity = Instance.new("BodyVelocity",Torso)
  1953. BodyVelocity.MaxForce = Vector3.new(1000000,100000,1000000)
  1954. BodyVelocity.Velocity = LaunchDirection * 120
  1955. game:GetService("Debris"):AddItem(BodyVelocity,0.6)
  1956. end
  1957. if SoundA then
  1958. SoundA.PlaybackSpeed = 1.4
  1959. SoundA:Play()
  1960. end
  1961. Fire = 12
  1962. if Super == true then
  1963. Fire = 16
  1964. end
  1965. end
  1966. end
  1967. end
  1968. end
  1969. Tool:GetPropertyChangedSignal("Enabled"):Connect(ValueChange)
  1970. local function Activated()
  1971. Tool.Enabled = false
  1972. end
  1973. Tool.Activated:Connect(Activated)
  1974. coroutine.resume(coroutine.create(function()
  1975. while Tool and Tool:FindFirstAncestorWhichIsA("DataModel") do
  1976. Image.ImageTransparency = Image.ImageTransparency + 0.1
  1977. Torso.CanCollide = true
  1978. Resistance = math.min(200,Resistance + 0.125)
  1979. Fire = Fire - 1
  1980. if Fire == 0 then
  1981. Tool.Enabled = true
  1982. end
  1983. if Torso and Fire <= -75 then
  1984. Torso.Material = Enum.Material.Neon
  1985. elseif Torso then
  1986. Torso.Material = Enum.Material.Metal
  1987. end
  1988. Tool.ToolTip = "R = "..math.ceil(Resistance)
  1989. if Torso then
  1990. if Resistance > 160 then
  1991. Torso.BrickColor = BrickColor.new("Toothpaste")
  1992. if ShipTrail then
  1993. ShipTrail.Color = ColorSequence.new(Color3.new(0,1,1))
  1994. end
  1995. elseif Resistance > 120 then
  1996. Torso.BrickColor = BrickColor.new("Lime green")
  1997. if ShipTrail then
  1998. ShipTrail.Color = ColorSequence.new(Color3.new(0,1,0))
  1999. end
  2000. elseif Resistance > 80 then
  2001. Torso.BrickColor = BrickColor.new("New Yeller")
  2002. if ShipTrail then
  2003. ShipTrail.Color = ColorSequence.new(Color3.new(1,1,0))
  2004. end
  2005. elseif Resistance > 40 then
  2006. Torso.BrickColor = BrickColor.new("Hot pink")
  2007. if ShipTrail then
  2008. ShipTrail.Color = ColorSequence.new(Color3.new(1,0,1))
  2009. end
  2010. else
  2011. Torso.BrickColor = BrickColor.new("Really red")
  2012. if ShipTrail then
  2013. ShipTrail.Color = ColorSequence.new(Color3.new(1,0,0))
  2014. end
  2015. end
  2016. end
  2017. if owner and owner.Parent and owner.Neutral == false then
  2018. local TeamColor = owner.TeamColor
  2019. Torso.BrickColor = TeamColor
  2020. end
  2021. wait(0.04)
  2022. end
  2023. end
  2024. Ready()
  2025. end))
  2026. game:GetService("Debris"):AddItem(script)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement