Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.61 KB | None | 0 0
  1. function clerp(c1,c2,al)
  2. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  3. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  4. for i,v in pairs(com1) do
  5. com1[i] = v+(com2[i]-v)*al
  6. end
  7. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  8. end
  9.  
  10. function weld(p0,p1,c0,c1,par)
  11. local w = Instance.new("Weld", par)
  12. w.Part0 = p0
  13. w.Part1 = p1
  14. w.C0 = c0 or CFrame.new()
  15. w.C1 = c1 or CFrame.new()
  16. return w
  17. end
  18.  
  19. xmathrandom = math.random(-10,10)
  20. ymathrandom = math.random(2,10)
  21. zmathrandom = math.random(-10,10)
  22.  
  23.  
  24. player = owner,
  25. local beat = true
  26. local beattime = 0.6
  27. suit = Instance.new("Model", char)
  28. suit.Name = "Gaster"
  29. local vDebounce = false
  30. Torso = char.Torso
  31. cf=CFrame.new
  32. euler=CFrame.fromEulerAnglesXYZ
  33. local SHOT_SPEED = 100
  34. local SHOT_TIME = 1
  35. local NOZZLE_OFFSET = Vector3.new(0, 0, 0)
  36. mouse = player:GetMouse()
  37.  
  38. shieldparent1 = nil
  39. shieldparent2 = nil
  40. shieldparent3 = nil
  41. shieldparent4 = nil
  42. shieldparent5 = nil
  43. shieldparent6 = nil
  44.  
  45. switchvalue = 0
  46. RandomGasterRotaion = 0
  47. RandomPerseverance = 0
  48.  
  49. ShieldValueToGaster = false
  50. ShieldValueToGasterDebounce = false
  51.  
  52. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  53.  
  54. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  55.  
  56.  
  57. RSH, LSH = nil, nil
  58.  
  59. LS = Torso["Left Shoulder"]
  60.  
  61. LH = Torso["Left Hip"]
  62.  
  63. RS = Torso["Right Shoulder"]
  64.  
  65. RH = Torso["Right Hip"]
  66. RSH = char.Torso["Right Shoulder"]
  67.  
  68. LSH = char.Torso["Left Shoulder"]
  69.  
  70.  
  71.  
  72. function startup()
  73.  
  74. RW.Part0 = char.Torso
  75.  
  76. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  77.  
  78. RW.C1 = CFrame.new(0, 0.5, 0)
  79.  
  80. RW.Part1 = char["Right Arm"]
  81.  
  82. RW.Parent = char.Torso
  83.  
  84.  
  85.  
  86. LW.Part0 = char.Torso
  87.  
  88. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  89.  
  90. LW.C1 = CFrame.new(0, 0.5, 0)
  91.  
  92. LW.Part1 = char["Left Arm"]
  93.  
  94. LW.Parent = char.Torso
  95.  
  96. for i = 1,5 do wait()
  97. RW.C1= clerp(RW.C1*CFrame.new(-.1, -0, .1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-8),0),RW.C0,0.1)
  98. LW.C1= clerp(LW.C1*CFrame.new(.1, -0, .1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(8),0),LW.C0,0.1)
  99.  
  100.  
  101. end
  102. coroutine.resume(coroutine.create(function()
  103. wait(1)
  104. for i = 1,20 do wait()
  105. RW.C1= clerp(RW.C1*CFrame.new(-.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(-math.rad(-.1),-math.rad(-.1),-math.rad(3)),RW.C0,0.1)
  106. LW.C1= clerp(LW.C1*CFrame.new(.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(math.rad(.1),math.rad(.1),-math.rad(-3)),LW.C0,0.1)
  107.  
  108.  
  109. end
  110.  
  111. for i = 1,20 do wait()
  112. RW.C1= clerp(RW.C1*CFrame.new(-.12, .05, -0.1)*CFrame.fromEulerAnglesXYZ(-math.rad(-4),-math.rad(-4),-math.rad(-4)),RW.C0,0.1)
  113. LW.C1= clerp(LW.C1*CFrame.new(.12, .05, -0.1)*CFrame.fromEulerAnglesXYZ(math.rad(4),math.rad(-4),-math.rad(4)),LW.C0,0.1)
  114.  
  115.  
  116. end
  117.  
  118.  
  119. end))
  120. end
  121.  
  122.  
  123.  
  124. local Sounds = {
  125. Gaster = Instance.new("Sound"),
  126. Gun = Instance.new("Sound"),
  127. Switch = Instance.new("Sound"),
  128. Explode = Instance.new("Sound"),
  129. GasterTheme = Instance.new("Sound")
  130. }
  131.  
  132. Sounds["Gaster"].SoundId = "rbxassetid://345052019"
  133. Sounds["Gaster"].Volume = 1
  134. Sounds["Gun"].SoundId = "http://www.roblox.com/asset?id=406913243"
  135. Sounds["Gun"].Volume = 1
  136. Sounds["Switch"].SoundId = "http://www.roblox.com/asset?id=388205678"
  137. Sounds["Switch"].Volume = 1
  138. Sounds["Explode"].SoundId = "rbxasset://sounds/collide.wav"
  139. Sounds["Explode"].Volume = .1
  140. Sounds["GasterTheme"].SoundId = "rbxassetid://323177357"
  141. Sounds["GasterTheme"].Volume = 99
  142.  
  143. function PlaySound(soundname, pitch, where, looped)
  144. Sounds[soundname].Parent = where
  145. Sounds[soundname].Pitch = pitch
  146. Sounds[soundname].Looped= looped
  147. Sounds[soundname]:Play()
  148. local oldsound = Sounds[soundname]
  149. coroutine.resume(coroutine.create(function()
  150.  
  151. wait(4)
  152. for i = 1,1 do
  153. if oldsound.Looped == true then return end
  154. oldsound:Destroy()
  155. end
  156. end))
  157. Sounds[soundname] = Sounds[soundname]:clone()
  158. end
  159.  
  160. firstuse = true
  161. InUse = false
  162.  
  163. JusticeAttack = false
  164. JusticeAttackDebounce = false
  165.  
  166. IntegrityAttack = false
  167. IntegrityAttackDebounce = false
  168.  
  169. PerseveranceAttack = false
  170. PerseveranceAttackDebounce = false
  171.  
  172. KindnessAttack = false
  173. KindnessAttackDebounce = false
  174.  
  175. DeterminationAttack = false
  176. DetermiantionAttackDebounce = false
  177.  
  178. PatienceAttack = false
  179. PatienceAttackDebounce = false
  180.  
  181. BraveryAttack = false
  182. BraveryAttackDebounce = false
  183.  
  184.  
  185. hand1DeterminationhealthDown = false
  186. hand2PerseverancehealthDown = false
  187. hand3PatiencehealthDown = false
  188. hand4IntegrityhealthDown = false
  189. hand5BraveryhealthDown = false
  190. hand6JusticehealthDown = false
  191. hand7KindnesshealthDown = false
  192.  
  193. hand1Determination = Instance.new("Model", char)
  194. hand1Determination.Name ="Red"
  195. hand2Perseverance = Instance.new("Model", char)
  196. hand2Perseverance.Name ="Purple"
  197. hand3Patience = Instance.new("Model", char)
  198. hand3Patience.Name = "Cyan"
  199. hand4Integrity = Instance.new("Model", char)
  200. hand4Integrity.Name = "Blue"
  201. hand5Bravery = Instance.new("Model", char)
  202. hand5Bravery.Name = "Orange"
  203. hand6Justice = Instance.new("Model", char)
  204. hand6Justice.Name = "Yellow"
  205. hand7Kindness = Instance.new("Model", char)
  206. hand7Kindness.Name = "Green"
  207.  
  208. function teleportPlayer(pos)
  209.  
  210. if player == nil or player.Character == nil then return end
  211.  
  212. char["Left Leg"].CFrame = CFrame.new(Vector3.new(pos.x, pos.y , pos.z))
  213. coroutine.resume(coroutine.create(function()
  214.  
  215. TeleportPart = Instance.new("Part",workspace)
  216.  
  217. TeleportPart.FormFactor="Custom"
  218.  
  219. TeleportPart.Size=Vector3.new(0.8,0.8,0.8)
  220.  
  221. TeleportPart.TopSurface = 0
  222.  
  223. TeleportPart.BottomSurface = 0
  224.  
  225. local colorc = {"Black"}
  226.  
  227. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  228.  
  229. TeleportPart.BrickColor = Fire
  230.  
  231. TeleportPart.CanCollide=false
  232.  
  233. TeleportPart.Anchored=true
  234.  
  235. TeleportPart.CFrame =(Torso.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  236.  
  237. TeleportPartmesh = Instance.new("BlockMesh",TeleportPart)
  238.  
  239.  
  240. game.Debris:AddItem(TeleportPart,1.5)
  241.  
  242. for i = 1,5 do wait()
  243. Torso.Transparency = Torso.Transparency - 0.2
  244. char["Left Arm"].Transparency = char["Left Arm"].Transparency - 0.2
  245. char["Left Leg"].Transparency = char["Left Leg"].Transparency - 0.2
  246. char["Right Arm"].Transparency = char["Right Arm"].Transparency - 0.2
  247. char["Right Leg"].Transparency = char["Right Leg"].Transparency - 0.2
  248. char.Head.Transparency = char.Head.Transparency - 0.2
  249. Crack1.Transparency = Crack1.Transparency - 0.2
  250. Crack2.Transparency = Crack2.Transparency - 0.2
  251. mouth.Transparency = mouth.Transparency - 0.2
  252. Eye1.Transparency = Eye1.Transparency - 0.2
  253. Eye2.Transparency = Eye2.Transparency - 0.2
  254. MEye1.Transparency = MEye1.Transparency - 0.2
  255. MEye2.Transparency = MEye2.Transparency - 0.2
  256. end
  257.  
  258.  
  259. Torso.Transparency = 0
  260. char["Left Arm"].Transparency = 0
  261. char["Left Leg"].Transparency = 0
  262. char["Right Arm"].Transparency = 0
  263. char["Right Leg"].Transparency = 0
  264. char.Head.Transparency = 0
  265. Crack1.Transparency = 0
  266. Crack2.Transparency = 0
  267. mouth.Transparency = 0
  268. Eye1.Transparency = 0
  269. Eye2.Transparency = 0
  270. MEye1.Transparency = 0
  271. MEye2.Transparency = 0
  272.  
  273. end))
  274.  
  275. for i = 1,7 do
  276. local parti = Instance.new("Part",Torso)
  277. parti.Anchored = true
  278. parti.TopSurface = 0
  279. parti.BottomSurface = 0
  280. parti.CanCollide = false
  281. parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
  282. parti.CFrame = Torso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  283. parti.Transparency = 0
  284. parti.BrickColor = BrickColor.new("Black")
  285. game.Debris:AddItem(parti,1.5)
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293. local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  294. game:service("RunService").Stepped:connect(function()
  295. parti.Transparency = parti.Transparency + 0.05
  296. parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
  297. end)
  298.  
  299.  
  300.  
  301. end
  302. for i = 1,10 do wait()
  303.  
  304. TeleportPartmesh.Scale=Vector3.new(2*i,2*i,2*i)
  305. TeleportPart.CFrame = clerp(TeleportPart.CFrame*CFrame.Angles(math.rad(10),math.rad(10),math.rad(10)),TeleportPart.CFrame,0.1)
  306. TeleportPart.Transparency = TeleportPart.Transparency + 0.1
  307. end
  308. end
  309.  
  310. for _,v in pairs(char.Head:GetChildren()) do if v.ClassName=="Decal" then v:remove() end end
  311. for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  312. for _,v in pairs(char:GetChildren()) do if v.ClassName=="Shirt" or v.ClassName=="Pants" or v.ClassName=="T-Shirt" or v.ClassName=="ShirtGraphic" or v.ClassName=="CharacterMesh" then v:remove() end end
  313. shirt=Instance.new("Shirt", char)
  314. pants=Instance.new("Pants", char)
  315. char.Head.BrickColor = BrickColor.new("Institutional white")
  316.  
  317.  
  318. shirt.ShirtTemplate="rbxassetid://535199088"
  319. pants.PantsTemplate="rbxassetid://532840011"
  320.  
  321. --------Gaster's head
  322.  
  323.  
  324.  
  325. mouth = Instance.new("Part",suit)
  326. mouth.Size = Vector3.new(0.2,.7,0.4)
  327. mouth.Transparency = 0
  328. mouth.BrickColor = BrickColor.new("Really black")
  329. mouth.CanCollide = false
  330. mouthMesh = Instance.new("SpecialMesh",mouth)
  331. mouthMesh.MeshType = "Sphere"
  332. mouthMesh.Scale = Vector3.new(2.5,0.1,0.8)
  333.  
  334. weld(char.Head,mouth,CFrame.new(0,0,0),CFrame.new(0, .3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  335.  
  336.  
  337. Crack2 = Instance.new("Part",suit)
  338. Crack2.Size = Vector3.new(0.2,.7,0.4)
  339. Crack2.Transparency = 0
  340. Crack2.BrickColor = BrickColor.new("Really black")
  341. Crack2.CanCollide = false
  342. Crack2Mesh = Instance.new("SpecialMesh",Crack2)
  343. Crack2Mesh.MeshType = "Sphere"
  344. Crack2Mesh.Scale = Vector3.new(0.3,0.7,0.8)
  345.  
  346. weld(char.Head,Crack2,CFrame.new(0,0,0),CFrame.new(.2, .15, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, -.2),char)
  347.  
  348.  
  349. Crack1 = Instance.new("Part",suit)
  350. Crack1.Size = Vector3.new(0.2,.7,0.4)
  351. Crack1.Transparency = 0
  352. Crack1.BrickColor = BrickColor.new("Really black")
  353. Crack1.CanCollide = false
  354. Crack1Mesh = Instance.new("SpecialMesh",Crack1)
  355. Crack1Mesh.MeshType = "Sphere"
  356. Crack1Mesh.Scale = Vector3.new(0.3,0.7,0.65)
  357.  
  358. weld(char.Head,Crack1,CFrame.new(0,0,0),CFrame.new(-.2, -.3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, .2),char)
  359.  
  360.  
  361. Eye1 = Instance.new("Part",suit)
  362. Eye1.Size = Vector3.new(0.4,0.4,0.4)
  363. Eye1.Transparency = 0
  364. Eye1.BrickColor = BrickColor.new("Really black")
  365. Eye1.CanCollide = false
  366. Eye1Mesh = Instance.new("SpecialMesh",Eye1)
  367. Eye1Mesh.MeshType = "Sphere"
  368. Eye1Mesh.Scale = Vector3.new(1,1,0.6)
  369.  
  370. weld(char.Head,Eye1,CFrame.new(0,0,0),CFrame.new(-.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  371.  
  372.  
  373. Eye2 = Instance.new("Part",suit)
  374. Eye2.Size = Vector3.new(0.4,0.4,0.4)
  375. Eye2.Transparency = 0
  376. Eye2.CanCollide = false
  377. Eye2.BrickColor = BrickColor.new("Really black")
  378. Eye2Mesh = Instance.new("SpecialMesh",Eye2)
  379. Eye2Mesh.MeshType = "Sphere"
  380. Eye2Mesh.Scale = Vector3.new(1,1,0.6)
  381.  
  382. weld(char.Head,Eye2,CFrame.new(0,0,0),CFrame.new(.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  383.  
  384. MEye1 = Instance.new("Part",suit)
  385. MEye1.Size = Vector3.new(0.3,0.3,0.3)
  386. MEye1.Transparency = 0
  387. MEye1.Material= "Neon"
  388. MEye1.BrickColor = BrickColor.new("Institutional white")
  389. MEye1.CanCollide = false
  390. MEye1Mesh = Instance.new("SpecialMesh",MEye1)
  391. MEye1Mesh.MeshType = "Sphere"
  392. MEye1Mesh.Scale = Vector3.new(.2,.5,.2)
  393.  
  394. weld(Eye1,MEye1,CFrame.new(0,0,0),CFrame.new(-.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  395.  
  396. MEye2 = Instance.new("Part",suit)
  397. MEye2.Size = Vector3.new(0.3,0.3,0.3)
  398. MEye2.Transparency = 0
  399. MEye2.Material= "Neon"
  400. MEye2.BrickColor = BrickColor.new("Institutional white")
  401. MEye2.CanCollide = false
  402. MEye2Mesh = Instance.new("SpecialMesh",MEye2)
  403. MEye2Mesh.MeshType = "Sphere"
  404. MEye2Mesh.Scale = Vector3.new(.2,.5,.2)
  405.  
  406. weld(Eye2,MEye2,CFrame.new(0,0,0),CFrame.new(.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  407.  
  408.  
  409. --------Gaster's hand
  410.  
  411. startup()
  412.  
  413. hand1DeterminationPosition = Instance.new("Part",suit)
  414. hand1DeterminationPosition.Size = Vector3.new(1,1,1)
  415. hand1DeterminationPosition.Transparency = 1
  416. hand1DeterminationPosition.CanCollide = false
  417.  
  418. weld(Torso,hand1DeterminationPosition,CFrame.new(0,0,0),CFrame.new(-2, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  419.  
  420. hand2PerseverancePosition = Instance.new("Part",suit)
  421. hand2PerseverancePosition.Size = Vector3.new(1,1,1)
  422. hand2PerseverancePosition.Transparency = 1
  423. hand2PerseverancePosition.CanCollide = false
  424.  
  425. weld(Torso,hand2PerseverancePosition,CFrame.new(0,0,0),CFrame.new(2, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  426.  
  427. hand3PatiencePosition = Instance.new("Part",suit)
  428. hand3PatiencePosition.Size = Vector3.new(1,1,1)
  429. hand3PatiencePosition.Transparency = 1
  430. hand3PatiencePosition.CanCollide = false
  431.  
  432. weld(Torso,hand3PatiencePosition,CFrame.new(0,0,0),CFrame.new(-4, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  433.  
  434. hand4IntegrityPosition = Instance.new("Part",suit)
  435. hand4IntegrityPosition.Size = Vector3.new(1,1,1)
  436. hand4IntegrityPosition.Transparency = 1
  437. hand4IntegrityPosition.CanCollide = false
  438.  
  439. weld(Torso,hand4IntegrityPosition,CFrame.new(0,0,0),CFrame.new(4, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  440.  
  441. hand5BraveryPosition = Instance.new("Part",suit)
  442. hand5BraveryPosition.Size = Vector3.new(1,1,1)
  443. hand5BraveryPosition.Transparency = 1
  444. hand5BraveryPosition.CanCollide = false
  445.  
  446. weld(Torso,hand5BraveryPosition,CFrame.new(0,0,0),CFrame.new(-6, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  447.  
  448. hand6JusticePosition = Instance.new("Part",suit)
  449. hand6JusticePosition.Size = Vector3.new(1,1,1)
  450. hand6JusticePosition.Transparency = 1
  451. hand6JusticePosition.CanCollide = false
  452.  
  453. weld(Torso,hand6JusticePosition,CFrame.new(0,0,0),CFrame.new(6, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  454.  
  455. hand7KindnessPosition = Instance.new("Part",suit)
  456. hand7KindnessPosition.Size = Vector3.new(1,1,1)
  457. hand7KindnessPosition.Transparency = 1
  458. hand7KindnessPosition.CanCollide = false
  459.  
  460. weld(Torso,hand7KindnessPosition,CFrame.new(0,0,0),CFrame.new(0, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  461.  
  462.  
  463. AttackPosition = Instance.new("Part",suit)
  464. AttackPosition.Size = Vector3.new(1,1,1)
  465. AttackPosition.Transparency = 1
  466. AttackPosition.CanCollide = false
  467.  
  468. weld(Torso,AttackPosition,CFrame.new(0,0,0),CFrame.new(0, 0, 4)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  469.  
  470.  
  471.  
  472. --------Gaster's Health of hands and hands
  473.  
  474. hand1Determinationhealth = Instance.new("Humanoid",hand1Determination)
  475. hand1Determinationhealth.DisplayDistanceType = "None"
  476. hand1Determinationhealth.Health = 100
  477. hand1Determinationhealth.MaxHealth = 100
  478.  
  479. Determination = Instance.new("Part",hand1Determination)
  480. Determination.Size = Vector3.new(1,1.5,0.2)
  481. Determination.Name = "Head"
  482. Determination.Position = hand1DeterminationPosition.Position
  483. DeterminationMesh = Instance.new("SpecialMesh",Determination)
  484. DeterminationMesh.MeshId = "rbxassetid://430045961"
  485. DeterminationMesh.Offset = Vector3.new(0.09,0.1,0)
  486. Determination.BrickColor = BrickColor.new("Institutional white")
  487.  
  488. DeterminationOrb = Instance.new("Part",Determination)
  489. DeterminationOrb.Size = Vector3.new(0.3,0.3,0.2)
  490. DeterminationOrb.BrickColor = BrickColor.new("Really red")
  491. weld(Determination,DeterminationOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  492.  
  493.  
  494. weld(hand1DeterminationPosition,Determination,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  495.  
  496. local p = Instance.new("Part",workspace)
  497.  
  498. p.FormFactor="Custom"
  499.  
  500. p.Size=Vector3.new(0.8,0.8,0.8)
  501.  
  502. p.TopSurface = 0
  503.  
  504. p.BottomSurface = 0
  505.  
  506. local colorc = {"Really red"}
  507.  
  508. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  509.  
  510. p.BrickColor = Fire
  511.  
  512. p.CanCollide=false
  513.  
  514. p.Anchored=true
  515.  
  516. p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  517.  
  518.  
  519. for i = 1,8 do wait()
  520.  
  521. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  522. p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
  523. end
  524. p:remove()
  525.  
  526.  
  527.  
  528. --2--
  529.  
  530.  
  531. hand2Perseverancehealth = Instance.new("Humanoid",hand2Perseverance)
  532. hand2Perseverancehealth.DisplayDistanceType = "None"
  533. hand2Perseverancehealth.Health = 100
  534. hand2Perseverancehealth.MaxHealth = 100
  535.  
  536. Perseverance = Instance.new("Part",hand2Perseverance)
  537. Perseverance.Size = Vector3.new(1,1.5,0.2)
  538. Perseverance.Name = "Head"
  539. Perseverance.Position = hand2PerseverancePosition.Position
  540. PerseveranceMesh = Instance.new("SpecialMesh",Perseverance)
  541. PerseveranceMesh.MeshId = "rbxassetid://430045961"
  542. PerseveranceMesh.Offset = Vector3.new(0.09,0.1,0)
  543. Perseverance.BrickColor = BrickColor.new("Institutional white")
  544.  
  545. PerseveranceOrb = Instance.new("Part",Perseverance)
  546. PerseveranceOrb.Size = Vector3.new(0.3,0.3,0.2)
  547. PerseveranceOrb.BrickColor = BrickColor.new("Magenta")
  548. weld(Perseverance,PerseveranceOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  549.  
  550.  
  551. weld(hand2PerseverancePosition,Perseverance,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  552.  
  553. local p = Instance.new("Part",workspace)
  554.  
  555. p.FormFactor="Custom"
  556.  
  557. p.Size=Vector3.new(0.8,0.8,0.8)
  558.  
  559. p.TopSurface = 0
  560.  
  561. p.BottomSurface = 0
  562.  
  563. local colorc = {"Magenta"}
  564.  
  565. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  566.  
  567. p.BrickColor = Fire
  568.  
  569. p.CanCollide=false
  570.  
  571. p.Anchored=true
  572.  
  573. p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  574.  
  575.  
  576. for i = 1,8 do wait()
  577.  
  578. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  579. p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
  580. end
  581. p:remove()
  582.  
  583. --3--
  584.  
  585. hand3Patiencehealth = Instance.new("Humanoid",hand3Patience)
  586. hand3Patiencehealth.DisplayDistanceType = "None"
  587. hand3Patiencehealth.Health = 100
  588. hand3Patiencehealth.MaxHealth = 100
  589.  
  590. Patience = Instance.new("Part",hand3Patience)
  591. Patience.Size = Vector3.new(1,1.5,0.2)
  592. Patience.Name = "Head"
  593. PatienceMesh = Instance.new("SpecialMesh",Patience)
  594. PatienceMesh.MeshId = "rbxassetid://430045961"
  595. PatienceMesh.Offset = Vector3.new(0.09,0.1,0)
  596. Patience.BrickColor = BrickColor.new("Institutional white")
  597.  
  598.  
  599. PatienceOrb = Instance.new("Part",Patience)
  600. PatienceOrb.Size = Vector3.new(0.3,0.3,0.2)
  601. PatienceOrb.BrickColor = BrickColor.new("Cyan")
  602. weld(Patience,PatienceOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  603.  
  604.  
  605. weld(hand3PatiencePosition,Patience,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  606.  
  607. local p = Instance.new("Part",workspace)
  608.  
  609. p.FormFactor="Custom"
  610.  
  611. p.Size=Vector3.new(0.8,0.8,0.8)
  612.  
  613. p.TopSurface = 0
  614.  
  615. p.BottomSurface = 0
  616.  
  617. local colorc = {"Cyan"}
  618.  
  619. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  620.  
  621. p.BrickColor = Fire
  622.  
  623. p.CanCollide=false
  624.  
  625. p.Anchored=true
  626.  
  627. p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  628.  
  629.  
  630. for i = 1,8 do wait()
  631.  
  632. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  633. p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
  634. end
  635. p:remove()
  636.  
  637. --4--
  638.  
  639. hand4Integrityhealth = Instance.new("Humanoid",hand4Integrity)
  640. hand4Integrityhealth.DisplayDistanceType = "None"
  641. hand4Integrityhealth.Health = 100
  642. hand4Integrityhealth.MaxHealth = 100
  643.  
  644. Integrity = Instance.new("Part",hand4Integrity)
  645. Integrity.Size = Vector3.new(1,1.5,0.2)
  646. Integrity.Name = "Head"
  647. Integrity.Position = hand1DeterminationPosition.Position
  648. IntegrityMesh = Instance.new("SpecialMesh",Integrity)
  649. IntegrityMesh.MeshId = "rbxassetid://430045961"
  650. IntegrityMesh.Offset = Vector3.new(0.09,0.1,0)
  651. Integrity.BrickColor = BrickColor.new("Institutional white")
  652.  
  653.  
  654. IntegrityOrb = Instance.new("Part",Integrity)
  655. IntegrityOrb.Size = Vector3.new(0.3,0.3,0.2)
  656. IntegrityOrb.BrickColor = BrickColor.new("Deep blue")
  657. weld(Integrity,IntegrityOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  658.  
  659.  
  660. weld(hand4IntegrityPosition,Integrity,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  661.  
  662.  
  663. local p = Instance.new("Part",workspace)
  664.  
  665. p.FormFactor="Custom"
  666.  
  667. p.Size=Vector3.new(0.8,0.8,0.8)
  668.  
  669. p.TopSurface = 0
  670.  
  671. p.BottomSurface = 0
  672.  
  673. local colorc = {"Deep blue"}
  674.  
  675. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  676.  
  677. p.BrickColor = Fire
  678.  
  679. p.CanCollide=false
  680.  
  681. p.Anchored=true
  682.  
  683. p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  684.  
  685.  
  686. for i = 1,8 do wait()
  687.  
  688. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  689. p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
  690. end
  691. p:remove()
  692.  
  693. --5--
  694.  
  695.  
  696. hand5Braveryhealth = Instance.new("Humanoid",hand5Bravery)
  697. hand5Braveryhealth.DisplayDistanceType = "None"
  698. hand5Braveryhealth.Health = 100
  699. hand5Braveryhealth.MaxHealth = 100
  700.  
  701.  
  702. Bravery = Instance.new("Part",hand5Bravery)
  703. Bravery .Size = Vector3.new(1,1.5,0.2)
  704. Bravery .Name = "Head"
  705. Bravery.Position = hand1DeterminationPosition.Position
  706. BraveryMesh = Instance.new("SpecialMesh",Bravery)
  707. BraveryMesh.MeshId = "rbxassetid://430045961"
  708. BraveryMesh.Offset = Vector3.new(0.09,0.1,0)
  709. Bravery.BrickColor = BrickColor.new("Institutional white")
  710.  
  711. BraveryOrb = Instance.new("Part",Bravery)
  712. BraveryOrb.Size = Vector3.new(0.3,0.3,0.2)
  713. BraveryOrb.BrickColor = BrickColor.new("Deep orange")
  714. weld(Bravery,BraveryOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  715.  
  716.  
  717. weld(hand5BraveryPosition,Bravery,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  718.  
  719.  
  720.  
  721. local p = Instance.new("Part",workspace)
  722.  
  723. p.FormFactor="Custom"
  724.  
  725. p.Size=Vector3.new(0.8,0.8,0.8)
  726.  
  727. p.TopSurface = 0
  728.  
  729. p.BottomSurface = 0
  730.  
  731. local colorc = {"Deep orange"}
  732.  
  733. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  734.  
  735. p.BrickColor = Fire
  736.  
  737. p.CanCollide=false
  738.  
  739. p.Anchored=true
  740.  
  741. p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  742.  
  743.  
  744. for i = 1,8 do wait()
  745.  
  746. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  747. p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
  748. end
  749. p:remove()
  750. --6--
  751.  
  752. hand6Justicehealth = Instance.new("Humanoid",hand6Justice)
  753. hand6Justicehealth.DisplayDistanceType = "None"
  754. hand6Justicehealth.Health = 100
  755. hand6Justicehealth.MaxHealth = 100
  756.  
  757. Justice = Instance.new("Part",hand6Justice)
  758. Justice .Size = Vector3.new(1,1.5,0.2)
  759. Justice.Name = "Head"
  760. Justice.Position = hand1DeterminationPosition.Position
  761. JusticeMesh = Instance.new("SpecialMesh",Justice)
  762. JusticeMesh.MeshId = "rbxassetid://430045961"
  763. JusticeMesh.Offset = Vector3.new(0.09,0.1,0)
  764. Justice.BrickColor = BrickColor.new("Institutional white")
  765.  
  766. JusticeOrb = Instance.new("Part",Justice)
  767. JusticeOrb.Size = Vector3.new(0.3,0.3,0.2)
  768. JusticeOrb.BrickColor = BrickColor.new("New Yeller")
  769. weld(Justice,JusticeOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  770.  
  771.  
  772. weld(hand6JusticePosition,Justice,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  773.  
  774.  
  775.  
  776. local p = Instance.new("Part",workspace)
  777.  
  778. p.FormFactor="Custom"
  779.  
  780. p.Size=Vector3.new(0.8,0.8,0.8)
  781.  
  782. p.TopSurface = 0
  783.  
  784. p.BottomSurface = 0
  785.  
  786. local colorc = {"New Yeller"}
  787.  
  788. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  789.  
  790. p.BrickColor = Fire
  791.  
  792. p.CanCollide=false
  793.  
  794. p.Anchored=true
  795.  
  796. p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  797.  
  798.  
  799. for i = 1,8 do wait()
  800.  
  801. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  802. p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
  803. end
  804. p:remove()
  805. --7--
  806.  
  807. hand7Kindnesshealth = Instance.new("Humanoid",hand7Kindness)
  808. hand7Kindnesshealth.DisplayDistanceType = "None"
  809. hand7Kindnesshealth.Health = 100
  810. hand7Kindnesshealth.MaxHealth = 100
  811.  
  812. Kindness = Instance.new("Part",hand7Kindness)
  813. Kindness .Size = Vector3.new(1,1.5,0.2)
  814. Kindness.Name = "Head"
  815. Kindness.Position = hand1DeterminationPosition.Position
  816. KindnessMesh = Instance.new("SpecialMesh",Kindness)
  817. KindnessMesh.MeshId = "rbxassetid://430045961"
  818. KindnessMesh.Offset = Vector3.new(0.09,0.1,0)
  819. Kindness.BrickColor = BrickColor.new("Institutional white")
  820.  
  821. KindnessOrb = Instance.new("Part",Kindness)
  822. KindnessOrb.Size = Vector3.new(0.3,0.3,0.2)
  823. KindnessOrb.BrickColor = BrickColor.new("Lime green")
  824. weld(Kindness,KindnessOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  825.  
  826.  
  827. weld(hand7KindnessPosition,Kindness,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
  828. local p = Instance.new("Part",workspace)
  829.  
  830. p.FormFactor="Custom"
  831.  
  832. p.Size=Vector3.new(0.8,0.8,0.8)
  833.  
  834. p.TopSurface = 0
  835.  
  836. p.BottomSurface = 0
  837.  
  838. local colorc = {"Lime green"}
  839.  
  840. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  841.  
  842. p.BrickColor = Fire
  843.  
  844. p.CanCollide=false
  845.  
  846. p.Anchored=true
  847.  
  848. p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  849.  
  850.  
  851. for i = 1,8 do wait()
  852.  
  853. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  854. p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
  855. end
  856. p:remove()
  857.  
  858. PlaySound("GasterTheme", 1, char.Torso, true)
  859.  
  860. ---functions and attacks
  861.  
  862. function BravAttack()
  863. if hand5BraveryhealthDown == true then return end
  864. if switchvalue == 7 then
  865.  
  866. BraveryAttack = true
  867.  
  868. WeldBravery = Instance.new("Weld",Bravery)
  869. WeldBravery.Part0 = AttackPosition
  870. WeldBravery.Part1 = Bravery
  871. WeldBravery.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  872.  
  873. local p = Instance.new("Part",workspace)
  874.  
  875. p.FormFactor="Custom"
  876.  
  877. p.Size=Vector3.new(0.8,0.8,0.8)
  878.  
  879. p.TopSurface = 0
  880.  
  881. p.BottomSurface = 0
  882.  
  883. local colorc = {"Deep orange"}
  884.  
  885. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  886.  
  887. p.BrickColor = Fire
  888.  
  889. p.CanCollide=false
  890.  
  891. p.Anchored=true
  892.  
  893. p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  894.  
  895. coroutine.resume(coroutine.create(function()
  896. for i = 1,8 do wait()
  897.  
  898. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  899. p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
  900. end
  901. p:remove()
  902. end))
  903.  
  904.  
  905.  
  906. end
  907.  
  908. end
  909.  
  910.  
  911.  
  912. function BravRest()
  913. if hand5BraveryhealthDown == true then return end
  914. if switchvalue == 6 then
  915.  
  916. if BraveryAttack == true then
  917. WeldBravery:remove()
  918.  
  919.  
  920. local p = Instance.new("Part",workspace)
  921.  
  922. p.FormFactor="Custom"
  923.  
  924. p.Size=Vector3.new(0.8,0.8,0.8)
  925.  
  926. p.TopSurface = 0
  927.  
  928. p.BottomSurface = 0
  929.  
  930. local colorc = {"Deep orange"}
  931.  
  932. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  933.  
  934. p.BrickColor = Fire
  935.  
  936. p.CanCollide=false
  937.  
  938. p.Anchored=true
  939.  
  940. p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  941. coroutine.resume(coroutine.create(function()
  942. for i = 1,8 do wait()
  943.  
  944. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  945. p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
  946. end
  947. p:remove()
  948. end))
  949.  
  950. BraveryAttack = false
  951.  
  952.  
  953. end
  954. end
  955. end
  956.  
  957. function PatAttack()
  958. if hand3PatiencehealthDown == true then return end
  959. if switchvalue == 6 then
  960.  
  961. PatienceAttack = true
  962.  
  963. WeldPatience = Instance.new("Weld",Patience)
  964. WeldPatience.Part0 = AttackPosition
  965. WeldPatience.Part1 = Patience
  966. WeldPatience.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  967.  
  968. local p = Instance.new("Part",workspace)
  969.  
  970. p.FormFactor="Custom"
  971.  
  972. p.Size=Vector3.new(0.8,0.8,0.8)
  973.  
  974. p.TopSurface = 0
  975.  
  976. p.BottomSurface = 0
  977.  
  978. local colorc = {"Cyan"}
  979.  
  980. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  981.  
  982. p.BrickColor = Fire
  983.  
  984. p.CanCollide=false
  985.  
  986. p.Anchored=true
  987.  
  988. p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  989.  
  990. coroutine.resume(coroutine.create(function()
  991. for i = 1,8 do wait()
  992.  
  993. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  994. p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
  995. end
  996. p:remove()
  997. end))
  998.  
  999.  
  1000.  
  1001. end
  1002.  
  1003. end
  1004.  
  1005.  
  1006.  
  1007. function PatRest()
  1008. if hand3PatiencehealthDown == true then return end
  1009. if switchvalue == 7 or switchvalue == 5 then
  1010.  
  1011. if PatienceAttack == true then
  1012. WeldPatience:remove()
  1013.  
  1014.  
  1015. local p = Instance.new("Part",workspace)
  1016.  
  1017. p.FormFactor="Custom"
  1018.  
  1019. p.Size=Vector3.new(0.8,0.8,0.8)
  1020.  
  1021. p.TopSurface = 0
  1022.  
  1023. p.BottomSurface = 0
  1024.  
  1025. local colorc = {"Cyan"}
  1026.  
  1027. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1028.  
  1029. p.BrickColor = Fire
  1030.  
  1031. p.CanCollide=false
  1032.  
  1033. p.Anchored=true
  1034.  
  1035. p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1036. coroutine.resume(coroutine.create(function()
  1037. for i = 1,8 do wait()
  1038.  
  1039. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1040. p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
  1041. end
  1042. p:remove()
  1043. end))
  1044.  
  1045. PatienceAttack = false
  1046.  
  1047.  
  1048. end
  1049. end
  1050. end
  1051.  
  1052.  
  1053. function DetAttack()
  1054. if hand1DeterminationhealthDown == true then return end
  1055. if switchvalue == 5 then
  1056.  
  1057. DeterminationAttack = true
  1058.  
  1059. WeldDet = Instance.new("Weld",Determination)
  1060. WeldDet.Part0 = AttackPosition
  1061. WeldDet.Part1 = Determination
  1062. WeldDet.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1063.  
  1064. local p = Instance.new("Part",workspace)
  1065.  
  1066. p.FormFactor="Custom"
  1067.  
  1068. p.Size=Vector3.new(0.8,0.8,0.8)
  1069.  
  1070. p.TopSurface = 0
  1071.  
  1072. p.BottomSurface = 0
  1073.  
  1074. local colorc = {"Really red"}
  1075.  
  1076. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1077.  
  1078. p.BrickColor = Fire
  1079.  
  1080. p.CanCollide=false
  1081.  
  1082. p.Anchored=true
  1083.  
  1084. p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1085.  
  1086. coroutine.resume(coroutine.create(function()
  1087. for i = 1,8 do wait()
  1088.  
  1089. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1090. p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
  1091. end
  1092. p:remove()
  1093. end))
  1094.  
  1095.  
  1096.  
  1097. end
  1098.  
  1099. end
  1100.  
  1101.  
  1102.  
  1103. function DetRest()
  1104. if hand1DeterminationhealthDown == true then return end
  1105. if switchvalue == 6 or switchvalue == 4 then
  1106.  
  1107. if DeterminationAttack == true then
  1108. WeldDet:remove()
  1109.  
  1110.  
  1111. local p = Instance.new("Part",workspace)
  1112.  
  1113. p.FormFactor="Custom"
  1114.  
  1115. p.Size=Vector3.new(0.8,0.8,0.8)
  1116.  
  1117. p.TopSurface = 0
  1118.  
  1119. p.BottomSurface = 0
  1120.  
  1121. local colorc = {"Really red"}
  1122.  
  1123. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1124.  
  1125. p.BrickColor = Fire
  1126.  
  1127. p.CanCollide=false
  1128.  
  1129. p.Anchored=true
  1130.  
  1131. p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1132. coroutine.resume(coroutine.create(function()
  1133. for i = 1,8 do wait()
  1134.  
  1135. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1136. p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
  1137. end
  1138. p:remove()
  1139. end))
  1140.  
  1141. DeterminationAttack = false
  1142.  
  1143.  
  1144. end
  1145. end
  1146. end
  1147.  
  1148.  
  1149.  
  1150. function KinAttack()
  1151. if hand7KindnesshealthDown == true then return end
  1152. if switchvalue == 4 then
  1153.  
  1154. KindAttack = true
  1155.  
  1156. WeldKind = Instance.new("Weld",Kindness)
  1157. WeldKind.Part0 = AttackPosition
  1158. WeldKind.Part1 = Kindness
  1159. WeldKind.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1160.  
  1161. local p = Instance.new("Part",workspace)
  1162.  
  1163. p.FormFactor="Custom"
  1164.  
  1165. p.Size=Vector3.new(0.8,0.8,0.8)
  1166.  
  1167. p.TopSurface = 0
  1168.  
  1169. p.BottomSurface = 0
  1170.  
  1171. local colorc = {"Lime green"}
  1172.  
  1173. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1174.  
  1175. p.BrickColor = Fire
  1176.  
  1177. p.CanCollide=false
  1178.  
  1179. p.Anchored=true
  1180.  
  1181. p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1182.  
  1183. coroutine.resume(coroutine.create(function()
  1184. for i = 1,8 do wait()
  1185.  
  1186. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1187. p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
  1188. end
  1189. p:remove()
  1190. end))
  1191.  
  1192.  
  1193.  
  1194. end
  1195.  
  1196. end
  1197.  
  1198.  
  1199.  
  1200. function KinRest()
  1201. if hand7KindnesshealthDown == true then return end
  1202. if switchvalue == 5 or switchvalue == 3 then
  1203.  
  1204. if KindAttack == true then
  1205. WeldKind:remove()
  1206.  
  1207.  
  1208. local p = Instance.new("Part",workspace)
  1209.  
  1210. p.FormFactor="Custom"
  1211.  
  1212. p.Size=Vector3.new(0.8,0.8,0.8)
  1213.  
  1214. p.TopSurface = 0
  1215.  
  1216. p.BottomSurface = 0
  1217.  
  1218. local colorc = {"Lime green"}
  1219.  
  1220. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1221.  
  1222. p.BrickColor = Fire
  1223.  
  1224. p.CanCollide=false
  1225.  
  1226. p.Anchored=true
  1227.  
  1228. p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1229. coroutine.resume(coroutine.create(function()
  1230. for i = 1,8 do wait()
  1231.  
  1232. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1233. p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
  1234. end
  1235. p:remove()
  1236. end))
  1237.  
  1238. KindAttack = false
  1239.  
  1240.  
  1241. end
  1242. end
  1243. end
  1244.  
  1245.  
  1246.  
  1247.  
  1248. function PerAttack()
  1249. if hand2PerseverancehealthDown == true then return end
  1250. if switchvalue == 3 then
  1251.  
  1252. PerseveranceAttack = true
  1253.  
  1254. WeldPer = Instance.new("Weld",Perseverance)
  1255. WeldPer.Part0 = AttackPosition
  1256. WeldPer.Part1 = Perseverance
  1257. WeldPer.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1258.  
  1259. local p = Instance.new("Part",workspace)
  1260.  
  1261. p.FormFactor="Custom"
  1262.  
  1263. p.Size=Vector3.new(0.8,0.8,0.8)
  1264.  
  1265. p.TopSurface = 0
  1266.  
  1267. p.BottomSurface = 0
  1268.  
  1269. local colorc = {"Magenta"}
  1270.  
  1271. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1272.  
  1273. p.BrickColor = Fire
  1274.  
  1275. p.CanCollide=false
  1276.  
  1277. p.Anchored=true
  1278.  
  1279. p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1280.  
  1281. coroutine.resume(coroutine.create(function()
  1282. for i = 1,8 do wait()
  1283.  
  1284. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1285. p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
  1286. end
  1287. p:remove()
  1288. end))
  1289.  
  1290.  
  1291.  
  1292. end
  1293.  
  1294. end
  1295.  
  1296.  
  1297.  
  1298. function PerRest()
  1299. if hand2PerseverancehealthDown == true then return end
  1300. if switchvalue == 4 or switchvalue == 2 then
  1301.  
  1302. if PerseveranceAttack == true then
  1303. WeldPer:remove()
  1304.  
  1305.  
  1306. local p = Instance.new("Part",workspace)
  1307.  
  1308. p.FormFactor="Custom"
  1309.  
  1310. p.Size=Vector3.new(0.8,0.8,0.8)
  1311.  
  1312. p.TopSurface = 0
  1313.  
  1314. p.BottomSurface = 0
  1315.  
  1316. local colorc = {"Magenta"}
  1317.  
  1318. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1319.  
  1320. p.BrickColor = Fire
  1321.  
  1322. p.CanCollide=false
  1323.  
  1324. p.Anchored=true
  1325.  
  1326. p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1327. coroutine.resume(coroutine.create(function()
  1328. for i = 1,8 do wait()
  1329.  
  1330. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1331. p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
  1332. end
  1333. p:remove()
  1334. end))
  1335.  
  1336. PerseveranceAttack = false
  1337.  
  1338.  
  1339. end
  1340. end
  1341. end
  1342.  
  1343.  
  1344. function IntAttack()
  1345. if hand4IntegrityhealthDown == true then return end
  1346. if switchvalue == 2 then
  1347.  
  1348. IntegrityAttack = true
  1349.  
  1350. WeldInt = Instance.new("Weld",Integrity)
  1351. WeldInt.Part0 = AttackPosition
  1352. WeldInt.Part1 = Integrity
  1353. WeldInt.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1354.  
  1355. local p = Instance.new("Part",workspace)
  1356.  
  1357. p.FormFactor="Custom"
  1358.  
  1359. p.Size=Vector3.new(0.8,0.8,0.8)
  1360.  
  1361. p.TopSurface = 0
  1362.  
  1363. p.BottomSurface = 0
  1364.  
  1365. local colorc = {"Dark blue"}
  1366.  
  1367. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1368.  
  1369. p.BrickColor = Fire
  1370.  
  1371. p.CanCollide=false
  1372.  
  1373. p.Anchored=true
  1374.  
  1375. p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1376.  
  1377. coroutine.resume(coroutine.create(function()
  1378. for i = 1,8 do wait()
  1379.  
  1380. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1381. p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
  1382. end
  1383. p:remove()
  1384. end))
  1385.  
  1386.  
  1387.  
  1388. end
  1389.  
  1390. end
  1391.  
  1392.  
  1393.  
  1394. function IntRest()
  1395. if hand4IntegrityhealthDown == true then return end
  1396. if switchvalue == 3 or switchvalue == 1 then
  1397.  
  1398. if IntegrityAttack == true then
  1399. WeldInt:remove()
  1400.  
  1401.  
  1402. local p = Instance.new("Part",workspace)
  1403.  
  1404. p.FormFactor="Custom"
  1405.  
  1406. p.Size=Vector3.new(0.8,0.8,0.8)
  1407.  
  1408. p.TopSurface = 0
  1409.  
  1410. p.BottomSurface = 0
  1411.  
  1412. local colorc = {"Dark blue"}
  1413.  
  1414. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1415.  
  1416. p.BrickColor = Fire
  1417.  
  1418. p.CanCollide=false
  1419.  
  1420. p.Anchored=true
  1421.  
  1422. p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1423. coroutine.resume(coroutine.create(function()
  1424. for i = 1,8 do wait()
  1425.  
  1426. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1427. p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
  1428. end
  1429. p:remove()
  1430. end))
  1431.  
  1432. IntegrityAttack = false
  1433.  
  1434.  
  1435. end
  1436. end
  1437. end
  1438.  
  1439.  
  1440.  
  1441.  
  1442. function JusAttack()
  1443.  
  1444. if switchvalue == 1 then
  1445. if hand6JusticehealthDown == true then return end
  1446. JusticeAttack = true
  1447.  
  1448. Weldjus = Instance.new("Weld",Justice)
  1449. Weldjus.Part0 = AttackPosition
  1450. Weldjus.Part1 = Justice
  1451. Weldjus.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1452.  
  1453. local p = Instance.new("Part",workspace)
  1454.  
  1455. p.FormFactor="Custom"
  1456.  
  1457. p.Size=Vector3.new(0.8,0.8,0.8)
  1458.  
  1459. p.TopSurface = 0
  1460.  
  1461. p.BottomSurface = 0
  1462.  
  1463. local colorc = {"New Yeller"}
  1464.  
  1465. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1466.  
  1467. p.BrickColor = Fire
  1468.  
  1469. p.CanCollide=false
  1470.  
  1471. p.Anchored=true
  1472.  
  1473. p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1474.  
  1475. coroutine.resume(coroutine.create(function()
  1476. for i = 1,8 do wait()
  1477.  
  1478. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1479. p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
  1480. end
  1481. p:remove()
  1482. end))
  1483.  
  1484.  
  1485.  
  1486. end
  1487.  
  1488. end
  1489.  
  1490.  
  1491.  
  1492.  
  1493. function JusRest()
  1494. if hand6JusticehealthDown == true then return end
  1495. if switchvalue == 2 then
  1496.  
  1497. if JusticeAttack == true then
  1498. Weldjus:remove()
  1499.  
  1500.  
  1501. local p = Instance.new("Part",workspace)
  1502.  
  1503. p.FormFactor="Custom"
  1504.  
  1505. p.Size=Vector3.new(0.8,0.8,0.8)
  1506.  
  1507. p.TopSurface = 0
  1508.  
  1509. p.BottomSurface = 0
  1510.  
  1511. local colorc = {"New Yeller"}
  1512.  
  1513. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1514.  
  1515. p.BrickColor = Fire
  1516.  
  1517. p.CanCollide=false
  1518.  
  1519. p.Anchored=true
  1520.  
  1521. p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1522. coroutine.resume(coroutine.create(function()
  1523. for i = 1,8 do wait()
  1524.  
  1525. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1526. p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
  1527. end
  1528. p:remove()
  1529. end))
  1530.  
  1531. JusticeAttack = false
  1532.  
  1533.  
  1534. end
  1535. end
  1536. end
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549. --Key Presses
  1550.  
  1551. mouse.Button1Up:connect(function()
  1552.  
  1553. InUse = false
  1554.  
  1555.  
  1556. end)
  1557.  
  1558. mouse.Button1Down:connect(function()
  1559.  
  1560. InUse = true
  1561.  
  1562.  
  1563. end)
  1564.  
  1565. mouse.KeyDown:connect(function(key)
  1566.  
  1567. if key =="r" then
  1568. if hand7KindnesshealthDown == true then return end
  1569. if ShieldValueToGasterDebounce == true then return end
  1570.  
  1571. if ShieldValueToGaster == false then
  1572. ShieldValueToGaster = true
  1573. if ShieldValueToGasterDebounce == false then
  1574. ShieldValueToGasterDebounce = true
  1575.  
  1576.  
  1577. local ShieldOfGaster6= Instance.new("Part",hand7Kindness)
  1578. ShieldOfGaster6.TopSurface = "Smooth"
  1579. ShieldOfGaster6.BottomSurface = "Smooth"
  1580. ShieldOfGaster6.Size = Vector3.new(18, 3, 18)
  1581. ShieldOfGaster6.CanCollide = true
  1582. ShieldOfGaster6.Anchored =true
  1583. ShieldOfGaster6.BrickColor = BrickColor.new("Lime green")
  1584. ShieldOfGaster6 .FormFactor = "Custom"
  1585. ShieldOfGaster6.Transparency = 0.7
  1586. ShieldOfGaster6.CFrame= Torso.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1587. shieldparent6 = ShieldOfGaster6
  1588.  
  1589. local ShieldOfGaster5= Instance.new("Part",hand7Kindness)
  1590. ShieldOfGaster5.TopSurface = "Smooth"
  1591. ShieldOfGaster5.BottomSurface = "Smooth"
  1592. ShieldOfGaster5.Size = Vector3.new(18, 3, 18)
  1593. ShieldOfGaster5.CanCollide = true
  1594. ShieldOfGaster5.Anchored =true
  1595. ShieldOfGaster5.BrickColor = BrickColor.new("Lime green")
  1596. ShieldOfGaster5 .FormFactor = "Custom"
  1597. ShieldOfGaster5.Transparency = 0.7
  1598. ShieldOfGaster5.CFrame= Torso.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1599. shieldparent5 = ShieldOfGaster5
  1600.  
  1601. local ShieldOfGaster4= Instance.new("Part",hand7Kindness)
  1602. ShieldOfGaster4.TopSurface = "Smooth"
  1603. ShieldOfGaster4.BottomSurface = "Smooth"
  1604. ShieldOfGaster4.Size = Vector3.new(3, 18, 18)
  1605. ShieldOfGaster4.CanCollide = true
  1606. ShieldOfGaster4.Anchored =true
  1607. ShieldOfGaster4.BrickColor = BrickColor.new("Lime green")
  1608. ShieldOfGaster4 .FormFactor = "Custom"
  1609. ShieldOfGaster4.Transparency = 0.7
  1610. ShieldOfGaster4.CFrame= Torso.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1611. shieldparent4 = ShieldOfGaster4
  1612.  
  1613. local ShieldOfGaster3= Instance.new("Part",hand7Kindness)
  1614. ShieldOfGaster3.TopSurface = "Smooth"
  1615. ShieldOfGaster3.BottomSurface = "Smooth"
  1616. ShieldOfGaster3.Size = Vector3.new(3, 18, 18)
  1617. ShieldOfGaster3.CanCollide = true
  1618. ShieldOfGaster3.Anchored =true
  1619. ShieldOfGaster3.BrickColor = BrickColor.new("Lime green")
  1620. ShieldOfGaster3 .FormFactor = "Custom"
  1621. ShieldOfGaster3.Transparency = 0.7
  1622. ShieldOfGaster3.CFrame= Torso.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1623. shieldparent3 = ShieldOfGaster3
  1624.  
  1625. local ShieldOfGaster2= Instance.new("Part",hand7Kindness)
  1626. ShieldOfGaster2.TopSurface = "Smooth"
  1627. ShieldOfGaster2.BottomSurface = "Smooth"
  1628. ShieldOfGaster2.Size = Vector3.new(18, 18, 3)
  1629. ShieldOfGaster2.CanCollide = true
  1630. ShieldOfGaster2.Anchored =true
  1631. ShieldOfGaster2.BrickColor = BrickColor.new("Lime green")
  1632. ShieldOfGaster2 .FormFactor = "Custom"
  1633. ShieldOfGaster2.Transparency = 0.7
  1634. ShieldOfGaster2.CFrame= Torso.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1635. shieldparent2 = ShieldOfGaster2
  1636.  
  1637. local ShieldOfGaster1= Instance.new("Part",hand7Kindness)
  1638. ShieldOfGaster1.TopSurface = "Smooth"
  1639. ShieldOfGaster1.BottomSurface = "Smooth"
  1640. ShieldOfGaster1.Size = Vector3.new(18, 18, 3)
  1641. ShieldOfGaster1.CanCollide = true
  1642. ShieldOfGaster1.Anchored =true
  1643. ShieldOfGaster1.BrickColor = BrickColor.new("Lime green")
  1644. ShieldOfGaster1 .FormFactor = "Custom"
  1645. ShieldOfGaster1.Transparency = 0.7
  1646. ShieldOfGaster1.CFrame= Torso.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1647. shieldparent1 = ShieldOfGaster1
  1648.  
  1649. for i = 1,7 do
  1650. local parti = Instance.new("Part",Torso)
  1651. parti.Anchored = true
  1652. parti.TopSurface = 0
  1653. parti.BottomSurface = 0
  1654. parti.CanCollide = false
  1655. parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
  1656. parti.CFrame = Torso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1657. parti.Transparency = 0
  1658. parti.BrickColor = BrickColor.new("Lime green")
  1659. game.Debris:AddItem(parti,1.5)
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667. local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  1668. game:service("RunService").Stepped:connect(function()
  1669. parti.Transparency = parti.Transparency + 0.05
  1670. parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
  1671. end)
  1672. end
  1673.  
  1674. ShieldValueToGasterDebounce = false
  1675. ShieldValueToGaster = true
  1676. end
  1677.  
  1678.  
  1679. elseif ShieldValueToGaster == true then
  1680. ShieldValueToGaster = false
  1681. if ShieldValueToGasterDebounce == false then
  1682. ShieldValueToGasterDebounce = true
  1683.  
  1684.  
  1685. for i = 1,3 do wait()
  1686. shieldparent6.Transparency =shieldparent6.Transparency + 0.1
  1687. shieldparent5.Transparency =shieldparent5.Transparency + 0.1
  1688. shieldparent4.Transparency =shieldparent4.Transparency + 0.1
  1689. shieldparent3.Transparency =shieldparent3.Transparency + 0.1
  1690. shieldparent2.Transparency =shieldparent2.Transparency + 0.1
  1691. shieldparent1.Transparency =shieldparent1.Transparency + 0.1
  1692. end
  1693. shieldparent6:remove()
  1694. shieldparent5:remove()
  1695. shieldparent4:remove()
  1696. shieldparent3:remove()
  1697. shieldparent2:remove()
  1698. shieldparent1:remove()
  1699.  
  1700. shieldparent1=nil
  1701. shieldparent2=nil
  1702. shieldparent3=nil
  1703. shieldparent4=nil
  1704. shieldparent5=nil
  1705. shieldparent6=nil
  1706.  
  1707.  
  1708. ShieldValueToGasterDebounce = false
  1709. ShieldValueToGaster = false
  1710. end
  1711. end
  1712.  
  1713.  
  1714. end
  1715.  
  1716.  
  1717. if key =="x" then
  1718. if (not vDebounce) then
  1719. vDebounce = true
  1720. for i = 1,5 do wait()
  1721. Torso.Transparency = Torso.Transparency + 0.2
  1722. char["Left Arm"].Transparency = char["Left Arm"].Transparency + 0.2
  1723. char["Left Leg"].Transparency = char["Left Leg"].Transparency + 0.2
  1724. char["Right Arm"].Transparency = char["Right Arm"].Transparency + 0.2
  1725. char["Right Leg"].Transparency = char["Right Leg"].Transparency + 0.2
  1726. char.Head.Transparency = char.Head.Transparency + 0.2
  1727. Crack1.Transparency = Crack1.Transparency + 0.2
  1728. Crack2.Transparency = Crack2.Transparency + 0.2
  1729. mouth.Transparency = mouth.Transparency + 0.2
  1730. Eye1.Transparency = Eye1.Transparency + 0.2
  1731. Eye2.Transparency = Eye2.Transparency + 0.2
  1732. MEye1.Transparency = MEye1.Transparency + 0.2
  1733. MEye2.Transparency = MEye2.Transparency + 0.2
  1734. end
  1735.  
  1736. teleportPlayer(mouse.hit.p)
  1737. char.Humanoid.PlatformStand = false
  1738. vDebounce = false
  1739. end
  1740. end
  1741.  
  1742.  
  1743.  
  1744. if key == "q" then
  1745.  
  1746. if switchvalue == 1 then return end
  1747.  
  1748. switchvalue = switchvalue - 1
  1749.  
  1750. print (switchvalue)
  1751.  
  1752. JusAttack()
  1753. JusRest()
  1754. IntAttack()
  1755. IntRest()
  1756. PerAttack()
  1757. PerRest()
  1758. KinAttack()
  1759. KinRest()
  1760. DetAttack()
  1761. DetRest()
  1762. PatAttack()
  1763. PatRest()
  1764. BravAttack()
  1765. BravRest()
  1766. end
  1767.  
  1768. if key == "e" then
  1769.  
  1770. if switchvalue == 7 then return end
  1771.  
  1772. switchvalue = switchvalue + 1
  1773.  
  1774. print (switchvalue)
  1775.  
  1776. JusAttack()
  1777. JusRest()
  1778. IntAttack()
  1779. IntRest()
  1780. PerAttack()
  1781. PerRest()
  1782. KinAttack()
  1783. KinRest()
  1784. DetAttack()
  1785. DetRest()
  1786. PatAttack()
  1787. PatRest()
  1788. BravAttack()
  1789. BravRest()
  1790. end
  1791.  
  1792.  
  1793.  
  1794. end)
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804. ---runservices
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813. game:service("RunService").Stepped:connect(function() wait(.5)
  1814.  
  1815.  
  1816. if hand1DeterminationhealthDown == true and hand2PerseverancehealthDown == true and hand3PatiencehealthDown == true and hand4IntegrityhealthDown == true and hand5BraveryhealthDown == true and hand6JusticehealthDown == true and hand7KindnesshealthDown == true then
  1817.  
  1818. char.Humanoid.Health = 0
  1819.  
  1820.  
  1821. end
  1822.  
  1823.  
  1824. if InUse == false then return end
  1825.  
  1826. if JusticeAttack == true then
  1827.  
  1828. if InUse == false then return end
  1829. if InUse == true then
  1830. if JusticeAttackDebounce == true then return end
  1831. if JusticeAttackDebounce == false then
  1832.  
  1833.  
  1834. JusticeAttackDebounce = true
  1835.  
  1836. wait(.2)
  1837.  
  1838.  
  1839. local PewJustice = Instance.new("Part",suit)
  1840. PewJustice.Size = Vector3.new(2,1,4)
  1841. PewJustice.BrickColor = BrickColor.new("New Yeller")
  1842. PewJustice.Position = Justice.Position
  1843. PewJustice.CanCollide = false
  1844.  
  1845. for i = 1,7 do
  1846. local parti = Instance.new("Part",Torso)
  1847. parti.Anchored = true
  1848. parti.TopSurface = 0
  1849. parti.BottomSurface = 0
  1850. parti.CanCollide = false
  1851. parti.Size = Vector3.new(math.random(.5,.5),math.random(.5,.5),math.random(.5,.5))
  1852. parti.CFrame = Justice.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  1853. parti.Transparency = 0
  1854. parti.BrickColor = BrickColor.new("New Yeller")
  1855. game.Debris:AddItem(parti,1.5)
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863. local pad = Vector3.new(math.random(-2,2)/100,math.random(-2,2)/100,math.random(-2,2)/100)
  1864. game:service("RunService").Stepped:connect(function()
  1865. parti.Transparency = parti.Transparency + 0.05
  1866. parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
  1867. end)
  1868.  
  1869.  
  1870.  
  1871. end
  1872.  
  1873. coroutine.resume(coroutine.create(function()
  1874. for i = 1,8 do wait()
  1875.  
  1876. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  1877. p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
  1878. end
  1879. p:remove()
  1880. end))
  1881.  
  1882. local handleCFrame = PewJustice.CFrame
  1883. local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
  1884. local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
  1885. local laserShotClone = PewJustice:Clone()
  1886. PewJustice:remove()
  1887. laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (PewJustice.Size.Z / 2))
  1888. local bodyVelocity = Instance.new('BodyVelocity')
  1889. bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
  1890. bodyVelocity.Parent = laserShotClone
  1891. bodyVelocity.Name = "Magic"
  1892. bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
  1893.  
  1894.  
  1895. laserShotClone.Parent = suit
  1896.  
  1897.  
  1898. function touch(hit)
  1899.  
  1900.  
  1901. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1902.  
  1903. if hit.Parent.Name == char.Name then return end
  1904. if hit.Parent.Name == hand1Determination.Name then return end
  1905. if hit.Parent.Name == hand2Perseverance.Name then return end
  1906. if hit.Parent.Name == hand3Patience.Name then return end
  1907. if hit.Parent.Name == hand4Integrity.Name then return end
  1908. if hit.Parent.Name == hand5Bravery.Name then return end
  1909. if hit.Parent.Name == hand6Justice.Name then return end
  1910. if hit.Parent.Name == hand7Kindness.Name then return end
  1911.  
  1912. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-3
  1913.  
  1914. local HitSounds = {
  1915. Hurt = Instance.new("Sound")
  1916.  
  1917. }
  1918.  
  1919. HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
  1920. HitSounds["Hurt"].Volume = 1
  1921.  
  1922. function PlayHitSound(soundname, pitch)
  1923. HitSounds[soundname].Parent = hit.Parent.Torso
  1924. HitSounds[soundname].Pitch = pitch
  1925. HitSounds[soundname]:Play()
  1926. local oldsound = HitSounds[soundname]
  1927. coroutine.resume(coroutine.create(function()
  1928. wait(4)
  1929. oldsound:Destroy()
  1930. end))
  1931. HitSounds[soundname] = HitSounds[soundname]:clone()
  1932. end
  1933.  
  1934. PlayHitSound("Hurt", 1)
  1935.  
  1936. coroutine.resume(coroutine.create(function()
  1937. laserShotClone.Magic:remove()
  1938.  
  1939. wait(3)
  1940. laserShotClone:remove()
  1941. end))
  1942.  
  1943. end end laserShotClone.Touched:connect(touch)
  1944.  
  1945. game.Debris:AddItem(laserShotClone,10)
  1946.  
  1947.  
  1948. JusticeAttackDebounce = false
  1949. end
  1950. end
  1951. end
  1952.  
  1953.  
  1954. ----2nd Attack
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963. if IntegrityAttack == true then
  1964.  
  1965. if InUse == false then return end
  1966. if InUse == true then
  1967. if IntegrityAttackDebounce == true then return end
  1968. if IntegrityAttackDebounce == false then
  1969.  
  1970.  
  1971. IntegrityAttackDebounce = true
  1972.  
  1973. wait(.5)
  1974.  
  1975. for i = 1,2 do wait(1)
  1976. local PewIntegrity = Instance.new("Part",suit)
  1977. PewIntegrity.Size = Vector3.new(5,1,5)
  1978. PewIntegrity.BrickColor = BrickColor.new("Dark blue")
  1979. PewIntegrity.Position = Integrity.Position
  1980. PewIntegrity.CanCollide = false
  1981. PewIntegrity.Transparency = 0.4
  1982.  
  1983. local p = Instance.new("Part",workspace)
  1984.  
  1985. p.FormFactor="Custom"
  1986.  
  1987. p.Size=Vector3.new(0.8,0.8,0.8)
  1988.  
  1989. p.TopSurface = 0
  1990.  
  1991. p.BottomSurface = 0
  1992.  
  1993. local colorc = {"Dark blue"}
  1994.  
  1995. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1996.  
  1997. p.BrickColor = Fire
  1998.  
  1999. p.CanCollide=false
  2000.  
  2001. p.Anchored=true
  2002.  
  2003. p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  2004. coroutine.resume(coroutine.create(function()
  2005. for i = 1,8 do wait()
  2006.  
  2007. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  2008. p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
  2009. end
  2010. p:remove()
  2011. end))
  2012.  
  2013. local handleCFrame = PewIntegrity.CFrame
  2014. local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
  2015. local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
  2016. local laserShotClone = PewIntegrity:Clone()
  2017. PewIntegrity:remove()
  2018. laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (PewIntegrity.Size.Z / 2))
  2019. local bodyVelocity = Instance.new('BodyVelocity')
  2020. bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
  2021. negativevelocity = bodyVelocity.velocity*-1
  2022. bodyVelocity.Parent = laserShotClone
  2023. bodyVelocity.Name = "Magic"
  2024. bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
  2025.  
  2026.  
  2027. laserShotClone.Parent = suit
  2028.  
  2029.  
  2030. function touch(hit)
  2031.  
  2032.  
  2033. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2034.  
  2035. if hit.Parent.Name == char.Name then return end
  2036. if hit.Parent.Name == hand1Determination.Name then return end
  2037. if hit.Parent.Name == hand2Perseverance.Name then return end
  2038. if hit.Parent.Name == hand3Patience.Name then return end
  2039. if hit.Parent.Name == hand4Integrity.Name then return end
  2040. if hit.Parent.Name == hand5Bravery.Name then return end
  2041. if hit.Parent.Name == hand6Justice.Name then return end
  2042. if hit.Parent.Name == hand7Kindness.Name then return end
  2043.  
  2044. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
  2045.  
  2046. local HitSounds = {
  2047. Hurt = Instance.new("Sound")
  2048.  
  2049. }
  2050.  
  2051. HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
  2052. HitSounds["Hurt"].Volume = 1
  2053.  
  2054. function PlayHitSound(soundname, pitch)
  2055. HitSounds[soundname].Parent = hit.Parent.Torso
  2056. HitSounds[soundname].Pitch = pitch
  2057. HitSounds[soundname]:Play()
  2058. local oldsound = HitSounds[soundname]
  2059. coroutine.resume(coroutine.create(function()
  2060. wait(4)
  2061. oldsound:Destroy()
  2062. end))
  2063. HitSounds[soundname] = HitSounds[soundname]:clone()
  2064. end
  2065.  
  2066. PlayHitSound("Hurt", 1)
  2067.  
  2068.  
  2069.  
  2070. end end laserShotClone.Touched:connect(touch)
  2071.  
  2072. game.Debris:AddItem(laserShotClone,10)
  2073. coroutine.resume(coroutine.create(function()
  2074. for i = 1,25 do wait()
  2075.  
  2076. local p = Instance.new("Part",workspace)
  2077.  
  2078. p.FormFactor="Custom"
  2079.  
  2080. p.Size=Vector3.new(5,1,5)
  2081.  
  2082. p.TopSurface = 0
  2083.  
  2084. p.BottomSurface = 0
  2085.  
  2086. local colorc = {"Dark blue"}
  2087.  
  2088. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  2089.  
  2090. p.BrickColor = Fire
  2091.  
  2092. p.CanCollide=false
  2093.  
  2094. p.Anchored=true
  2095.  
  2096. p.Transparency = 0.7
  2097.  
  2098. p.CFrame =(laserShotClone.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0.3*i,0))
  2099.  
  2100. game.Debris:AddItem(p,.2)
  2101.  
  2102. end
  2103.  
  2104. bodyVelocity.velocity = negativevelocity
  2105.  
  2106. for i = 1,25 do wait()
  2107.  
  2108. local p = Instance.new("Part",workspace)
  2109.  
  2110. p.FormFactor="Custom"
  2111.  
  2112. p.Size=Vector3.new(5,1,5)
  2113.  
  2114. p.TopSurface = 0
  2115.  
  2116. p.BottomSurface = 0
  2117.  
  2118. local colorc = {"Dark blue"}
  2119.  
  2120. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  2121.  
  2122. p.BrickColor = Fire
  2123.  
  2124. p.CanCollide=false
  2125.  
  2126. p.Anchored=true
  2127.  
  2128. p.Transparency = 0.7
  2129.  
  2130. game.Debris:AddItem(p,.2)
  2131. p.CFrame =(laserShotClone.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0.3*i,0))
  2132.  
  2133. end
  2134. end))
  2135. end
  2136. wait(1)
  2137. IntegrityAttackDebounce = false
  2138. end
  2139. end
  2140. end
  2141.  
  2142.  
  2143. --3rd AttackPosition
  2144. if PerseveranceAttack == true then
  2145.  
  2146. if InUse == false then return end
  2147. if InUse == true then
  2148. if PerseveranceAttackDebounce == true then return end
  2149. if PerseveranceAttackDebounce == false then
  2150. PerseveranceAttackDebounce = true
  2151. RandomPerseverance = math.random(1,2)
  2152.  
  2153. if RandomPerseverance == 2 then
  2154. local randomnumber = math.random(1,2)
  2155.  
  2156.  
  2157.  
  2158. wait(.3)
  2159.  
  2160.  
  2161.  
  2162. local p = Instance.new("Part",workspace)
  2163.  
  2164. p.FormFactor="Custom"
  2165.  
  2166. p.Size=Vector3.new(0.8,0.8,0.8)
  2167.  
  2168. p.TopSurface = 0
  2169.  
  2170. p.BottomSurface = 0
  2171.  
  2172. local colorc = {"Magenta"}
  2173.  
  2174. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  2175.  
  2176. p.BrickColor = Fire
  2177.  
  2178. p.CanCollide=false
  2179.  
  2180. p.Anchored=true
  2181.  
  2182. p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  2183. coroutine.resume(coroutine.create(function()
  2184. for i = 1,5 do wait()
  2185.  
  2186. p.Size=Vector3.new(0.5*i,0.5*i,0.5*i)
  2187. p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
  2188. end
  2189. p:remove()
  2190. end))
  2191.  
  2192. local throwbone1 = Instance.new("Part",suit)
  2193. throwbone1.TopSurface = "Smooth"
  2194. throwbone1.BottomSurface = "Smooth"
  2195. throwbone1.Size = Vector3.new(0.2, 0.2, 3)
  2196. throwbone1.CanCollide = true
  2197. throwbone1.BrickColor = BrickColor.new("Magenta")
  2198. throwbone1 .FormFactor = "Custom"
  2199. local Weldbonepart2 = Instance.new("Weld",throwbone1)
  2200. Weldbonepart2.Part0 = throwbone1
  2201. Weldbonepart2.Part1 = Perseverance
  2202. Weldbonepart2.Name = "WBP22"
  2203.  
  2204. local throwbone1weld2 = Instance.new("Part",throwbone1)
  2205. throwbone1weld2.TopSurface = "Smooth"
  2206. throwbone1weld2.BottomSurface = "Smooth"
  2207. throwbone1weld2.Size = Vector3.new(0.4, 0.4, 0.4)
  2208. throwbone1weld2.CanCollide = true
  2209. throwbone1weld2.BrickColor = BrickColor.new("Magenta")
  2210. throwbone1weld2 .FormFactor = "Custom"
  2211. local Weldbonepart2weld2 = Instance.new("Weld",throwbone1)
  2212. Weldbonepart2weld2.Part0 = throwbone1weld2
  2213. Weldbonepart2weld2.Part1 = throwbone1
  2214. Weldbonepart2weld2.Name = "WBP2W2"
  2215. Weldbonepart2weld2.C1 = CFrame.new(0, 0, -1.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2216.  
  2217.  
  2218. local throwbone1weld1 = Instance.new("Part",throwbone1)
  2219. throwbone1weld1.TopSurface = "Smooth"
  2220. throwbone1weld1.BottomSurface = "Smooth"
  2221. throwbone1weld1.Size = Vector3.new(0.4, 0.4, 0.4)
  2222. throwbone1weld1.CanCollide = true
  2223. throwbone1weld1.BrickColor = BrickColor.new("Magenta")
  2224. throwbone1weld1 .FormFactor = "Custom"
  2225. local Weldbonepart2weld1 = Instance.new("Weld",throwbone1)
  2226. Weldbonepart2weld1.Part0 = throwbone1weld1
  2227. Weldbonepart2weld1.Part1 = throwbone1
  2228. Weldbonepart2weld1.Name = "WBP2W1"
  2229. Weldbonepart2weld1.C1 = CFrame.new(0, 0, 1.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2230.  
  2231.  
  2232. if randomnumber == 1 then
  2233. for i = 1,10 do wait()
  2234.  
  2235. Weldbonepart2.C1 = CFrame.new(-3, 0, 0)*CFrame.fromEulerAnglesXYZ(0.7*i, 0, 0)
  2236.  
  2237.  
  2238. end
  2239. end
  2240.  
  2241. if randomnumber == 2 then
  2242. for i = 1,10 do wait()
  2243.  
  2244. Weldbonepart2.C1 = CFrame.new(3, 0, 0)*CFrame.fromEulerAnglesXYZ(0.7*i, 0, 0)
  2245.  
  2246.  
  2247. end
  2248. end
  2249.  
  2250.  
  2251. local handleCFrame = throwbone1.CFrame
  2252. local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
  2253. local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
  2254. local laserShotClone = throwbone1:Clone()
  2255. laserShotClone.WBP22:remove()
  2256. laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (throwbone1.Size.Z / 2))
  2257. local bodyVelocity = Instance.new('BodyVelocity')
  2258. bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
  2259. bodyVelocity.Parent = laserShotClone
  2260. bodyVelocity.Name = "Magic"
  2261. bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
  2262.  
  2263.  
  2264. laserShotClone.Parent = suit
  2265.  
  2266. throwbone1:remove()
  2267.  
  2268.  
  2269.  
  2270. function touch(hit)
  2271.  
  2272.  
  2273. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2274.  
  2275. if hit.Parent.Name == char.Name then return end
  2276. if hit.Parent.Name == hand1Determination.Name then return end
  2277. if hit.Parent.Name == hand2Perseverance.Name then return end
  2278. if hit.Parent.Name == hand3Patience.Name then return end
  2279. if hit.Parent.Name == hand4Integrity.Name then return end
  2280. if hit.Parent.Name == hand5Bravery.Name then return end
  2281. if hit.Parent.Name == hand6Justice.Name then return end
  2282. if hit.Parent.Name == hand7Kindness.Name then return end
  2283.  
  2284. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-5
  2285.  
  2286. local HitSounds = {
  2287. Hurt = Instance.new("Sound")
  2288.  
  2289. }
  2290.  
  2291. HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
  2292. HitSounds["Hurt"].Volume = 1
  2293.  
  2294. function PlayHitSound(soundname, pitch)
  2295. HitSounds[soundname].Parent = hit.Parent.Torso
  2296. HitSounds[soundname].Pitch = pitch
  2297. HitSounds[soundname]:Play()
  2298. local oldsound = HitSounds[soundname]
  2299. coroutine.resume(coroutine.create(function()
  2300. wait(4)
  2301. oldsound:Destroy()
  2302. end))
  2303. HitSounds[soundname] = HitSounds[soundname]:clone()
  2304. end
  2305.  
  2306. PlayHitSound("Hurt", 1)
  2307.  
  2308. coroutine.resume(coroutine.create(function()
  2309. laserShotClone.Magic:remove()
  2310.  
  2311. wait(3)
  2312. laserShotClone:remove()
  2313. end))
  2314.  
  2315. end end laserShotClone.Touched:connect(touch)
  2316.  
  2317. game.Debris:AddItem(laserShotClone,10)
  2318.  
  2319.  
  2320. elseif RandomPerseverance == 1 then
  2321.  
  2322. PlaySound("Gaster", 1, PerseveranceOrb,false)
  2323. wait(1)
  2324. local ray = Ray.new(PerseveranceOrb.CFrame.p, (mouse.Hit.p - PerseveranceOrb.CFrame.p).unit*1000)
  2325. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331. local ray = Ray.new(PerseveranceOrb.CFrame.p, (mouse.Hit.p -PerseveranceOrb.CFrame.p).unit*300)
  2332. local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
  2333. local distance = (position - PerseveranceOrb.CFrame.p).magnitude
  2334. local rp=Instance.new("Part",workspace)
  2335. rp.Anchored=true
  2336. rp.TopSurface="Smooth"
  2337. rp.BottomSurface="Smooth"
  2338. rp.Transparency=0
  2339. rp.BrickColor=BrickColor.new("Bright purple")
  2340. rp.FormFactor="Custom"
  2341. rp.CanCollide=false
  2342. rp.Size=Vector3.new(0.8,0.1,distance)
  2343. rp.Material = "Neon"
  2344. rp.CFrame=CFrame.new(position, PerseveranceOrb.CFrame.p) * CFrame.new(0, 0, -distance/2)
  2345. local cy=Instance.new("BlockMesh",rp)
  2346.  
  2347.  
  2348.  
  2349. coroutine.resume(coroutine.create(function()
  2350. wait(1)
  2351. for i=1,10 do
  2352. wait()
  2353. rp.Transparency=rp.Transparency + 0.1
  2354.  
  2355. end
  2356. rp:remove()
  2357. end))
  2358.  
  2359. function touch(hit)
  2360.  
  2361.  
  2362. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2363.  
  2364. if hit.Parent.Name == char.Name then return end
  2365. if hit.Parent.Name == hand1Determination.Name then return end
  2366. if hit.Parent.Name == hand2Perseverance.Name then return end
  2367. if hit.Parent.Name == hand3Patience.Name then return end
  2368. if hit.Parent.Name == hand4Integrity.Name then return end
  2369. if hit.Parent.Name == hand5Bravery.Name then return end
  2370. if hit.Parent.Name == hand6Justice.Name then return end
  2371. if hit.Parent.Name == hand7Kindness.Name then return end
  2372.  
  2373. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-20
  2374.  
  2375. local HitSounds = {
  2376. Hurt = Instance.new("Sound")
  2377.  
  2378. }
  2379.  
  2380. HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
  2381. HitSounds["Hurt"].Volume = 1
  2382.  
  2383. function PlayHitSound(soundname, pitch)
  2384. HitSounds[soundname].Parent = hit.Parent.Torso
  2385. HitSounds[soundname].Pitch = pitch
  2386. HitSounds[soundname]:Play()
  2387. local oldsound = HitSounds[soundname]
  2388. coroutine.resume(coroutine.create(function()
  2389. wait(4)
  2390. oldsound:Destroy()
  2391. end))
  2392. HitSounds[soundname] = HitSounds[soundname]:clone()
  2393. end
  2394.  
  2395. PlayHitSound("Hurt", 1)
  2396.  
  2397. end end rp.Touched:connect(touch)
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405. end
  2406. RandomPerseverance = 0
  2407.  
  2408. PerseveranceAttackDebounce = false
  2409. end
  2410. end
  2411. end
  2412.  
  2413. if KindAttack == true then
  2414.  
  2415. if InUse == false then return end
  2416. if InUse == true then
  2417. if KindnessAttackDebounce == true then return end
  2418. if KindnessAttackDebounce == false then
  2419. KindnessAttackDebounce = true
  2420. local ray = Ray.new(Kindness.CFrame.p, (mouse.Hit.p -Kindness.CFrame.p).unit*300)
  2421. local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
  2422. local distance = (position - Kindness.CFrame.p).magnitude
  2423. local rp=Instance.new("Part",workspace)
  2424. rp.Anchored=true
  2425. rp.TopSurface="Smooth"
  2426. rp.BottomSurface="Smooth"
  2427. rp.Transparency=1
  2428. rp.BrickColor=BrickColor.new("Deep orange")
  2429. rp.FormFactor="Custom"
  2430. rp.CanCollide=false
  2431. rp.Size=Vector3.new(0.6,0.6,distance)
  2432. rp.Material = "Neon"
  2433. rp.CFrame=CFrame.new(position, Kindness.CFrame.p) * CFrame.new(0, 0, -distance/2)
  2434. local cy=Instance.new("BlockMesh",rp)
  2435. rp:Destroy()
  2436.  
  2437.  
  2438.  
  2439. local ps = Instance.new("Part", suit)
  2440. ps.Name = "MagicPart"
  2441. ps.TopSurface = "Smooth"
  2442. ps.BottomSurface = "Smooth"
  2443. ps.BrickColor = BrickColor.new("Toothpaste")
  2444. ps.FormFactor = "Custom"
  2445. ps.Transparency = 1
  2446. ps.Size = Vector3.new(.2, 3, 3)
  2447. ps.Anchored = true
  2448. ps.CanCollide = false
  2449. ps.CFrame = CFrame.new(position)*CFrame.new(0,3,0)
  2450. local cy=Instance.new("SpecialMesh",ps)
  2451. cy.MeshType = "Cylinder"
  2452.  
  2453. coroutine.resume(coroutine.create(function()
  2454.  
  2455.  
  2456.  
  2457. local SpawnSounds = {
  2458. Spike = Instance.new("Sound")
  2459.  
  2460. }
  2461.  
  2462. SpawnSounds["Spike"].SoundId = "http://www.roblox.com/asset?id=486286230"
  2463. SpawnSounds["Spike"].Volume = 0.5
  2464.  
  2465. function PlaySpawnSound(soundname, pitch)
  2466. SpawnSounds[soundname].Parent = ps
  2467. SpawnSounds[soundname].Pitch = pitch
  2468. SpawnSounds[soundname]:Play()
  2469. local oldsound = SpawnSounds[soundname]
  2470. coroutine.resume(coroutine.create(function()
  2471. wait(4)
  2472. oldsound:Destroy()
  2473. end))
  2474. SpawnSounds[soundname] = SpawnSounds[soundname]:clone()
  2475. end
  2476.  
  2477.  
  2478.  
  2479. local p = Instance.new("Part",workspace)
  2480.  
  2481. p.FormFactor="Custom"
  2482.  
  2483. p.Size=Vector3.new(0.8,0.8,0.8)
  2484.  
  2485. p.TopSurface = 0
  2486.  
  2487. p.BottomSurface = 0
  2488.  
  2489. local colorc = {"Lime green"}
  2490.  
  2491. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  2492.  
  2493. p.BrickColor = Fire
  2494.  
  2495. p.CanCollide=false
  2496.  
  2497. p.Anchored=true
  2498.  
  2499. p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  2500. coroutine.resume(coroutine.create(function()
  2501. for i = 1,8 do wait()
  2502.  
  2503. p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
  2504. p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
  2505. end
  2506. p:remove()
  2507. end))
  2508.  
  2509. PlaySpawnSound("Spike", 1)
  2510.  
  2511.  
  2512.  
  2513.  
  2514. wait(0.5)
  2515.  
  2516.  
  2517.  
  2518. end))
  2519.  
  2520.  
  2521.  
  2522. local Shield6= Instance.new("Part",hand7Kindness)
  2523. Shield6.TopSurface = "Smooth"
  2524. Shield6.BottomSurface = "Smooth"
  2525. Shield6.Size = Vector3.new(18, 3, 18)
  2526. Shield6.CanCollide = true
  2527. Shield6.Anchored =true
  2528. Shield6.BrickColor = BrickColor.new("Lime green")
  2529. Shield6 .FormFactor = "Custom"
  2530. Shield6.Transparency = 0.7
  2531. Shield6.CFrame= ps.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2532.  
  2533.  
  2534. local Shield5= Instance.new("Part",hand7Kindness)
  2535. Shield5.TopSurface = "Smooth"
  2536. Shield5.BottomSurface = "Smooth"
  2537. Shield5.Size = Vector3.new(18, 3, 18)
  2538. Shield5.CanCollide = true
  2539. Shield5.Anchored =true
  2540. Shield5.BrickColor = BrickColor.new("Lime green")
  2541. Shield5 .FormFactor = "Custom"
  2542. Shield5.Transparency = 0.7
  2543. Shield5.CFrame= ps.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2544.  
  2545.  
  2546. local Shield4= Instance.new("Part",hand7Kindness)
  2547. Shield4.TopSurface = "Smooth"
  2548. Shield4.BottomSurface = "Smooth"
  2549. Shield4.Size = Vector3.new(3, 18, 18)
  2550. Shield4.CanCollide = true
  2551. Shield4.Anchored =true
  2552. Shield4.BrickColor = BrickColor.new("Lime green")
  2553. Shield4 .FormFactor = "Custom"
  2554. Shield4.Transparency = 0.7
  2555. Shield4.CFrame= ps.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2556.  
  2557.  
  2558. local Shield3= Instance.new("Part",hand7Kindness)
  2559. Shield3.TopSurface = "Smooth"
  2560. Shield3.BottomSurface = "Smooth"
  2561. Shield3.Size = Vector3.new(3, 18, 18)
  2562. Shield3.CanCollide = true
  2563. Shield3.Anchored =true
  2564. Shield3.BrickColor = BrickColor.new("Lime green")
  2565. Shield3 .FormFactor = "Custom"
  2566. Shield3.Transparency = 0.7
  2567. Shield3.CFrame= ps.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2568.  
  2569.  
  2570. local Shield2= Instance.new("Part",hand7Kindness)
  2571. Shield2.TopSurface = "Smooth"
  2572. Shield2.BottomSurface = "Smooth"
  2573. Shield2.Size = Vector3.new(18, 18, 3)
  2574. Shield2.CanCollide = true
  2575. Shield2.Anchored =true
  2576. Shield2.BrickColor = BrickColor.new("Lime green")
  2577. Shield2 .FormFactor = "Custom"
  2578. Shield2.Transparency = 0.7
  2579. Shield2.CFrame= ps.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2580.  
  2581.  
  2582. local Shield1= Instance.new("Part",hand7Kindness)
  2583. Shield1.TopSurface = "Smooth"
  2584. Shield1.BottomSurface = "Smooth"
  2585. Shield1.Size = Vector3.new(18, 18, 3)
  2586. Shield1.CanCollide = true
  2587. Shield1.Anchored =true
  2588. Shield1.BrickColor = BrickColor.new("Lime green")
  2589. Shield1 .FormFactor = "Custom"
  2590. Shield1.Transparency = 0.7
  2591. Shield1.CFrame= ps.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2592.  
  2593. for i = 1,7 do
  2594. local parti = Instance.new("Part",Torso)
  2595. parti.Anchored = true
  2596. parti.TopSurface = 0
  2597. parti.BottomSurface = 0
  2598. parti.CanCollide = false
  2599. parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
  2600. parti.CFrame = ps.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2601. parti.Transparency = 0
  2602. parti.BrickColor = BrickColor.new("Lime green")
  2603. game.Debris:AddItem(parti,1.5)
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611. local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  2612. game:service("RunService").Stepped:connect(function()
  2613. parti.Transparency = parti.Transparency + 0.05
  2614. parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
  2615. end)
  2616. end
  2617.  
  2618. wait(3)
  2619.  
  2620. function squeeze(hit)
  2621.  
  2622.  
  2623. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2624.  
  2625. if hit.Parent.Name == char.Name then return end
  2626. if hit.Parent.Name == hand1Determination.Name then return end
  2627. if hit.Parent.Name == hand2Perseverance.Name then return end
  2628. if hit.Parent.Name == hand3Patience.Name then return end
  2629. if hit.Parent.Name == hand4Integrity.Name then return end
  2630. if hit.Parent.Name == hand5Bravery.Name then return end
  2631. if hit.Parent.Name == hand6Justice.Name then return end
  2632. if hit.Parent.Name == hand7Kindness.Name then return end
  2633.  
  2634. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-50
  2635.  
  2636. local HitSounds = {
  2637. Hurt = Instance.new("Sound")
  2638.  
  2639. }
  2640.  
  2641. HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
  2642. HitSounds["Hurt"].Volume = 1
  2643.  
  2644. function PlayHitSound(soundname, pitch)
  2645. HitSounds[soundname].Parent = hit.Parent.Torso
  2646. HitSounds[soundname].Pitch = pitch
  2647. HitSounds[soundname]:Play()
  2648. local oldsound = HitSounds[soundname]
  2649. coroutine.resume(coroutine.create(function()
  2650. wait(4)
  2651. oldsound:Destroy()
  2652. end))
  2653. HitSounds[soundname] = HitSounds[soundname]:clone()
  2654. end
  2655.  
  2656. PlayHitSound("Hurt", 1)
  2657.  
  2658. end end
  2659.  
  2660. Shield6.Touched:connect(squeeze)
  2661. Shield5.Touched:connect(squeeze)
  2662. Shield4.Touched:connect(squeeze)
  2663. Shield3.Touched:connect(squeeze)
  2664. Shield2.Touched:connect(squeeze)
  2665. Shield1.Touched:connect(squeeze)
  2666.  
  2667.  
  2668. for i = 1,30 do wait()
  2669.  
  2670. Shield6.CFrame= clerp(Shield6.CFrame*CFrame.new(0,-.01*i,0),ps.CFrame,.1)
  2671. Shield5.CFrame= clerp(Shield5.CFrame*CFrame.new(0,.01*i,0),ps.CFrame,.1)
  2672. Shield4.CFrame= clerp(Shield4.CFrame*CFrame.new(.01*i,0,0),ps.CFrame,.1)
  2673. Shield3.CFrame= clerp(Shield3.CFrame*CFrame.new(-.01*i,0,0),ps.CFrame,.1)
  2674. Shield2.CFrame= clerp(Shield2.CFrame*CFrame.new(0,0,.01*i),ps.CFrame,.1)
  2675. Shield1.CFrame= clerp(Shield1.CFrame*CFrame.new(0,0,-.01*i),ps.CFrame,.1)
  2676.  
  2677.  
  2678. end
  2679.  
  2680.  
  2681. for i = 1,30 do wait()
  2682.  
  2683. Shield6.CFrame= clerp(Shield6.CFrame*CFrame.new(0,-.01*i,0),ps.CFrame,.1)
  2684. Shield5.CFrame= clerp(Shield5.CFrame*CFrame.new(0,.01*i,0),ps.CFrame,.1)
  2685. Shield4.CFrame= clerp(Shield4.CFrame*CFrame.new(.01*i,0,0),ps.CFrame,.1)
  2686. Shield3.CFrame= clerp(Shield3.CFrame*CFrame.new(-.01*i,0,0),ps.CFrame,.1)
  2687. Shield2.CFrame= clerp(Shield2.CFrame*CFrame.new(0,0,.01*i),ps.CFrame,.1)
  2688. Shield1.CFrame= clerp(Shield1.CFrame*CFrame.new(0,0,-.01*i),ps.CFrame,.1)
  2689.  
  2690.  
  2691. end
  2692.  
  2693.  
  2694. ps:remove()
  2695.  
  2696.  
  2697. wait(3)
  2698. Shield1:Remove()
  2699. Shield2:Remove()
  2700. Shield3:Remove()
  2701. Shield4:Remove()
  2702. Shield5:Remove()
  2703. Shield6:Remove()
  2704.  
  2705. KindnessAttackDebounce = false
  2706. end
  2707. end
  2708. end
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714. ---5th attack---
  2715.  
  2716.  
  2717. if DeterminationAttack == true then
  2718.  
  2719. if InUse == false then return end
  2720. if InUse == true then
  2721. if DetermiantionAttackDebounce == true then return end
  2722. if DetermiantionAttackDebounce == false then
  2723.  
  2724.  
  2725. DetermiantionAttackDebounce = true
  2726.  
  2727.  
  2728. for i = 1,3 do
  2729. local head = Instance.new("Part",char)
  2730. head.Size = Vector3.new(18,.2,18)
  2731. head.CanCollide = false
  2732. head.Anchored = true
  2733. head.CFrame = CFrame.new(char.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
  2734. head.Transparency = 1
  2735. for i = 1,2 do
  2736. decal = Instance.new("Decal",head)
  2737. decal.Texture = "rbxassetid://333659534"
  2738. if i == 1 then
  2739. decal.Face = Enum.NormalId.Top
  2740. else
  2741. decal.Face = Enum.NormalId.Bottom
  2742. end
  2743. end
  2744.  
  2745. local bg = Instance.new("BodyGyro")
  2746. bg.Parent = head
  2747. bg.maxTorque = Vector3.new(0,0,0)
  2748. bg.maxTorque = Vector3.new(0,0,0)
  2749.  
  2750. RandomGasterRotaion = math.random(-10,10)
  2751.  
  2752. for i = 1,5 do wait()
  2753. print ' test'
  2754. head.CFrame = clerp(head.CFrame*CFrame.new(RandomGasterRotaion,1*i,1*i),head.CFrame,.1)
  2755.  
  2756.  
  2757. end
  2758. RandomGasterRotaion = 0
  2759.  
  2760.  
  2761. local ray = Ray.new(head.CFrame.p, (mouse.Hit.p - head.CFrame.p).unit*1000)
  2762. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768. local ray = Ray.new(head.CFrame.p, (mouse.Hit.p -head.CFrame.p).unit*300)
  2769. local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
  2770. local distance = (position - head.CFrame.p).magnitude
  2771. local rp=Instance.new("Part",workspace)
  2772. rp.Anchored=true
  2773. rp.TopSurface="Smooth"
  2774. rp.BottomSurface="Smooth"
  2775. rp.Transparency=0
  2776. rp.BrickColor=BrickColor.new("Institutional white")
  2777. rp.FormFactor="Custom"
  2778. rp.CanCollide=false
  2779. rp.Size=Vector3.new(10,0,distance)
  2780. rp.Material = "Neon"
  2781. rp.CFrame=CFrame.new(position, head.CFrame.p) * CFrame.new(0, 0, -distance/2)
  2782. local cy=Instance.new("BlockMesh",rp)
  2783. head.CFrame = CFrame.new(head.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
  2784. function touch(hit)
  2785.  
  2786.  
  2787. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2788.  
  2789. if hit.Parent.Name == char.Name then return end
  2790. if hit.Parent.Name == hand1Determination.Name then return end
  2791. if hit.Parent.Name == hand2Perseverance.Name then return end
  2792. if hit.Parent.Name == hand3Patience.Name then return end
  2793. if hit.Parent.Name == hand4Integrity.Name then return end
  2794. if hit.Parent.Name == hand5Bravery.Name then return end
  2795. if hit.Parent.Name == hand6Justice.Name then return end
  2796. if hit.Parent.Name == hand7Kindness.Name then return end
  2797.  
  2798. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
  2799.  
  2800. local HitSounds = {
  2801. Hurt = Instance.new("Sound")
  2802.  
  2803. }
  2804.  
  2805. HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
  2806. HitSounds["Hurt"].Volume = 1
  2807.  
  2808. function PlayHitSound(soundname, pitch)
  2809. HitSounds[soundname].Parent = hit.Parent.Torso
  2810. HitSounds[soundname].Pitch = pitch
  2811. HitSounds[soundname]:Play()
  2812. local oldsound = HitSounds[soundname]
  2813. coroutine.resume(coroutine.create(function()
  2814. wait(4)
  2815. oldsound:Destroy()
  2816. end))
  2817. HitSounds[soundname] = HitSounds[soundname]:clone()
  2818. end
  2819.  
  2820. PlayHitSound("Hurt", 1)
  2821.  
  2822. end end rp.Touched:connect(touch)
  2823.  
  2824. coroutine.resume(coroutine.create(function()
  2825.  
  2826. PlaySound("Gaster", 1, head,false)
  2827. for i=1,10 do
  2828. wait()
  2829. cy.Scale=cy.Scale+Vector3.new(0,0,.01*i)
  2830. head.CFrame = head.CFrame*CFrame.new(0,0,1*i)*CFrame.Angles(0,0,0)
  2831. end
  2832. for i=1,10 do wait()
  2833.  
  2834. decal.Transparency = decal.Transparency + 0.1
  2835. rp.Transparency = rp.Transparency + 0.1
  2836.  
  2837. end
  2838. wait(1)
  2839. head:Destroy()
  2840. rp:Destroy()
  2841. end))
  2842. end
  2843.  
  2844.  
  2845. wait(0.1)
  2846. DetermiantionAttackDebounce = false
  2847.  
  2848. end
  2849.  
  2850. end
  2851. end
  2852.  
  2853.  
  2854.  
  2855.  
  2856. if PatienceAttack == true then
  2857.  
  2858. if InUse == false then return end
  2859. if InUse == true then
  2860. if PatienceAttackDebounce == true then return end
  2861. if PatienceAttackDebounce == false then
  2862.  
  2863.  
  2864. PatienceAttackDebounce = true
  2865.  
  2866.  
  2867.  
  2868.  
  2869. local ray = Ray.new(PatienceOrb.CFrame.p, (mouse.Hit.p - PatienceOrb.CFrame.p).unit*1000)
  2870. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876. local ray = Ray.new(PatienceOrb.CFrame.p, (mouse.Hit.p -PatienceOrb.CFrame.p).unit*300)
  2877. local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
  2878. local distance = (position - PatienceOrb.CFrame.p).magnitude
  2879. local rp=Instance.new("Part",workspace)
  2880. rp.Anchored=true
  2881. rp.TopSurface="Smooth"
  2882. rp.BottomSurface="Smooth"
  2883. rp.Transparency=0
  2884. rp.BrickColor=BrickColor.new("Cyan")
  2885. rp.FormFactor="Custom"
  2886. rp.CanCollide=false
  2887. rp.Size=Vector3.new(0.5,0.5,distance)
  2888. rp.Material = "Neon"
  2889. rp.CFrame=CFrame.new(position, PatienceOrb.CFrame.p) * CFrame.new(0, 0, -distance/2)
  2890. local cy=Instance.new("BlockMesh",rp)
  2891. coroutine.resume(coroutine.create(function()
  2892. for i=1,13 do
  2893. wait()
  2894. cy.Scale=cy.Scale-Vector3.new(.01*i,.01*i,0)
  2895.  
  2896. end
  2897. end))
  2898. function touch(hit)
  2899.  
  2900.  
  2901. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2902.  
  2903. if hit.Parent.Name == char.Name then return end
  2904. if hit.Parent.Name == hand1Determination.Name then return end
  2905. if hit.Parent.Name == hand2Perseverance.Name then return end
  2906. if hit.Parent.Name == hand3Patience.Name then return end
  2907. if hit.Parent.Name == hand4Integrity.Name then return end
  2908. if hit.Parent.Name == hand5Bravery.Name then return end
  2909. if hit.Parent.Name == hand6Justice.Name then return end
  2910. if hit.Parent.Name == hand7Kindness.Name then return end
  2911.  
  2912. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
  2913. local hittorso = hit.Parent.Torso
  2914. local HitSounds = {
  2915. Hurt = Instance.new("Sound")
  2916.  
  2917. }
  2918.  
  2919. HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
  2920. HitSounds["Hurt"].Volume = 1
  2921.  
  2922. function PlayHitSound(soundname, pitch)
  2923. HitSounds[soundname].Parent = hit.Parent.Torso
  2924. HitSounds[soundname].Pitch = pitch
  2925. HitSounds[soundname]:Play()
  2926. local oldsound = HitSounds[soundname]
  2927. coroutine.resume(coroutine.create(function()
  2928. wait(4)
  2929. oldsound:Destroy()
  2930. end))
  2931. HitSounds[soundname] = HitSounds[soundname]:clone()
  2932. end
  2933.  
  2934. PlayHitSound("Hurt", 1)
  2935.  
  2936. local Tied = Instance.new("Part",hittorso)
  2937. Tied.Size = Vector3.new(4,2,1.5)
  2938. Tied.Name = "Rope"
  2939. Tied.CanCollide = false
  2940. Tied.Transparency = 0.1
  2941. Tied.BrickColor = BrickColor.new("Cyan")
  2942. Tied.CFrame = hittorso.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2943.  
  2944. local Weld = Instance.new("Weld",hittorso)
  2945. Weld.Part0 = hittorso
  2946. Weld.Part1 = Tied
  2947. Weld.C1 = hittorso.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2948.  
  2949.  
  2950. hit.Parent.Torso.Anchored = true
  2951. hit.Parent["Left Arm"].Anchored = true
  2952. hit.Parent["Right Arm"].Anchored = true
  2953.  
  2954. wait(3)
  2955.  
  2956. for i = 1,10 do wait(.1)
  2957.  
  2958. Tied.Transparency = Tied.Transparency + 0.1
  2959.  
  2960.  
  2961. end
  2962.  
  2963.  
  2964. hit.Parent.Torso.Anchored = false
  2965. hit.Parent["Left Arm"].Anchored = false
  2966. hit.Parent["Right Arm"].Anchored = false
  2967.  
  2968.  
  2969. end end rp.Touched:connect(touch)
  2970.  
  2971. coroutine.resume(coroutine.create(function()
  2972.  
  2973.  
  2974. wait(1)
  2975.  
  2976. rp:Destroy()
  2977. end))
  2978. end
  2979.  
  2980.  
  2981. wait(1)
  2982. PatienceAttackDebounce = false
  2983.  
  2984. end
  2985.  
  2986. end
  2987.  
  2988. if BraveryAttack == true then
  2989.  
  2990. if InUse == false then return end
  2991. if InUse == true then
  2992. if BraveryAttackDebounce == true then return end
  2993. if BraveryAttackDebounce == false then
  2994. BraveryAttackDebounce = true
  2995. local ray = Ray.new(Bravery.CFrame.p, (mouse.Hit.p -Bravery.CFrame.p).unit*300)
  2996. local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
  2997. local distance = (position - Bravery.CFrame.p).magnitude
  2998. local rp=Instance.new("Part",workspace)
  2999. rp.Anchored=true
  3000. rp.TopSurface="Smooth"
  3001. rp.BottomSurface="Smooth"
  3002. rp.Transparency=1
  3003. rp.BrickColor=BrickColor.new("Deep orange")
  3004. rp.FormFactor="Custom"
  3005. rp.CanCollide=false
  3006. rp.Size=Vector3.new(0.6,0.6,distance)
  3007. rp.Material = "Neon"
  3008. rp.CFrame=CFrame.new(position, Kindness.CFrame.p) * CFrame.new(0, 0, -distance/2)
  3009. local cy=Instance.new("BlockMesh",rp)
  3010. rp:Destroy()
  3011.  
  3012.  
  3013.  
  3014. local ps = Instance.new("Part", suit)
  3015. ps.Name = "MagicPart"
  3016. ps.TopSurface = "Smooth"
  3017. ps.BottomSurface = "Smooth"
  3018. ps.BrickColor = BrickColor.new("Toothpaste")
  3019. ps.FormFactor = "Custom"
  3020. ps.Transparency = 1
  3021. ps.Size = Vector3.new(.5, .5, .5)
  3022. ps.Anchored = true
  3023. ps.CanCollide = false
  3024. ps.CFrame = CFrame.new(position)*CFrame.new(0,3,0)
  3025. local cy=Instance.new("SpecialMesh",ps)
  3026. cy.MeshType = "Cylinder"
  3027. for i =1,5 do
  3028.  
  3029. coroutine.resume(coroutine.create(function()
  3030. coroutine.resume(coroutine.create(function()
  3031.  
  3032.  
  3033.  
  3034. local SpawnSounds = {
  3035. Spike = Instance.new("Sound")
  3036.  
  3037. }
  3038.  
  3039. SpawnSounds["Spike"].SoundId = "http://www.roblox.com/asset?id=486286230"
  3040. SpawnSounds["Spike"].Volume = 0.1
  3041.  
  3042. function PlaySpawnSound(soundname, pitch)
  3043. SpawnSounds[soundname].Parent = ps
  3044. SpawnSounds[soundname].Pitch = pitch
  3045. SpawnSounds[soundname]:Play()
  3046. local oldsound = SpawnSounds[soundname]
  3047. coroutine.resume(coroutine.create(function()
  3048. wait(4)
  3049. oldsound:Destroy()
  3050. end))
  3051. SpawnSounds[soundname] = SpawnSounds[soundname]:clone()
  3052. end
  3053.  
  3054.  
  3055.  
  3056. local p = Instance.new("Part",workspace)
  3057.  
  3058. p.FormFactor="Custom"
  3059.  
  3060. p.Size=Vector3.new(0.3,0.3,0.3)
  3061.  
  3062. p.TopSurface = 0
  3063.  
  3064. p.BottomSurface = 0
  3065.  
  3066. local colorc = {"Deep orange"}
  3067.  
  3068. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  3069.  
  3070. p.BrickColor = Fire
  3071.  
  3072. p.CanCollide=false
  3073.  
  3074. p.Anchored=true
  3075.  
  3076. p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  3077. coroutine.resume(coroutine.create(function()
  3078. for i = 1,8 do wait()
  3079.  
  3080. p.Size=Vector3.new(0.3*i,0.3*i,0.3*i)
  3081. p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
  3082. end
  3083. p:remove()
  3084. end))
  3085.  
  3086. PlaySpawnSound("Spike", 1)
  3087.  
  3088.  
  3089.  
  3090. wait(0.5)
  3091.  
  3092.  
  3093.  
  3094. end))
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102. xmathrandom = math.random(-10,10)
  3103. ymathrandom = math.random(2,10)
  3104. zmathrandom = math.random(-10,10)
  3105.  
  3106. local Bomb= Instance.new("Part",hand5Bravery)
  3107. Bomb.TopSurface = "Smooth"
  3108. Bomb.BottomSurface = "Smooth"
  3109. Bomb.Size = Vector3.new(0.1,0.1,0.1)
  3110. Bomb.CanCollide = true
  3111. Bomb.Anchored =true
  3112. Bomb.BrickColor = BrickColor.new("Mid gray")
  3113. Bomb .Shape = "Ball"
  3114. Bomb .Material= "Neon"
  3115. Bomb.Transparency = 0
  3116. Bomb.CFrame= ps.CFrame*CFrame.new(xmathrandom,ymathrandom ,zmathrandom )*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  3117.  
  3118.  
  3119. xmathrandom = 0
  3120. ymathrandom = 0
  3121. zmathrandom = 0
  3122.  
  3123. wait(1)
  3124.  
  3125.  
  3126. Bomb.BrickColor = BrickColor.new("Deep orange")
  3127. local p = Instance.new("Part",workspace)
  3128.  
  3129. p.FormFactor="Custom"
  3130.  
  3131. p.Size=Vector3.new(0.1,0.1,0.1)
  3132.  
  3133. p.TopSurface = 0
  3134.  
  3135. p.BottomSurface = 0
  3136.  
  3137. local colorc = {"Deep orange"}
  3138.  
  3139. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  3140.  
  3141. p.BrickColor = Fire
  3142.  
  3143. p.CanCollide=false
  3144.  
  3145. p.Anchored=true
  3146.  
  3147. p.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  3148. coroutine.resume(coroutine.create(function()
  3149. for i = 1,2 do wait()
  3150.  
  3151. p.Size=Vector3.new(0.1*i,0.1*i,0.1*i)
  3152. p.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))
  3153. end
  3154. p:remove()
  3155. end))
  3156. wait(1)
  3157.  
  3158.  
  3159. local explosion = Instance.new("Part",workspace)
  3160.  
  3161. explosion.FormFactor="Custom"
  3162.  
  3163. explosion.Size=Vector3.new(0.8,0.8,0.8)
  3164.  
  3165. explosion.TopSurface = 0
  3166.  
  3167. explosion.BottomSurface = 0
  3168.  
  3169. local colorc = {"Deep orange"}
  3170.  
  3171. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  3172.  
  3173. explosion.BrickColor = Fire
  3174.  
  3175. explosion.CanCollide=false
  3176.  
  3177. explosion.Anchored=true
  3178.  
  3179. explosion.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  3180.  
  3181. PlaySound("Explode", 1, explosion, false)
  3182.  
  3183. function touch(hit)
  3184.  
  3185.  
  3186. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  3187.  
  3188. if hit.Parent.Name == char.Name then return end
  3189. if hit.Parent.Name == hand1Determination.Name then return end
  3190. if hit.Parent.Name == hand2Perseverance.Name then return end
  3191. if hit.Parent.Name == hand3Patience.Name then return end
  3192. if hit.Parent.Name == hand4Integrity.Name then return end
  3193. if hit.Parent.Name == hand5Bravery.Name then return end
  3194. if hit.Parent.Name == hand6Justice.Name then return end
  3195. if hit.Parent.Name == hand7Kindness.Name then return end
  3196.  
  3197. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-50
  3198.  
  3199. local HitSounds = {
  3200. Hurt = Instance.new("Sound")
  3201.  
  3202. }
  3203.  
  3204. HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
  3205. HitSounds["Hurt"].Volume = 1
  3206.  
  3207. function PlayHitSound(soundname, pitch)
  3208. HitSounds[soundname].Parent = hit.Parent.Torso
  3209. HitSounds[soundname].Pitch = pitch
  3210. HitSounds[soundname]:Play()
  3211. local oldsound = HitSounds[soundname]
  3212. coroutine.resume(coroutine.create(function()
  3213. wait(4)
  3214. oldsound:Destroy()
  3215. end))
  3216. HitSounds[soundname] = HitSounds[soundname]:clone()
  3217. end
  3218.  
  3219. PlayHitSound("Hurt", 1)
  3220.  
  3221. end end
  3222.  
  3223. explosion.Touched:connect(touch)
  3224.  
  3225. coroutine.resume(coroutine.create(function()
  3226. for i = 1,10 do wait()
  3227. explosion.Position =Bomb.Position
  3228. explosion.CFrame =Bomb.CFrame
  3229. explosion.Size=Vector3.new(3*i,3*i,3*i)
  3230. explosion.Position =Bomb.Position
  3231. explosion.CFrame =Bomb.CFrame
  3232. explosion.Transparency=explosion.Transparency + 0.1
  3233. explosion.Position =Bomb.Position
  3234. explosion.CFrame =Bomb.CFrame
  3235. end
  3236. explosion:remove()
  3237. Bomb:remove()
  3238. end))
  3239.  
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245. ps:remove()
  3246. end))
  3247. end
  3248. wait(2)
  3249.  
  3250.  
  3251. BraveryAttackDebounce = false
  3252. end
  3253. end
  3254. end
  3255.  
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277. end)
  3278.  
  3279.  
  3280. game:service("RunService").Stepped:connect(function()
  3281.  
  3282.  
  3283. if hand1Determinationhealth.Health == 0 then
  3284.  
  3285. if hand1DeterminationhealthDown == false then
  3286. hand1DeterminationhealthDown = true
  3287.  
  3288. Determination:remove()
  3289. DeterminationAttack = false
  3290. DetermiantionAttackDebounce = false
  3291.  
  3292.  
  3293.  
  3294. end
  3295.  
  3296.  
  3297. end
  3298.  
  3299. end)
  3300.  
  3301. game:service("RunService").Stepped:connect(function()
  3302.  
  3303.  
  3304. if hand2Perseverancehealth.Health == 0 then
  3305.  
  3306. if hand2PerseverancehealthDown == false then
  3307. hand2PerseverancehealthDown = true
  3308.  
  3309. Perseverance:remove()
  3310. PerseveranceAttack = false
  3311. PerseveranceAttackDebounce = false
  3312.  
  3313.  
  3314.  
  3315. end
  3316.  
  3317.  
  3318. end
  3319.  
  3320. end)
  3321. game:service("RunService").Stepped:connect(function()
  3322.  
  3323.  
  3324. if hand3Patiencehealth.Health == 0 then
  3325.  
  3326. if hand3PatiencehealthDown == false then
  3327. hand3PatiencehealthDown = true
  3328.  
  3329. Patience:remove()
  3330. PatienceAttack = false
  3331. PatienceAttackDebounce = false
  3332.  
  3333.  
  3334.  
  3335. end
  3336.  
  3337.  
  3338. end
  3339.  
  3340.  
  3341. end)
  3342. game:service("RunService").Stepped:connect(function()
  3343.  
  3344.  
  3345. if hand4Integrityhealth.Health == 0 then
  3346.  
  3347. if hand4IntegrityhealthDown == false then
  3348. hand4IntegrityhealthDown = true
  3349.  
  3350. Integrity:remove()
  3351. IntegrityAttack = false
  3352. IntegrityAttackDebounce = false
  3353.  
  3354.  
  3355.  
  3356. end
  3357.  
  3358.  
  3359. end
  3360.  
  3361. end)
  3362. game:service("RunService").Stepped:connect(function()
  3363.  
  3364.  
  3365. if hand5Braveryhealth.Health == 0 then
  3366.  
  3367. if hand5BraveryhealthDown == false then
  3368. hand5BraveryhealthDown = true
  3369.  
  3370. Bravery:remove()
  3371. BraveryAttack = false
  3372. BraveryAttackDebounce = false
  3373.  
  3374.  
  3375.  
  3376. end
  3377.  
  3378.  
  3379. end
  3380.  
  3381. end)
  3382. game:service("RunService").Stepped:connect(function()
  3383.  
  3384.  
  3385. if hand6Justicehealth.Health == 0 then
  3386.  
  3387. if hand6JusticehealthDown == false then
  3388. hand6JusticehealthDown = true
  3389.  
  3390. Justice:remove()
  3391. JusticeAttack = false
  3392. JusticeAttackDebounce = false
  3393.  
  3394.  
  3395.  
  3396. end
  3397.  
  3398.  
  3399. end
  3400.  
  3401. end)
  3402. game:service("RunService").Stepped:connect(function()
  3403.  
  3404.  
  3405. if hand7Kindnesshealth.Health == 0 then
  3406.  
  3407. if hand7KindnesshealthDown == false then
  3408. hand7KindnesshealthDown = true
  3409.  
  3410. Kindness:remove()
  3411. KindnessAttack = false
  3412. KindnessAttackDebounce = false
  3413.  
  3414. if ShieldValueToGasterDebounce == false then
  3415. ShieldValueToGasterDebounce = true
  3416. for i = 1,3 do wait()
  3417. shieldparent6.Transparency =shieldparent6.Transparency + 0.1
  3418. shieldparent5.Transparency =shieldparent5.Transparency + 0.1
  3419. shieldparent4.Transparency =shieldparent4.Transparency + 0.1
  3420. shieldparent3.Transparency =shieldparent3.Transparency + 0.1
  3421. shieldparent2.Transparency =shieldparent2.Transparency + 0.1
  3422. shieldparent1.Transparency =shieldparent1.Transparency + 0.1
  3423. end
  3424. shieldparent6:remove()
  3425. shieldparent5:remove()
  3426. shieldparent4:remove()
  3427. shieldparent3:remove()
  3428. shieldparent2:remove()
  3429. shieldparent1:remove()
  3430.  
  3431. shieldparent1=nil
  3432. shieldparent2=nil
  3433. shieldparent3=nil
  3434. shieldparent4=nil
  3435. shieldparent5=nil
  3436. shieldparent6=nil
  3437.  
  3438.  
  3439.  
  3440.  
  3441. end
  3442.  
  3443. end
  3444.  
  3445.  
  3446. end
  3447.  
  3448. end)
  3449.  
  3450. char.Humanoid.MaxHealth = 666666666
  3451. wait()
  3452. char.Humanoid.Health = 666666666
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement