Advertisement
DarkScriptZEditors

Gaster FE

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