Sazious

Ghaster

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