Advertisement
yoyo74456

Gaster

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