Advertisement
Guest User

Untitled

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