Advertisement
EARTHWORM_SALLY

Untitled

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