5sdfsadgaq5465

gaster script fe

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