Advertisement
ThatOneGuy561

Untitled

Jun 25th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 102.10 KB | None | 0 0
  1. function clerp(c1, c2, al)
  2. local com1 = {
  3. c1.X,
  4. c1.Y,
  5. c1.Z,
  6. c1:toEulerAnglesXYZ()
  7. }
  8. local com2 = {
  9. c2.X,
  10. c2.Y,
  11. c2.Z,
  12. c2:toEulerAnglesXYZ()
  13. }
  14. for i, v in pairs(com1) do
  15. com1[i] = v + (com2[i] - v) * al
  16. end
  17. return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
  18. end
  19. function weld(p0, p1, c0, c1, par)
  20. local w = Instance.new("Weld", par)
  21. w.Part0 = p0
  22. w.Part1 = p1
  23. w.C0 = c0 or CFrame.new()
  24. w.C1 = c1 or CFrame.new()
  25. return w
  26. end
  27. xmathrandom = math.random(-10, 10)
  28. ymathrandom = math.random(2, 10)
  29. zmathrandom = math.random(-10, 10)
  30. player = game:service("Players").LocalPlayer
  31. char = player.Character
  32. local beat = true
  33. local beattime = 0.6
  34. suit = Instance.new("Model", char)
  35. suit.Name = "Gaster"
  36. local vDebounce = false
  37. Torso = char.Torso
  38. cf = CFrame.new
  39. euler = CFrame.fromEulerAnglesXYZ
  40. local SHOT_SPEED = 100
  41. local SHOT_TIME = 1
  42. local NOZZLE_OFFSET = Vector3.new(0, 0, 0)
  43. mouse = player:GetMouse()
  44. shieldparent1 = nil
  45. shieldparent2 = nil
  46. shieldparent3 = nil
  47. shieldparent4 = nil
  48. shieldparent5 = nil
  49. shieldparent6 = nil
  50. switchvalue = 0
  51. RandomGasterRotaion = 0
  52. RandomPerseverance = 0
  53. ShieldValueToGaster = false
  54. ShieldValueToGasterDebounce = false
  55. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  56. RW.Name = "Right Shoulder"
  57. LW.Name = "Left Shoulder"
  58. RSH, LSH = nil, nil
  59. LS = Torso["Left Shoulder"]
  60. LH = Torso["Left Hip"]
  61. RS = Torso["Right Shoulder"]
  62. RH = Torso["Right Hip"]
  63. RSH = char.Torso["Right Shoulder"]
  64. LSH = char.Torso["Left Shoulder"]
  65. function startup()
  66. RW.Part0 = char.Torso
  67. RW.C0 = CFrame.new(1.5, 0.5, 0)
  68. RW.C1 = CFrame.new(0, 0.5, 0)
  69. RW.Part1 = char["Right Arm"]
  70. RW.Parent = char.Torso
  71. LW.Part0 = char.Torso
  72. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  73. LW.C1 = CFrame.new(0, 0.5, 0)
  74. LW.Part1 = char["Left Arm"]
  75. LW.Parent = char.Torso
  76. for i = 1, 5 do
  77. wait()
  78. RW.C1 = clerp(RW.C1 * CFrame.new(-0.1, 0, 0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-30), math.rad(-8), 0), RW.C0, 0.1)
  79. LW.C1 = clerp(LW.C1 * CFrame.new(0.1, 0, 0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-30), math.rad(8), 0), LW.C0, 0.1)
  80. end
  81. coroutine.resume(coroutine.create(function()
  82. wait(1)
  83. for i = 1, 20 do
  84. wait()
  85. RW.C1 = clerp(RW.C1 * CFrame.new(-0.15, -0.05, 0.01) * CFrame.fromEulerAnglesXYZ(-math.rad(-0.1), -math.rad(-0.1), -math.rad(3)), RW.C0, 0.1)
  86. LW.C1 = clerp(LW.C1 * CFrame.new(0.15, -0.05, 0.01) * CFrame.fromEulerAnglesXYZ(math.rad(0.1), math.rad(0.1), -math.rad(-3)), LW.C0, 0.1)
  87. end
  88. for i = 1, 20 do
  89. wait()
  90. RW.C1 = clerp(RW.C1 * CFrame.new(-0.12, 0.05, -0.1) * CFrame.fromEulerAnglesXYZ(-math.rad(-4), -math.rad(-4), -math.rad(-4)), RW.C0, 0.1)
  91. LW.C1 = clerp(LW.C1 * CFrame.new(0.12, 0.05, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(4), math.rad(-4), -math.rad(4)), LW.C0, 0.1)
  92. end
  93. end))
  94. end
  95. local Sounds = {
  96. Gaster = Instance.new("Sound"),
  97. Gun = Instance.new("Sound"),
  98. Switch = Instance.new("Sound"),
  99. Explode = Instance.new("Sound"),
  100. GasterTheme = Instance.new("Sound")
  101. }
  102. Sounds.Gaster.SoundId = "rbxassetid://345052019"
  103. Sounds.Gaster.Volume = 1
  104. Sounds.Gun.SoundId = "http://www.roblox.com/asset?id=406913243"
  105. Sounds.Gun.Volume = 1
  106. Sounds.Switch.SoundId = "http://www.roblox.com/asset?id=388205678"
  107. Sounds.Switch.Volume = 1
  108. Sounds.Explode.SoundId = "rbxasset://sounds/collide.wav"
  109. Sounds.Explode.Volume = 0.1
  110. Sounds.GasterTheme.SoundId = "rbxassetid://330630853"
  111. Sounds.GasterTheme.Volume = 5
  112. function PlaySound(soundname, pitch, where, looped)
  113. Sounds[soundname].Parent = where
  114. Sounds[soundname].Pitch = pitch
  115. Sounds[soundname].Looped = looped
  116. Sounds[soundname]:Play()
  117. local oldsound = Sounds[soundname]
  118. coroutine.resume(coroutine.create(function()
  119. wait(4)
  120. for i = 1, 1 do
  121. if oldsound.Looped == true then
  122. return
  123. end
  124. oldsound:Destroy()
  125. end
  126. end))
  127. Sounds[soundname] = Sounds[soundname]:clone()
  128. end
  129.  
  130. CV="Maroon"
  131.  
  132. local txt = Instance.new("BillboardGui", char)
  133. txt.Adornee = char .Head
  134. txt.Name = "_status"
  135. txt.Size = UDim2.new(2, 0, 1.2, 0)
  136. txt.StudsOffset = Vector3.new(-9, 8, 0)
  137. local text = Instance.new("TextLabel", txt)
  138. text.Size = UDim2.new(10, 0, 7, 0)
  139. text.FontSize = "Size36"
  140. text.TextScaled = true
  141. text.TextTransparency = 0
  142. text.BackgroundTransparency = 1
  143. text.TextTransparency = 0
  144. text.TextStrokeTransparency = 0
  145. text.Font = "Garamond"
  146. text.TextStrokeColor3 = Color3.new(255,0,0)
  147.  
  148. v=Instance.new("Part")
  149. v.Name = "ColorBrick"
  150. v.Parent=player.Character
  151. v.FormFactor="Symmetric"
  152. v.Anchored=true
  153. v.CanCollide=false
  154. v.BottomSurface="Smooth"
  155. v.TopSurface="Smooth"
  156. v.Size=Vector3.new(10,5,3)
  157. v.Transparency=1
  158. v.CFrame=char.Torso.CFrame
  159. v.BrickColor=BrickColor.new(CV)
  160. v.Transparency=1
  161. text.TextColor3 = Color3.new(0,0,0)
  162. v.Shape="Block"
  163. text.Text = "Gaster"
  164.  
  165. firstuse = true
  166. InUse = false
  167. JusticeAttack = false
  168. JusticeAttackDebounce = false
  169. IntegrityAttack = false
  170. IntegrityAttackDebounce = false
  171. PerseveranceAttack = false
  172. PerseveranceAttackDebounce = false
  173. KindnessAttack = false
  174. KindnessAttackDebounce = false
  175. DeterminationAttack = false
  176. DetermiantionAttackDebounce = false
  177. PatienceAttack = false
  178. PatienceAttackDebounce = false
  179. BraveryAttack = false
  180. BraveryAttackDebounce = false
  181. hand1DeterminationhealthDown = false
  182. hand2PerseverancehealthDown = false
  183. hand3PatiencehealthDown = false
  184. hand4IntegrityhealthDown = false
  185. hand5BraveryhealthDown = false
  186. hand6JusticehealthDown = false
  187. hand7KindnesshealthDown = false
  188. hand1Determination = Instance.new("Model", char)
  189. hand1Determination.Name = "Red"
  190. hand2Perseverance = Instance.new("Model", char)
  191. hand2Perseverance.Name = "Purple"
  192. hand3Patience = Instance.new("Model", char)
  193. hand3Patience.Name = "Cyan"
  194. hand4Integrity = Instance.new("Model", char)
  195. hand4Integrity.Name = "Blue"
  196. hand5Bravery = Instance.new("Model", char)
  197. hand5Bravery.Name = "Orange"
  198. hand6Justice = Instance.new("Model", char)
  199. hand6Justice.Name = "Yellow"
  200. hand7Kindness = Instance.new("Model", char)
  201. hand7Kindness.Name = "Green"
  202. function teleportPlayer(pos)
  203. if player == nil or player.Character == nil then
  204. return
  205. end
  206. char["Left Leg"].CFrame = CFrame.new(Vector3.new(pos.x, pos.y, pos.z))
  207. coroutine.resume(coroutine.create(function()
  208. TeleportPart = Instance.new("Part", workspace)
  209. TeleportPart.FormFactor = "Custom"
  210. TeleportPart.Size = Vector3.new(0.8, 0.8, 0.8)
  211. TeleportPart.TopSurface = 0
  212. TeleportPart.BottomSurface = 0
  213. local colorc = {"Black"}
  214. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  215. TeleportPart.BrickColor = Fire
  216. TeleportPart.CanCollide = false
  217. TeleportPart.Anchored = true
  218. TeleportPart.CFrame = Torso.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  219. TeleportPartmesh = Instance.new("BlockMesh", TeleportPart)
  220. game.Debris:AddItem(TeleportPart, 1.5)
  221. for i = 1, 5 do
  222. wait()
  223. Torso.Transparency = Torso.Transparency - 0.2
  224. char["Left Arm"].Transparency = char["Left Arm"].Transparency - 0.2
  225. char["Left Leg"].Transparency = char["Left Leg"].Transparency - 0.2
  226. char["Right Arm"].Transparency = char["Right Arm"].Transparency - 0.2
  227. char["Right Leg"].Transparency = char["Right Leg"].Transparency - 0.2
  228. char.Head.Transparency = char.Head.Transparency - 0.2
  229. Crack1.Transparency = Crack1.Transparency - 0.2
  230. Crack2.Transparency = Crack2.Transparency - 0.2
  231. mouth.Transparency = mouth.Transparency - 0.2
  232. Eye1.Transparency = Eye1.Transparency - 0.2
  233. Eye2.Transparency = Eye2.Transparency - 0.2
  234. MEye1.Transparency = MEye1.Transparency - 0.2
  235. MEye2.Transparency = MEye2.Transparency - 0.2
  236. end
  237. Torso.Transparency = 0
  238. char["Left Arm"].Transparency = 0
  239. char["Left Leg"].Transparency = 0
  240. char["Right Arm"].Transparency = 0
  241. char["Right Leg"].Transparency = 0
  242. char.Head.Transparency = 0
  243. Crack1.Transparency = 0
  244. Crack2.Transparency = 0
  245. mouth.Transparency = 0
  246. Eye1.Transparency = 0
  247. Eye2.Transparency = 0
  248. MEye1.Transparency = 0
  249. MEye2.Transparency = 0
  250. end))
  251. for i = 1, 7 do
  252. do
  253. local parti = Instance.new("Part", Torso)
  254. parti.Anchored = true
  255. parti.TopSurface = 0
  256. parti.BottomSurface = 0
  257. parti.CanCollide = false
  258. parti.Size = Vector3.new(math.random(1, 1), math.random(1, 1), math.random(1, 1))
  259. parti.CFrame = Torso.CFrame * CFrame.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  260. parti.Transparency = 0
  261. parti.BrickColor = BrickColor.new("Black")
  262. game.Debris:AddItem(parti, 1.5)
  263. local pad = Vector3.new(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  264. game:service("RunService").Stepped:connect(function()
  265. parti.Transparency = parti.Transparency + 0.05
  266. parti.CFrame = parti.CFrame * CFrame.Angles(math.rad(20), math.rad(20), math.rad(20)) + pad
  267. end)
  268. end
  269. end
  270. for i = 1, 10 do
  271. wait()
  272. TeleportPartmesh.Scale = Vector3.new(2 * i, 2 * i, 2 * i)
  273. TeleportPart.CFrame = clerp(TeleportPart.CFrame * CFrame.Angles(math.rad(10), math.rad(10), math.rad(10)), TeleportPart.CFrame, 0.1)
  274. TeleportPart.Transparency = TeleportPart.Transparency + 0.1
  275. end
  276. end
  277. for _, v in pairs(char.Head:GetChildren()) do
  278. if v.ClassName == "Decal" then
  279. v:remove()
  280. end
  281. end
  282. for _, v in pairs(char:GetChildren()) do
  283. if v.ClassName == "Hat" then
  284. v:remove()
  285. end
  286. end
  287. for _, v in pairs(char:GetChildren()) do
  288. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "T-Shirt" or v.ClassName == "ShirtGraphic" or v.ClassName == "CharacterMesh" then
  289. v:remove()
  290. end
  291. end
  292. shirt = Instance.new("Shirt", char)
  293. pants = Instance.new("Pants", char)
  294. char.Head.BrickColor = BrickColor.new("Institutional white")
  295. shirt.ShirtTemplate = "rbxassetid://535199088"
  296. pants.PantsTemplate = "rbxassetid://532840011"
  297. mouth = Instance.new("Part", suit)
  298. mouth.Size = Vector3.new(0.2, 0.7, 0.4)
  299. mouth.Transparency = 0
  300. mouth.BrickColor = BrickColor.new("Really black")
  301. mouth.CanCollide = false
  302. mouthMesh = Instance.new("SpecialMesh", mouth)
  303. mouthMesh.MeshType = "Sphere"
  304. mouthMesh.Scale = Vector3.new(2.5, 0.1, 0.8)
  305. weld(char.Head, mouth, CFrame.new(0, 0, 0), CFrame.new(0, 0.3, 0.45) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  306. Crack2 = Instance.new("Part", suit)
  307. Crack2.Size = Vector3.new(0.2, 0.7, 0.4)
  308. Crack2.Transparency = 0
  309. Crack2.BrickColor = BrickColor.new("Really black")
  310. Crack2.CanCollide = false
  311. Crack2Mesh = Instance.new("SpecialMesh", Crack2)
  312. Crack2Mesh.MeshType = "Sphere"
  313. Crack2Mesh.Scale = Vector3.new(0.3, 0.7, 0.8)
  314. weld(char.Head, Crack2, CFrame.new(0, 0, 0), CFrame.new(0.2, 0.15, 0.45) * CFrame.fromEulerAnglesXYZ(0, 0, -0.2), char)
  315. Crack1 = Instance.new("Part", suit)
  316. Crack1.Size = Vector3.new(0.2, 0.7, 0.4)
  317. Crack1.Transparency = 0
  318. Crack1.BrickColor = BrickColor.new("Really black")
  319. Crack1.CanCollide = false
  320. Crack1Mesh = Instance.new("SpecialMesh", Crack1)
  321. Crack1Mesh.MeshType = "Sphere"
  322. Crack1Mesh.Scale = Vector3.new(0.3, 0.7, 0.65)
  323. weld(char.Head, Crack1, CFrame.new(0, 0, 0), CFrame.new(-0.2, -0.3, 0.45) * CFrame.fromEulerAnglesXYZ(0, 0, 0.2), char)
  324. Eye1 = Instance.new("Part", suit)
  325. Eye1.Size = Vector3.new(0.4, 0.4, 0.4)
  326. Eye1.Transparency = 0
  327. Eye1.BrickColor = BrickColor.new("Really black")
  328. Eye1.CanCollide = false
  329. Eye1Mesh = Instance.new("SpecialMesh", Eye1)
  330. Eye1Mesh.MeshType = "Sphere"
  331. Eye1Mesh.Scale = Vector3.new(1, 1, 0.6)
  332. weld(char.Head, Eye1, CFrame.new(0, 0, 0), CFrame.new(-0.2, -0.1, 0.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  333. Eye2 = Instance.new("Part", suit)
  334. Eye2.Size = Vector3.new(0.4, 0.4, 0.4)
  335. Eye2.Transparency = 0
  336. Eye2.CanCollide = false
  337. Eye2.BrickColor = BrickColor.new("Really black")
  338. Eye2Mesh = Instance.new("SpecialMesh", Eye2)
  339. Eye2Mesh.MeshType = "Sphere"
  340. Eye2Mesh.Scale = Vector3.new(1, 1, 0.6)
  341. weld(char.Head, Eye2, CFrame.new(0, 0, 0), CFrame.new(0.2, -0.1, 0.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  342. MEye1 = Instance.new("Part", suit)
  343. MEye1.Size = Vector3.new(0.3, 0.3, 0.3)
  344. MEye1.Transparency = 0
  345. MEye1.Material = "Neon"
  346. MEye1.BrickColor = BrickColor.new("Institutional white")
  347. MEye1.CanCollide = false
  348. MEye1Mesh = Instance.new("SpecialMesh", MEye1)
  349. MEye1Mesh.MeshType = "Sphere"
  350. MEye1Mesh.Scale = Vector3.new(0.2, 0.5, 0.2)
  351. weld(Eye1, MEye1, CFrame.new(0, 0, 0), CFrame.new(-0.02, 0, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  352. MEye2 = Instance.new("Part", suit)
  353. MEye2.Size = Vector3.new(0.3, 0.3, 0.3)
  354. MEye2.Transparency = 0
  355. MEye2.Material = "Neon"
  356. MEye2.BrickColor = BrickColor.new("Institutional white")
  357. MEye2.CanCollide = false
  358. MEye2Mesh = Instance.new("SpecialMesh", MEye2)
  359. MEye2Mesh.MeshType = "Sphere"
  360. MEye2Mesh.Scale = Vector3.new(0.2, 0.5, 0.2)
  361. weld(Eye2, MEye2, CFrame.new(0, 0, 0), CFrame.new(0.02, 0, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  362. startup()
  363. hand1DeterminationPosition = Instance.new("Part", suit)
  364. hand1DeterminationPosition.Size = Vector3.new(1, 1, 1)
  365. hand1DeterminationPosition.Transparency = 1
  366. hand1DeterminationPosition.CanCollide = false
  367. weld(Torso, hand1DeterminationPosition, CFrame.new(0, 0, 0), CFrame.new(-2, -5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  368. hand2PerseverancePosition = Instance.new("Part", suit)
  369. hand2PerseverancePosition.Size = Vector3.new(1, 1, 1)
  370. hand2PerseverancePosition.Transparency = 1
  371. hand2PerseverancePosition.CanCollide = false
  372. weld(Torso, hand2PerseverancePosition, CFrame.new(0, 0, 0), CFrame.new(2, -5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  373. hand3PatiencePosition = Instance.new("Part", suit)
  374. hand3PatiencePosition.Size = Vector3.new(1, 1, 1)
  375. hand3PatiencePosition.Transparency = 1
  376. hand3PatiencePosition.CanCollide = false
  377. weld(Torso, hand3PatiencePosition, CFrame.new(0, 0, 0), CFrame.new(-4, -5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  378. hand4IntegrityPosition = Instance.new("Part", suit)
  379. hand4IntegrityPosition.Size = Vector3.new(1, 1, 1)
  380. hand4IntegrityPosition.Transparency = 1
  381. hand4IntegrityPosition.CanCollide = false
  382. weld(Torso, hand4IntegrityPosition, CFrame.new(0, 0, 0), CFrame.new(4, -5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  383. hand5BraveryPosition = Instance.new("Part", suit)
  384. hand5BraveryPosition.Size = Vector3.new(1, 1, 1)
  385. hand5BraveryPosition.Transparency = 1
  386. hand5BraveryPosition.CanCollide = false
  387. weld(Torso, hand5BraveryPosition, CFrame.new(0, 0, 0), CFrame.new(-6, -7, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  388. hand6JusticePosition = Instance.new("Part", suit)
  389. hand6JusticePosition.Size = Vector3.new(1, 1, 1)
  390. hand6JusticePosition.Transparency = 1
  391. hand6JusticePosition.CanCollide = false
  392. weld(Torso, hand6JusticePosition, CFrame.new(0, 0, 0), CFrame.new(6, -7, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  393. hand7KindnessPosition = Instance.new("Part", suit)
  394. hand7KindnessPosition.Size = Vector3.new(1, 1, 1)
  395. hand7KindnessPosition.Transparency = 1
  396. hand7KindnessPosition.CanCollide = false
  397. weld(Torso, hand7KindnessPosition, CFrame.new(0, 0, 0), CFrame.new(0, -7, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  398. AttackPosition = Instance.new("Part", suit)
  399. AttackPosition.Size = Vector3.new(1, 1, 1)
  400. AttackPosition.Transparency = 1
  401. AttackPosition.CanCollide = false
  402. weld(Torso, AttackPosition, CFrame.new(0, 0, 0), CFrame.new(0, 0, 4) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  403. hand1Determinationhealth = Instance.new("Humanoid", hand1Determination)
  404. hand1Determinationhealth.DisplayDistanceType = "None"
  405. hand1Determinationhealth.Health = 100
  406. hand1Determinationhealth.MaxHealth = 100
  407. Determination = Instance.new("Part", hand1Determination)
  408. Determination.Size = Vector3.new(1, 1.5, 0.2)
  409. Determination.Name = "Head"
  410. Determination.Position = hand1DeterminationPosition.Position
  411. DeterminationMesh = Instance.new("SpecialMesh", Determination)
  412. DeterminationMesh.MeshId = "rbxassetid://430045961"
  413. DeterminationMesh.Offset = Vector3.new(0.09, 0.1, 0)
  414. Determination.BrickColor = BrickColor.new("Institutional white")
  415. DeterminationOrb = Instance.new("Part", Determination)
  416. DeterminationOrb.Size = Vector3.new(0.3, 0.3, 0.2)
  417. DeterminationOrb.BrickColor = BrickColor.new("Really red")
  418. weld(Determination, DeterminationOrb, CFrame.new(0, 0, 0), CFrame.new(0, 0.2, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  419. weld(hand1DeterminationPosition, Determination, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  420. local p = Instance.new("Part", workspace)
  421. p.FormFactor = "Custom"
  422. p.Size = Vector3.new(0.8, 0.8, 0.8)
  423. p.TopSurface = 0
  424. p.BottomSurface = 0
  425. local colorc = {"Really red"}
  426. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  427. p.BrickColor = Fire
  428. p.CanCollide = false
  429. p.Anchored = true
  430. p.CFrame = Determination.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  431. for i = 1, 8 do
  432. wait()
  433. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  434. p.CFrame = Determination.CFrame * CFrame.new(0, 0, 0)
  435. end
  436. p:remove()
  437. hand2Perseverancehealth = Instance.new("Humanoid", hand2Perseverance)
  438. hand2Perseverancehealth.DisplayDistanceType = "None"
  439. hand2Perseverancehealth.Health = 100
  440. hand2Perseverancehealth.MaxHealth = 100
  441. Perseverance = Instance.new("Part", hand2Perseverance)
  442. Perseverance.Size = Vector3.new(1, 1.5, 0.2)
  443. Perseverance.Name = "Head"
  444. Perseverance.Position = hand2PerseverancePosition.Position
  445. PerseveranceMesh = Instance.new("SpecialMesh", Perseverance)
  446. PerseveranceMesh.MeshId = "rbxassetid://430045961"
  447. PerseveranceMesh.Offset = Vector3.new(0.09, 0.1, 0)
  448. Perseverance.BrickColor = BrickColor.new("Institutional white")
  449. PerseveranceOrb = Instance.new("Part", Perseverance)
  450. PerseveranceOrb.Size = Vector3.new(0.3, 0.3, 0.2)
  451. PerseveranceOrb.BrickColor = BrickColor.new("Magenta")
  452. weld(Perseverance, PerseveranceOrb, CFrame.new(0, 0, 0), CFrame.new(0, 0.2, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  453. weld(hand2PerseverancePosition, Perseverance, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  454. local p = Instance.new("Part", workspace)
  455. p.FormFactor = "Custom"
  456. p.Size = Vector3.new(0.8, 0.8, 0.8)
  457. p.TopSurface = 0
  458. p.BottomSurface = 0
  459. local colorc = {"Magenta"}
  460. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  461. p.BrickColor = Fire
  462. p.CanCollide = false
  463. p.Anchored = true
  464. p.CFrame = Perseverance.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  465. for i = 1, 8 do
  466. wait()
  467. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  468. p.CFrame = Perseverance.CFrame * CFrame.new(0, 0, 0)
  469. end
  470. p:remove()
  471. hand3Patiencehealth = Instance.new("Humanoid", hand3Patience)
  472. hand3Patiencehealth.DisplayDistanceType = "None"
  473. hand3Patiencehealth.Health = 100
  474. hand3Patiencehealth.MaxHealth = 100
  475. Patience = Instance.new("Part", hand3Patience)
  476. Patience.Size = Vector3.new(1, 1.5, 0.2)
  477. Patience.Name = "Head"
  478. PatienceMesh = Instance.new("SpecialMesh", Patience)
  479. PatienceMesh.MeshId = "rbxassetid://430045961"
  480. PatienceMesh.Offset = Vector3.new(0.09, 0.1, 0)
  481. Patience.BrickColor = BrickColor.new("Institutional white")
  482. PatienceOrb = Instance.new("Part", Patience)
  483. PatienceOrb.Size = Vector3.new(0.3, 0.3, 0.2)
  484. PatienceOrb.BrickColor = BrickColor.new("Cyan")
  485. weld(Patience, PatienceOrb, CFrame.new(0, 0, 0), CFrame.new(0, 0.2, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  486. weld(hand3PatiencePosition, Patience, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  487. local p = Instance.new("Part", workspace)
  488. p.FormFactor = "Custom"
  489. p.Size = Vector3.new(0.8, 0.8, 0.8)
  490. p.TopSurface = 0
  491. p.BottomSurface = 0
  492. local colorc = {"Cyan"}
  493. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  494. p.BrickColor = Fire
  495. p.CanCollide = false
  496. p.Anchored = true
  497. p.CFrame = Patience.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  498. for i = 1, 8 do
  499. wait()
  500. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  501. p.CFrame = Patience.CFrame * CFrame.new(0, 0, 0)
  502. end
  503. p:remove()
  504. hand4Integrityhealth = Instance.new("Humanoid", hand4Integrity)
  505. hand4Integrityhealth.DisplayDistanceType = "None"
  506. hand4Integrityhealth.Health = 100
  507. hand4Integrityhealth.MaxHealth = 100
  508. Integrity = Instance.new("Part", hand4Integrity)
  509. Integrity.Size = Vector3.new(1, 1.5, 0.2)
  510. Integrity.Name = "Head"
  511. Integrity.Position = hand1DeterminationPosition.Position
  512. IntegrityMesh = Instance.new("SpecialMesh", Integrity)
  513. IntegrityMesh.MeshId = "rbxassetid://430045961"
  514. IntegrityMesh.Offset = Vector3.new(0.09, 0.1, 0)
  515. Integrity.BrickColor = BrickColor.new("Institutional white")
  516. IntegrityOrb = Instance.new("Part", Integrity)
  517. IntegrityOrb.Size = Vector3.new(0.3, 0.3, 0.2)
  518. IntegrityOrb.BrickColor = BrickColor.new("Deep blue")
  519. weld(Integrity, IntegrityOrb, CFrame.new(0, 0, 0), CFrame.new(0, 0.2, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  520. weld(hand4IntegrityPosition, Integrity, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  521. local p = Instance.new("Part", workspace)
  522. p.FormFactor = "Custom"
  523. p.Size = Vector3.new(0.8, 0.8, 0.8)
  524. p.TopSurface = 0
  525. p.BottomSurface = 0
  526. local colorc = {"Deep blue"}
  527. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  528. p.BrickColor = Fire
  529. p.CanCollide = false
  530. p.Anchored = true
  531. p.CFrame = Integrity.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  532. for i = 1, 8 do
  533. wait()
  534. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  535. p.CFrame = Integrity.CFrame * CFrame.new(0, 0, 0)
  536. end
  537. p:remove()
  538. hand5Braveryhealth = Instance.new("Humanoid", hand5Bravery)
  539. hand5Braveryhealth.DisplayDistanceType = "None"
  540. hand5Braveryhealth.Health = 100
  541. hand5Braveryhealth.MaxHealth = 100
  542. Bravery = Instance.new("Part", hand5Bravery)
  543. Bravery.Size = Vector3.new(1, 1.5, 0.2)
  544. Bravery.Name = "Head"
  545. Bravery.Position = hand1DeterminationPosition.Position
  546. BraveryMesh = Instance.new("SpecialMesh", Bravery)
  547. BraveryMesh.MeshId = "rbxassetid://430045961"
  548. BraveryMesh.Offset = Vector3.new(0.09, 0.1, 0)
  549. Bravery.BrickColor = BrickColor.new("Institutional white")
  550. BraveryOrb = Instance.new("Part", Bravery)
  551. BraveryOrb.Size = Vector3.new(0.3, 0.3, 0.2)
  552. BraveryOrb.BrickColor = BrickColor.new("Deep orange")
  553. weld(Bravery, BraveryOrb, CFrame.new(0, 0, 0), CFrame.new(0, 0.2, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  554. weld(hand5BraveryPosition, Bravery, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  555. local p = Instance.new("Part", workspace)
  556. p.FormFactor = "Custom"
  557. p.Size = Vector3.new(0.8, 0.8, 0.8)
  558. p.TopSurface = 0
  559. p.BottomSurface = 0
  560. local colorc = {
  561. "Deep orange"
  562. }
  563. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  564. p.BrickColor = Fire
  565. p.CanCollide = false
  566. p.Anchored = true
  567. p.CFrame = Bravery.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  568. for i = 1, 8 do
  569. wait()
  570. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  571. p.CFrame = Bravery.CFrame * CFrame.new(0, 0, 0)
  572. end
  573. p:remove()
  574. hand6Justicehealth = Instance.new("Humanoid", hand6Justice)
  575. hand6Justicehealth.DisplayDistanceType = "None"
  576. hand6Justicehealth.Health = 100
  577. hand6Justicehealth.MaxHealth = 100
  578. Justice = Instance.new("Part", hand6Justice)
  579. Justice.Size = Vector3.new(1, 1.5, 0.2)
  580. Justice.Name = "Head"
  581. Justice.Position = hand1DeterminationPosition.Position
  582. JusticeMesh = Instance.new("SpecialMesh", Justice)
  583. JusticeMesh.MeshId = "rbxassetid://430045961"
  584. JusticeMesh.Offset = Vector3.new(0.09, 0.1, 0)
  585. Justice.BrickColor = BrickColor.new("Institutional white")
  586. JusticeOrb = Instance.new("Part", Justice)
  587. JusticeOrb.Size = Vector3.new(0.3, 0.3, 0.2)
  588. JusticeOrb.BrickColor = BrickColor.new("New Yeller")
  589. weld(Justice, JusticeOrb, CFrame.new(0, 0, 0), CFrame.new(0, 0.2, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  590. weld(hand6JusticePosition, Justice, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  591. local p = Instance.new("Part", workspace)
  592. p.FormFactor = "Custom"
  593. p.Size = Vector3.new(0.8, 0.8, 0.8)
  594. p.TopSurface = 0
  595. p.BottomSurface = 0
  596. local colorc = {"New Yeller"}
  597. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  598. p.BrickColor = Fire
  599. p.CanCollide = false
  600. p.Anchored = true
  601. p.CFrame = Justice.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  602. for i = 1, 8 do
  603. wait()
  604. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  605. p.CFrame = Justice.CFrame * CFrame.new(0, 0, 0)
  606. end
  607. p:remove()
  608. hand7Kindnesshealth = Instance.new("Humanoid", hand7Kindness)
  609. hand7Kindnesshealth.DisplayDistanceType = "None"
  610. hand7Kindnesshealth.Health = 100
  611. hand7Kindnesshealth.MaxHealth = 100
  612. Kindness = Instance.new("Part", hand7Kindness)
  613. Kindness.Size = Vector3.new(1, 1.5, 0.2)
  614. Kindness.Name = "Head"
  615. Kindness.Position = hand1DeterminationPosition.Position
  616. KindnessMesh = Instance.new("SpecialMesh", Kindness)
  617. KindnessMesh.MeshId = "rbxassetid://430045961"
  618. KindnessMesh.Offset = Vector3.new(0.09, 0.1, 0)
  619. Kindness.BrickColor = BrickColor.new("Institutional white")
  620. KindnessOrb = Instance.new("Part", Kindness)
  621. KindnessOrb.Size = Vector3.new(0.3, 0.3, 0.2)
  622. KindnessOrb.BrickColor = BrickColor.new("Lime green")
  623. weld(Kindness, KindnessOrb, CFrame.new(0, 0, 0), CFrame.new(0, 0.2, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  624. weld(hand7KindnessPosition, Kindness, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), char)
  625. local p = Instance.new("Part", workspace)
  626. p.FormFactor = "Custom"
  627. p.Size = Vector3.new(0.8, 0.8, 0.8)
  628. p.TopSurface = 0
  629. p.BottomSurface = 0
  630. local colorc = {"Lime green"}
  631. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  632. p.BrickColor = Fire
  633. p.CanCollide = false
  634. p.Anchored = true
  635. p.CFrame = Kindness.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  636. for i = 1, 8 do
  637. wait()
  638. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  639. p.CFrame = Kindness.CFrame * CFrame.new(0, 0, 0)
  640. end
  641. p:remove()
  642. PlaySound("GasterTheme", 1, char.Torso, true)
  643. function BravAttack()
  644. if hand5BraveryhealthDown == true then
  645. return
  646. end
  647. if switchvalue == 7 then
  648. BraveryAttack = true
  649. WeldBravery = Instance.new("Weld", Bravery)
  650. WeldBravery.Part0 = AttackPosition
  651. WeldBravery.Part1 = Bravery
  652. WeldBravery.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  653. do
  654. local p = Instance.new("Part", workspace)
  655. p.FormFactor = "Custom"
  656. p.Size = Vector3.new(0.8, 0.8, 0.8)
  657. p.TopSurface = 0
  658. p.BottomSurface = 0
  659. local colorc = {
  660. "Deep orange"
  661. }
  662. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  663. p.BrickColor = Fire
  664. p.CanCollide = false
  665. p.Anchored = true
  666. p.CFrame = Bravery.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  667. coroutine.resume(coroutine.create(function()
  668. for i = 1, 8 do
  669. wait()
  670. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  671. p.CFrame = Bravery.CFrame * CFrame.new(0, 0, 0)
  672. end
  673. p:remove()
  674. end))
  675. end
  676. end
  677. end
  678. function BravRest()
  679. if hand5BraveryhealthDown == true then
  680. return
  681. end
  682. if switchvalue == 6 and BraveryAttack == true then
  683. WeldBravery:remove()
  684. do
  685. local p = Instance.new("Part", workspace)
  686. p.FormFactor = "Custom"
  687. p.Size = Vector3.new(0.8, 0.8, 0.8)
  688. p.TopSurface = 0
  689. p.BottomSurface = 0
  690. local colorc = {
  691. "Deep orange"
  692. }
  693. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  694. p.BrickColor = Fire
  695. p.CanCollide = false
  696. p.Anchored = true
  697. p.CFrame = Bravery.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  698. coroutine.resume(coroutine.create(function()
  699. for i = 1, 8 do
  700. wait()
  701. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  702. p.CFrame = Bravery.CFrame * CFrame.new(0, 0, 0)
  703. end
  704. p:remove()
  705. end))
  706. BraveryAttack = false
  707. end
  708. end
  709. end
  710. function PatAttack()
  711. if hand3PatiencehealthDown == true then
  712. return
  713. end
  714. if switchvalue == 6 then
  715. PatienceAttack = true
  716. WeldPatience = Instance.new("Weld", Patience)
  717. WeldPatience.Part0 = AttackPosition
  718. WeldPatience.Part1 = Patience
  719. WeldPatience.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  720. do
  721. local p = Instance.new("Part", workspace)
  722. p.FormFactor = "Custom"
  723. p.Size = Vector3.new(0.8, 0.8, 0.8)
  724. p.TopSurface = 0
  725. p.BottomSurface = 0
  726. local colorc = {"Cyan"}
  727. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  728. p.BrickColor = Fire
  729. p.CanCollide = false
  730. p.Anchored = true
  731. p.CFrame = Patience.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  732. coroutine.resume(coroutine.create(function()
  733. for i = 1, 8 do
  734. wait()
  735. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  736. p.CFrame = Patience.CFrame * CFrame.new(0, 0, 0)
  737. end
  738. p:remove()
  739. end))
  740. end
  741. end
  742. end
  743. function PatRest()
  744. if hand3PatiencehealthDown == true then
  745. return
  746. end
  747. if (switchvalue == 7 or switchvalue == 5) and PatienceAttack == true then
  748. WeldPatience:remove()
  749. do
  750. local p = Instance.new("Part", workspace)
  751. p.FormFactor = "Custom"
  752. p.Size = Vector3.new(0.8, 0.8, 0.8)
  753. p.TopSurface = 0
  754. p.BottomSurface = 0
  755. local colorc = {"Cyan"}
  756. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  757. p.BrickColor = Fire
  758. p.CanCollide = false
  759. p.Anchored = true
  760. p.CFrame = Patience.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  761. coroutine.resume(coroutine.create(function()
  762. for i = 1, 8 do
  763. wait()
  764. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  765. p.CFrame = Patience.CFrame * CFrame.new(0, 0, 0)
  766. end
  767. p:remove()
  768. end))
  769. PatienceAttack = false
  770. end
  771. end
  772. end
  773. function DetAttack()
  774. if hand1DeterminationhealthDown == true then
  775. return
  776. end
  777. if switchvalue == 5 then
  778. DeterminationAttack = true
  779. WeldDet = Instance.new("Weld", Determination)
  780. WeldDet.Part0 = AttackPosition
  781. WeldDet.Part1 = Determination
  782. WeldDet.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  783. do
  784. local p = Instance.new("Part", workspace)
  785. p.FormFactor = "Custom"
  786. p.Size = Vector3.new(0.8, 0.8, 0.8)
  787. p.TopSurface = 0
  788. p.BottomSurface = 0
  789. local colorc = {"Really red"}
  790. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  791. p.BrickColor = Fire
  792. p.CanCollide = false
  793. p.Anchored = true
  794. p.CFrame = Determination.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  795. coroutine.resume(coroutine.create(function()
  796. for i = 1, 8 do
  797. wait()
  798. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  799. p.CFrame = Determination.CFrame * CFrame.new(0, 0, 0)
  800. end
  801. p:remove()
  802. end))
  803. end
  804. end
  805. end
  806. function DetRest()
  807. if hand1DeterminationhealthDown == true then
  808. return
  809. end
  810. if (switchvalue == 6 or switchvalue == 4) and DeterminationAttack == true then
  811. WeldDet:remove()
  812. do
  813. local p = Instance.new("Part", workspace)
  814. p.FormFactor = "Custom"
  815. p.Size = Vector3.new(0.8, 0.8, 0.8)
  816. p.TopSurface = 0
  817. p.BottomSurface = 0
  818. local colorc = {"Really red"}
  819. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  820. p.BrickColor = Fire
  821. p.CanCollide = false
  822. p.Anchored = true
  823. p.CFrame = Determination.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  824. coroutine.resume(coroutine.create(function()
  825. for i = 1, 8 do
  826. wait()
  827. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  828. p.CFrame = Determination.CFrame * CFrame.new(0, 0, 0)
  829. end
  830. p:remove()
  831. end))
  832. DeterminationAttack = false
  833. end
  834. end
  835. end
  836. function KinAttack()
  837. if hand7KindnesshealthDown == true then
  838. return
  839. end
  840. if switchvalue == 4 then
  841. KindAttack = true
  842. WeldKind = Instance.new("Weld", Kindness)
  843. WeldKind.Part0 = AttackPosition
  844. WeldKind.Part1 = Kindness
  845. WeldKind.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  846. do
  847. local p = Instance.new("Part", workspace)
  848. p.FormFactor = "Custom"
  849. p.Size = Vector3.new(0.8, 0.8, 0.8)
  850. p.TopSurface = 0
  851. p.BottomSurface = 0
  852. local colorc = {"Lime green"}
  853. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  854. p.BrickColor = Fire
  855. p.CanCollide = false
  856. p.Anchored = true
  857. p.CFrame = Kindness.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  858. coroutine.resume(coroutine.create(function()
  859. for i = 1, 8 do
  860. wait()
  861. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  862. p.CFrame = Kindness.CFrame * CFrame.new(0, 0, 0)
  863. end
  864. p:remove()
  865. end))
  866. end
  867. end
  868. end
  869. function KinRest()
  870. if hand7KindnesshealthDown == true then
  871. return
  872. end
  873. if (switchvalue == 5 or switchvalue == 3) and KindAttack == true then
  874. WeldKind:remove()
  875. do
  876. local p = Instance.new("Part", workspace)
  877. p.FormFactor = "Custom"
  878. p.Size = Vector3.new(0.8, 0.8, 0.8)
  879. p.TopSurface = 0
  880. p.BottomSurface = 0
  881. local colorc = {"Lime green"}
  882. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  883. p.BrickColor = Fire
  884. p.CanCollide = false
  885. p.Anchored = true
  886. p.CFrame = Kindness.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  887. coroutine.resume(coroutine.create(function()
  888. for i = 1, 8 do
  889. wait()
  890. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  891. p.CFrame = Kindness.CFrame * CFrame.new(0, 0, 0)
  892. end
  893. p:remove()
  894. end))
  895. KindAttack = false
  896. end
  897. end
  898. end
  899. function PerAttack()
  900. if hand2PerseverancehealthDown == true then
  901. return
  902. end
  903. if switchvalue == 3 then
  904. PerseveranceAttack = true
  905. WeldPer = Instance.new("Weld", Perseverance)
  906. WeldPer.Part0 = AttackPosition
  907. WeldPer.Part1 = Perseverance
  908. WeldPer.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  909. do
  910. local p = Instance.new("Part", workspace)
  911. p.FormFactor = "Custom"
  912. p.Size = Vector3.new(0.8, 0.8, 0.8)
  913. p.TopSurface = 0
  914. p.BottomSurface = 0
  915. local colorc = {"Magenta"}
  916. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  917. p.BrickColor = Fire
  918. p.CanCollide = false
  919. p.Anchored = true
  920. p.CFrame = Perseverance.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  921. coroutine.resume(coroutine.create(function()
  922. for i = 1, 8 do
  923. wait()
  924. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  925. p.CFrame = Perseverance.CFrame * CFrame.new(0, 0, 0)
  926. end
  927. p:remove()
  928. end))
  929. end
  930. end
  931. end
  932. function PerRest()
  933. if hand2PerseverancehealthDown == true then
  934. return
  935. end
  936. if (switchvalue == 4 or switchvalue == 2) and PerseveranceAttack == true then
  937. WeldPer:remove()
  938. do
  939. local p = Instance.new("Part", workspace)
  940. p.FormFactor = "Custom"
  941. p.Size = Vector3.new(0.8, 0.8, 0.8)
  942. p.TopSurface = 0
  943. p.BottomSurface = 0
  944. local colorc = {"Magenta"}
  945. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  946. p.BrickColor = Fire
  947. p.CanCollide = false
  948. p.Anchored = true
  949. p.CFrame = Perseverance.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  950. coroutine.resume(coroutine.create(function()
  951. for i = 1, 8 do
  952. wait()
  953. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  954. p.CFrame = Perseverance.CFrame * CFrame.new(0, 0, 0)
  955. end
  956. p:remove()
  957. end))
  958. PerseveranceAttack = false
  959. end
  960. end
  961. end
  962. function IntAttack()
  963. if hand4IntegrityhealthDown == true then
  964. return
  965. end
  966. if switchvalue == 2 then
  967. IntegrityAttack = true
  968. WeldInt = Instance.new("Weld", Integrity)
  969. WeldInt.Part0 = AttackPosition
  970. WeldInt.Part1 = Integrity
  971. WeldInt.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  972. do
  973. local p = Instance.new("Part", workspace)
  974. p.FormFactor = "Custom"
  975. p.Size = Vector3.new(0.8, 0.8, 0.8)
  976. p.TopSurface = 0
  977. p.BottomSurface = 0
  978. local colorc = {"Dark blue"}
  979. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  980. p.BrickColor = Fire
  981. p.CanCollide = false
  982. p.Anchored = true
  983. p.CFrame = Integrity.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  984. coroutine.resume(coroutine.create(function()
  985. for i = 1, 8 do
  986. wait()
  987. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  988. p.CFrame = Integrity.CFrame * CFrame.new(0, 0, 0)
  989. end
  990. p:remove()
  991. end))
  992. end
  993. end
  994. end
  995. function IntRest()
  996. if hand4IntegrityhealthDown == true then
  997. return
  998. end
  999. if (switchvalue == 3 or switchvalue == 1) and IntegrityAttack == true then
  1000. WeldInt:remove()
  1001. do
  1002. local p = Instance.new("Part", workspace)
  1003. p.FormFactor = "Custom"
  1004. p.Size = Vector3.new(0.8, 0.8, 0.8)
  1005. p.TopSurface = 0
  1006. p.BottomSurface = 0
  1007. local colorc = {"Dark blue"}
  1008. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1009. p.BrickColor = Fire
  1010. p.CanCollide = false
  1011. p.Anchored = true
  1012. p.CFrame = Integrity.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  1013. coroutine.resume(coroutine.create(function()
  1014. for i = 1, 8 do
  1015. wait()
  1016. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  1017. p.CFrame = Integrity.CFrame * CFrame.new(0, 0, 0)
  1018. end
  1019. p:remove()
  1020. end))
  1021. IntegrityAttack = false
  1022. end
  1023. end
  1024. end
  1025. function JusAttack()
  1026. if switchvalue == 1 then
  1027. if hand6JusticehealthDown == true then
  1028. return
  1029. end
  1030. JusticeAttack = true
  1031. Weldjus = Instance.new("Weld", Justice)
  1032. Weldjus.Part0 = AttackPosition
  1033. Weldjus.Part1 = Justice
  1034. Weldjus.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1035. do
  1036. local p = Instance.new("Part", workspace)
  1037. p.FormFactor = "Custom"
  1038. p.Size = Vector3.new(0.8, 0.8, 0.8)
  1039. p.TopSurface = 0
  1040. p.BottomSurface = 0
  1041. local colorc = {"New Yeller"}
  1042. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1043. p.BrickColor = Fire
  1044. p.CanCollide = false
  1045. p.Anchored = true
  1046. p.CFrame = Justice.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  1047. coroutine.resume(coroutine.create(function()
  1048. for i = 1, 8 do
  1049. wait()
  1050. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  1051. p.CFrame = Justice.CFrame * CFrame.new(0, 0, 0)
  1052. end
  1053. p:remove()
  1054. end))
  1055. end
  1056. end
  1057. end
  1058. function JusRest()
  1059. if hand6JusticehealthDown == true then
  1060. return
  1061. end
  1062. if switchvalue == 2 and JusticeAttack == true then
  1063. Weldjus:remove()
  1064. do
  1065. local p = Instance.new("Part", workspace)
  1066. p.FormFactor = "Custom"
  1067. p.Size = Vector3.new(0.8, 0.8, 0.8)
  1068. p.TopSurface = 0
  1069. p.BottomSurface = 0
  1070. local colorc = {"New Yeller"}
  1071. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1072. p.BrickColor = Fire
  1073. p.CanCollide = false
  1074. p.Anchored = true
  1075. p.CFrame = Justice.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  1076. coroutine.resume(coroutine.create(function()
  1077. for i = 1, 8 do
  1078. wait()
  1079. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  1080. p.CFrame = Justice.CFrame * CFrame.new(0, 0, 0)
  1081. end
  1082. p:remove()
  1083. end))
  1084. JusticeAttack = false
  1085. end
  1086. end
  1087. end
  1088. mouse.Button1Up:connect(function()
  1089. InUse = false
  1090. end)
  1091. mouse.Button1Down:connect(function()
  1092. InUse = true
  1093. end)
  1094. mouse.KeyDown:connect(function(key)
  1095. if key == "r" then
  1096. if hand7KindnesshealthDown == true then
  1097. return
  1098. end
  1099. if ShieldValueToGasterDebounce == true then
  1100. return
  1101. end
  1102. if ShieldValueToGaster == false then
  1103. ShieldValueToGaster = true
  1104. if ShieldValueToGasterDebounce == false then
  1105. ShieldValueToGasterDebounce = true
  1106. local ShieldOfGaster6 = Instance.new("Part", hand7Kindness)
  1107. ShieldOfGaster6.TopSurface = "Smooth"
  1108. ShieldOfGaster6.BottomSurface = "Smooth"
  1109. ShieldOfGaster6.Size = Vector3.new(18, 3, 18)
  1110. ShieldOfGaster6.CanCollide = true
  1111. ShieldOfGaster6.Anchored = true
  1112. ShieldOfGaster6.BrickColor = BrickColor.new("Lime green")
  1113. ShieldOfGaster6.FormFactor = "Custom"
  1114. ShieldOfGaster6.Transparency = 0.7
  1115. ShieldOfGaster6.CFrame = Torso.CFrame * CFrame.new(0, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1116. shieldparent6 = ShieldOfGaster6
  1117. local ShieldOfGaster5 = Instance.new("Part", hand7Kindness)
  1118. ShieldOfGaster5.TopSurface = "Smooth"
  1119. ShieldOfGaster5.BottomSurface = "Smooth"
  1120. ShieldOfGaster5.Size = Vector3.new(18, 3, 18)
  1121. ShieldOfGaster5.CanCollide = true
  1122. ShieldOfGaster5.Anchored = true
  1123. ShieldOfGaster5.BrickColor = BrickColor.new("Lime green")
  1124. ShieldOfGaster5.FormFactor = "Custom"
  1125. ShieldOfGaster5.Transparency = 0.7
  1126. ShieldOfGaster5.CFrame = Torso.CFrame * CFrame.new(0, -10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1127. shieldparent5 = ShieldOfGaster5
  1128. local ShieldOfGaster4 = Instance.new("Part", hand7Kindness)
  1129. ShieldOfGaster4.TopSurface = "Smooth"
  1130. ShieldOfGaster4.BottomSurface = "Smooth"
  1131. ShieldOfGaster4.Size = Vector3.new(3, 18, 18)
  1132. ShieldOfGaster4.CanCollide = true
  1133. ShieldOfGaster4.Anchored = true
  1134. ShieldOfGaster4.BrickColor = BrickColor.new("Lime green")
  1135. ShieldOfGaster4.FormFactor = "Custom"
  1136. ShieldOfGaster4.Transparency = 0.7
  1137. ShieldOfGaster4.CFrame = Torso.CFrame * CFrame.new(-10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1138. shieldparent4 = ShieldOfGaster4
  1139. local ShieldOfGaster3 = Instance.new("Part", hand7Kindness)
  1140. ShieldOfGaster3.TopSurface = "Smooth"
  1141. ShieldOfGaster3.BottomSurface = "Smooth"
  1142. ShieldOfGaster3.Size = Vector3.new(3, 18, 18)
  1143. ShieldOfGaster3.CanCollide = true
  1144. ShieldOfGaster3.Anchored = true
  1145. ShieldOfGaster3.BrickColor = BrickColor.new("Lime green")
  1146. ShieldOfGaster3.FormFactor = "Custom"
  1147. ShieldOfGaster3.Transparency = 0.7
  1148. ShieldOfGaster3.CFrame = Torso.CFrame * CFrame.new(10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1149. shieldparent3 = ShieldOfGaster3
  1150. local ShieldOfGaster2 = Instance.new("Part", hand7Kindness)
  1151. ShieldOfGaster2.TopSurface = "Smooth"
  1152. ShieldOfGaster2.BottomSurface = "Smooth"
  1153. ShieldOfGaster2.Size = Vector3.new(18, 18, 3)
  1154. ShieldOfGaster2.CanCollide = true
  1155. ShieldOfGaster2.Anchored = true
  1156. ShieldOfGaster2.BrickColor = BrickColor.new("Lime green")
  1157. ShieldOfGaster2.FormFactor = "Custom"
  1158. ShieldOfGaster2.Transparency = 0.7
  1159. ShieldOfGaster2.CFrame = Torso.CFrame * CFrame.new(0, 0, -10) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1160. shieldparent2 = ShieldOfGaster2
  1161. local ShieldOfGaster1 = Instance.new("Part", hand7Kindness)
  1162. ShieldOfGaster1.TopSurface = "Smooth"
  1163. ShieldOfGaster1.BottomSurface = "Smooth"
  1164. ShieldOfGaster1.Size = Vector3.new(18, 18, 3)
  1165. ShieldOfGaster1.CanCollide = true
  1166. ShieldOfGaster1.Anchored = true
  1167. ShieldOfGaster1.BrickColor = BrickColor.new("Lime green")
  1168. ShieldOfGaster1.FormFactor = "Custom"
  1169. ShieldOfGaster1.Transparency = 0.7
  1170. ShieldOfGaster1.CFrame = Torso.CFrame * CFrame.new(0, 0, 10) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1171. shieldparent1 = ShieldOfGaster1
  1172. for i = 1, 7 do
  1173. do
  1174. local parti = Instance.new("Part", Torso)
  1175. parti.Anchored = true
  1176. parti.TopSurface = 0
  1177. parti.BottomSurface = 0
  1178. parti.CanCollide = false
  1179. parti.Size = Vector3.new(math.random(1, 1), math.random(1, 1), math.random(1, 1))
  1180. parti.CFrame = Torso.CFrame * CFrame.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1181. parti.Transparency = 0
  1182. parti.BrickColor = BrickColor.new("Lime green")
  1183. game.Debris:AddItem(parti, 1.5)
  1184. local pad = Vector3.new(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  1185. game:service("RunService").Stepped:connect(function()
  1186. parti.Transparency = parti.Transparency + 0.05
  1187. parti.CFrame = parti.CFrame * CFrame.Angles(math.rad(20), math.rad(20), math.rad(20)) + pad
  1188. end)
  1189. end
  1190. end
  1191. ShieldValueToGasterDebounce = false
  1192. ShieldValueToGaster = true
  1193. end
  1194. elseif ShieldValueToGaster == true then
  1195. ShieldValueToGaster = false
  1196. if ShieldValueToGasterDebounce == false then
  1197. ShieldValueToGasterDebounce = true
  1198. for i = 1, 3 do
  1199. wait()
  1200. shieldparent6.Transparency = shieldparent6.Transparency + 0.1
  1201. shieldparent5.Transparency = shieldparent5.Transparency + 0.1
  1202. shieldparent4.Transparency = shieldparent4.Transparency + 0.1
  1203. shieldparent3.Transparency = shieldparent3.Transparency + 0.1
  1204. shieldparent2.Transparency = shieldparent2.Transparency + 0.1
  1205. shieldparent1.Transparency = shieldparent1.Transparency + 0.1
  1206. end
  1207. shieldparent6:remove()
  1208. shieldparent5:remove()
  1209. shieldparent4:remove()
  1210. shieldparent3:remove()
  1211. shieldparent2:remove()
  1212. shieldparent1:remove()
  1213. shieldparent1 = nil
  1214. shieldparent2 = nil
  1215. shieldparent3 = nil
  1216. shieldparent4 = nil
  1217. shieldparent5 = nil
  1218. shieldparent6 = nil
  1219. ShieldValueToGasterDebounce = false
  1220. ShieldValueToGaster = false
  1221. end
  1222. end
  1223. end
  1224. if key == "x" and not vDebounce then
  1225. vDebounce = true
  1226. for i = 1, 5 do
  1227. wait()
  1228. Torso.Transparency = Torso.Transparency + 0.2
  1229. char["Left Arm"].Transparency = char["Left Arm"].Transparency + 0.2
  1230. char["Left Leg"].Transparency = char["Left Leg"].Transparency + 0.2
  1231. char["Right Arm"].Transparency = char["Right Arm"].Transparency + 0.2
  1232. char["Right Leg"].Transparency = char["Right Leg"].Transparency + 0.2
  1233. char.Head.Transparency = char.Head.Transparency + 0.2
  1234. Crack1.Transparency = Crack1.Transparency + 0.2
  1235. Crack2.Transparency = Crack2.Transparency + 0.2
  1236. mouth.Transparency = mouth.Transparency + 0.2
  1237. Eye1.Transparency = Eye1.Transparency + 0.2
  1238. Eye2.Transparency = Eye2.Transparency + 0.2
  1239. MEye1.Transparency = MEye1.Transparency + 0.2
  1240. MEye2.Transparency = MEye2.Transparency + 0.2
  1241. end
  1242. teleportPlayer(mouse.hit.p)
  1243. char.Humanoid.PlatformStand = false
  1244. vDebounce = false
  1245. end
  1246. if key == "q" then
  1247. if switchvalue == 1 then
  1248. return
  1249. end
  1250. switchvalue = switchvalue - 1
  1251. print(switchvalue)
  1252. JusAttack()
  1253. JusRest()
  1254. IntAttack()
  1255. IntRest()
  1256. PerAttack()
  1257. PerRest()
  1258. KinAttack()
  1259. KinRest()
  1260. DetAttack()
  1261. DetRest()
  1262. PatAttack()
  1263. PatRest()
  1264. BravAttack()
  1265. BravRest()
  1266. end
  1267. if key == "e" then
  1268. if switchvalue == 7 then
  1269. return
  1270. end
  1271. switchvalue = switchvalue + 1
  1272. print(switchvalue)
  1273. JusAttack()
  1274. JusRest()
  1275. IntAttack()
  1276. IntRest()
  1277. PerAttack()
  1278. PerRest()
  1279. KinAttack()
  1280. KinRest()
  1281. DetAttack()
  1282. DetRest()
  1283. PatAttack()
  1284. PatRest()
  1285. BravAttack()
  1286. BravRest()
  1287. end
  1288. end)
  1289. game:service("RunService").Stepped:connect(function()
  1290. wait(0.5)
  1291. if hand1DeterminationhealthDown == true and hand2PerseverancehealthDown == true and hand3PatiencehealthDown == true and hand4IntegrityhealthDown == true and hand5BraveryhealthDown == true and hand6JusticehealthDown == true and hand7KindnesshealthDown == true then
  1292. char.Humanoid.Health = 0
  1293. end
  1294. if InUse == false then
  1295. return
  1296. end
  1297. if JusticeAttack == true then
  1298. if InUse == false then
  1299. return
  1300. end
  1301. if InUse == true then
  1302. if JusticeAttackDebounce == true then
  1303. return
  1304. end
  1305. if JusticeAttackDebounce == false then
  1306. JusticeAttackDebounce = true
  1307. wait(0.2)
  1308. do
  1309. local PewJustice = Instance.new("Part", suit)
  1310. PewJustice.Size = Vector3.new(2, 1, 4)
  1311. PewJustice.BrickColor = BrickColor.new("New Yeller")
  1312. PewJustice.Position = Justice.Position
  1313. PewJustice.CanCollide = false
  1314. for i = 1, 7 do
  1315. do
  1316. local parti = Instance.new("Part", Torso)
  1317. parti.Anchored = true
  1318. parti.TopSurface = 0
  1319. parti.BottomSurface = 0
  1320. parti.CanCollide = false
  1321. parti.Size = Vector3.new(math.random(0.5, 0.5), math.random(0.5, 0.5), math.random(0.5, 0.5))
  1322. parti.CFrame = Justice.CFrame * CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  1323. parti.Transparency = 0
  1324. parti.BrickColor = BrickColor.new("New Yeller")
  1325. game.Debris:AddItem(parti, 1.5)
  1326. local pad = Vector3.new(math.random(-2, 2) / 100, math.random(-2, 2) / 100, math.random(-2, 2) / 100)
  1327. game:service("RunService").Stepped:connect(function()
  1328. parti.Transparency = parti.Transparency + 0.05
  1329. parti.CFrame = parti.CFrame * CFrame.Angles(math.rad(20), math.rad(20), math.rad(20)) + pad
  1330. end)
  1331. end
  1332. end
  1333. coroutine.resume(coroutine.create(function()
  1334. for i = 1, 8 do
  1335. wait()
  1336. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  1337. p.CFrame = Justice.CFrame * CFrame.new(0, 0, 0)
  1338. end
  1339. p:remove()
  1340. end))
  1341. local handleCFrame = PewJustice.CFrame
  1342. local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
  1343. local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
  1344. local laserShotClone = PewJustice:Clone()
  1345. PewJustice:remove()
  1346. laserShotClone.CFrame = shotCFrame + shotCFrame.lookVector * (PewJustice.Size.Z / 2)
  1347. local bodyVelocity = Instance.new("BodyVelocity")
  1348. bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
  1349. bodyVelocity.Parent = laserShotClone
  1350. bodyVelocity.Name = "Magic"
  1351. bodyVelocity.MaxForce = Vector3.new(1000000, 1000000, 1000000)
  1352. laserShotClone.Parent = suit
  1353. function touch(hit)
  1354. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1355. if hit.Parent.Name == char.Name then
  1356. return
  1357. end
  1358. if hit.Parent.Name == hand1Determination.Name then
  1359. return
  1360. end
  1361. if hit.Parent.Name == hand2Perseverance.Name then
  1362. return
  1363. end
  1364. if hit.Parent.Name == hand3Patience.Name then
  1365. return
  1366. end
  1367. if hit.Parent.Name == hand4Integrity.Name then
  1368. return
  1369. end
  1370. if hit.Parent.Name == hand5Bravery.Name then
  1371. return
  1372. end
  1373. if hit.Parent.Name == hand6Justice.Name then
  1374. return
  1375. end
  1376. if hit.Parent.Name == hand7Kindness.Name then
  1377. return
  1378. end
  1379. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 3
  1380. do
  1381. local HitSounds = {
  1382. Hurt = Instance.new("Sound")
  1383. }
  1384. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=410625063"
  1385. HitSounds.Hurt.Volume = 1
  1386. function PlayHitSound(soundname, pitch)
  1387. HitSounds[soundname].Parent = hit.Parent.Torso
  1388. HitSounds[soundname].Pitch = pitch
  1389. HitSounds[soundname]:Play()
  1390. local oldsound = HitSounds[soundname]
  1391. coroutine.resume(coroutine.create(function()
  1392. wait(4)
  1393. oldsound:Destroy()
  1394. end))
  1395. HitSounds[soundname] = HitSounds[soundname]:clone()
  1396. end
  1397. PlayHitSound("Hurt", 1)
  1398. coroutine.resume(coroutine.create(function()
  1399. laserShotClone.Magic:remove()
  1400. wait(3)
  1401. laserShotClone:remove()
  1402. end))
  1403. end
  1404. end
  1405. end
  1406. laserShotClone.Touched:connect(touch)
  1407. game.Debris:AddItem(laserShotClone, 10)
  1408. JusticeAttackDebounce = false
  1409. end
  1410. end
  1411. end
  1412. end
  1413. if IntegrityAttack == true then
  1414. if InUse == false then
  1415. return
  1416. end
  1417. if InUse == true then
  1418. if IntegrityAttackDebounce == true then
  1419. return
  1420. end
  1421. if IntegrityAttackDebounce == false then
  1422. IntegrityAttackDebounce = true
  1423. wait(0.5)
  1424. for i = 1, 2 do
  1425. wait(1)
  1426. do
  1427. local PewIntegrity = Instance.new("Part", suit)
  1428. PewIntegrity.Size = Vector3.new(5, 1, 5)
  1429. PewIntegrity.BrickColor = BrickColor.new("Dark blue")
  1430. PewIntegrity.Position = Integrity.Position
  1431. PewIntegrity.CanCollide = false
  1432. PewIntegrity.Transparency = 0.4
  1433. local p = Instance.new("Part", workspace)
  1434. p.FormFactor = "Custom"
  1435. p.Size = Vector3.new(0.8, 0.8, 0.8)
  1436. p.TopSurface = 0
  1437. p.BottomSurface = 0
  1438. local colorc = {"Dark blue"}
  1439. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1440. p.BrickColor = Fire
  1441. p.CanCollide = false
  1442. p.Anchored = true
  1443. p.CFrame = Integrity.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  1444. coroutine.resume(coroutine.create(function()
  1445. for i = 1, 8 do
  1446. wait()
  1447. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  1448. p.CFrame = Integrity.CFrame * CFrame.new(0, 0, 0)
  1449. end
  1450. p:remove()
  1451. end))
  1452. local handleCFrame = PewIntegrity.CFrame
  1453. local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
  1454. local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
  1455. local laserShotClone = PewIntegrity:Clone()
  1456. PewIntegrity:remove()
  1457. laserShotClone.CFrame = shotCFrame + shotCFrame.lookVector * (PewIntegrity.Size.Z / 2)
  1458. local bodyVelocity = Instance.new("BodyVelocity")
  1459. bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
  1460. negativevelocity = bodyVelocity.velocity * -1
  1461. bodyVelocity.Parent = laserShotClone
  1462. bodyVelocity.Name = "Magic"
  1463. bodyVelocity.MaxForce = Vector3.new(1000000, 1000000, 1000000)
  1464. laserShotClone.Parent = suit
  1465. function touch(hit)
  1466. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1467. if hit.Parent.Name == char.Name then
  1468. return
  1469. end
  1470. if hit.Parent.Name == hand1Determination.Name then
  1471. return
  1472. end
  1473. if hit.Parent.Name == hand2Perseverance.Name then
  1474. return
  1475. end
  1476. if hit.Parent.Name == hand3Patience.Name then
  1477. return
  1478. end
  1479. if hit.Parent.Name == hand4Integrity.Name then
  1480. return
  1481. end
  1482. if hit.Parent.Name == hand5Bravery.Name then
  1483. return
  1484. end
  1485. if hit.Parent.Name == hand6Justice.Name then
  1486. return
  1487. end
  1488. if hit.Parent.Name == hand7Kindness.Name then
  1489. return
  1490. end
  1491. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 7
  1492. do
  1493. local HitSounds = {
  1494. Hurt = Instance.new("Sound")
  1495. }
  1496. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=410625063"
  1497. HitSounds.Hurt.Volume = 1
  1498. function PlayHitSound(soundname, pitch)
  1499. HitSounds[soundname].Parent = hit.Parent.Torso
  1500. HitSounds[soundname].Pitch = pitch
  1501. HitSounds[soundname]:Play()
  1502. local oldsound = HitSounds[soundname]
  1503. coroutine.resume(coroutine.create(function()
  1504. wait(4)
  1505. oldsound:Destroy()
  1506. end))
  1507. HitSounds[soundname] = HitSounds[soundname]:clone()
  1508. end
  1509. PlayHitSound("Hurt", 1)
  1510. end
  1511. end
  1512. end
  1513. laserShotClone.Touched:connect(touch)
  1514. game.Debris:AddItem(laserShotClone, 10)
  1515. coroutine.resume(coroutine.create(function()
  1516. for i = 1, 25 do
  1517. wait()
  1518. local p = Instance.new("Part", workspace)
  1519. p.FormFactor = "Custom"
  1520. p.Size = Vector3.new(5, 1, 5)
  1521. p.TopSurface = 0
  1522. p.BottomSurface = 0
  1523. local colorc = {"Dark blue"}
  1524. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1525. p.BrickColor = Fire
  1526. p.CanCollide = false
  1527. p.Anchored = true
  1528. p.Transparency = 0.7
  1529. p.CFrame = laserShotClone.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.3 * i, 0)
  1530. game.Debris:AddItem(p, 0.2)
  1531. end
  1532. bodyVelocity.velocity = negativevelocity
  1533. for i = 1, 25 do
  1534. wait()
  1535. local p = Instance.new("Part", workspace)
  1536. p.FormFactor = "Custom"
  1537. p.Size = Vector3.new(5, 1, 5)
  1538. p.TopSurface = 0
  1539. p.BottomSurface = 0
  1540. local colorc = {"Dark blue"}
  1541. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1542. p.BrickColor = Fire
  1543. p.CanCollide = false
  1544. p.Anchored = true
  1545. p.Transparency = 0.7
  1546. game.Debris:AddItem(p, 0.2)
  1547. p.CFrame = laserShotClone.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.3 * i, 0)
  1548. end
  1549. end))
  1550. end
  1551. end
  1552. wait(1)
  1553. IntegrityAttackDebounce = false
  1554. end
  1555. end
  1556. end
  1557. if PerseveranceAttack == true then
  1558. if InUse == false then
  1559. return
  1560. end
  1561. if InUse == true then
  1562. if PerseveranceAttackDebounce == true then
  1563. return
  1564. end
  1565. if PerseveranceAttackDebounce == false then
  1566. PerseveranceAttackDebounce = true
  1567. RandomPerseverance = math.random(1, 2)
  1568. if RandomPerseverance == 2 then
  1569. do
  1570. local randomnumber = math.random(1, 2)
  1571. wait(0.3)
  1572. local p = Instance.new("Part", workspace)
  1573. p.FormFactor = "Custom"
  1574. p.Size = Vector3.new(0.8, 0.8, 0.8)
  1575. p.TopSurface = 0
  1576. p.BottomSurface = 0
  1577. local colorc = {"Magenta"}
  1578. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1579. p.BrickColor = Fire
  1580. p.CanCollide = false
  1581. p.Anchored = true
  1582. p.CFrame = Perseverance.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  1583. coroutine.resume(coroutine.create(function()
  1584. for i = 1, 5 do
  1585. wait()
  1586. p.Size = Vector3.new(0.5 * i, 0.5 * i, 0.5 * i)
  1587. p.CFrame = Perseverance.CFrame * CFrame.new(0, 0, 0)
  1588. end
  1589. p:remove()
  1590. end))
  1591. local throwbone1 = Instance.new("Part", suit)
  1592. throwbone1.TopSurface = "Smooth"
  1593. throwbone1.BottomSurface = "Smooth"
  1594. throwbone1.Size = Vector3.new(0.2, 0.2, 3)
  1595. throwbone1.CanCollide = true
  1596. throwbone1.BrickColor = BrickColor.new("Magenta")
  1597. throwbone1.FormFactor = "Custom"
  1598. local Weldbonepart2 = Instance.new("Weld", throwbone1)
  1599. Weldbonepart2.Part0 = throwbone1
  1600. Weldbonepart2.Part1 = Perseverance
  1601. Weldbonepart2.Name = "WBP22"
  1602. local throwbone1weld2 = Instance.new("Part", throwbone1)
  1603. throwbone1weld2.TopSurface = "Smooth"
  1604. throwbone1weld2.BottomSurface = "Smooth"
  1605. throwbone1weld2.Size = Vector3.new(0.4, 0.4, 0.4)
  1606. throwbone1weld2.CanCollide = true
  1607. throwbone1weld2.BrickColor = BrickColor.new("Magenta")
  1608. throwbone1weld2.FormFactor = "Custom"
  1609. local Weldbonepart2weld2 = Instance.new("Weld", throwbone1)
  1610. Weldbonepart2weld2.Part0 = throwbone1weld2
  1611. Weldbonepart2weld2.Part1 = throwbone1
  1612. Weldbonepart2weld2.Name = "WBP2W2"
  1613. Weldbonepart2weld2.C1 = CFrame.new(0, 0, -1.3) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1614. local throwbone1weld1 = Instance.new("Part", throwbone1)
  1615. throwbone1weld1.TopSurface = "Smooth"
  1616. throwbone1weld1.BottomSurface = "Smooth"
  1617. throwbone1weld1.Size = Vector3.new(0.4, 0.4, 0.4)
  1618. throwbone1weld1.CanCollide = true
  1619. throwbone1weld1.BrickColor = BrickColor.new("Magenta")
  1620. throwbone1weld1.FormFactor = "Custom"
  1621. local Weldbonepart2weld1 = Instance.new("Weld", throwbone1)
  1622. Weldbonepart2weld1.Part0 = throwbone1weld1
  1623. Weldbonepart2weld1.Part1 = throwbone1
  1624. Weldbonepart2weld1.Name = "WBP2W1"
  1625. Weldbonepart2weld1.C1 = CFrame.new(0, 0, 1.3) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1626. if randomnumber == 1 then
  1627. for i = 1, 10 do
  1628. wait()
  1629. Weldbonepart2.C1 = CFrame.new(-3, 0, 0) * CFrame.fromEulerAnglesXYZ(0.7 * i, 0, 0)
  1630. end
  1631. end
  1632. if randomnumber == 2 then
  1633. for i = 1, 10 do
  1634. wait()
  1635. Weldbonepart2.C1 = CFrame.new(3, 0, 0) * CFrame.fromEulerAnglesXYZ(0.7 * i, 0, 0)
  1636. end
  1637. end
  1638. local handleCFrame = throwbone1.CFrame
  1639. local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
  1640. local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
  1641. local laserShotClone = throwbone1:Clone()
  1642. laserShotClone.WBP22:remove()
  1643. laserShotClone.CFrame = shotCFrame + shotCFrame.lookVector * (throwbone1.Size.Z / 2)
  1644. local bodyVelocity = Instance.new("BodyVelocity")
  1645. bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
  1646. bodyVelocity.Parent = laserShotClone
  1647. bodyVelocity.Name = "Magic"
  1648. bodyVelocity.MaxForce = Vector3.new(1000000, 1000000, 1000000)
  1649. laserShotClone.Parent = suit
  1650. throwbone1:remove()
  1651. function touch(hit)
  1652. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1653. if hit.Parent.Name == char.Name then
  1654. return
  1655. end
  1656. if hit.Parent.Name == hand1Determination.Name then
  1657. return
  1658. end
  1659. if hit.Parent.Name == hand2Perseverance.Name then
  1660. return
  1661. end
  1662. if hit.Parent.Name == hand3Patience.Name then
  1663. return
  1664. end
  1665. if hit.Parent.Name == hand4Integrity.Name then
  1666. return
  1667. end
  1668. if hit.Parent.Name == hand5Bravery.Name then
  1669. return
  1670. end
  1671. if hit.Parent.Name == hand6Justice.Name then
  1672. return
  1673. end
  1674. if hit.Parent.Name == hand7Kindness.Name then
  1675. return
  1676. end
  1677. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
  1678. do
  1679. local HitSounds = {
  1680. Hurt = Instance.new("Sound")
  1681. }
  1682. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=410625063"
  1683. HitSounds.Hurt.Volume = 1
  1684. function PlayHitSound(soundname, pitch)
  1685. HitSounds[soundname].Parent = hit.Parent.Torso
  1686. HitSounds[soundname].Pitch = pitch
  1687. HitSounds[soundname]:Play()
  1688. local oldsound = HitSounds[soundname]
  1689. coroutine.resume(coroutine.create(function()
  1690. wait(4)
  1691. oldsound:Destroy()
  1692. end))
  1693. HitSounds[soundname] = HitSounds[soundname]:clone()
  1694. end
  1695. PlayHitSound("Hurt", 1)
  1696. coroutine.resume(coroutine.create(function()
  1697. laserShotClone.Magic:remove()
  1698. wait(3)
  1699. laserShotClone:remove()
  1700. end))
  1701. end
  1702. end
  1703. end
  1704. laserShotClone.Touched:connect(touch)
  1705. game.Debris:AddItem(laserShotClone, 10)
  1706. end
  1707. elseif RandomPerseverance == 1 then
  1708. PlaySound("Gaster", 1, PerseveranceOrb, false)
  1709. wait(1)
  1710. do
  1711. local ray = Ray.new(PerseveranceOrb.CFrame.p, mouse.Hit.p - PerseveranceOrb.CFrame.p.unit * 1000)
  1712. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  1713. local ray = Ray.new(PerseveranceOrb.CFrame.p, mouse.Hit.p - PerseveranceOrb.CFrame.p.unit * 300)
  1714. local position = mouse.Hit.p
  1715. local distance = position - PerseveranceOrb.CFrame.p.magnitude
  1716. local rp = Instance.new("Part", workspace)
  1717. rp.Anchored = true
  1718. rp.TopSurface = "Smooth"
  1719. rp.BottomSurface = "Smooth"
  1720. rp.Transparency = 0
  1721. rp.BrickColor = BrickColor.new("Bright purple")
  1722. rp.FormFactor = "Custom"
  1723. rp.CanCollide = false
  1724. rp.Size = Vector3.new(0.8, 0.1, distance)
  1725. rp.Material = "Neon"
  1726. rp.CFrame = CFrame.new(position, PerseveranceOrb.CFrame.p) * CFrame.new(0, 0, -distance / 2)
  1727. local cy = Instance.new("BlockMesh", rp)
  1728. coroutine.resume(coroutine.create(function()
  1729. wait(1)
  1730. for i = 1, 10 do
  1731. wait()
  1732. rp.Transparency = rp.Transparency + 0.1
  1733. end
  1734. rp:remove()
  1735. end))
  1736. function touch(hit)
  1737. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1738. if hit.Parent.Name == char.Name then
  1739. return
  1740. end
  1741. if hit.Parent.Name == hand1Determination.Name then
  1742. return
  1743. end
  1744. if hit.Parent.Name == hand2Perseverance.Name then
  1745. return
  1746. end
  1747. if hit.Parent.Name == hand3Patience.Name then
  1748. return
  1749. end
  1750. if hit.Parent.Name == hand4Integrity.Name then
  1751. return
  1752. end
  1753. if hit.Parent.Name == hand5Bravery.Name then
  1754. return
  1755. end
  1756. if hit.Parent.Name == hand6Justice.Name then
  1757. return
  1758. end
  1759. if hit.Parent.Name == hand7Kindness.Name then
  1760. return
  1761. end
  1762. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 20
  1763. do
  1764. local HitSounds = {
  1765. Hurt = Instance.new("Sound")
  1766. }
  1767. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=410625063"
  1768. HitSounds.Hurt.Volume = 1
  1769. function PlayHitSound(soundname, pitch)
  1770. HitSounds[soundname].Parent = hit.Parent.Torso
  1771. HitSounds[soundname].Pitch = pitch
  1772. HitSounds[soundname]:Play()
  1773. local oldsound = HitSounds[soundname]
  1774. coroutine.resume(coroutine.create(function()
  1775. wait(4)
  1776. oldsound:Destroy()
  1777. end))
  1778. HitSounds[soundname] = HitSounds[soundname]:clone()
  1779. end
  1780. PlayHitSound("Hurt", 1)
  1781. end
  1782. end
  1783. end
  1784. rp.Touched:connect(touch)
  1785. end
  1786. end
  1787. RandomPerseverance = 0
  1788. PerseveranceAttackDebounce = false
  1789. end
  1790. end
  1791. end
  1792. if KindAttack == true then
  1793. if InUse == false then
  1794. return
  1795. end
  1796. if InUse == true then
  1797. if KindnessAttackDebounce == true then
  1798. return
  1799. end
  1800. if KindnessAttackDebounce == false then
  1801. KindnessAttackDebounce = true
  1802. do
  1803. local ray = Ray.new(Kindness.CFrame.p, mouse.Hit.p - Kindness.CFrame.p.unit * 300)
  1804. local position = mouse.Hit.p
  1805. local distance = position - Kindness.CFrame.p.magnitude
  1806. local rp = Instance.new("Part", workspace)
  1807. rp.Anchored = true
  1808. rp.TopSurface = "Smooth"
  1809. rp.BottomSurface = "Smooth"
  1810. rp.Transparency = 1
  1811. rp.BrickColor = BrickColor.new("Deep orange")
  1812. rp.FormFactor = "Custom"
  1813. rp.CanCollide = false
  1814. rp.Size = Vector3.new(0.6, 0.6, distance)
  1815. rp.Material = "Neon"
  1816. rp.CFrame = CFrame.new(position, Kindness.CFrame.p) * CFrame.new(0, 0, -distance / 2)
  1817. local cy = Instance.new("BlockMesh", rp)
  1818. rp:Destroy()
  1819. local ps = Instance.new("Part", suit)
  1820. ps.Name = "MagicPart"
  1821. ps.TopSurface = "Smooth"
  1822. ps.BottomSurface = "Smooth"
  1823. ps.BrickColor = BrickColor.new("Toothpaste")
  1824. ps.FormFactor = "Custom"
  1825. ps.Transparency = 1
  1826. ps.Size = Vector3.new(0.2, 3, 3)
  1827. ps.Anchored = true
  1828. ps.CanCollide = false
  1829. ps.CFrame = CFrame.new(position) * CFrame.new(0, 3, 0)
  1830. local cy = Instance.new("SpecialMesh", ps)
  1831. cy.MeshType = "Cylinder"
  1832. coroutine.resume(coroutine.create(function()
  1833. local SpawnSounds = {
  1834. Spike = Instance.new("Sound")
  1835. }
  1836. SpawnSounds.Spike.SoundId = "http://www.roblox.com/asset?id=486286230"
  1837. SpawnSounds.Spike.Volume = 0.5
  1838. function PlaySpawnSound(soundname, pitch)
  1839. SpawnSounds[soundname].Parent = ps
  1840. SpawnSounds[soundname].Pitch = pitch
  1841. SpawnSounds[soundname]:Play()
  1842. local oldsound = SpawnSounds[soundname]
  1843. coroutine.resume(coroutine.create(function()
  1844. wait(4)
  1845. oldsound:Destroy()
  1846. end))
  1847. SpawnSounds[soundname] = SpawnSounds[soundname]:clone()
  1848. end
  1849. local p = Instance.new("Part", workspace)
  1850. p.FormFactor = "Custom"
  1851. p.Size = Vector3.new(0.8, 0.8, 0.8)
  1852. p.TopSurface = 0
  1853. p.BottomSurface = 0
  1854. local colorc = {"Lime green"}
  1855. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1856. p.BrickColor = Fire
  1857. p.CanCollide = false
  1858. p.Anchored = true
  1859. p.CFrame = Kindness.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  1860. coroutine.resume(coroutine.create(function()
  1861. for i = 1, 8 do
  1862. wait()
  1863. p.Size = Vector3.new(0.8 * i, 0.8 * i, 0.8 * i)
  1864. p.CFrame = Kindness.CFrame * CFrame.new(0, 0, 0)
  1865. end
  1866. p:remove()
  1867. end))
  1868. PlaySpawnSound("Spike", 1)
  1869. wait(0.5)
  1870. end))
  1871. local Shield6 = Instance.new("Part", hand7Kindness)
  1872. Shield6.TopSurface = "Smooth"
  1873. Shield6.BottomSurface = "Smooth"
  1874. Shield6.Size = Vector3.new(18, 3, 18)
  1875. Shield6.CanCollide = true
  1876. Shield6.Anchored = true
  1877. Shield6.BrickColor = BrickColor.new("Lime green")
  1878. Shield6.FormFactor = "Custom"
  1879. Shield6.Transparency = 0.7
  1880. Shield6.CFrame = ps.CFrame * CFrame.new(0, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1881. local Shield5 = Instance.new("Part", hand7Kindness)
  1882. Shield5.TopSurface = "Smooth"
  1883. Shield5.BottomSurface = "Smooth"
  1884. Shield5.Size = Vector3.new(18, 3, 18)
  1885. Shield5.CanCollide = true
  1886. Shield5.Anchored = true
  1887. Shield5.BrickColor = BrickColor.new("Lime green")
  1888. Shield5.FormFactor = "Custom"
  1889. Shield5.Transparency = 0.7
  1890. Shield5.CFrame = ps.CFrame * CFrame.new(0, -10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1891. local Shield4 = Instance.new("Part", hand7Kindness)
  1892. Shield4.TopSurface = "Smooth"
  1893. Shield4.BottomSurface = "Smooth"
  1894. Shield4.Size = Vector3.new(3, 18, 18)
  1895. Shield4.CanCollide = true
  1896. Shield4.Anchored = true
  1897. Shield4.BrickColor = BrickColor.new("Lime green")
  1898. Shield4.FormFactor = "Custom"
  1899. Shield4.Transparency = 0.7
  1900. Shield4.CFrame = ps.CFrame * CFrame.new(-10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1901. local Shield3 = Instance.new("Part", hand7Kindness)
  1902. Shield3.TopSurface = "Smooth"
  1903. Shield3.BottomSurface = "Smooth"
  1904. Shield3.Size = Vector3.new(3, 18, 18)
  1905. Shield3.CanCollide = true
  1906. Shield3.Anchored = true
  1907. Shield3.BrickColor = BrickColor.new("Lime green")
  1908. Shield3.FormFactor = "Custom"
  1909. Shield3.Transparency = 0.7
  1910. Shield3.CFrame = ps.CFrame * CFrame.new(10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1911. local Shield2 = Instance.new("Part", hand7Kindness)
  1912. Shield2.TopSurface = "Smooth"
  1913. Shield2.BottomSurface = "Smooth"
  1914. Shield2.Size = Vector3.new(18, 18, 3)
  1915. Shield2.CanCollide = true
  1916. Shield2.Anchored = true
  1917. Shield2.BrickColor = BrickColor.new("Lime green")
  1918. Shield2.FormFactor = "Custom"
  1919. Shield2.Transparency = 0.7
  1920. Shield2.CFrame = ps.CFrame * CFrame.new(0, 0, -10) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1921. local Shield1 = Instance.new("Part", hand7Kindness)
  1922. Shield1.TopSurface = "Smooth"
  1923. Shield1.BottomSurface = "Smooth"
  1924. Shield1.Size = Vector3.new(18, 18, 3)
  1925. Shield1.CanCollide = true
  1926. Shield1.Anchored = true
  1927. Shield1.BrickColor = BrickColor.new("Lime green")
  1928. Shield1.FormFactor = "Custom"
  1929. Shield1.Transparency = 0.7
  1930. Shield1.CFrame = ps.CFrame * CFrame.new(0, 0, 10) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1931. for i = 1, 7 do
  1932. do
  1933. local parti = Instance.new("Part", Torso)
  1934. parti.Anchored = true
  1935. parti.TopSurface = 0
  1936. parti.BottomSurface = 0
  1937. parti.CanCollide = false
  1938. parti.Size = Vector3.new(math.random(1, 1), math.random(1, 1), math.random(1, 1))
  1939. parti.CFrame = ps.CFrame * CFrame.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1940. parti.Transparency = 0
  1941. parti.BrickColor = BrickColor.new("Lime green")
  1942. game.Debris:AddItem(parti, 1.5)
  1943. local pad = Vector3.new(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  1944. game:service("RunService").Stepped:connect(function()
  1945. parti.Transparency = parti.Transparency + 0.05
  1946. parti.CFrame = parti.CFrame * CFrame.Angles(math.rad(20), math.rad(20), math.rad(20)) + pad
  1947. end)
  1948. end
  1949. end
  1950. wait(3)
  1951. function squeeze(hit)
  1952. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1953. if hit.Parent.Name == char.Name then
  1954. return
  1955. end
  1956. if hit.Parent.Name == hand1Determination.Name then
  1957. return
  1958. end
  1959. if hit.Parent.Name == hand2Perseverance.Name then
  1960. return
  1961. end
  1962. if hit.Parent.Name == hand3Patience.Name then
  1963. return
  1964. end
  1965. if hit.Parent.Name == hand4Integrity.Name then
  1966. return
  1967. end
  1968. if hit.Parent.Name == hand5Bravery.Name then
  1969. return
  1970. end
  1971. if hit.Parent.Name == hand6Justice.Name then
  1972. return
  1973. end
  1974. if hit.Parent.Name == hand7Kindness.Name then
  1975. return
  1976. end
  1977. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 50
  1978. do
  1979. local HitSounds = {
  1980. Hurt = Instance.new("Sound")
  1981. }
  1982. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=410625063"
  1983. HitSounds.Hurt.Volume = 1
  1984. function PlayHitSound(soundname, pitch)
  1985. HitSounds[soundname].Parent = hit.Parent.Torso
  1986. HitSounds[soundname].Pitch = pitch
  1987. HitSounds[soundname]:Play()
  1988. local oldsound = HitSounds[soundname]
  1989. coroutine.resume(coroutine.create(function()
  1990. wait(4)
  1991. oldsound:Destroy()
  1992. end))
  1993. HitSounds[soundname] = HitSounds[soundname]:clone()
  1994. end
  1995. PlayHitSound("Hurt", 1)
  1996. end
  1997. end
  1998. end
  1999. Shield6.Touched:connect(squeeze)
  2000. Shield5.Touched:connect(squeeze)
  2001. Shield4.Touched:connect(squeeze)
  2002. Shield3.Touched:connect(squeeze)
  2003. Shield2.Touched:connect(squeeze)
  2004. Shield1.Touched:connect(squeeze)
  2005. for i = 1, 30 do
  2006. wait()
  2007. Shield6.CFrame = clerp(Shield6.CFrame * CFrame.new(0, -0.01 * i, 0), ps.CFrame, 0.1)
  2008. Shield5.CFrame = clerp(Shield5.CFrame * CFrame.new(0, 0.01 * i, 0), ps.CFrame, 0.1)
  2009. Shield4.CFrame = clerp(Shield4.CFrame * CFrame.new(0.01 * i, 0, 0), ps.CFrame, 0.1)
  2010. Shield3.CFrame = clerp(Shield3.CFrame * CFrame.new(-0.01 * i, 0, 0), ps.CFrame, 0.1)
  2011. Shield2.CFrame = clerp(Shield2.CFrame * CFrame.new(0, 0, 0.01 * i), ps.CFrame, 0.1)
  2012. Shield1.CFrame = clerp(Shield1.CFrame * CFrame.new(0, 0, -0.01 * i), ps.CFrame, 0.1)
  2013. end
  2014. for i = 1, 30 do
  2015. wait()
  2016. Shield6.CFrame = clerp(Shield6.CFrame * CFrame.new(0, -0.01 * i, 0), ps.CFrame, 0.1)
  2017. Shield5.CFrame = clerp(Shield5.CFrame * CFrame.new(0, 0.01 * i, 0), ps.CFrame, 0.1)
  2018. Shield4.CFrame = clerp(Shield4.CFrame * CFrame.new(0.01 * i, 0, 0), ps.CFrame, 0.1)
  2019. Shield3.CFrame = clerp(Shield3.CFrame * CFrame.new(-0.01 * i, 0, 0), ps.CFrame, 0.1)
  2020. Shield2.CFrame = clerp(Shield2.CFrame * CFrame.new(0, 0, 0.01 * i), ps.CFrame, 0.1)
  2021. Shield1.CFrame = clerp(Shield1.CFrame * CFrame.new(0, 0, -0.01 * i), ps.CFrame, 0.1)
  2022. end
  2023. ps:remove()
  2024. wait(3)
  2025. Shield1:Remove()
  2026. Shield2:Remove()
  2027. Shield3:Remove()
  2028. Shield4:Remove()
  2029. Shield5:Remove()
  2030. Shield6:Remove()
  2031. KindnessAttackDebounce = false
  2032. end
  2033. end
  2034. end
  2035. end
  2036. if DeterminationAttack == true then
  2037. if InUse == false then
  2038. return
  2039. end
  2040. if InUse == true then
  2041. if DetermiantionAttackDebounce == true then
  2042. return
  2043. end
  2044. if DetermiantionAttackDebounce == false then
  2045. DetermiantionAttackDebounce = true
  2046. for i = 1, 3 do
  2047. do
  2048. local head = Instance.new("Part", char)
  2049. head.Size = Vector3.new(18, 0.2, 18)
  2050. head.CanCollide = false
  2051. head.Anchored = true
  2052. head.CFrame = CFrame.new(char.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0, 0, 0)).p, mouse.hit.p)
  2053. head.Transparency = 1
  2054. for i = 1, 2 do
  2055. decal = Instance.new("Decal", head)
  2056. decal.Texture = "rbxassetid://333659534"
  2057. if i == 1 then
  2058. decal.Face = Enum.NormalId.Top
  2059. else
  2060. decal.Face = Enum.NormalId.Bottom
  2061. end
  2062. end
  2063. local bg = Instance.new("BodyGyro")
  2064. bg.Parent = head
  2065. bg.maxTorque = Vector3.new(0, 0, 0)
  2066. bg.maxTorque = Vector3.new(0, 0, 0)
  2067. RandomGasterRotaion = math.random(-10, 10)
  2068. for i = 1, 5 do
  2069. wait()
  2070. print(" test")
  2071. head.CFrame = clerp(head.CFrame * CFrame.new(RandomGasterRotaion, 1 * i, 1 * i), head.CFrame, 0.1)
  2072. end
  2073. RandomGasterRotaion = 0
  2074. local ray = Ray.new(head.CFrame.p, mouse.Hit.p - head.CFrame.p.unit * 1000)
  2075. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  2076. local ray = Ray.new(head.CFrame.p, mouse.Hit.p - head.CFrame.p.unit * 300)
  2077. local position = mouse.Hit.p
  2078. local distance = position - head.CFrame.p.magnitude
  2079. local rp = Instance.new("Part", workspace)
  2080. rp.Anchored = true
  2081. rp.TopSurface = "Smooth"
  2082. rp.BottomSurface = "Smooth"
  2083. rp.Transparency = 0
  2084. rp.BrickColor = BrickColor.new("Institutional white")
  2085. rp.FormFactor = "Custom"
  2086. rp.CanCollide = false
  2087. rp.Size = Vector3.new(10, 0, distance)
  2088. rp.Material = "Neon"
  2089. rp.CFrame = CFrame.new(position, head.CFrame.p) * CFrame.new(0, 0, -distance / 2)
  2090. local cy = Instance.new("BlockMesh", rp)
  2091. head.CFrame = CFrame.new(head.CFrame:toWorldSpace(CFrame.new(0, 0, 0)).p, mouse.hit.p)
  2092. function touch(hit)
  2093. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2094. if hit.Parent.Name == char.Name then
  2095. return
  2096. end
  2097. if hit.Parent.Name == hand1Determination.Name then
  2098. return
  2099. end
  2100. if hit.Parent.Name == hand2Perseverance.Name then
  2101. return
  2102. end
  2103. if hit.Parent.Name == hand3Patience.Name then
  2104. return
  2105. end
  2106. if hit.Parent.Name == hand4Integrity.Name then
  2107. return
  2108. end
  2109. if hit.Parent.Name == hand5Bravery.Name then
  2110. return
  2111. end
  2112. if hit.Parent.Name == hand6Justice.Name then
  2113. return
  2114. end
  2115. if hit.Parent.Name == hand7Kindness.Name then
  2116. return
  2117. end
  2118. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 7
  2119. do
  2120. local HitSounds = {
  2121. Hurt = Instance.new("Sound")
  2122. }
  2123. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=410625063"
  2124. HitSounds.Hurt.Volume = 1
  2125. function PlayHitSound(soundname, pitch)
  2126. HitSounds[soundname].Parent = hit.Parent.Torso
  2127. HitSounds[soundname].Pitch = pitch
  2128. HitSounds[soundname]:Play()
  2129. local oldsound = HitSounds[soundname]
  2130. coroutine.resume(coroutine.create(function()
  2131. wait(4)
  2132. oldsound:Destroy()
  2133. end))
  2134. HitSounds[soundname] = HitSounds[soundname]:clone()
  2135. end
  2136. PlayHitSound("Hurt", 1)
  2137. end
  2138. end
  2139. end
  2140. rp.Touched:connect(touch)
  2141. coroutine.resume(coroutine.create(function()
  2142. PlaySound("Gaster", 1, head, false)
  2143. for i = 1, 10 do
  2144. wait()
  2145. cy.Scale = cy.Scale + Vector3.new(0, 0, 0.01 * i)
  2146. head.CFrame = head.CFrame * CFrame.new(0, 0, 1 * i) * CFrame.Angles(0, 0, 0)
  2147. end
  2148. for i = 1, 10 do
  2149. wait()
  2150. decal.Transparency = decal.Transparency + 0.1
  2151. rp.Transparency = rp.Transparency + 0.1
  2152. end
  2153. wait(1)
  2154. head:Destroy()
  2155. rp:Destroy()
  2156. end))
  2157. end
  2158. end
  2159. wait(0.1)
  2160. DetermiantionAttackDebounce = false
  2161. end
  2162. end
  2163. end
  2164. if PatienceAttack == true then
  2165. if InUse == false then
  2166. return
  2167. end
  2168. if InUse == true then
  2169. if PatienceAttackDebounce == true then
  2170. return
  2171. end
  2172. if PatienceAttackDebounce == false then
  2173. PatienceAttackDebounce = true
  2174. do
  2175. local ray = Ray.new(PatienceOrb.CFrame.p, mouse.Hit.p - PatienceOrb.CFrame.p.unit * 1000)
  2176. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  2177. local ray = Ray.new(PatienceOrb.CFrame.p, mouse.Hit.p - PatienceOrb.CFrame.p.unit * 300)
  2178. local position = mouse.Hit.p
  2179. local distance = position - PatienceOrb.CFrame.p.magnitude
  2180. local rp = Instance.new("Part", workspace)
  2181. rp.Anchored = true
  2182. rp.TopSurface = "Smooth"
  2183. rp.BottomSurface = "Smooth"
  2184. rp.Transparency = 0
  2185. rp.BrickColor = BrickColor.new("Cyan")
  2186. rp.FormFactor = "Custom"
  2187. rp.CanCollide = false
  2188. rp.Size = Vector3.new(0.5, 0.5, distance)
  2189. rp.Material = "Neon"
  2190. rp.CFrame = CFrame.new(position, PatienceOrb.CFrame.p) * CFrame.new(0, 0, -distance / 2)
  2191. local cy = Instance.new("BlockMesh", rp)
  2192. coroutine.resume(coroutine.create(function()
  2193. for i = 1, 13 do
  2194. wait()
  2195. cy.Scale = cy.Scale - Vector3.new(0.01 * i, 0.01 * i, 0)
  2196. end
  2197. end))
  2198. function touch(hit)
  2199. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2200. if hit.Parent.Name == char.Name then
  2201. return
  2202. end
  2203. if hit.Parent.Name == hand1Determination.Name then
  2204. return
  2205. end
  2206. if hit.Parent.Name == hand2Perseverance.Name then
  2207. return
  2208. end
  2209. if hit.Parent.Name == hand3Patience.Name then
  2210. return
  2211. end
  2212. if hit.Parent.Name == hand4Integrity.Name then
  2213. return
  2214. end
  2215. if hit.Parent.Name == hand5Bravery.Name then
  2216. return
  2217. end
  2218. if hit.Parent.Name == hand6Justice.Name then
  2219. return
  2220. end
  2221. if hit.Parent.Name == hand7Kindness.Name then
  2222. return
  2223. end
  2224. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 7
  2225. do
  2226. local hittorso = hit.Parent.Torso
  2227. local HitSounds = {
  2228. Hurt = Instance.new("Sound")
  2229. }
  2230. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=410625063"
  2231. HitSounds.Hurt.Volume = 1
  2232. function PlayHitSound(soundname, pitch)
  2233. HitSounds[soundname].Parent = hit.Parent.Torso
  2234. HitSounds[soundname].Pitch = pitch
  2235. HitSounds[soundname]:Play()
  2236. local oldsound = HitSounds[soundname]
  2237. coroutine.resume(coroutine.create(function()
  2238. wait(4)
  2239. oldsound:Destroy()
  2240. end))
  2241. HitSounds[soundname] = HitSounds[soundname]:clone()
  2242. end
  2243. PlayHitSound("Hurt", 1)
  2244. local Tied = Instance.new("Part", hittorso)
  2245. Tied.Size = Vector3.new(4, 2, 1.5)
  2246. Tied.Name = "Rope"
  2247. Tied.CanCollide = false
  2248. Tied.Transparency = 0.1
  2249. Tied.BrickColor = BrickColor.new("Cyan")
  2250. Tied.CFrame = hittorso.CFrame * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2251. local Weld = Instance.new("Weld", hittorso)
  2252. Weld.Part0 = hittorso
  2253. Weld.Part1 = Tied
  2254. Weld.C1 = hittorso.CFrame * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2255. hit.Parent.Torso.Anchored = true
  2256. hit.Parent["Left Arm"].Anchored = true
  2257. hit.Parent["Right Arm"].Anchored = true
  2258. wait(3)
  2259. for i = 1, 10 do
  2260. wait(0.1)
  2261. Tied.Transparency = Tied.Transparency + 0.1
  2262. end
  2263. hit.Parent.Torso.Anchored = false
  2264. hit.Parent["Left Arm"].Anchored = false
  2265. hit.Parent["Right Arm"].Anchored = false
  2266. end
  2267. end
  2268. end
  2269. rp.Touched:connect(touch)
  2270. coroutine.resume(coroutine.create(function()
  2271. wait(1)
  2272. rp:Destroy()
  2273. end))
  2274. end
  2275. end
  2276. wait(1)
  2277. PatienceAttackDebounce = false
  2278. end
  2279. end
  2280. if BraveryAttack == true then
  2281. if InUse == false then
  2282. return
  2283. end
  2284. if InUse == true then
  2285. if BraveryAttackDebounce == true then
  2286. return
  2287. end
  2288. if BraveryAttackDebounce == false then
  2289. BraveryAttackDebounce = true
  2290. do
  2291. local ray = Ray.new(Bravery.CFrame.p, mouse.Hit.p - Bravery.CFrame.p.unit * 300)
  2292. local position = mouse.Hit.p
  2293. local distance = position - Bravery.CFrame.p.magnitude
  2294. local rp = Instance.new("Part", workspace)
  2295. rp.Anchored = true
  2296. rp.TopSurface = "Smooth"
  2297. rp.BottomSurface = "Smooth"
  2298. rp.Transparency = 1
  2299. rp.BrickColor = BrickColor.new("Deep orange")
  2300. rp.FormFactor = "Custom"
  2301. rp.CanCollide = false
  2302. rp.Size = Vector3.new(0.6, 0.6, distance)
  2303. rp.Material = "Neon"
  2304. rp.CFrame = CFrame.new(position, Kindness.CFrame.p) * CFrame.new(0, 0, -distance / 2)
  2305. local cy = Instance.new("BlockMesh", rp)
  2306. rp:Destroy()
  2307. local ps = Instance.new("Part", suit)
  2308. ps.Name = "MagicPart"
  2309. ps.TopSurface = "Smooth"
  2310. ps.BottomSurface = "Smooth"
  2311. ps.BrickColor = BrickColor.new("Toothpaste")
  2312. ps.FormFactor = "Custom"
  2313. ps.Transparency = 1
  2314. ps.Size = Vector3.new(0.5, 0.5, 0.5)
  2315. ps.Anchored = true
  2316. ps.CanCollide = false
  2317. ps.CFrame = CFrame.new(position) * CFrame.new(0, 3, 0)
  2318. local cy = Instance.new("SpecialMesh", ps)
  2319. cy.MeshType = "Cylinder"
  2320. for i = 1, 5 do
  2321. coroutine.resume(coroutine.create(function()
  2322. coroutine.resume(coroutine.create(function()
  2323. local SpawnSounds = {
  2324. Spike = Instance.new("Sound")
  2325. }
  2326. SpawnSounds.Spike.SoundId = "http://www.roblox.com/asset?id=486286230"
  2327. SpawnSounds.Spike.Volume = 0.1
  2328. function PlaySpawnSound(soundname, pitch)
  2329. SpawnSounds[soundname].Parent = ps
  2330. SpawnSounds[soundname].Pitch = pitch
  2331. SpawnSounds[soundname]:Play()
  2332. local oldsound = SpawnSounds[soundname]
  2333. coroutine.resume(coroutine.create(function()
  2334. wait(4)
  2335. oldsound:Destroy()
  2336. end))
  2337. SpawnSounds[soundname] = SpawnSounds[soundname]:clone()
  2338. end
  2339. local p = Instance.new("Part", workspace)
  2340. p.FormFactor = "Custom"
  2341. p.Size = Vector3.new(0.3, 0.3, 0.3)
  2342. p.TopSurface = 0
  2343. p.BottomSurface = 0
  2344. local colorc = {
  2345. "Deep orange"
  2346. }
  2347. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  2348. p.BrickColor = Fire
  2349. p.CanCollide = false
  2350. p.Anchored = true
  2351. p.CFrame = Bravery.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  2352. coroutine.resume(coroutine.create(function()
  2353. for i = 1, 8 do
  2354. wait()
  2355. p.Size = Vector3.new(0.3 * i, 0.3 * i, 0.3 * i)
  2356. p.CFrame = Bravery.CFrame * CFrame.new(0, 0, 0)
  2357. end
  2358. p:remove()
  2359. end))
  2360. PlaySpawnSound("Spike", 1)
  2361. wait(0.5)
  2362. end))
  2363. xmathrandom = math.random(-10, 10)
  2364. ymathrandom = math.random(2, 10)
  2365. zmathrandom = math.random(-10, 10)
  2366. local Bomb = Instance.new("Part", hand5Bravery)
  2367. Bomb.TopSurface = "Smooth"
  2368. Bomb.BottomSurface = "Smooth"
  2369. Bomb.Size = Vector3.new(0.1, 0.1, 0.1)
  2370. Bomb.CanCollide = true
  2371. Bomb.Anchored = true
  2372. Bomb.BrickColor = BrickColor.new("Mid gray")
  2373. Bomb.Shape = "Ball"
  2374. Bomb.Material = "Neon"
  2375. Bomb.Transparency = 0
  2376. Bomb.CFrame = ps.CFrame * CFrame.new(xmathrandom, ymathrandom, zmathrandom) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2377. xmathrandom = 0
  2378. ymathrandom = 0
  2379. zmathrandom = 0
  2380. wait(1)
  2381. Bomb.BrickColor = BrickColor.new("Deep orange")
  2382. local p = Instance.new("Part", workspace)
  2383. p.FormFactor = "Custom"
  2384. p.Size = Vector3.new(0.1, 0.1, 0.1)
  2385. p.TopSurface = 0
  2386. p.BottomSurface = 0
  2387. local colorc = {
  2388. "Deep orange"
  2389. }
  2390. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  2391. p.BrickColor = Fire
  2392. p.CanCollide = false
  2393. p.Anchored = true
  2394. p.CFrame = Bomb.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  2395. coroutine.resume(coroutine.create(function()
  2396. for i = 1, 2 do
  2397. wait()
  2398. p.Size = Vector3.new(0.1 * i, 0.1 * i, 0.1 * i)
  2399. p.CFrame = Bomb.CFrame * CFrame.new(0, 0, 0)
  2400. end
  2401. p:remove()
  2402. end))
  2403. wait(1)
  2404. local explosion = Instance.new("Part", workspace)
  2405. explosion.FormFactor = "Custom"
  2406. explosion.Size = Vector3.new(0.8, 0.8, 0.8)
  2407. explosion.TopSurface = 0
  2408. explosion.BottomSurface = 0
  2409. local colorc = {
  2410. "Deep orange"
  2411. }
  2412. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  2413. explosion.BrickColor = Fire
  2414. explosion.CanCollide = false
  2415. explosion.Anchored = true
  2416. explosion.CFrame = Bomb.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  2417. PlaySound("Explode", 1, explosion, false)
  2418. function touch(hit)
  2419. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  2420. if hit.Parent.Name == char.Name then
  2421. return
  2422. end
  2423. if hit.Parent.Name == hand1Determination.Name then
  2424. return
  2425. end
  2426. if hit.Parent.Name == hand2Perseverance.Name then
  2427. return
  2428. end
  2429. if hit.Parent.Name == hand3Patience.Name then
  2430. return
  2431. end
  2432. if hit.Parent.Name == hand4Integrity.Name then
  2433. return
  2434. end
  2435. if hit.Parent.Name == hand5Bravery.Name then
  2436. return
  2437. end
  2438. if hit.Parent.Name == hand6Justice.Name then
  2439. return
  2440. end
  2441. if hit.Parent.Name == hand7Kindness.Name then
  2442. return
  2443. end
  2444. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 50
  2445. do
  2446. local HitSounds = {
  2447. Hurt = Instance.new("Sound")
  2448. }
  2449. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=410625063"
  2450. HitSounds.Hurt.Volume = 1
  2451. function PlayHitSound(soundname, pitch)
  2452. HitSounds[soundname].Parent = hit.Parent.Torso
  2453. HitSounds[soundname].Pitch = pitch
  2454. HitSounds[soundname]:Play()
  2455. local oldsound = HitSounds[soundname]
  2456. coroutine.resume(coroutine.create(function()
  2457. wait(4)
  2458. oldsound:Destroy()
  2459. end))
  2460. HitSounds[soundname] = HitSounds[soundname]:clone()
  2461. end
  2462. PlayHitSound("Hurt", 1)
  2463. end
  2464. end
  2465. end
  2466. explosion.Touched:connect(touch)
  2467. coroutine.resume(coroutine.create(function()
  2468. for i = 1, 10 do
  2469. wait()
  2470. explosion.Position = Bomb.Position
  2471. explosion.CFrame = Bomb.CFrame
  2472. explosion.Size = Vector3.new(3 * i, 3 * i, 3 * i)
  2473. explosion.Position = Bomb.Position
  2474. explosion.CFrame = Bomb.CFrame
  2475. explosion.Transparency = explosion.Transparency + 0.1
  2476. explosion.Position = Bomb.Position
  2477. explosion.CFrame = Bomb.CFrame
  2478. end
  2479. explosion:remove()
  2480. Bomb:remove()
  2481. end))
  2482. ps:remove()
  2483. end))
  2484. end
  2485. wait(2)
  2486. BraveryAttackDebounce = false
  2487. end
  2488. end
  2489. end
  2490. end
  2491. end)
  2492. game:service("RunService").Stepped:connect(function()
  2493. if hand1Determinationhealth.Health == 0 and hand1DeterminationhealthDown == false then
  2494. hand1DeterminationhealthDown = true
  2495. Determination:remove()
  2496. DeterminationAttack = false
  2497. DetermiantionAttackDebounce = false
  2498. end
  2499. end)
  2500. game:service("RunService").Stepped:connect(function()
  2501. if hand2Perseverancehealth.Health == 0 and hand2PerseverancehealthDown == false then
  2502. hand2PerseverancehealthDown = true
  2503. Perseverance:remove()
  2504. PerseveranceAttack = false
  2505. PerseveranceAttackDebounce = false
  2506. end
  2507. end)
  2508. game:service("RunService").Stepped:connect(function()
  2509. if hand3Patiencehealth.Health == 0 and hand3PatiencehealthDown == false then
  2510. hand3PatiencehealthDown = true
  2511. Patience:remove()
  2512. PatienceAttack = false
  2513. PatienceAttackDebounce = false
  2514. end
  2515. end)
  2516. game:service("RunService").Stepped:connect(function()
  2517. if hand4Integrityhealth.Health == 0 and hand4IntegrityhealthDown == false then
  2518. hand4IntegrityhealthDown = true
  2519. Integrity:remove()
  2520. IntegrityAttack = false
  2521. IntegrityAttackDebounce = false
  2522. end
  2523. end)
  2524. game:service("RunService").Stepped:connect(function()
  2525. if hand5Braveryhealth.Health == 0 and hand5BraveryhealthDown == false then
  2526. hand5BraveryhealthDown = true
  2527. Bravery:remove()
  2528. BraveryAttack = false
  2529. BraveryAttackDebounce = false
  2530. end
  2531. end)
  2532. game:service("RunService").Stepped:connect(function()
  2533. if hand6Justicehealth.Health == 0 and hand6JusticehealthDown == false then
  2534. hand6JusticehealthDown = true
  2535. Justice:remove()
  2536. JusticeAttack = false
  2537. JusticeAttackDebounce = false
  2538. end
  2539. end)
  2540. game:service("RunService").Stepped:connect(function()
  2541. if hand7Kindnesshealth.Health == 0 and hand7KindnesshealthDown == false then
  2542. hand7KindnesshealthDown = true
  2543. Kindness:remove()
  2544. KindnessAttack = false
  2545. KindnessAttackDebounce = false
  2546. if ShieldValueToGasterDebounce == false then
  2547. ShieldValueToGasterDebounce = true
  2548. for i = 1, 3 do
  2549. wait()
  2550. shieldparent6.Transparency = shieldparent6.Transparency + 0.1
  2551. shieldparent5.Transparency = shieldparent5.Transparency + 0.1
  2552. shieldparent4.Transparency = shieldparent4.Transparency + 0.1
  2553. shieldparent3.Transparency = shieldparent3.Transparency + 0.1
  2554. shieldparent2.Transparency = shieldparent2.Transparency + 0.1
  2555. shieldparent1.Transparency = shieldparent1.Transparency + 0.1
  2556. end
  2557. shieldparent6:remove()
  2558. shieldparent5:remove()
  2559. shieldparent4:remove()
  2560. shieldparent3:remove()
  2561. shieldparent2:remove()
  2562. shieldparent1:remove()
  2563. shieldparent1 = nil
  2564. shieldparent2 = nil
  2565. shieldparent3 = nil
  2566. shieldparent4 = nil
  2567. shieldparent5 = nil
  2568. shieldparent6 = nil
  2569. end
  2570. end
  2571. end)
  2572. char.Humanoid.MaxHealth = math.huge
  2573. wait()
  2574. char.Humanoid.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement