Advertisement
epicboi

Untitled

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