Advertisement
Fik_1221

gaster

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