Prozanity

Untitled

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