Advertisement
leelandshoe

Untitled

Aug 22nd, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 261.15 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
  2. do
  3. script.Parent = InternalData.RealOwner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  5. local function createObject (connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  17. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  18. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  19. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  20. Event.OnServerEvent:Connect(function(FiredBy,Input)
  21. if FiredBy ~= InternalData.RealOwner then return end
  22. if Input.MouseEvent then
  23. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  24. Mouse:TriggerEvent("Move")
  25. elseif Input.Sound then
  26. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  27. else
  28. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  29. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  30. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") 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. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  80. if Library == "RbxUtility" then
  81. return setmetatable({},{
  82. __tostring = function() return "RbxUtility" end;
  83. __index = function(self, Index)
  84. if Index:lower() == "create" then
  85. return function(Type)
  86. return function(Data)
  87. Data = Data or {}
  88. local Inst = Instance.new(Type)
  89. for x,y in pairs(Data) do
  90. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  91. if y == owner then y = InternalData.RealOwner end
  92. Inst[x] = y
  93. end
  94. return Inst
  95. end
  96. end
  97. end
  98. return InternalData.LoadLibrary(Library)[Index]
  99. end
  100. })
  101. end
  102. return InternalData.LoadLibrary(Library)
  103. end
  104. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  105. __index = function (self,Index)
  106. if Index:lower() == 'new' then
  107. return function (Type, Parent)
  108. if Parent == owner then Parent = InternalData.RealOwner end
  109. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  110. local Real = InternalData.RealInstance.new(Type,Parent)
  111. if not Type then return end
  112. if Type == "BillboardGui" then
  113. local ToReturn = setmetatable({},{
  114. __index = function (self,Index)
  115. if type(Real[Index]) == "function" then
  116. if Index:lower() == "clone" then
  117. return function (self)
  118. local Real = Real:Clone()
  119. local ToReturn = setmetatable({RealObject = Real},{
  120. __index = function (self,Index)
  121. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  122. return Real[Index]
  123. end;
  124. __newindex = function (self,Index,Value)
  125. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  126. if Value == owner then Value = InternalData.RealOwner end
  127. Real[Index] = Value
  128. end;
  129. __tostring = function(self) return tostring(Real) end;
  130. })
  131. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  132. end
  133. end
  134. return function (self,...) return Real[Index](Real,...)end
  135. end
  136. return Real[Index]
  137. end;
  138. __newindex = function (self,Index,Value)
  139. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  140. if Value == owner then Value = InternalData.RealOwner end
  141. Real[Index] = Value
  142. end;
  143. __tostring = function(self) return tostring(Real) end;
  144. })
  145. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  146. elseif Type:lower() == "sound" then
  147. Real.Parent = owner.Character;
  148. local ToReturn = setmetatable({RealObject = Real},{
  149. __index = function (self,Index)
  150. if Index:lower() == "playbackloudness" then
  151. return InternalData.SoundLoudness[Real] or 0
  152. elseif type(Real[Index]) == "function" then
  153. if Index:lower() == "clone" then
  154. return function (self)
  155. local Real = Real:Clone()
  156. local ToReturn = setmetatable({},{
  157. __index = function (self,Index)
  158. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  159. return Real[Index]
  160. end;
  161. __newindex = function (self,Index,Value)
  162. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  163. if Value == owner then Value = InternalData.RealOwner end
  164. Real[Index] = Value
  165. end;
  166. __tostring = function(self) return tostring(Real) end;
  167. })
  168. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  169. end
  170. end
  171. return function (self,...) return Real[Index](Real,...)end
  172. end
  173. return Real[Index]
  174. end;
  175. __newindex = function (self,Index,Value)
  176. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  177. if Value == owner then Value = InternalData.RealOwner end
  178. Real[Index] = Value
  179. end;
  180. __tostring = function(self) return tostring(Real) end;
  181. })
  182. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  183. else
  184. local ToReturn = setmetatable({RealObject = Real},{
  185. __index = function (self,Index)
  186. if type(Real[Index]) == "function" then
  187. if Index:lower() == "clone" then
  188. return function (self)
  189. local Real = Real:Clone()
  190. local ToReturn = setmetatable({},{
  191. __index = function (self,Index)
  192. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  193. return Real[Index]
  194. end;
  195. __newindex = function (self,Index,Value)
  196. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  197. if Value == owner then Value = InternalData.RealOwner end
  198. Real[Index] = Value
  199. end;
  200. __tostring = function(self) return tostring(Real) end;
  201. })
  202. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  203. end
  204. end
  205. return function (self,...) return Real[Index](Real,...)end
  206. end
  207. return Real[Index]
  208. end;
  209. __newindex = function (self,Index,Value)
  210. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  211. if Value == owner then Value = InternalData.RealOwner end
  212. Real[Index] = Value
  213. end;
  214. __tostring = function(self) return tostring(Real) end;
  215. })
  216. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  217. end
  218. end
  219. end
  220. return InternalData.RealInstance[Index]
  221. end;
  222. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  223. });
  224. InternalData.RealGame = game;game = setmetatable({},{
  225. __index = function (self,Index)
  226. if InternalData.RealGame[Index] then
  227. local Type = type(InternalData.RealGame[Index])
  228. if Type == "function" then
  229. if Index:lower() == "getservice" or Index:lower() == "service" then
  230. return function (self,Service)
  231. local FakeServices = {
  232. ["players"] = function()
  233. return setmetatable({},{
  234. __index = function (self2,Index2)
  235. local RealService = InternalData.RealGame:GetService(Service)
  236. local Type2 = type(RealService[Index2])
  237. if Type2 == "function" then
  238. return function (self,...) return RealService[Index2](RealService,...)end
  239. else
  240. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  241. return RealService[Index2]
  242. end
  243. end;
  244. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  245. })
  246. end;
  247. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  248. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  249. ["debris"] = function()
  250. return setmetatable({},{
  251. __index = function(self2,Index2)
  252. local RealService = InternalData.RealGame:GetService(Service)
  253. local Type2 = type(RealService[Index2])
  254. if Type2 == "function" then
  255. if Index2:lower() == "additem" then
  256. return function (self,Item,Time)
  257. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  258. return RealService:AddItem(Item,Time)
  259. end
  260. end
  261. return function (self,...) return RealService[Index2](RealService,...) end
  262. end
  263. return RealService[Index2]
  264. end;
  265. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  266. })
  267. end;
  268. ["runservice"] = function()
  269. return setmetatable({},{
  270. __index = function(self2,Index2)
  271. local RealService = InternalData.RealGame:GetService(Service)
  272. local Type2 = type(RealService[Index2])
  273. if Type2 == "function" then
  274. return function (self,...) return RealService[Index2](RealService,...) end
  275. else
  276. local RunServices = {
  277. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  278. ["renderstepped"] = function() return RealService["Stepped"] end
  279. }
  280. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  281. return RealService[Index2]
  282. end
  283. end;
  284. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  285. })
  286. end
  287. }
  288. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  289. return InternalData.RealGame:GetService(Service)
  290. end
  291. end
  292. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  293. else
  294. if game:GetService(Index) then return game:GetService(Index) end
  295. return InternalData.RealGame[Index]
  296. end
  297. end
  298. return nil
  299. end;
  300. __tostring = function(self) return tostring(InternalData.game) end
  301. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  302.  
  303. --//Paste script below this line.
  304. warn([[Star Glitcher Loaded.
  305. All purpose switcher... -- wat
  306.  
  307. It's not over yet.
  308. The faith is among us.
  309. And yet you still haven't defeated me.
  310. Now is my chance to destroy you.
  311. Then you're out of the world.
  312. With the elemental being struggling to gain power.
  313. This is the result.
  314. Very unstable and powerful.
  315. A insanely chaotic being.
  316. Who haven't ever known that one could hold this power.
  317. It's the one that has been created by an unknown being.
  318. You'll know this name already.
  319. Till now.
  320. The power is inside your body.
  321. You will decide things with this.
  322. And the future changes within the power.
  323. For now, you'll decide your own.
  324. You're one of them who holds this power.
  325. And so on, you would get chaotic to everyone else.
  326. You seem to dont trust everyone else, but one.
  327. That one... you can't know.
  328. It's only your decision.
  329. At yourself.
  330. No mercy, or spare.
  331.  
  332.  
  333. Created by 'NoobyGames12'
  334. Edited by 'danny199990'
  335. Some stuff by 'XXUNORIBOASXX'
  336. ]])
  337. print([[Icons:
  338. ! = New
  339. ? = Spoilers
  340. * = Exclusivity
  341. ]])
  342. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  343. - Originall themes included
  344. ! - Calamity's "Z" has changed.
  345. ! - Starfall EX added.
  346. ! - Mayhem now has Destruction mode.
  347. ! - Chaos theme has been changed.
  348. ! - Purity's theme has been extended.
  349. ? - Corruption's "Z" will have animation sooner.
  350. ! - Calamity's "X" is added, named Starfall.
  351. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.
  352. ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990).
  353. ! - Equinox's MeteorStrike move(X) added(Made by danny199990).
  354. ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990).
  355. ! - Divinity's Judgement move(Z) can now be held as long as you want it to.
  356.  
  357. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  358. ]])
  359. --- its obs smooth af do not touch
  360. ---- Sources and functions might be taken from others
  361. plr = game:GetService("Players").LocalPlayer
  362. char = plr.Character
  363. hum = char.Humanoid
  364. local cam = game.Workspace.CurrentCamera
  365. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  366. Camera = cam
  367. local CamInterrupt = false
  368. local TwoD = false
  369. local TargetInfo = {nil, nil}
  370. cam.CameraType = "Custom"
  371. t = char.Torso
  372. h = char.Head
  373. ra = char["Right Arm"]
  374. la = char["Left Arm"]
  375. rl = char["Right Leg"]
  376. ll = char["Left Leg"]
  377. tors = char.Torso
  378. lleg = char["Left Leg"]
  379. root = char.HumanoidRootPart
  380. hed = char.Head
  381. rleg = char["Right Leg"]
  382. rarm = char["Right Arm"]
  383. larm = char["Left Arm"]
  384. radian = math.rad
  385. random = math.random
  386. Vec3 = Vector3.new
  387. Inst = Instance.new
  388. cFrame = CFrame.new
  389. Euler = CFrame.fromEulerAnglesXYZ
  390. vt = Vector3.new
  391. bc = BrickColor.new
  392. br = BrickColor.random
  393. it = Instance.new
  394. cf = CFrame.new
  395. local eff = true
  396. local shielding = false
  397.  
  398. local Booleans = {
  399. CamFollow = true,
  400. GyroUse = true
  401. }
  402.  
  403. function lerp(object, newCFrame, alpha)
  404. return object:lerp(newCFrame, alpha)
  405. end
  406.  
  407. local Directer = Inst("BodyGyro", root)
  408. Directer.MaxTorque = Vec3(0, 0, 0)
  409. Directer.P = 600000
  410. local CPart = Inst("Part")
  411. CPart.Anchored = true
  412. CPart.CanCollide = false
  413. CPart.Locked = true
  414. CPart.Transparency = 1
  415.  
  416. local rainbowmode = false
  417. local chaosmode = false
  418.  
  419. kan = Instance.new("Sound",char)
  420. kan.Volume = 1.25
  421. kan.TimePosition = 0
  422. kan.PlaybackSpeed = 1
  423. kan.Pitch = 1
  424. kan.SoundId = "rbxassetid://614032233"
  425. kan.Name = "wrecked"
  426. kan.Looped = true
  427. kan:Play()
  428.  
  429. function newTheme(ID,timepos,pitch,vol)
  430. local kanz = kan
  431. --kanz:Stop()
  432. --kanz.Volume = vol
  433. --kanz.TimePosition = timepos
  434. kanz.PlaybackSpeed = pitch
  435. kanz.Pitch = pitch
  436. kanz.SoundId = ID
  437. kanz.Name = "wrecked"
  438. kanz.Looped = true
  439. kanz.Volume = 0.3
  440. --kanz:Play()
  441. --coroutine.resume(coroutine.create(function()
  442. --wait(0.05)
  443. --end))
  444. end
  445.  
  446. function newThemeCust(ID,timepos,pitch,vol)
  447. local kanz = kan
  448. kanz:Stop()
  449. kanz.Volume = vol
  450. kanz.TimePosition = timepos
  451. kanz.PlaybackSpeed = pitch
  452. kanz.Pitch = pitch
  453. kanz.SoundId = ID
  454. kanz.Name = "wrecked"
  455. kanz.Looped = true
  456. kanz:Play()
  457. coroutine.resume(coroutine.create(function()
  458. wait(0.05)
  459. end))
  460. end
  461.  
  462.  
  463.  
  464. function CameraShake(Times, Power, PlayerTarget)
  465. coroutine.resume(coroutine.create(function()
  466. FV = Instance.new("BoolValue", PlayerTarget)
  467. FV.Name = "CameraShake"
  468. for ShakeNum=1,Times do
  469. swait()
  470. local ef=Power
  471. if ef>=1 then
  472. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  473. else
  474. ef=Power*10
  475. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  476. end
  477. end
  478. Humanoid.CameraOffset = Vector3.new(0,0,0)
  479. FV:Destroy()
  480. end))
  481. end
  482.  
  483. function CameraEnshaking(Length,Intensity)
  484. coroutine.resume(coroutine.create(function()
  485. local intensity = 1*Intensity
  486. local rotM = 0.01*Intensity
  487. for i = 0, Length, 0.1 do
  488. swait()
  489. intensity = intensity - 0.05*Intensity/Length
  490. rotM = rotM - 0.0005*Intensity/Length
  491. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  492. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  493. end
  494. Humanoid.CameraOffset = Vec3(0, 0, 0)
  495. end))
  496. end
  497. CamShake=function(Part,Distan,Power,Times)
  498. local de=Part.Position
  499. for i,v in pairs(workspace:children()) do
  500. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  501. for _,c in pairs(v:children()) do
  502. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  503. local Noob=v.Humanoid
  504. if Noob~=nil then
  505. coroutine.resume(coroutine.create(function()
  506. FV = Instance.new("BoolValue", Noob)
  507. FV.Name = "CameraShake"
  508. for ShakeNum=1,Times do
  509. swait()
  510. local ef=Power
  511. if ef>=1 then
  512. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  513. else
  514. ef=Power*10
  515. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  516. end
  517. end
  518. Humanoid.CameraOffset = Vector3.new(0,0,0)
  519. FV:Destroy()
  520. end))
  521. CameraShake(Times, Power, Noob)
  522. end
  523. end
  524. end
  525. end
  526. end
  527. end
  528.  
  529. function chatfunc(text,color)
  530. local chat = coroutine.wrap(function()
  531. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  532. Character:FindFirstChild("TalkingBillBoard"):destroy()
  533. end
  534. local naeeym2 = Instance.new("BillboardGui",Character)
  535. naeeym2.Size = UDim2.new(0,100,0,40)
  536. naeeym2.StudsOffset = Vector3.new(0,3,0)
  537. naeeym2.Adornee = Character.Head
  538. naeeym2.Name = "TalkingBillBoard"
  539. local tecks2 = Instance.new("TextLabel",naeeym2)
  540. tecks2.BackgroundTransparency = 1
  541. tecks2.BorderSizePixel = 0
  542. tecks2.Text = ""
  543. tecks2.Font = "SciFi"
  544. tecks2.TextSize = 30
  545. tecks2.TextStrokeTransparency = 0
  546. tecks2.TextColor3 = color
  547. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  548. tecks2.Size = UDim2.new(1,0,0.5,0)
  549. local tecks3 = Instance.new("TextLabel",naeeym2)
  550. tecks3.BackgroundTransparency = 1
  551. tecks3.BorderSizePixel = 0
  552. tecks3.Text = ""
  553. tecks3.Font = "SciFi"
  554. tecks3.TextSize = 30
  555. tecks3.TextStrokeTransparency = 0
  556. tecks3.TextColor3 = Color3.new(0,0,0)
  557. tecks3.TextStrokeColor3 = color
  558. tecks3.Size = UDim2.new(1,0,0.5,0)
  559. coroutine.resume(coroutine.create(function()
  560. while true do
  561. swait(1)
  562. plr.Character.wrecked.Volume = 0.3
  563. if chaosmode == true then
  564. tecks2.TextColor3 = BrickColor.random().Color
  565. tecks3.TextStrokeColor3 = BrickColor.random().Color
  566. end
  567. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  568. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  569. tecks2.Rotation = math.random(-5,5)
  570. tecks3.Rotation = math.random(-5,5)
  571. end
  572. end))
  573. for i = 1,string.len(text),1 do
  574. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  575. tecks2.Text = string.sub(text,1,i)
  576. tecks3.Text = string.sub(text,1,i)
  577. swait(1)
  578. end
  579. wait(1)
  580. local randomrot = math.random(1,2)
  581. if randomrot == 1 then
  582. for i = 1, 50 do
  583. swait()
  584. tecks2.Rotation = tecks2.Rotation - .75
  585. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  586. tecks2.TextTransparency = tecks2.TextTransparency + .04
  587. tecks3.Rotation = tecks2.Rotation + .75
  588. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  589. tecks3.TextTransparency = tecks2.TextTransparency + .04
  590. end
  591. elseif randomrot == 2 then
  592. for i = 1, 50 do
  593. swait()
  594. tecks2.Rotation = tecks2.Rotation + .75
  595. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  596. tecks2.TextTransparency = tecks2.TextTransparency + .04
  597. tecks3.Rotation = tecks2.Rotation - .75
  598. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  599. tecks3.TextTransparency = tecks2.TextTransparency + .04
  600. end
  601. end
  602. naeeym2:Destroy()
  603. end)
  604. chat()
  605. end
  606.  
  607.  
  608. local Create = LoadLibrary("RbxUtility").Create
  609.  
  610. CFuncs = {
  611. ["Part"] = {
  612. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  613. local Part = Create("Part"){
  614. Parent = Parent,
  615. Reflectance = Reflectance,
  616. Transparency = Transparency,
  617. CanCollide = false,
  618. Locked = true,
  619. BrickColor = BrickColor.new(tostring(BColor)),
  620. Name = Name,
  621. Size = Size,
  622. Material = Material,
  623. }
  624. RemoveOutlines(Part)
  625. return Part
  626. end;
  627. };
  628.  
  629. ["Mesh"] = {
  630. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  631. local Msh = Create(Mesh){
  632. Parent = Part,
  633. Offset = OffSet,
  634. Scale = Scale,
  635. }
  636. if Mesh == "SpecialMesh" then
  637. Msh.MeshType = MeshType
  638. Msh.MeshId = MeshId
  639. end
  640. return Msh
  641. end;
  642. };
  643.  
  644. ["Mesh"] = {
  645. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  646. local Msh = Create(Mesh){
  647. Parent = Part,
  648. Offset = OffSet,
  649. Scale = Scale,
  650. }
  651. if Mesh == "SpecialMesh" then
  652. Msh.MeshType = MeshType
  653. Msh.MeshId = MeshId
  654. end
  655. return Msh
  656. end;
  657. };
  658.  
  659. ["Weld"] = {
  660. Create = function(Parent, Part0, Part1, C0, C1)
  661. local Weld = Create("Weld"){
  662. Parent = Parent,
  663. Part0 = Part0,
  664. Part1 = Part1,
  665. C0 = C0,
  666. C1 = C1,
  667. }
  668. return Weld
  669. end;
  670. };
  671.  
  672. ["Sound"] = {
  673. Create = function(id, par, vol, pit)
  674. coroutine.resume(coroutine.create(function()
  675. local S = Create("Sound"){
  676. Volume = vol,
  677. Name = "EffectSoundo",
  678. Pitch = pit or 1,
  679. SoundId = id,
  680. Parent = par or workspace,
  681. }
  682. wait()
  683. S:play()
  684. game:GetService("Debris"):AddItem(S, 10)
  685. end))
  686. end;
  687. };
  688.  
  689. ["LongSound"] = {
  690. Create = function(id, par, vol, pit)
  691. coroutine.resume(coroutine.create(function()
  692. local S = Create("Sound"){
  693. Volume = vol,
  694. Pitch = pit or 1,
  695. SoundId = id,
  696. Parent = par or workspace,
  697. }
  698. wait()
  699. S:play()
  700. game:GetService("Debris"):AddItem(S, 30)
  701. end))
  702. end;
  703. };
  704.  
  705. ["ParticleEmitter"] = {
  706. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  707. local fp = Create("ParticleEmitter"){
  708. Parent = Parent,
  709. Color = ColorSequence.new(Color1, Color2),
  710. LightEmission = LightEmission,
  711. Size = Size,
  712. Texture = Texture,
  713. Transparency = Transparency,
  714. ZOffset = ZOffset,
  715. Acceleration = Accel,
  716. Drag = Drag,
  717. LockedToPart = LockedToPart,
  718. VelocityInheritance = VelocityInheritance,
  719. EmissionDirection = EmissionDirection,
  720. Enabled = Enabled,
  721. Lifetime = LifeTime,
  722. Rate = Rate,
  723. Rotation = Rotation,
  724. RotSpeed = RotSpeed,
  725. Speed = Speed,
  726. VelocitySpread = VelocitySpread,
  727. }
  728. return fp
  729. end;
  730. };
  731.  
  732. CreateTemplate = {
  733.  
  734. };
  735. }
  736.  
  737.  
  738.  
  739. New = function(Object, Parent, Name, Data)
  740. local Object = Instance.new(Object)
  741. for Index, Value in pairs(Data or {}) do
  742. Object[Index] = Value
  743. end
  744. Object.Parent = Parent
  745. Object.Name = Name
  746. return Object
  747. end
  748. local halocolor = BrickColor.new("Pastel light blue")
  749. local halocolor2 = BrickColor.new("Cool yellow")
  750. local starcolor = BrickColor.new("Bright yellow")
  751. local lunacolor = BrickColor.new("Navy blue")
  752. local lunacolor2 = BrickColor.new("Bright blue")
  753. local wepcolor = BrickColor.new("Really black")
  754. local maincolor = BrickColor.new("Really black")
  755. local m = Instance.new("Model",char)
  756. local m2 = Instance.new("Model",char)
  757. local m3 = Instance.new("Model",char)
  758. local mw1 = Instance.new("Model",char)
  759. local mw2 = Instance.new("Model",char)
  760.  
  761. local extrawingmod1 = Instance.new("Model",char)
  762. local extrawingmod2 = Instance.new("Model",char)
  763.  
  764. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  765. local p = Instance.new("Part")
  766. p.TopSurface = 0
  767. p.BottomSurface = 0
  768. p.Parent = parent
  769. p.Size = Vector3.new(0.1,0.1,0.1)
  770. p.Transparency = transparency
  771. p.Reflectance = reflectance
  772. p.CanCollide = false
  773. p.Locked = true
  774. p.BrickColor = brickcolor
  775. p.Material = material
  776. return p
  777. end
  778.  
  779. function CreateMesh(parent,meshtype,x1,y1,z1)
  780. local mesh = Instance.new("SpecialMesh",parent)
  781. mesh.MeshType = meshtype
  782. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  783. return mesh
  784. end
  785.  
  786. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  787. local mesh = Instance.new("SpecialMesh",parent)
  788. mesh.MeshType = "FileMesh"
  789. mesh.MeshId = meshid
  790. mesh.Scale = Vector3.new(x1,y1,z1)
  791. return mesh
  792. end
  793.  
  794.  
  795. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  796. local mesh = Instance.new("SpecialMesh",parent)
  797. mesh.MeshType = "FileMesh"
  798. mesh.MeshId = meshid
  799. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  800. mesh.Scale = Vector3.new(x1,y1,z1)
  801. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  802. return mesh
  803. end
  804.  
  805. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  806. local weld = Instance.new("Weld")
  807. weld.Parent = parent
  808. weld.Part0 = part0
  809. weld.Part1 = part1
  810. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  811. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  812. return weld
  813. end
  814.  
  815.  
  816. --------------
  817. local secondchar = Instance.new("Model",char)
  818. local GhostCol = BrickColor.new("Really red")
  819. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  820. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  821. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  822.  
  823. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  824. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  825. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  826.  
  827. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  828. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  829. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  830.  
  831. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  832. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  833. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  834.  
  835. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  836. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  837. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  838.  
  839. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  840. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  841. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  842. --------------
  843. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  844. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  845. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  846. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  847.  
  848. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  849. CreateMesh(handle,"Brick",0,0,0)
  850. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  851. local valuaring = 10
  852. for i = 0, 49 do
  853. valuaring = valuaring + 10
  854. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  855. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  856. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  857. end
  858.  
  859. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  860. CreateMesh(handle,"Brick",0,0,0)
  861. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  862. local valuaring = 10
  863. for i = 0, 49 do
  864. valuaring = valuaring + 10
  865. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  866. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  867. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  868. end
  869.  
  870.  
  871. local handle = CreateParta(m,1,1,"Neon",maincolor)
  872. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  873. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  874.  
  875. --- Left wing.
  876.  
  877. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  878. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  879. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  880.  
  881. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  882. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  883. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  884. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  885. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  886. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  887. A0 = Instance.new('Attachment',wed)
  888. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  889. CreateMesh(wed,"Wedge",0.05,0.5,3)
  890. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  891. A1 = Instance.new('Attachment',wed)
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,3,0.5)
  894. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  895.  
  896. tl1 = Instance.new('Trail',wed)
  897. tl1.Attachment0 = A0
  898. tl1.Attachment1 = A1
  899. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  900. tl1.LightEmission = 1
  901. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  902. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  903. tl1.Lifetime = 0.6
  904.  
  905.  
  906. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  907. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  908. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909.  
  910. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  911. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  912. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  913. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  914. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  915. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  916. A0 = Instance.new('Attachment',wed)
  917. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,3)
  919. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  920. A1 = Instance.new('Attachment',wed)
  921. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  922. CreateMesh(wed,"Wedge",0.05,3,0.5)
  923. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  924.  
  925. tl2 = Instance.new('Trail',wed)
  926. tl2.Attachment0 = A0
  927. tl2.Attachment1 = A1
  928. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  929. tl2.LightEmission = 1
  930. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  931. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  932. tl2.Lifetime = 0.6
  933.  
  934. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  935. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  936. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  937.  
  938. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  939. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  940. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  941. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  942. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  943. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  944. A0 = Instance.new('Attachment',wed)
  945. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  946. CreateMesh(wed,"Wedge",0.05,0.5,3)
  947. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  948. A1 = Instance.new('Attachment',wed)
  949. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,3,0.5)
  951. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  952.  
  953. tl3 = Instance.new('Trail',wed)
  954. tl3.Attachment0 = A0
  955. tl3.Attachment1 = A1
  956. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  957. tl3.LightEmission = 1
  958. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  959. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  960. tl3.Lifetime = 0.6
  961.  
  962. tl1.Enabled = false
  963. tl2.Enabled = false
  964. tl3.Enabled = false
  965. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  966. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  967. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  968.  
  969. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  970. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  971. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  972. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  973. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  974. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  975. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  976. CreateMesh(wed,"Wedge",0.05,0.5,3)
  977. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  978. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  979. CreateMesh(wed,"Wedge",0.05,3,0.5)
  980. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  981.  
  982. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  983. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  984. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  985.  
  986. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  987. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  988. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  989. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  991. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  992. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  993. CreateMesh(wed,"Wedge",0.05,0.5,3)
  994. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  995. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  996. CreateMesh(wed,"Wedge",0.05,3,0.5)
  997. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  998.  
  999. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1000. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1001. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1002.  
  1003. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1004. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1005. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1006. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1007. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1008. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1009. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1010. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1011. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1012. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1013. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1014. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1015.  
  1016. -- Right wing.
  1017.  
  1018. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1019. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1020. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1021.  
  1022. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1023. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1024. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1025. A0 = Instance.new('Attachment',wed)
  1026. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1027. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1028. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1029. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1030. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1031. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1032. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1033. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1034. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1035. A1 = Instance.new('Attachment',wed)
  1036.  
  1037. tr1 = Instance.new('Trail',wed)
  1038. tr1.Attachment0 = A0
  1039. tr1.Attachment1 = A1
  1040. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1041. tr1.LightEmission = 1
  1042. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1043. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1044. tr1.Lifetime = 0.6
  1045.  
  1046. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1047. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1048. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1049.  
  1050. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1051. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1052. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1053. A0 = Instance.new('Attachment',wed)
  1054. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1055. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1056. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1057. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1058. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1059. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1060. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1062. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1063. A1 = Instance.new('Attachment',wed)
  1064.  
  1065. tr2 = Instance.new('Trail',wed)
  1066. tr2.Attachment0 = A0
  1067. tr2.Attachment1 = A1
  1068. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1069. tr2.LightEmission = 1
  1070. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1071. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1072. tr2.Lifetime = 0.6
  1073.  
  1074. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1075. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1076. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1077.  
  1078. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1079. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1080. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1081. A0 = Instance.new('Attachment',wed)
  1082. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1083. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1084. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1085. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1086. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1087. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1088. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1089. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1090. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1091. A1 = Instance.new('Attachment',wed)
  1092.  
  1093. tr3 = Instance.new('Trail',wed)
  1094. tr3.Attachment0 = A0
  1095. tr3.Attachment1 = A1
  1096. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1097. tr3.LightEmission = 1
  1098. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1099. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1100. tr3.Lifetime = 0.6
  1101.  
  1102.  
  1103. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1104. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1105. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1106.  
  1107. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1108. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1109. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1110. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1111. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1112. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1113. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1114. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1115. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1116. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1117. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1118. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1119.  
  1120. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1121. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1122. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1123.  
  1124. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1125. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1126. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1127. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1128. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1129. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1130. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1131. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1132. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1133. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1135. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1136.  
  1137. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1138. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1139. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1140.  
  1141. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1142. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1143. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1144. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1145. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1146. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1147. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1148. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1149. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1150. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1151. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1152. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1153.  
  1154. ---- HERES THE RING
  1155.  
  1156.  
  1157. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1158. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1159. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1160. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1161. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1162. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1163. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1164. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1165. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1166.  
  1167.  
  1168. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1169. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1170. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1171.  
  1172. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1173. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1174. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1175.  
  1176.  
  1177.  
  1178. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1179. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1180. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1181.  
  1182. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1183. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1184. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1185.  
  1186. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1187. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1188. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1189.  
  1190. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1191. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1192. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1193. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1194. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1195. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1196.  
  1197. --- second ring
  1198.  
  1199. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1200. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1201. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1202. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1203. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1204. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1205. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1206. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1207. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1208.  
  1209. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1210. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1211. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1212.  
  1213. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1214. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1215. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1216.  
  1217.  
  1218.  
  1219. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1220. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1221. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1222.  
  1223. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1224. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1225. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1226.  
  1227. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1228. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1229. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1230.  
  1231. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1232. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1233. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1234. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1235. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1236. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1237.  
  1238.  
  1239.  
  1240. for i, v in pairs(m:GetChildren()) do
  1241. if v:IsA("Part") then
  1242. v.BrickColor = BrickColor.new("Really black")
  1243. v.Material = "Glass"
  1244. end
  1245. end
  1246. for i, v in pairs(m2:GetChildren()) do
  1247. if v:IsA("Part") then
  1248. v.BrickColor = BrickColor.new("Crimson")
  1249. v.Material = "Granite"
  1250. end
  1251. end
  1252. for i, v in pairs(m3:GetChildren()) do
  1253. if v:IsA("Part") then
  1254. v.BrickColor = BrickColor.new("Really red")
  1255. v.Material = "Neon"
  1256. end
  1257. end
  1258. for i, v in pairs(mw2:GetChildren()) do
  1259. if v:IsA("Part") then
  1260. v.BrickColor = BrickColor.new("Really red")
  1261. v.Material = "Neon"
  1262. end
  1263. end
  1264. for i, v in pairs(mw1:GetChildren()) do
  1265. if v:IsA("Part") then
  1266. v.Transparency = 1
  1267. v.BrickColor = BrickColor.new("Really red")
  1268. v.Material = "Neon"
  1269. end
  1270. end
  1271. for i, v in pairs(extrawingmod1:GetChildren()) do
  1272. if v:IsA("Part") then
  1273. v.Transparency = 1
  1274. v.BrickColor = BrickColor.new("White")
  1275. v.Material = "Neon"
  1276. end
  1277. end
  1278. for i, v in pairs(extrawingmod2:GetChildren()) do
  1279. if v:IsA("Part") then
  1280. v.Transparency = 1
  1281. v.BrickColor = BrickColor.new("White")
  1282. v.Material = "Neon"
  1283. end
  1284. end
  1285. local MAINRUINCOLOR = BrickColor.new("Really red")
  1286. ------
  1287.  
  1288.  
  1289. function RemoveOutlines(part)
  1290. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1291. end
  1292. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1293. local Part = Create("Part")({
  1294. Parent = Parent,
  1295. Reflectance = Reflectance,
  1296. Transparency = Transparency,
  1297. CanCollide = false,
  1298. Locked = true,
  1299. BrickColor = BrickColor.new(tostring(BColor)),
  1300. Name = Name,
  1301. Size = Size,
  1302. Material = Material
  1303. })
  1304. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1305. RemoveOutlines(Part)
  1306. return Part
  1307. end
  1308. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1309. local Msh = Create(Mesh)({
  1310. Parent = Part,
  1311. Offset = OffSet,
  1312. Scale = Scale
  1313. })
  1314. if Mesh == "SpecialMesh" then
  1315. Msh.MeshType = MeshType
  1316. Msh.MeshId = MeshId
  1317. end
  1318. return Msh
  1319. end
  1320. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1321. local Weld = Create("Weld")({
  1322. Parent = Parent,
  1323. Part0 = Part0,
  1324. Part1 = Part1,
  1325. C0 = C0,
  1326. C1 = C1
  1327. })
  1328. return Weld
  1329. end
  1330.  
  1331. Player=game:GetService("Players").LocalPlayer
  1332. Character=Player.Character
  1333. PlayerGui=Player.PlayerGui
  1334. Backpack=Player.Backpack
  1335. Torso=Character.Torso
  1336. Head=Character.Head
  1337. Humanoid=Character.Humanoid
  1338. m=Instance.new('Model',Character)
  1339. LeftArm=Character["Left Arm"]
  1340. LeftLeg=Character["Left Leg"]
  1341. RightArm=Character["Right Arm"]
  1342. RightLeg=Character["Right Leg"]
  1343. LS=Torso["Left Shoulder"]
  1344. LH=Torso["Left Hip"]
  1345. RS=Torso["Right Shoulder"]
  1346. RH=Torso["Right Hip"]
  1347. Face = Head.face
  1348. Neck=Torso.Neck
  1349. it=Instance.new
  1350. attacktype=1
  1351. vt=Vector3.new
  1352. cf=CFrame.new
  1353. euler=CFrame.fromEulerAnglesXYZ
  1354. angles=CFrame.Angles
  1355. cloaked=false
  1356. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1357. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1358. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1359. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1360. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1361. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1362. RootPart=Character.HumanoidRootPart
  1363. RootJoint=RootPart.RootJoint
  1364. RootCF=euler(-1.57,0,3.14)
  1365. attack = false
  1366. attackdebounce = false
  1367. deb=false
  1368. equipped=true
  1369. hand=false
  1370. MMouse=nil
  1371. combo=0
  1372. mana=0
  1373. trispeed=.2
  1374. attackmode='none'
  1375. local idle=0
  1376. local Anim="Idle"
  1377. local Effects={}
  1378. local gun=false
  1379. local shoot=false
  1380. local sine = 0
  1381. local change = 1
  1382. player=nil
  1383.  
  1384.  
  1385. local toggleTag = true
  1386. local txt = Instance.new("BillboardGui", Head)
  1387. txt.Adornee = nil
  1388. txt.Name = "NameDetect"
  1389. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1390. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1391. local text = Instance.new("TextLabel", txt)
  1392. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1393. text.FontSize = "Size8"
  1394. text.TextScaled = true
  1395. text.TextTransparency = 0
  1396. text.BackgroundTransparency = 1
  1397. text.TextTransparency = 0
  1398. text.TextStrokeTransparency = 0
  1399. text.Font = "Fantasy"
  1400. text.TextStrokeColor3 = Color3.new(1,0,0)
  1401. text.TextColor3 = Color3.new(0,0,0)
  1402. text.Text = "Mayhem"
  1403.  
  1404. function RecolorTextAndRename(name,col1,col2)
  1405. text.TextStrokeColor3 = col2
  1406. text.TextColor3 = col1
  1407. text.Text = name
  1408. end
  1409. mouse=Player:GetMouse()
  1410. --save shoulders
  1411. RSH, LSH=nil, nil
  1412. --welds
  1413. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1414. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1415. LH=Torso["Left Hip"]
  1416. RH=Torso["Right Hip"]
  1417. TorsoColor=Torso.BrickColor
  1418. function NoOutline(Part)
  1419. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1420. end
  1421. player=Player
  1422. ch=Character
  1423. RSH=ch.Torso["Right Shoulder"]
  1424. LSH=ch.Torso["Left Shoulder"]
  1425. --
  1426. RSH.Parent=nil
  1427. LSH.Parent=nil
  1428. --
  1429. RW.Name="Right Shoulder"
  1430. RW.Part0=ch.Torso
  1431. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1432. RW.C1=cf(0, 0.5, 0)
  1433. RW.Part1=ch["Right Arm"]
  1434. RW.Parent=ch.Torso
  1435. --
  1436. LW.Name="Left Shoulder"
  1437. LW.Part0=ch.Torso
  1438. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1439. LW.C1=cf(0, 0.5, 0)
  1440. LW.Part1=ch["Left Arm"]
  1441. LW.Parent=ch.Torso
  1442.  
  1443. local Stats=Instance.new("BoolValue")
  1444. Stats.Name="Stats"
  1445. Stats.Parent=Character
  1446. local Atk=Instance.new("NumberValue")
  1447. Atk.Name="Damage"
  1448. Atk.Parent=Stats
  1449. Atk.Value=1
  1450. local Def=Instance.new("NumberValue")
  1451. Def.Name="Defense"
  1452. Def.Parent=Stats
  1453. Def.Value=1
  1454. local Speed=Instance.new("NumberValue")
  1455. Speed.Name="Speed"
  1456. Speed.Parent=Stats
  1457. Speed.Value=1
  1458. local Mvmt=Instance.new("NumberValue")
  1459. Mvmt.Name="Movement"
  1460. Mvmt.Parent=Stats
  1461. Mvmt.Value=1
  1462.  
  1463. local donum=0
  1464.  
  1465.  
  1466. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1467. local fp=it("Part")
  1468. fp.formFactor=formfactor
  1469. fp.Parent=parent
  1470. fp.Reflectance=reflectance
  1471. fp.Transparency=transparency
  1472. fp.CanCollide=false
  1473. fp.Locked=true
  1474. fp.BrickColor=brickcolor
  1475. fp.Name=name
  1476. fp.Size=size
  1477. fp.Position=Torso.Position
  1478. NoOutline(fp)
  1479. fp.Material="SmoothPlastic"
  1480. fp:BreakJoints()
  1481. return fp
  1482. end
  1483.  
  1484. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1485. local mesh=it(Mesh)
  1486. mesh.Parent=part
  1487. if Mesh=="SpecialMesh" then
  1488. mesh.MeshType=meshtype
  1489. if meshid~="nil" then
  1490. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1491. end
  1492. end
  1493. mesh.Offset=offset
  1494. mesh.Scale=scale
  1495. return mesh
  1496. end
  1497.  
  1498. function weld(parent,part0,part1,c0)
  1499. local weld=it("Weld")
  1500. weld.Parent=parent
  1501. weld.Part0=part0
  1502. weld.Part1=part1
  1503. weld.C0=c0
  1504. return weld
  1505. end
  1506.  
  1507. local Color1=Torso.BrickColor
  1508.  
  1509. local bodvel=Instance.new("BodyVelocity")
  1510. local bg=Instance.new("BodyGyro")
  1511.  
  1512. function swait(num)
  1513. if num==0 or num==nil then
  1514. game:service'RunService'.Stepped:wait(0)
  1515. else
  1516. for i=0,num do
  1517. game:service'RunService'.Stepped:wait(0)
  1518. end
  1519. end
  1520. end
  1521.  
  1522. -------- RAINBOW LEAVE IT TO ME
  1523. local r = 255
  1524. local g = 0
  1525. local b = 0
  1526. coroutine.resume(coroutine.create(function()
  1527. while wait() do
  1528. for i = 0, 254/5 do
  1529. swait()
  1530. g = g + 5
  1531. end
  1532. for i = 0, 254/5 do
  1533. swait()
  1534. r = r - 5
  1535. end
  1536. for i = 0, 254/5 do
  1537. swait()
  1538. b = b + 5
  1539. end
  1540. for i = 0, 254/5 do
  1541. swait()
  1542. g = g - 5
  1543. end
  1544. for i = 0, 254/5 do
  1545. swait()
  1546. r = r + 5
  1547. end
  1548. for i = 0, 254/5 do
  1549. swait()
  1550. b = b - 5
  1551. end
  1552. end
  1553. end))
  1554.  
  1555.  
  1556. so = function(id,par,vol,pit)
  1557. coroutine.resume(coroutine.create(function()
  1558. local sou = Instance.new("Sound",par or workspace)
  1559. sou.Volume=vol
  1560. sou.Pitch=pit or 1
  1561. sou.SoundId=id
  1562. swait()
  1563. sou:play()
  1564. game:GetService("Debris"):AddItem(sou,6)
  1565. end))
  1566. end
  1567.  
  1568. function clerp(a,b,t)
  1569. local qa = {QuaternionFromCFrame(a)}
  1570. local qb = {QuaternionFromCFrame(b)}
  1571. local ax, ay, az = a.x, a.y, a.z
  1572. local bx, by, bz = b.x, b.y, b.z
  1573. local _t = 1-t
  1574. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1575. end
  1576.  
  1577. function QuaternionFromCFrame(cf)
  1578. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1579. local trace = m00 + m11 + m22
  1580. if trace > 0 then
  1581. local s = math.sqrt(1 + trace)
  1582. local recip = 0.5/s
  1583. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1584. else
  1585. local i = 0
  1586. if m11 > m00 then
  1587. i = 1
  1588. end
  1589. if m22 > (i == 0 and m00 or m11) then
  1590. i = 2
  1591. end
  1592. if i == 0 then
  1593. local s = math.sqrt(m00-m11-m22+1)
  1594. local recip = 0.5/s
  1595. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1596. elseif i == 1 then
  1597. local s = math.sqrt(m11-m22-m00+1)
  1598. local recip = 0.5/s
  1599. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1600. elseif i == 2 then
  1601. local s = math.sqrt(m22-m00-m11+1)
  1602. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1603. end
  1604. end
  1605. end
  1606.  
  1607. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1608. local xs, ys, zs = x + x, y + y, z + z
  1609. local wx, wy, wz = w*xs, w*ys, w*zs
  1610. local xx = x*xs
  1611. local xy = x*ys
  1612. local xz = x*zs
  1613. local yy = y*ys
  1614. local yz = y*zs
  1615. local zz = z*zs
  1616. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1617. end
  1618.  
  1619. function QuaternionSlerp(a, b, t)
  1620. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1621. local startInterp, finishInterp;
  1622. if cosTheta >= 0.0001 then
  1623. if (1 - cosTheta) > 0.0001 then
  1624. local theta = math.acos(cosTheta)
  1625. local invSinTheta = 1/math.sin(theta)
  1626. startInterp = math.sin((1-t)*theta)*invSinTheta
  1627. finishInterp = math.sin(t*theta)*invSinTheta
  1628. else
  1629. startInterp = 1-t
  1630. finishInterp = t
  1631. end
  1632. else
  1633. if (1+cosTheta) > 0.0001 then
  1634. local theta = math.acos(-cosTheta)
  1635. local invSinTheta = 1/math.sin(theta)
  1636. startInterp = math.sin((t-1)*theta)*invSinTheta
  1637. finishInterp = math.sin(t*theta)*invSinTheta
  1638. else
  1639. startInterp = t-1
  1640. finishInterp = t
  1641. end
  1642. end
  1643. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1644. end
  1645.  
  1646. local function CFrameFromTopBack(at, top, back)
  1647. local right = top:Cross(back)
  1648. return CFrame.new(at.x, at.y, at.z,
  1649. right.x, top.x, back.x,
  1650. right.y, top.y, back.y,
  1651. right.z, top.z, back.z)
  1652. end
  1653.  
  1654. function Triangle(a, b, c)
  1655. local edg1 = (c-a):Dot((b-a).unit)
  1656. local edg2 = (a-b):Dot((c-b).unit)
  1657. local edg3 = (b-c):Dot((a-c).unit)
  1658. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1659. a, b, c = a, b, c
  1660. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1661. a, b, c = b, c, a
  1662. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1663. a, b, c = c, a, b
  1664. else
  1665. assert(false, "unreachable")
  1666. end
  1667.  
  1668. local len1 = (c-a):Dot((b-a).unit)
  1669. local len2 = (b-a).magnitude - len1
  1670. local width = (a + (b-a).unit*len1 - c).magnitude
  1671.  
  1672. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1673.  
  1674. local list = {}
  1675.  
  1676. if len1 > 0.01 then
  1677. local w1 = Instance.new('WedgePart', m)
  1678. game:GetService("Debris"):AddItem(w1,5)
  1679. w1.Material = "SmoothPlastic"
  1680. w1.FormFactor = 'Custom'
  1681. w1.BrickColor = BrickColor.new("Really red")
  1682. w1.Transparency = 0
  1683. w1.Reflectance = 0
  1684. w1.Material = "SmoothPlastic"
  1685. w1.CanCollide = false
  1686. local l1 = Instance.new("PointLight",w1)
  1687. l1.Color = Color3.new(170,0,0)
  1688. NoOutline(w1)
  1689. local sz = Vector3.new(0.2, width, len1)
  1690. w1.Size = sz
  1691. local sp = Instance.new("SpecialMesh",w1)
  1692. sp.MeshType = "Wedge"
  1693. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1694. w1:BreakJoints()
  1695. w1.Anchored = true
  1696. w1.Parent = workspace
  1697. w1.Transparency = 0.7
  1698. table.insert(Effects,{w1,"Disappear",.01})
  1699. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1700. table.insert(list,w1)
  1701. end
  1702.  
  1703. if len2 > 0.01 then
  1704. local w2 = Instance.new('WedgePart', m)
  1705. game:GetService("Debris"):AddItem(w2,5)
  1706. w2.Material = "SmoothPlastic"
  1707. w2.FormFactor = 'Custom'
  1708. w2.BrickColor = BrickColor.new("Really red")
  1709. w2.Transparency = 0
  1710. w2.Reflectance = 0
  1711. w2.Material = "SmoothPlastic"
  1712. w2.CanCollide = false
  1713. local l2 = Instance.new("PointLight",w2)
  1714. l2.Color = Color3.new(170,0,0)
  1715. NoOutline(w2)
  1716. local sz = Vector3.new(0.2, width, len2)
  1717. w2.Size = sz
  1718. local sp = Instance.new("SpecialMesh",w2)
  1719. sp.MeshType = "Wedge"
  1720. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1721. w2:BreakJoints()
  1722. w2.Anchored = true
  1723. w2.Parent = workspace
  1724. w2.Transparency = 0.7
  1725. table.insert(Effects,{w2,"Disappear",.01})
  1726. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1727. table.insert(list,w2)
  1728. end
  1729. return unpack(list)
  1730. end
  1731.  
  1732.  
  1733. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1734. if hit.Parent == nil then
  1735. return
  1736. end
  1737. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1738. for _, v in pairs(hit.Parent:children()) do
  1739. if v:IsA("Humanoid") then
  1740. h = v
  1741. end
  1742. end
  1743. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1744. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1745. return
  1746. end
  1747. local c = Create("ObjectValue")({
  1748. Name = "creator",
  1749. Value = game:service("Players").LocalPlayer,
  1750. Parent = h
  1751. })
  1752. game:GetService("Debris"):AddItem(c, 0.5)
  1753. if HitSound ~= nil and HitPitch ~= nil then
  1754. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1755. end
  1756. local Damage = math.random(minim, maxim)
  1757. local blocked = false
  1758. local block = hit.Parent:findFirstChild("Block")
  1759. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1760. blocked = true
  1761. block.Value = block.Value - 1
  1762. print(block.Value)
  1763. end
  1764. if blocked == false then
  1765. HitHealth = h.Health
  1766. h.Health = h.Health - Damage
  1767. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1768. print("gained kill")
  1769. end
  1770. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1771. else
  1772. h.Health = h.Health - Damage / 2
  1773. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1774. end
  1775. if Type == "Knockdown" then
  1776. local hum = hit.Parent.Humanoid
  1777. hum.PlatformStand = true
  1778. coroutine.resume(coroutine.create(function(HHumanoid)
  1779. swait(1)
  1780. HHumanoid.PlatformStand = false
  1781. end), hum)
  1782. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1783. local bodvol = Create("BodyVelocity")({
  1784. velocity = angle * knockback,
  1785. P = 5000,
  1786. maxForce = Vector3.new(8000, 8000, 8000),
  1787. Parent = hit
  1788. })
  1789. local rl = Create("BodyAngularVelocity")({
  1790. P = 3000,
  1791. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1792. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1793. Parent = hit
  1794. })
  1795. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1796. game:GetService("Debris"):AddItem(rl, 0.5)
  1797. elseif Type == "Normal" then
  1798. local vp = Create("BodyVelocity")({
  1799. P = 500,
  1800. maxForce = Vector3.new(math.huge, 0, math.huge),
  1801. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1802. })
  1803. if knockback > 0 then
  1804. vp.Parent = hit.Parent.Head
  1805. end
  1806. game:GetService("Debris"):AddItem(vp, 0.5)
  1807. elseif Type == "Up" then
  1808. local bodyVelocity = Create("BodyVelocity")({
  1809. velocity = Vector3.new(0, 20, 0),
  1810. P = 5000,
  1811. maxForce = Vector3.new(8000, 8000, 8000),
  1812. Parent = hit
  1813. })
  1814. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1815. local bodyVelocity = Create("BodyVelocity")({
  1816. velocity = Vector3.new(0, 20, 0),
  1817. P = 5000,
  1818. maxForce = Vector3.new(8000, 8000, 8000),
  1819. Parent = hit
  1820. })
  1821. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1822. elseif Type == "Leech" then
  1823. local hum = hit.Parent.Humanoid
  1824. if hum ~= nil then
  1825. for i = 0, 2 do
  1826. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1827. end
  1828. Humanoid.Health = Humanoid.Health + 10
  1829. end
  1830. elseif Type == "UpKnock" then
  1831. local hum = hit.Parent.Humanoid
  1832. hum.PlatformStand = true
  1833. if hum ~= nil then
  1834. hitr = true
  1835. end
  1836. coroutine.resume(coroutine.create(function(HHumanoid)
  1837. swait(5)
  1838. HHumanoid.PlatformStand = false
  1839. hitr = false
  1840. end), hum)
  1841. local bodyVelocity = Create("BodyVelocity")({
  1842. velocity = Vector3.new(0, 20, 0),
  1843. P = 5000,
  1844. maxForce = Vector3.new(8000, 8000, 8000),
  1845. Parent = hit
  1846. })
  1847. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1848. local bodyVelocity = Create("BodyVelocity")({
  1849. velocity = Vector3.new(0, 20, 0),
  1850. P = 5000,
  1851. maxForce = Vector3.new(8000, 8000, 8000),
  1852. Parent = hit
  1853. })
  1854. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1855. elseif Type == "Snare" then
  1856. local bp = Create("BodyPosition")({
  1857. P = 2000,
  1858. D = 100,
  1859. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1860. position = hit.Parent.Torso.Position,
  1861. Parent = hit.Parent.Torso
  1862. })
  1863. game:GetService("Debris"):AddItem(bp, 1)
  1864. elseif Type == "Slashnare" then
  1865. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1866. for i = 1, math.random(4, 5) do
  1867. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1868. end
  1869. local bp = Create("BodyPosition")({
  1870. P = 2000,
  1871. D = 100,
  1872. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1873. position = hit.Parent.Torso.Position,
  1874. Parent = hit.Parent.Torso
  1875. })
  1876. game:GetService("Debris"):AddItem(bp, 1)
  1877. elseif Type == "Spike" then
  1878. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1879. local bp = Create("BodyPosition")({
  1880. P = 2000,
  1881. D = 100,
  1882. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1883. position = hit.Parent.Torso.Position,
  1884. Parent = hit.Parent.Torso
  1885. })
  1886. game:GetService("Debris"):AddItem(bp, 1)
  1887. elseif Type == "Freeze" then
  1888. local BodPos = Create("BodyPosition")({
  1889. P = 50000,
  1890. D = 1000,
  1891. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1892. position = hit.Parent.Torso.Position,
  1893. Parent = hit.Parent.Torso
  1894. })
  1895. local BodGy = Create("BodyGyro")({
  1896. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1897. P = 20000,
  1898. Parent = hit.Parent.Torso,
  1899. cframe = hit.Parent.Torso.CFrame
  1900. })
  1901. hit.Parent.Torso.Anchored = true
  1902. coroutine.resume(coroutine.create(function(Part)
  1903. swait(1.5)
  1904. Part.Anchored = false
  1905. end), hit.Parent.Torso)
  1906. game:GetService("Debris"):AddItem(BodPos, 3)
  1907. game:GetService("Debris"):AddItem(BodGy, 3)
  1908. end
  1909. local debounce = Create("BoolValue")({
  1910. Name = "DebounceHit",
  1911. Parent = hit.Parent,
  1912. Value = true
  1913. })
  1914. game:GetService("Debris"):AddItem(debounce, Delay)
  1915. c = Instance.new("ObjectValue")
  1916. c.Name = "creator"
  1917. c.Value = Player
  1918. c.Parent = h
  1919. game:GetService("Debris"):AddItem(c, 0.5)
  1920. end
  1921. end
  1922. function ShowDamage(Pos, Text, Time, Color)
  1923. local Rate = 0.03333333333333333
  1924. local Pos = Pos or Vector3.new(0, 0, 0)
  1925. local Text = Text or ""
  1926. local Time = Time or 2
  1927. local Color = Color or Color3.new(1, 0, 1)
  1928. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1929. EffectPart.Anchored = true
  1930. local BillboardGui = Create("BillboardGui")({
  1931. Size = UDim2.new(3, 0, 3, 0),
  1932. Adornee = EffectPart,
  1933. Parent = EffectPart
  1934. })
  1935. local TextLabel = Create("TextLabel")({
  1936. BackgroundTransparency = 1,
  1937. Size = UDim2.new(1, 0, 1, 0),
  1938. Text = Text,
  1939. TextColor3 = Color,
  1940. TextScaled = true,
  1941. Font = Enum.Font.ArialBold,
  1942. Parent = BillboardGui
  1943. })
  1944. game.Debris:AddItem(EffectPart, Time + 0.1)
  1945. EffectPart.Parent = game:GetService("Workspace")
  1946. delay(0, function()
  1947. local Frames = Time / Rate
  1948. for Frame = 1, Frames do
  1949. wait(Rate)
  1950. local Percent = Frame / Frames
  1951. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1952. TextLabel.TextTransparency = Percent
  1953. end
  1954. if EffectPart and EffectPart.Parent then
  1955. EffectPart:Destroy()
  1956. end
  1957. end)
  1958. end
  1959. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1960. for _, c in pairs(workspace:children()) do
  1961. local hum = c:findFirstChildOfClass("Humanoid")
  1962. if hum ~= nil then
  1963. local head = c:findFirstChild("Head")
  1964. if head ~= nil then
  1965. local targ = head.Position - Part.Position
  1966. local mag = targ.magnitude
  1967. if magni >= mag and c.Name ~= Player.Name then
  1968. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1969. end
  1970. end
  1971. end
  1972. end
  1973. end
  1974.  
  1975. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1976. for _, c in pairs(workspace:children()) do
  1977. local hum = c:findFirstChild("Humanoid")
  1978. if hum ~= nil then
  1979. local head = c:findFirstChild("Torso")
  1980. if head ~= nil then
  1981. local targ = head.Position - Part.Position
  1982. local mag = targ.magnitude
  1983. if magni >= mag and c.Name ~= Player.Name then
  1984. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1985. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991.  
  1992. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1993. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1994. end
  1995.  
  1996. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1997. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1998. prt.Anchored=true
  1999. prt.CFrame=cframe
  2000. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2001. --http://www.roblox.com/asset/?id=4770560
  2002. game:GetService("Debris"):AddItem(prt,2)
  2003. CF=prt.CFrame
  2004. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2005. for i=0,1,0.2 do
  2006. wait()
  2007. Part.CFrame=CF*cf(0,0,-0.4)
  2008. end
  2009. for i=0,1,delay do
  2010. wait()
  2011. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2012. Mesh.Scale=Mesh.Scale
  2013. end
  2014. for i=0,1,0.1 do
  2015. wait()
  2016. Part.Transparency=i
  2017. end
  2018. Part.Parent=nil
  2019. end),prt,msh,CF)
  2020. end
  2021.  
  2022. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2023. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2024. prt.Anchored=true
  2025. prt.Material = "Neon"
  2026. prt.CFrame=cframe
  2027. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2028. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2029. game:GetService("Debris"):AddItem(prt,5)
  2030. coroutine.resume(coroutine.create(function(Part,Mesh)
  2031. for i=0,1,delay do
  2032. swait()
  2033. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2034. Part.Transparency=i
  2035. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2036. end
  2037. Part.Parent=nil
  2038. end),prt,msh)
  2039. end
  2040.  
  2041. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2042. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2043. prt.Anchored=true
  2044. prt.Material = "Neon"
  2045. prt.CFrame=cframe
  2046. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2047. game:GetService("Debris"):AddItem(prt,5)
  2048. coroutine.resume(coroutine.create(function(Part,Mesh)
  2049. local rtype = rottype
  2050. for i=0,1,delay do
  2051. swait()
  2052. if rtype == 1 then
  2053. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2054. elseif rtype == 2 then
  2055. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2056. end
  2057. Part.Transparency=i
  2058. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2059. end
  2060. Part.Parent=nil
  2061. end),prt,msh)
  2062. end
  2063.  
  2064. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2065. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2066. prt.Anchored=true
  2067. prt.CFrame=cframe
  2068. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2069. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2070. game:GetService("Debris"):AddItem(prt,5)
  2071. coroutine.resume(coroutine.create(function(Part,Mesh)
  2072. for i=0,1,delay do
  2073. wait()
  2074. Part.Transparency=i
  2075. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2076. end
  2077. Part.Parent=nil
  2078. end),prt,msh)
  2079. end
  2080.  
  2081. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2082. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2083. prt.Anchored=true
  2084. prt.Material = "Neon"
  2085. prt.CFrame=cframe
  2086. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2087. game:GetService("Debris"):AddItem(prt,5)
  2088. coroutine.resume(coroutine.create(function(Part,Mesh)
  2089. local rtype = rottype
  2090. for i=0,1,delay do
  2091. swait()
  2092. if rtype == 1 then
  2093. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2094. elseif rtype == 2 then
  2095. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2096. end
  2097. Part.Transparency=i
  2098. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2099. end
  2100. Part.Parent=nil
  2101. end),prt,msh)
  2102. end
  2103.  
  2104. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2105. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2106. prt.Anchored=true
  2107. prt.Material = "Neon"
  2108. prt.CFrame=cframe
  2109. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2110. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2111. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2112. game:GetService("Debris"):AddItem(prt,5)
  2113. coroutine.resume(coroutine.create(function(Part,Mesh)
  2114. local rtype = rottype
  2115. for i=0,1,delay do
  2116. swait()
  2117. if rtype == 1 then
  2118. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2119. elseif rtype == 2 then
  2120. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2121. end
  2122. dec.Transparency=i
  2123. dec2.Transparency=i
  2124. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2125. end
  2126. Part.Parent=nil
  2127. end),prt,msh)
  2128. end
  2129.  
  2130. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2131. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2132. prt.Anchored=true
  2133. prt.Material = "Neon"
  2134. prt.CFrame=cframe
  2135. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2136. game:GetService("Debris"):AddItem(prt,5)
  2137. coroutine.resume(coroutine.create(function(Part,Mesh)
  2138. local rtype = rottype
  2139. for i=0,1,delay do
  2140. swait()
  2141. if rtype == 1 then
  2142. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2143. elseif rtype == 2 then
  2144. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2145. end
  2146. prt.Transparency=i
  2147. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2148. end
  2149. Part.Parent=nil
  2150. end),prt,msh)
  2151. end
  2152.  
  2153. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2154. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2155. prt.Anchored=true
  2156. prt.Material = "Neon"
  2157. prt.CFrame=cframe
  2158. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2159. game:GetService("Debris"):AddItem(prt,5)
  2160. coroutine.resume(coroutine.create(function(Part,Mesh)
  2161. local rtype = rottype
  2162. for i=0,1,delay do
  2163. swait()
  2164. if rtype == 1 then
  2165. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2166. elseif rtype == 2 then
  2167. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2168. end
  2169. prt.Transparency=i
  2170. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2171. end
  2172. Part.Parent=nil
  2173. end),prt,msh)
  2174. end
  2175.  
  2176. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2177. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2178. prt.Anchored=true
  2179. prt.Material = "Neon"
  2180. prt.CFrame=cframe
  2181. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2182. game:GetService("Debris"):AddItem(prt,5)
  2183. coroutine.resume(coroutine.create(function(Part,Mesh)
  2184. local rtype = rottype
  2185. for i=0,1,delay do
  2186. swait()
  2187. if rtype == 1 then
  2188. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2189. elseif rtype == 2 then
  2190. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2191. end
  2192. prt.Transparency=i
  2193. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2194. end
  2195. Part.Parent=nil
  2196. end),prt,msh)
  2197. end
  2198.  
  2199. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2200. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2201. prt.Anchored=true
  2202. prt.Material = "Neon"
  2203. prt.CFrame=cframe
  2204. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2205. game:GetService("Debris"):AddItem(prt,5)
  2206. coroutine.resume(coroutine.create(function(Part,Mesh)
  2207. local rtype = rottype
  2208. for i=0,1,delay do
  2209. swait()
  2210. if rtype == 1 then
  2211. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2212. elseif rtype == 2 then
  2213. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2214. end
  2215. prt.Transparency=i
  2216. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2217. end
  2218. Part.Parent=nil
  2219. end),prt,msh)
  2220. end
  2221.  
  2222. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2223. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2224. prt.Anchored=false
  2225. prt.CFrame=cframe
  2226. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2227. local wld=weld(prt,prt,Parent,cframe)
  2228. game:GetService("Debris"):AddItem(prt,5)
  2229. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2230. for i=0,1,delay do
  2231. wait()
  2232. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2233. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2234. Part.Transparency=i
  2235. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2236. end
  2237. Part.Parent=nil
  2238. end),prt,msh,wld)
  2239. end
  2240.  
  2241. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2242. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2243. prt.Anchored=false
  2244. prt.CFrame=cframe
  2245. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2246. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2247. game:GetService("Debris"):AddItem(prt,5)
  2248. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2249. for i=0,1,delay do
  2250. wait()
  2251. Weld.C0=euler(i*20,0,0)
  2252. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2253. Part.Transparency=i
  2254. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2255. end
  2256. Part.Parent=nil
  2257. end),prt,msh,wld)
  2258. end
  2259.  
  2260. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2261. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2262. prt.Anchored=true
  2263. prt.CFrame=cframe
  2264. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2265. game:GetService("Debris"):AddItem(prt,2)
  2266. coroutine.resume(coroutine.create(function(Part,Mesh)
  2267. for i=0,1,delay do
  2268. wait()
  2269. Part.CFrame=Part.CFrame
  2270. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2271. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2272. prt2.Anchored=true
  2273. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2274. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2275. game:GetService("Debris"):AddItem(prt2,2)
  2276. coroutine.resume(coroutine.create(function(Part,Mesh)
  2277. for i=0,1,0.1 do
  2278. wait()
  2279. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2280. end
  2281. Part.Parent=nil
  2282. end),prt2,msh2)
  2283. end
  2284. for i=0,1,delay*2 do
  2285. wait()
  2286. Part.CFrame=Part.CFrame
  2287. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2288. end
  2289. Part.Parent=nil
  2290. end),prt,msh)
  2291. end
  2292.  
  2293. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2294. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2295. prt.Anchored=true
  2296. prt.CFrame=cframe
  2297. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2298. game:GetService("Debris"):AddItem(prt,2)
  2299. coroutine.resume(coroutine.create(function(Part,Mesh)
  2300. for i=0,1,delay do
  2301. wait()
  2302. Part.CFrame=Part.CFrame
  2303. Part.Transparency=i
  2304. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2305. end
  2306. Part.Parent=nil
  2307. end),prt,msh)
  2308. end
  2309.  
  2310. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2311. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2312. prt.Anchored=true
  2313. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2314. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2315. game:GetService("Debris"):AddItem(prt,2)
  2316. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2317. CF=Part.CFrame
  2318. Numbb=0
  2319. randnumb=math.random()/10
  2320. rand1=math.random()/10
  2321. for i=0,1,rand1 do
  2322. wait()
  2323. CF=CF*cf(0,math.random()/2,0)
  2324. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2325. Part.CFrame=CF*euler(Numbb,0,0)
  2326. Part.Transparency=i
  2327. Numbb=Numbb+randnumb
  2328. end
  2329. Part.Parent=nil
  2330. end),prt,CF,Numbb,randnumb)
  2331. end
  2332.  
  2333. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2334. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2335. prt.Anchored=true
  2336. prt.CFrame=cframe
  2337. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2338. game:GetService("Debris"):AddItem(prt,5)
  2339. coroutine.resume(coroutine.create(function(Part,Mesh)
  2340. for i=0,1,delay do
  2341. wait()
  2342. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2343. Part.Transparency=i
  2344. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2345. end
  2346. Part.Parent=nil
  2347. end),prt,msh)
  2348. end
  2349.  
  2350. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2351. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2352. prt.Anchored=true
  2353. prt.CFrame=cframe
  2354. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2355. game:GetService("Debris"):AddItem(prt,2)
  2356. coroutine.resume(coroutine.create(function(Part,Mesh)
  2357. for i=0,1,delay do
  2358. wait()
  2359. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2360. Part.Transparency=i
  2361. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2362. end
  2363. Part.Parent=nil
  2364. end),prt,msh)
  2365. end
  2366.  
  2367. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2368. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2369. prt.Anchored=true
  2370. prt.CFrame=cframe*cf(x,y,z)
  2371. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2372. game:GetService("Debris"):AddItem(prt,5)
  2373. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2374. local num=math.random()
  2375. local num2=math.random(-3,2)+math.random()
  2376. local numm=0
  2377. for i=0,1,delay*2 do
  2378. swait()
  2379. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2380. Part.Transparency=i
  2381. numm=numm+0.01
  2382. end
  2383. Part.Parent=nil
  2384. Mesh.Parent=nil
  2385. end),prt,msh,x,y,z)
  2386. end
  2387.  
  2388. function dmgstart(dmg,what)
  2389. hitcon = what.Touched:connect(function(hit)
  2390. local hum = hit.Parent:FindFirstChild("Humanoid")
  2391. if hum and not hum:IsDescendantOf(Character) then
  2392. hum:TakeDamage(dmg)
  2393. end
  2394. end)
  2395. end
  2396.  
  2397. function dmgstop()
  2398. hitcon:disconnect()
  2399. end
  2400.  
  2401. function Cloak()
  2402. Face.Parent=nil
  2403. cloaked=true
  2404. for _,v in pairs(Torso.Parent:children()) do
  2405. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2406. coroutine.resume(coroutine.create(function()
  2407. for i=0,1,0.2 do
  2408. wait()
  2409. v.Transparency=i
  2410. end
  2411. v.Transparency=1
  2412. end))
  2413. end
  2414. if v.className=="Hat" then
  2415. hatp=v.Handle
  2416. coroutine.resume(coroutine.create(function(derp)
  2417. for i=0,1,0.2 do
  2418. wait()
  2419. derp.Transparency=i
  2420. end
  2421. derp.Transparency=1
  2422. end),hatp)
  2423. end
  2424. end
  2425. for _,v in pairs(m:children()) do
  2426. if v.className=="Part" then
  2427. coroutine.resume(coroutine.create(function()
  2428. for i=0,1,0.2 do
  2429. wait()
  2430. v.Transparency=i
  2431. end
  2432. v.Transparency=1
  2433. end))
  2434. end
  2435. end
  2436. end
  2437.  
  2438. function UnCloak()
  2439. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2440. Face.Parent=Head
  2441. cloaked=false
  2442. for _,v in pairs(Torso.Parent:children()) do
  2443. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2444. coroutine.resume(coroutine.create(function()
  2445. for i=0,1,0.1 do
  2446. wait()
  2447. v.Transparency=v.Transparency-0.1
  2448. end
  2449. v.Transparency=0
  2450. end))
  2451. end
  2452. if v.className=="Hat" then
  2453. hatp=v.Handle
  2454. coroutine.resume(coroutine.create(function(derp)
  2455. for i=0,1,0.1 do
  2456. wait()
  2457. derp.Transparency=derp.Transparency-0.1
  2458. end
  2459. derp.Transparency=0
  2460. end),hatp)
  2461. end
  2462. end
  2463. for _,v in pairs(m:children()) do
  2464. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2465. coroutine.resume(coroutine.create(function()
  2466. for i=0,1,0.1 do
  2467. wait()
  2468. v.Transparency=v.Transparency-0.1
  2469. end
  2470. v.Transparency=0
  2471. end))
  2472. v.Transparency=0
  2473. end
  2474. end
  2475. end
  2476.  
  2477. local origcolor = BrickColor.new("Pastel light blue")
  2478. ---- This section of explosions.
  2479. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2480. local expart = Instance.new("Part",char)
  2481. local expart2 = Instance.new("Part",char)
  2482. local rin = Instance.new("Part",char)
  2483. local rin2 = Instance.new("Part",char)
  2484. local partMesh = Instance.new("SpecialMesh",expart)
  2485. partMesh.MeshType = "Sphere"
  2486. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2487. partMesh2.MeshType = "Sphere"
  2488. local partMesh3 = Instance.new("SpecialMesh",rin)
  2489. partMesh3.MeshType = "Brick"
  2490. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2491. partMesh4.MeshType = "Brick"
  2492. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2493. partMesh.Scale = vt(rad,rad,rad)
  2494. expart.Size = vt(1,1,1)
  2495. expart.Transparency = 0
  2496. expart.Anchored = true
  2497. expart.Material = "Neon"
  2498. expart.BrickColor = bc("White")
  2499. expart.CFrame = par.CFrame
  2500. partMesh2.Scale = vt(rad,rad,rad)
  2501. expart2.Size = vt(1.15,1.15,1.15)
  2502. expart2.Transparency = 0.5
  2503. expart2.Anchored = true
  2504. expart2.Material = "Neon"
  2505. expart2.BrickColor = par.BrickColor
  2506. expart2.CFrame = par.CFrame
  2507. rin.Size = vt(1.15,1.15,1.15)
  2508. rin.Transparency = 1
  2509. rin.Anchored = true
  2510. rin.Material = "Neon"
  2511. rin.BrickColor = par.BrickColor
  2512. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2513. rin2.Size = vt(1.15,1.15,1.15)
  2514. rin2.Transparency = 1
  2515. rin2.Anchored = true
  2516. rin2.Material = "Neon"
  2517. rin2.BrickColor = par.BrickColor
  2518. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2519. partMesh3.Scale = vt(0,1,0)
  2520. partMesh4.Scale = vt(0,1,0)
  2521. local dec2 = Instance.new("Decal", rin)
  2522. dec2.Face = "Top"
  2523. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2524. dec2.Parent = rin
  2525. local dec2b = dec2:Clone()
  2526. dec2b.Face = "Bottom"
  2527. dec2b.Parent = rin
  2528.  
  2529. local dec2a = Instance.new("Decal", rin2)
  2530. dec2a.Face = "Top"
  2531. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2532. dec2a.Parent = rin2
  2533. local dec2ab = dec2a:Clone()
  2534. dec2ab.Face = "Bottom"
  2535. dec2ab.Parent = rin2
  2536. expart.CanCollide = false
  2537. expart2.CanCollide = false
  2538. rin.CanCollide = false
  2539. rin2.CanCollide = false
  2540. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2541. local value = 1*rad/6.5
  2542. for i = 0, 199 do
  2543. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2544. expart.CFrame = expart.CFrame
  2545. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2546. expart2.CFrame = expart.CFrame
  2547. value = value - 0.035*rad/30
  2548. if value < 7.5 then
  2549. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2550. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2551. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2552. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2553. end
  2554. if value < 0 then
  2555. dec2.Transparency = dec2.Transparency + 0.025
  2556. dec2a.Transparency = dec2a.Transparency + 0.025
  2557. dec2b.Transparency = dec2b.Transparency + 0.025
  2558. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2559. expart.Transparency = expart.Transparency + 0.025
  2560. expart2.Transparency = expart2.Transparency + 0.025
  2561. rin.Transparency = rin.Transparency + 0.025
  2562. rin2.Transparency = rin2.Transparency + 0.025
  2563. end
  2564. swait()
  2565. end
  2566. game:GetService("Debris"):AddItem(expart, 1)
  2567. game:GetService("Debris"):AddItem(expart2, 1)
  2568. game:GetService("Debris"):AddItem(rin, 1)
  2569. game:GetService("Debris"):AddItem(rin2, 1)
  2570. end
  2571.  
  2572. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2573. local expart = Instance.new("Part",char)
  2574. local expart2 = Instance.new("Part",char)
  2575. local partMesh = Instance.new("SpecialMesh",expart)
  2576. partMesh.MeshType = "Sphere"
  2577. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2578. partMesh2.MeshType = "Sphere"
  2579. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2580. partMesh.Scale = vt(rad,rad,rad)
  2581. expart.Size = vt(1,1,1)
  2582. expart.Transparency = 0
  2583. expart.Anchored = true
  2584. expart.Material = "Neon"
  2585. expart.BrickColor = bc("White")
  2586. expart.CFrame = par.CFrame
  2587. partMesh2.Scale = vt(rad,rad,rad)
  2588. expart2.Size = vt(1.15,1.15,1.15)
  2589. expart2.Transparency = 0.5
  2590. expart2.Anchored = true
  2591. expart2.Material = "Neon"
  2592. expart2.BrickColor = par.BrickColor
  2593. expart2.CFrame = par.CFrame
  2594. expart.CanCollide = false
  2595. expart2.CanCollide = false
  2596. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2597. local value = 1*rad/6.5
  2598. for i = 0, 75 do
  2599. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2600. expart.CFrame = expart.CFrame
  2601. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2602. expart2.CFrame = expart.CFrame
  2603. value = value - 0.035*rad/5
  2604. if value < 0 then
  2605. value = 0
  2606. expart.Transparency = expart.Transparency + 0.05
  2607. expart2.Transparency = expart2.Transparency + 0.05
  2608. end
  2609. swait()
  2610. end
  2611. game:GetService("Debris"):AddItem(expart, 1)
  2612. game:GetService("Debris"):AddItem(expart2, 1)
  2613. end
  2614.  
  2615. function AreaDanger(rad,par,mindam,maxdam)
  2616. local expart = Instance.new("Part",char)
  2617. local partMesh = Instance.new("SpecialMesh",expart)
  2618. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2619. partMesh.MeshType = "Sphere"
  2620. partMesh.Scale = vt(rad,rad,rad)
  2621. expart.Size = vt(1,1,1)
  2622. expart.Transparency = 0.5
  2623. expart.Anchored = true
  2624. expart.Material = "Neon"
  2625. expart.CanCollide = false
  2626. expart.BrickColor = par.BrickColor
  2627. expart.CFrame = par.CFrame
  2628. local value = 1*rad/5
  2629. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2630. for i = 0, 14 do
  2631. wait()
  2632. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2633. expart.CFrame = expart.CFrame
  2634. value = value - 0.035*rad
  2635. if value < 0 then
  2636. value = 0
  2637. end
  2638. end
  2639. wait(0.25)
  2640. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2641. wait(0.5)
  2642. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2643. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2644. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2645. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2646. for i = 0, 14 do
  2647. wait()
  2648. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2649. expart.CFrame = expart.CFrame
  2650. value = value - 0.035*rad/2
  2651. end
  2652. expart.Transparency = 1
  2653. game:GetService("Debris"):AddItem(expart, 5)
  2654. end
  2655.  
  2656. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2657. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2658. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2659. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2660. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2661. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2662. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2663. for i = 0, 24 do
  2664. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2665. end
  2666. for i = 0, 24 do
  2667. local expart = Instance.new("Part",char)
  2668. expart.Transparency = 1
  2669. expart.Anchored = true
  2670. expart.CanCollide = false
  2671. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2672. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2673. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2674. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2675. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2676. for i = 0, 9 do
  2677. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2678. end
  2679. game:GetService("Debris"):AddItem(expart, 2)
  2680. wait(0.1)
  2681. end
  2682. end
  2683.  
  2684. function EXterPlosion(par)
  2685. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2686. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2687. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2688. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2689. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2690. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2691. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2692. for i = 0, 24 do
  2693. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2694. end
  2695. for i = 0, 24 do
  2696. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2697. end
  2698. end
  2699. ----
  2700.  
  2701.  
  2702. function ring(type,pos,scale,value)
  2703. local type = type
  2704. local rng = Instance.new("Part", char)
  2705. rng.Anchored = true
  2706. rng.BrickColor = origcolor
  2707. rng.CanCollide = false
  2708. rng.FormFactor = 3
  2709. rng.Name = "Ring"
  2710. rng.Size = Vector3.new(1, 1, 1)
  2711. rng.Transparency = 0
  2712. rng.TopSurface = 0
  2713. rng.BottomSurface = 0
  2714. rng.CFrame = pos
  2715. local rngm = Instance.new("SpecialMesh", rng)
  2716. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2717. rngm.Scale = scale
  2718. local scaler2 = 1
  2719. if type == "Add" then
  2720. scaler2 = 1*value
  2721. elseif type == "Divide" then
  2722. scaler2 = 1/value
  2723. end
  2724. coroutine.resume(coroutine.create(function()
  2725. for i = 0,10,0.1 do
  2726. swait()
  2727. if type == "Add" then
  2728. scaler2 = scaler2 - 0.01*value
  2729. elseif type == "Divide" then
  2730. scaler2 = scaler2 - 0.01/value
  2731. end
  2732. rng.Transparency = rng.Transparency + 0.01
  2733. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2734. end
  2735. rng:Destroy()
  2736. end))
  2737. end
  2738.  
  2739.  
  2740. function wave(type,pos,scale,value)
  2741. local type = type
  2742. local rng = Instance.new("Part", char)
  2743. rng.Anchored = true
  2744. rng.BrickColor = origcolor
  2745. rng.CanCollide = false
  2746. rng.FormFactor = 3
  2747. rng.Name = "Ring"
  2748. rng.Size = Vector3.new(1, 1, 1)
  2749. rng.Transparency = 0
  2750. rng.TopSurface = 0
  2751. rng.BottomSurface = 0
  2752. rng.CFrame = pos
  2753. local rngm = Instance.new("SpecialMesh", rng)
  2754. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2755. rngm.Scale = scale
  2756. local scaler2 = 1
  2757. if type == "Add" then
  2758. scaler2 = 1*value
  2759. elseif type == "Divide" then
  2760. scaler2 = 1/value
  2761. end
  2762. coroutine.resume(coroutine.create(function()
  2763. for i = 0,10,0.1 do
  2764. swait()
  2765. if type == "Add" then
  2766. scaler2 = scaler2 - 0.01*value
  2767. elseif type == "Divide" then
  2768. scaler2 = scaler2 - 0.01/value
  2769. end
  2770. rng.Transparency = rng.Transparency + 0.01
  2771. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2772. end
  2773. rng:Destroy()
  2774. end))
  2775. end
  2776.  
  2777. function wind(type,pos,scale,value,speed)
  2778. local type = type
  2779. local rng = Instance.new("Part", char)
  2780. rng.Anchored = true
  2781. rng.BrickColor = origcolor
  2782. rng.CanCollide = false
  2783. rng.FormFactor = 3
  2784. rng.Name = "Ring"
  2785. rng.Size = Vector3.new(1, 1, 1)
  2786. rng.Transparency = 0
  2787. rng.TopSurface = 0
  2788. rng.BottomSurface = 0
  2789. rng.CFrame = pos
  2790. local rngm = Instance.new("SpecialMesh", rng)
  2791. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2792. rngm.Scale = scale
  2793. local scaler2 = 1
  2794. if type == "Add" then
  2795. scaler2 = 1*value
  2796. elseif type == "Divide" then
  2797. scaler2 = 1/value
  2798. end
  2799. coroutine.resume(coroutine.create(function()
  2800. for i = 0,10,0.1 do
  2801. swait()
  2802. if type == "Add" then
  2803. scaler2 = scaler2 - 0.01*value
  2804. elseif type == "Divide" then
  2805. scaler2 = scaler2 - 0.01/value
  2806. end
  2807. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2808. rng.Transparency = rng.Transparency + 0.01
  2809. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2810. end
  2811. rng:Destroy()
  2812. end))
  2813. end
  2814.  
  2815. function groundwind(type,pos,scale,value,speed)
  2816. local type = type
  2817. local rng = Instance.new("Part", char)
  2818. rng.Anchored = true
  2819. rng.BrickColor = origcolor
  2820. rng.CanCollide = false
  2821. rng.FormFactor = 3
  2822. rng.Name = "Ring"
  2823. rng.Size = Vector3.new(1, 1, 1)
  2824. rng.Transparency = 0
  2825. rng.TopSurface = 0
  2826. rng.BottomSurface = 0
  2827. rng.CFrame = pos
  2828. local rngm = Instance.new("SpecialMesh", rng)
  2829. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2830. rngm.Scale = scale
  2831. local scaler2 = 1
  2832. if type == "Add" then
  2833. scaler2 = 1*value
  2834. elseif type == "Divide" then
  2835. scaler2 = 1/value
  2836. end
  2837. coroutine.resume(coroutine.create(function()
  2838. for i = 0,10,0.1 do
  2839. swait()
  2840. if type == "Add" then
  2841. scaler2 = scaler2 - 0.01*value
  2842. elseif type == "Divide" then
  2843. scaler2 = scaler2 - 0.01/value
  2844. end
  2845. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2846. rng.Transparency = rng.Transparency + 0.01
  2847. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2848. end
  2849. rng:Destroy()
  2850. end))
  2851. end
  2852.  
  2853. function CameraManager()
  2854. if TwoD and not CamInterrupt then
  2855. if Humanoid.Health > 0 then
  2856. Camera.CameraSubject = Humanoid
  2857. Camera.CameraType = "Scriptable"
  2858. Humanoid.AutoRotate = false
  2859. if Booleans.GyroUse then
  2860. Directer.MaxTorque = Vec3(0, huge, 0)
  2861. else
  2862. Directer.MaxTorque = Vec3(0, 0, 0)
  2863. end
  2864. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2865. if Booleans.CamFollow then
  2866. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2867. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2868. else
  2869. CPart.Position = RootPart.Position
  2870. end
  2871. else
  2872. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2873. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2874. end
  2875. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2876. else
  2877. Camera.CameraSubject = Humanoid
  2878. Camera.CameraType = "Custom"
  2879. Controller.Disabled = false
  2880. end
  2881. end
  2882. end
  2883.  
  2884. function sphere(bonuspeed,type,pos,scale,value,color)
  2885. local type = type
  2886. local rng = Instance.new("Part", char)
  2887. rng.Anchored = true
  2888. rng.BrickColor = color
  2889. rng.CanCollide = false
  2890. rng.FormFactor = 3
  2891. rng.Name = "Ring"
  2892. rng.Material = "Neon"
  2893. rng.Size = Vector3.new(1, 1, 1)
  2894. rng.Transparency = 0
  2895. rng.TopSurface = 0
  2896. rng.BottomSurface = 0
  2897. rng.CFrame = pos
  2898. local rngm = Instance.new("SpecialMesh", rng)
  2899. rngm.MeshType = "Sphere"
  2900. rngm.Scale = scale
  2901. if rainbowmode == true then
  2902. rng.Color = Color3.new(r/255,g/255,b/255)
  2903. end
  2904. local scaler2 = 1
  2905. if type == "Add" then
  2906. scaler2 = 1*value
  2907. elseif type == "Divide" then
  2908. scaler2 = 1/value
  2909. end
  2910. coroutine.resume(coroutine.create(function()
  2911. for i = 0,10/bonuspeed,0.1 do
  2912. swait()
  2913. if rainbowmode == true then
  2914. rng.Color = Color3.new(r/255,g/255,b/255)
  2915. end
  2916. if type == "Add" then
  2917. scaler2 = scaler2 - 0.01*value/bonuspeed
  2918. elseif type == "Divide" then
  2919. scaler2 = scaler2 - 0.01/value*bonuspeed
  2920. end
  2921. if chaosmode == true then
  2922. rng.BrickColor = BrickColor.random()
  2923. end
  2924. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2925. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2926. end
  2927. rng:Destroy()
  2928. end))
  2929. end
  2930.  
  2931. function spherew(bonuspeed,type,pos,scale,value,color)
  2932. local type = type
  2933. local rng = Instance.new("Part", workspace)
  2934. rng.Anchored = true
  2935. rng.BrickColor = color
  2936. rng.CanCollide = false
  2937. rng.FormFactor = 3
  2938. rng.Name = "Ring"
  2939. rng.Material = "Neon"
  2940. rng.Size = Vector3.new(1, 1, 1)
  2941. rng.Transparency = 0
  2942. rng.TopSurface = 0
  2943. rng.BottomSurface = 0
  2944. rng.CFrame = pos
  2945. local rngm = Instance.new("SpecialMesh", rng)
  2946. rngm.MeshType = "Sphere"
  2947. rngm.Scale = scale
  2948. if rainbowmode == true then
  2949. rng.Color = Color3.new(r/255,g/255,b/255)
  2950. end
  2951. local scaler2 = 1
  2952. if type == "Add" then
  2953. scaler2 = 1*value
  2954. elseif type == "Divide" then
  2955. scaler2 = 1/value
  2956. end
  2957. coroutine.resume(coroutine.create(function()
  2958. for i = 0,10/bonuspeed,0.1 do
  2959. swait()
  2960. if rainbowmode == true then
  2961. rng.Color = Color3.new(r/255,g/255,b/255)
  2962. end
  2963. if type == "Add" then
  2964. scaler2 = scaler2 - 0.01*value/bonuspeed
  2965. elseif type == "Divide" then
  2966. scaler2 = scaler2 - 0.01/value*bonuspeed
  2967. end
  2968. if chaosmode == true then
  2969. rng.BrickColor = BrickColor.random()
  2970. end
  2971. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2972. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2973. end
  2974. rng:Destroy()
  2975. end))
  2976. end
  2977.  
  2978. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2979. local type = type
  2980. local rng = Instance.new("Part", char)
  2981. rng.Anchored = true
  2982. rng.BrickColor = color
  2983. rng.CanCollide = false
  2984. rng.FormFactor = 3
  2985. rng.Name = "Ring"
  2986. rng.Material = "Neon"
  2987. rng.Size = Vector3.new(1, 1, 1)
  2988. rng.Transparency = 0
  2989. rng.TopSurface = 0
  2990. rng.BottomSurface = 0
  2991. rng.CFrame = pos
  2992. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2993. local rngm = Instance.new("SpecialMesh", rng)
  2994. rngm.MeshType = "Brick"
  2995. rngm.Scale = vt(x1,y1,z1)
  2996. if rainbowmode == true then
  2997. rng.Color = Color3.new(r/255,g/255,b/255)
  2998. end
  2999. local scaler2 = 1
  3000. local speeder = FastSpeed/10
  3001. if type == "Add" then
  3002. scaler2 = 1*value
  3003. elseif type == "Divide" then
  3004. scaler2 = 1/value
  3005. end
  3006. coroutine.resume(coroutine.create(function()
  3007. for i = 0,10/bonuspeed,0.1 do
  3008. swait()
  3009. if rainbowmode == true then
  3010. rng.Color = Color3.new(r/255,g/255,b/255)
  3011. end
  3012. if type == "Add" then
  3013. scaler2 = scaler2 - 0.01*value/bonuspeed
  3014. elseif type == "Divide" then
  3015. scaler2 = scaler2 - 0.01/value*bonuspeed
  3016. end
  3017. if chaosmode == true then
  3018. rng.BrickColor = BrickColor.random()
  3019. end
  3020. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3021. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3022. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3023. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3024. end
  3025. rng:Destroy()
  3026. end))
  3027. end
  3028.  
  3029. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3030. local type = type
  3031. local rng = Instance.new("Part", char)
  3032. rng.Anchored = true
  3033. rng.BrickColor = color
  3034. rng.CanCollide = false
  3035. rng.FormFactor = 3
  3036. rng.Name = "Ring"
  3037. rng.Material = "Neon"
  3038. rng.Size = Vector3.new(1, 1, 1)
  3039. rng.Transparency = 0
  3040. rng.TopSurface = 0
  3041. rng.BottomSurface = 0
  3042. rng.CFrame = pos
  3043. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3044. local rngm = Instance.new("SpecialMesh", rng)
  3045. rngm.MeshType = "Brick"
  3046. rngm.Scale = vt(x1,y1,z1)
  3047. if rainbowmode == true then
  3048. rng.Color = Color3.new(r/255,g/255,b/255)
  3049. end
  3050. local scaler2 = 0
  3051. local speeder = FastSpeed/10
  3052. if type == "Add" then
  3053. scaler2 = 1*value
  3054. elseif type == "Divide" then
  3055. scaler2 = 1/value
  3056. end
  3057. coroutine.resume(coroutine.create(function()
  3058. for i = 0,10/bonuspeed,0.1 do
  3059. swait()
  3060. if rainbowmode == true then
  3061. rng.Color = Color3.new(r/255,g/255,b/255)
  3062. end
  3063. if type == "Add" then
  3064. scaler2 = scaler2 - 0.01*value/bonuspeed
  3065. elseif type == "Divide" then
  3066. scaler2 = scaler2 - 0.01/value*bonuspeed
  3067. end
  3068. if chaosmode == true then
  3069. rng.BrickColor = BrickColor.random()
  3070. end
  3071. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3072. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3073. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3074. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3075. end
  3076. rng:Destroy()
  3077. end))
  3078. end
  3079.  
  3080. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3081. local type = type
  3082. local rng = Instance.new("Part", workspace)
  3083. rng.Anchored = true
  3084. rng.BrickColor = color
  3085. rng.CanCollide = false
  3086. rng.FormFactor = 3
  3087. rng.Name = "Ring"
  3088. rng.Material = "Neon"
  3089. rng.Size = Vector3.new(1, 1, 1)
  3090. rng.Transparency = 0
  3091. rng.TopSurface = 0
  3092. rng.BottomSurface = 0
  3093. rng.CFrame = pos
  3094. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3095. local rngm = Instance.new("SpecialMesh", rng)
  3096. rngm.MeshType = "Sphere"
  3097. rngm.Scale = vt(x1,y1,z1)
  3098. if rainbowmode == true then
  3099. rng.Color = Color3.new(r/255,g/255,b/255)
  3100. end
  3101. local scaler2 = 1
  3102. local speeder = FastSpeed
  3103. if type == "Add" then
  3104. scaler2 = 1*value
  3105. elseif type == "Divide" then
  3106. scaler2 = 1/value
  3107. end
  3108. coroutine.resume(coroutine.create(function()
  3109. for i = 0,10/bonuspeed,0.1 do
  3110. swait()
  3111. if rainbowmode == true then
  3112. rng.Color = Color3.new(r/255,g/255,b/255)
  3113. end
  3114. if type == "Add" then
  3115. scaler2 = scaler2 - 0.01*value/bonuspeed
  3116. elseif type == "Divide" then
  3117. scaler2 = scaler2 - 0.01/value*bonuspeed
  3118. end
  3119. if chaosmode == true then
  3120. rng.BrickColor = BrickColor.random()
  3121. end
  3122. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3123. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3124. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3125. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3126. end
  3127. rng:Destroy()
  3128. end))
  3129. end
  3130. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3131. local type = type
  3132. local rng = Instance.new("Part", char)
  3133. rng.Anchored = true
  3134. rng.BrickColor = color
  3135. rng.CanCollide = false
  3136. rng.FormFactor = 3
  3137. rng.Name = "Ring"
  3138. rng.Material = "Neon"
  3139. rng.Size = Vector3.new(1, 1, 1)
  3140. rng.Transparency = 0
  3141. rng.TopSurface = 0
  3142. rng.BottomSurface = 0
  3143. rng.CFrame = pos
  3144. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3145. local rngm = Instance.new("SpecialMesh", rng)
  3146. rngm.MeshType = "Sphere"
  3147. rngm.Scale = vt(x1,y1,z1)
  3148. if rainbowmode == true then
  3149. rng.Color = Color3.new(r/255,g/255,b/255)
  3150. end
  3151. local scaler2 = 1
  3152. local speeder = FastSpeed
  3153. if type == "Add" then
  3154. scaler2 = 1*value
  3155. elseif type == "Divide" then
  3156. scaler2 = 1/value
  3157. end
  3158. coroutine.resume(coroutine.create(function()
  3159. for i = 0,10/bonuspeed,0.1 do
  3160. swait()
  3161. if rainbowmode == true then
  3162. rng.Color = Color3.new(r/255,g/255,b/255)
  3163. end
  3164. if type == "Add" then
  3165. scaler2 = scaler2 - 0.01*value/bonuspeed
  3166. elseif type == "Divide" then
  3167. scaler2 = scaler2 - 0.01/value*bonuspeed
  3168. end
  3169. if chaosmode == true then
  3170. rng.BrickColor = BrickColor.random()
  3171. end
  3172. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3173. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3174. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3175. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3176. end
  3177. rng:Destroy()
  3178. end))
  3179. end
  3180.  
  3181.  
  3182. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3183. local type = type
  3184. local rng = Instance.new("Part", char)
  3185. rng.Anchored = true
  3186. rng.BrickColor = color
  3187. rng.CanCollide = false
  3188. rng.FormFactor = 3
  3189. rng.Name = "Ring"
  3190. rng.Material = "Neon"
  3191. rng.Size = Vector3.new(1, 1, 1)
  3192. rng.Transparency = 1
  3193. rng.TopSurface = 0
  3194. rng.BottomSurface = 0
  3195. rng.CFrame = pos
  3196. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3197. local rngm = Instance.new("SpecialMesh", rng)
  3198. rngm.MeshType = "Sphere"
  3199. rngm.Scale = vt(x1,y1,z1)
  3200. if rainbowmode == true then
  3201. rng.Color = Color3.new(r/255,g/255,b/255)
  3202. end
  3203. local scaler2 = 1
  3204. local speeder = FastSpeed
  3205. if type == "Add" then
  3206. scaler2 = 1*value
  3207. elseif type == "Divide" then
  3208. scaler2 = 1/value
  3209. end
  3210. coroutine.resume(coroutine.create(function()
  3211. for i = 0,10/bonuspeed,0.1 do
  3212. swait()
  3213. if rainbowmode == true then
  3214. rng.Color = Color3.new(r/255,g/255,b/255)
  3215. end
  3216. if type == "Add" then
  3217. scaler2 = scaler2 - 0.01*value/bonuspeed
  3218. elseif type == "Divide" then
  3219. scaler2 = scaler2 - 0.01/value*bonuspeed
  3220. end
  3221. if chaosmode == true then
  3222. rng.BrickColor = BrickColor.random()
  3223. end
  3224. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3225. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3226. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3227. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3228. end
  3229. rng:Destroy()
  3230. end))
  3231. end
  3232.  
  3233. function dmg(dude)
  3234. if dude.Name ~= Character then
  3235. local bgf = Instance.new("BodyGyro",dude.Head)
  3236. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3237. local val = Instance.new("BoolValue",dude)
  3238. val.Name = "IsHit"
  3239. local ds = coroutine.wrap(function()
  3240. dude:WaitForChild("Head"):BreakJoints()
  3241. wait(0.5)
  3242. targetted = nil
  3243. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3244. coroutine.resume(coroutine.create(function()
  3245. for i, v in pairs(dude:GetChildren()) do
  3246. if v:IsA("Accessory") then
  3247. v:Destroy()
  3248. end
  3249. if v:IsA("Humanoid") then
  3250. v:Destroy()
  3251. end
  3252. if v:IsA("CharacterMesh") then
  3253. v:Destroy()
  3254. end
  3255. if v:IsA("Model") then
  3256. v:Destroy()
  3257. end
  3258. if v:IsA("Part") or v:IsA("MeshPart") then
  3259. for x, o in pairs(v:GetChildren()) do
  3260. if o:IsA("Decal") then
  3261. o:Destroy()
  3262. end
  3263. end
  3264. coroutine.resume(coroutine.create(function()
  3265. v.Material = "Neon"
  3266. v.CanCollide = false
  3267. local bld = Instance.new("ParticleEmitter",v)
  3268. bld.LightEmission = 1
  3269. bld.Texture = "rbxassetid://284205403"
  3270. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  3271. bld.Rate = 50
  3272. bld.Lifetime = NumberRange.new(1)
  3273. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3274. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3275. bld.Speed = NumberRange.new(0,0)
  3276. bld.VelocitySpread = 50000
  3277. bld.Rotation = NumberRange.new(-500,500)
  3278. bld.RotSpeed = NumberRange.new(-500,500)
  3279. local sbs = Instance.new("BodyPosition", v)
  3280. sbs.P = 3000
  3281. sbs.D = 1000
  3282. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3283. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3284. v.Color = Color3.new(1,1,1)
  3285. coroutine.resume(coroutine.create(function()
  3286. for i = 0, 49 do
  3287. swait(1)
  3288. v.Transparency = v.Transparency + 0.02
  3289. end
  3290. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3291. bld.Speed = NumberRange.new(1,5)
  3292. bld.Acceleration = vt(0,10,0)
  3293. wait(0.5)
  3294. bld.Enabled = false
  3295. wait(3)
  3296. v:Destroy()
  3297. dude:Destroy()
  3298. end))
  3299. end))
  3300. end
  3301. end
  3302. end))
  3303. end)
  3304. ds()
  3305. end
  3306. end
  3307.  
  3308.  
  3309. function FindNearestHead(Position, Distance, SinglePlayer)
  3310. if SinglePlayer then
  3311. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3312. end
  3313. local List = {}
  3314. for i, v in pairs(workspace:GetChildren()) do
  3315. if v:IsA("Model") then
  3316. if v:findFirstChild("Head") then
  3317. if v ~= Character then
  3318. if (v.Head.Position - Position).magnitude <= Distance then
  3319. table.insert(List, v)
  3320. end
  3321. end
  3322. end
  3323. end
  3324. end
  3325. return List
  3326. end
  3327.  
  3328. function FaceMouse()
  3329. Cam = workspace.CurrentCamera
  3330. return {
  3331. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3332. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3333. }
  3334. end
  3335.  
  3336. function FaceMouse2()
  3337. Cam = workspace.CurrentCamera
  3338. return {
  3339. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3340. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3341. }
  3342. end
  3343.  
  3344. local ModeOfGlitch = 1
  3345. -- Functions are ready.
  3346. local storehumanoidWS = 16
  3347.  
  3348. function Blink()
  3349. for i = 0, 14 do
  3350. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3351. end
  3352. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3353. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3354. CameraEnshaking(2,10)
  3355. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3356. if v:FindFirstChild('Head') then
  3357. end
  3358. end
  3359. for i = 0, 14 do
  3360. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3361. end
  3362. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3363. end
  3364.  
  3365. function ExtinctiveHeartbreak()
  3366. local targetted = nil
  3367. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3368. targetted = mouse.Target.Parent
  3369. end
  3370. if targetted ~= nil then
  3371. attack = true
  3372. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3373. for i = 0, 9 do
  3374. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3375. end
  3376. for i = 0, 24 do
  3377. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3378. end
  3379. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3380. local originalpos = root.CFrame
  3381. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3382. for i = 0, 9 do
  3383. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3384. end
  3385. for i = 0, 24 do
  3386. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3387. end
  3388. hum.WalkSpeed = 0
  3389. targetted.Head.Anchored = true
  3390. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3391. for i = 0,2,0.1 do
  3392. swait()
  3393. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3394. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3395. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  3396. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3397. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3398. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  3399. end
  3400. coroutine.resume(coroutine.create(function()
  3401. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3402. bld.LightEmission = 0.1
  3403. bld.Texture = "rbxassetid://284205403"
  3404. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3405. bld.Rate = 500
  3406. bld.Lifetime = NumberRange.new(1)
  3407. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3408. bld.Acceleration = vt(0,-25,0)
  3409. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3410. bld.Speed = NumberRange.new(10,50)
  3411. bld.EmissionDirection = "Front"
  3412. bld.VelocitySpread = 25
  3413. bld.Rotation = NumberRange.new(-500,500)
  3414. bld.RotSpeed = NumberRange.new(-500,500)
  3415. end))
  3416. coroutine.resume(coroutine.create(function()
  3417. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3418. bld.LightEmission = 0.1
  3419. bld.Texture = "rbxassetid://284205403"
  3420. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3421. bld.Rate = 500
  3422. bld.Lifetime = NumberRange.new(1)
  3423. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3424. bld.Acceleration = vt(0,-25,0)
  3425. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3426. bld.Speed = NumberRange.new(10,50)
  3427. bld.EmissionDirection = "Front"
  3428. bld.VelocitySpread = 25
  3429. bld.Rotation = NumberRange.new(-500,500)
  3430. bld.RotSpeed = NumberRange.new(-500,500)
  3431. end))
  3432. CameraEnshaking(5,5)
  3433. game:GetService("Debris"):AddItem(bld,3)
  3434. dmg(targetted)
  3435. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3436. for i = 0,1,0.1 do
  3437. swait()
  3438. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3439. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3442. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3443. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  3444. end
  3445. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3446. for i = 0, 9 do
  3447. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3448. end
  3449. for i = 0, 24 do
  3450. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3451. end
  3452. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3453. root.CFrame = originalpos
  3454. for i = 0, 9 do
  3455. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3456. end
  3457. for i = 0, 24 do
  3458. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3459. end
  3460. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3461. bld.Enabled = false
  3462. attack = false
  3463. hum.WalkSpeed = storehumanoidWS
  3464. end
  3465. end
  3466. function MeteorStrike()
  3467. attack = true
  3468. for i = 0, 2, 0.1 do
  3469. swait()
  3470. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3471. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3472. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3473. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3474. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3475. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3476. end
  3477. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3478. for i=1,20 do
  3479. sphereMKCharge(5,-0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3480. swait()
  3481. end
  3482. swait(30)
  3483. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3484. for i =1,20 do
  3485. sphereMKw(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  3486. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3487. end
  3488. for i = 0,2,0.1 do
  3489. swait()
  3490. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  3491. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  3492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  3493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  3494. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  3495. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  3496. end
  3497. for i =1,20 do
  3498. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3499. end
  3500. text.TextTransparency = 1
  3501. text.TextStrokeTransparency = 1
  3502. tr2.Enabled = false
  3503. tr1.Enabled = false
  3504. tr3.Enabled = false
  3505. tl1.Enabled = false
  3506. tl2.Enabled = false
  3507. tl3.Enabled = false
  3508. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3509. eff = false
  3510. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3511. local invtab = {}
  3512. local function search(targ)
  3513. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3514. table.insert(invtab,targ)
  3515. end
  3516. for i,v in pairs(targ:GetChildren()) do
  3517. search(v)
  3518. end
  3519. end
  3520. search(plr.Character)
  3521. local frm = 0
  3522. local frmcon
  3523. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3524. if frm < 10 then
  3525. for i,v in pairs(invtab) do
  3526. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3527. v.Transparency = v.Transparency + 0.1
  3528. end
  3529. end
  3530. frm = frm + 1
  3531. else
  3532. frmcon:disconnect()
  3533. end
  3534. end)
  3535. swait(200)
  3536. text.TextTransparency = 0
  3537. text.TextStrokeTransparency = 0
  3538. tr2.Enabled = false
  3539. tr1.Enabled = false
  3540. tr3.Enabled = false
  3541. tl1.Enabled = false
  3542. tl2.Enabled = false
  3543. tl3.Enabled = false
  3544. eff = true
  3545. for i =1,20 do
  3546. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3547. end
  3548. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3549. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3550. local invtab = {}
  3551. local function search(targ)
  3552. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3553. table.insert(invtab,targ)
  3554. end
  3555. for i,v in pairs(targ:GetChildren()) do
  3556. search(v)
  3557. end
  3558. end
  3559. search(plr.Character)
  3560. local frm = 0
  3561. local frmcon
  3562. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3563. if frm < 10 then
  3564. for i,v in pairs(invtab) do
  3565. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3566. v.Transparency = v.Transparency - 0.1
  3567. end
  3568. end
  3569. frm = frm + 1
  3570. else
  3571. frmcon:disconnect()
  3572. end
  3573. end)
  3574. swait(5)
  3575. for i = 0, 2, 0.1 do
  3576. swait()
  3577. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3578. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3579. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3580. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3581. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3582. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3583. end
  3584. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3585. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3586. MagniDamage(root, 30, 65,90, 0, "Normal")
  3587. for i =1,20 do
  3588. sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3589. end
  3590. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3591. for i =1,20 do
  3592. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3593. end
  3594. swait(20)
  3595. attack = false
  3596. tr2.Enabled = true
  3597. tr1.Enabled = true
  3598. tr3.Enabled = true
  3599. tl1.Enabled = true
  3600. tl2.Enabled = true
  3601. tl3.Enabled = true
  3602. end
  3603. function FinalCalam()
  3604. attack = true
  3605. hum.WalkSpeed = 0
  3606. local orb = Instance.new("Part", char)
  3607. orb.Anchored = true
  3608. orb.BrickColor = MAINRUINCOLOR
  3609. orb.CanCollide = false
  3610. orb.FormFactor = 3
  3611. orb.Name = "Ring"
  3612. orb.Material = "Neon"
  3613. orb.Size = Vector3.new(1, 1, 1)
  3614. orb.Transparency = 0
  3615. orb.TopSurface = 0
  3616. orb.BottomSurface = 0
  3617. local orbm = Instance.new("SpecialMesh", orb)
  3618. orbm.MeshType = "Sphere"
  3619. orbm.Name = "SizeMesh"
  3620. orbm.Scale = vt(0,0,0)
  3621. local scaled = 0.1
  3622. local posid = 0
  3623. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3624. for i = 0, 5, 0.1 do
  3625. swait()
  3626. scaled = scaled - 0.001
  3627. posid = posid - scaled
  3628. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3629. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3630. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3631. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  3632. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3634. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3635. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3636. end
  3637. swait(60)
  3638. for i =1,3 do
  3639. swait(30)
  3640. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3641. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3642. end
  3643. swait(30)
  3644. for i = 0, 2, 0.1 do
  3645. swait()
  3646. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3647. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3648. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3649. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3651. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3652. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3653. end
  3654. swait(60)
  3655. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3656. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3657. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3658. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3659. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3660. if v:FindFirstChild('Head') then
  3661. dmg(v)
  3662. end
  3663. end
  3664. for i = 1,20 do
  3665. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0)
  3666. for i = 0, 10 do
  3667. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
  3668. end
  3669. end
  3670. orb:Remove()
  3671. attack = false
  3672. hum.WalkSpeed = storehumanoidWS
  3673. end
  3674. function PureBomb()
  3675. attack = true
  3676.  
  3677. local orb = Instance.new("Part", char)
  3678. orb.Anchored = true
  3679. orb.BrickColor = BrickColor.new("Toothpaste")
  3680. orb.CanCollide = false
  3681. orb.FormFactor = 3
  3682. orb.Name = "Ring"
  3683. orb.Material = "Neon"
  3684. orb.Size = Vector3.new(1, 1, 1)
  3685. orb.Transparency = 0
  3686. orb.TopSurface = 0
  3687. orb.BottomSurface = 0
  3688. local orbm = Instance.new("SpecialMesh", orb)
  3689. orbm.MeshType = "Sphere"
  3690. orbm.Name = "SizeMesh"
  3691. orbm.Scale = vt(0,0,0)
  3692. local scaled = 0.1
  3693. local posid = 0
  3694. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3695. for i = 0, 5, 0.1 do
  3696. swait()
  3697. scaled = scaled - 0.001
  3698. posid = posid - scaled
  3699. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3700. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3701. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3702. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3703. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3704. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3705. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3706. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3707. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3708. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3709. end
  3710. for i = 0, 2, 0.1 do
  3711. swait()
  3712. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3713. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3714. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3715. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3716. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3717. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3718. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3719. end
  3720. coroutine.resume(coroutine.create(function()
  3721. orb.Anchored = false
  3722. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3723. local a = Instance.new("Part",workspace)
  3724. a.Name = "Direction"
  3725. a.Anchored = true
  3726. a.BrickColor = bc("Bright red")
  3727. a.Material = "Neon"
  3728. a.Transparency = 1
  3729. a.CanCollide = false
  3730. local ray = Ray.new(
  3731. orb.CFrame.p, -- origin
  3732. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3733. )
  3734. local ignore = orb
  3735. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3736. a.BottomSurface = 10
  3737. a.TopSurface = 10
  3738. local distance = (orb.CFrame.p - position).magnitude
  3739. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3740. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3741. orb.CFrame = a.CFrame
  3742. a:Destroy()
  3743. local bv = Instance.new("BodyVelocity")
  3744. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3745. bv.velocity = orb.CFrame.lookVector*125
  3746. bv.Parent = orb
  3747. local hitted = false
  3748. game:GetService("Debris"):AddItem(orb, 15)
  3749. wait()
  3750. local hit =orb.Touched:connect(function(hit)
  3751. if hitted == false then
  3752. hitted = true
  3753. CameraEnshaking(10,2.5)
  3754. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3755. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3756. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3757. for i = 0, 49 do
  3758. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3759. end
  3760. for i = 0, 9 do
  3761. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3762. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3763. end
  3764. orb.Anchored = true
  3765. orb.Transparency = 1
  3766. wait(8)
  3767. orb:Destroy()
  3768. end
  3769. end)
  3770. end))
  3771. for i = 0, 1, 0.1 do
  3772. swait()
  3773. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3774. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3775. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3776. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3777. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3778. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3779. end
  3780. attack = false
  3781. end
  3782.  
  3783. function ChaosGroundStrike()
  3784. attack = true
  3785. for i = 0, 2, 0.1 do
  3786. swait()
  3787. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3788. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3789. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3790. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3791. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3792. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3793. end
  3794. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3795. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3796. CameraEnshaking(4,12)
  3797. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3798. if v:FindFirstChild('Head') then
  3799. dmg(v)
  3800. end
  3801. end
  3802. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3803. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3804. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3805. for i = 0, 2, 0.1 do
  3806. swait()
  3807. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3808. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3809. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3810. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3811. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3812. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3813. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3814. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3815. end
  3816. attack = false
  3817. end
  3818.  
  3819. function Starfall()
  3820. attack = true
  3821. hum.WalkSpeed = 0
  3822. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3823. for i = 0, 5, 0.1 do
  3824. swait()
  3825. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3826. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3827. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3828. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3829. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3830. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3831. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3832. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3833. end
  3834. local Overed = false
  3835. CameraEnshaking(2,20)
  3836. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3837. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3838. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3839. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3840. local orb = Instance.new("Part", char)
  3841. orb.Anchored = true
  3842. orb.BrickColor = BrickColor.new("Toothpaste")
  3843. orb.CanCollide = false
  3844. orb.FormFactor = 3
  3845. orb.Name = "Remenant"
  3846. orb.Material = "Neon"
  3847. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3848. orb.Size = Vector3.new(1, 1, 1)
  3849. orb.Transparency = 1
  3850. orb.TopSurface = 0
  3851. orb.BottomSurface = 0
  3852. hum.WalkSpeed = storehumanoidWS
  3853. coroutine.resume(coroutine.create(function()
  3854. for i = 0, 9 do
  3855. swait(10)
  3856. local lb = Instance.new("Part")
  3857. lb.Color = MAINRUINCOLOR.Color
  3858. lb.CanCollide = false
  3859. lb.Material = "Neon"
  3860. lb.Anchored = true
  3861. lb.TopSurface = 0
  3862. lb.BottomSurface = 0
  3863. lb.Transparency = 0
  3864. lb.Size = vt(1,1,1)
  3865. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3866. lb.Anchored = false
  3867. lb.Parent = char
  3868. local thingery = Instance.new("SpecialMesh",lb)
  3869. thingery.MeshType = "Sphere"
  3870. thingery.Scale = vt(20,20,20)
  3871. game:GetService("Debris"):AddItem(lb, 10)
  3872. local bv = Instance.new("BodyVelocity")
  3873. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3874. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3875. bv.Parent = lb
  3876. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3877. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3878. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3879. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3880. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3881. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3882. local hitted = false
  3883. coroutine.resume(coroutine.create(function()
  3884. while true do
  3885. swait(1)
  3886. if lb.Parent ~= nil and hitted == false then
  3887. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3888. elseif lb.Parent == nil then
  3889. break
  3890. end
  3891. end
  3892. end))
  3893.  
  3894. game:GetService("Debris"):AddItem(a, 0.1)
  3895.  
  3896. coroutine.resume(coroutine.create(function()
  3897. swait(1)
  3898. lb.Touched:connect(function(hit)
  3899. if hitted == false then
  3900. hitted = true
  3901. lb.Transparency = 1
  3902. lb.Anchored = true
  3903. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3904. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3905. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3906. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3907. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3908. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3909. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3910. CameraEnshaking(1,5)
  3911. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3912. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3913. for i = 0, 9 do
  3914. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3915. end
  3916. for i = 0, 49 do
  3917. swait()
  3918. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3919. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3920. end
  3921. end
  3922. end)
  3923. end))
  3924. end
  3925. Overed = true
  3926. orb:Destroy()
  3927. end))
  3928.  
  3929. attack = false
  3930. end
  3931.  
  3932. function StarfallEX()
  3933. attack = true
  3934. hum.WalkSpeed = 0
  3935. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3936. for i = 0, 5, 0.1 do
  3937. swait()
  3938. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3939. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3940. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3941. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3942. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3943. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3944. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3945. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3946. end
  3947. local Overed = false
  3948. CameraEnshaking(2,20)
  3949. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3950. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3951. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3952. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3953. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3954. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3955. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3956. local orb = Instance.new("Part", char)
  3957. orb.Anchored = true
  3958. orb.BrickColor = BrickColor.new("Toothpaste")
  3959. orb.CanCollide = false
  3960. orb.FormFactor = 3
  3961. orb.Name = "Remenant"
  3962. orb.Material = "Neon"
  3963. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3964. orb.Size = Vector3.new(1, 1, 1)
  3965. orb.Transparency = 1
  3966. orb.TopSurface = 0
  3967. orb.BottomSurface = 0
  3968. hum.WalkSpeed = storehumanoidWS
  3969. coroutine.resume(coroutine.create(function()
  3970. for i = 0, 9 do
  3971. swait(10)
  3972. local lb = Instance.new("Part")
  3973. lb.Color = MAINRUINCOLOR.Color
  3974. lb.CanCollide = false
  3975. lb.Material = "Neon"
  3976. lb.Anchored = true
  3977. lb.TopSurface = 0
  3978. lb.BottomSurface = 0
  3979. lb.Transparency = 0
  3980. lb.Size = vt(1,1,1)
  3981. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3982. lb.Anchored = false
  3983. lb.Parent = char
  3984. local thingery = Instance.new("SpecialMesh",lb)
  3985. thingery.MeshType = "Sphere"
  3986. thingery.Scale = vt(20,20,20)
  3987. game:GetService("Debris"):AddItem(lb, 10)
  3988. local bv = Instance.new("BodyVelocity")
  3989. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3990. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3991. bv.Parent = lb
  3992. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3993. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3994. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3995. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3996. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3997. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3998. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3999. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4000. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4001. local hitted = false
  4002. coroutine.resume(coroutine.create(function()
  4003. while true do
  4004. swait(1)
  4005. if lb.Parent ~= nil and hitted == false then
  4006. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  4007. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  4008. elseif lb.Parent == nil then
  4009. break
  4010. end
  4011. end
  4012. end))
  4013.  
  4014. game:GetService("Debris"):AddItem(a, 0.1)
  4015.  
  4016. coroutine.resume(coroutine.create(function()
  4017. swait(1)
  4018. lb.Touched:connect(function(hit)
  4019. if hitted == false then
  4020. hitted = true
  4021. lb.Transparency = 1
  4022. lb.Anchored = true
  4023. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4024. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4025. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4026. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4027. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4028. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4029. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4030. CameraEnshaking(10,5)
  4031. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4032. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4033. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4034. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4035. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4036. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4037. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4038. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4039. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4040. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4041. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4042. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4043. for i = 0, 9 do
  4044. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4045. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4046. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4047. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4048. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4049. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4050. end
  4051. for i = 0, 49 do
  4052. swait()
  4053. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  4054. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  4055. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  4056. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  4057. end
  4058. end
  4059. end)
  4060. end))
  4061. end
  4062. Overed = true
  4063. orb:Destroy()
  4064. end))
  4065.  
  4066. attack = false
  4067. end
  4068.  
  4069. function StarDivision()
  4070. attack = true
  4071. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4072. for i = 0, 2, 0.1 do
  4073. swait()
  4074. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4075. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  4076. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  4077. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
  4078. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  4079. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4080. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  4081. end
  4082. local orb = Instance.new("Part", char)
  4083. orb.BrickColor = MAINRUINCOLOR
  4084. orb.CanCollide = false
  4085. orb.FormFactor = 3
  4086. orb.Name = "Ring"
  4087. orb.Material = "Neon"
  4088. orb.Size = Vector3.new(1, 1, 1)
  4089. orb.Transparency = 0
  4090. orb.TopSurface = 0
  4091. orb.BottomSurface = 0
  4092. local orbm = Instance.new("SpecialMesh", orb)
  4093. orbm.MeshType = "Sphere"
  4094. orbm.Name = "SizeMesh"
  4095. orbm.Scale = vt(2,2,2)
  4096. local a = Instance.new("Part",workspace)
  4097. a.Name = "Direction"
  4098. a.Anchored = true
  4099. a.BrickColor = bc("Bright red")
  4100. a.Material = "Neon"
  4101. a.Transparency = 1
  4102. a.CanCollide = false
  4103. local ray = Ray.new(
  4104. sorb.CFrame.p, -- origin
  4105. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4106. )
  4107. local ignore = sorb
  4108. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4109. a.BottomSurface = 10
  4110. a.TopSurface = 10
  4111. local distance = (sorb.CFrame.p - position).magnitude
  4112. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4113. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4114. orb.CFrame = a.CFrame
  4115. a:Destroy()
  4116. local bv = Instance.new("BodyVelocity")
  4117. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4118. bv.velocity = orb.CFrame.lookVector*100
  4119. bv.Parent = orb
  4120. local hitted = false
  4121. game:GetService("Debris"):AddItem(orb, 10)
  4122. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4123. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4124. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4125. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4126. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4127. coroutine.resume(coroutine.create(function()
  4128. while true do
  4129. swait(1)
  4130. if orb.Parent ~= nil and hitted == false then
  4131. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  4132. elseif orb.Parent == nil then
  4133. break
  4134. end
  4135. end
  4136. end))
  4137. coroutine.resume(coroutine.create(function()
  4138. swait(1)
  4139. orb.Touched:connect(function(hit)
  4140. if hitted == false then
  4141. hitted = true
  4142. game:GetService("Debris"):AddItem(orb, 5)
  4143. orb.Transparency = 1
  4144. orb.Anchored = true
  4145. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4146. elocacenter.Anchored = true
  4147. elocacenter.CFrame = orb.CFrame
  4148. elocacenter.Orientation = vt(0,0,0)
  4149. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4150. eloca1.Anchored = true
  4151. eloca1.CFrame = elocacenter.CFrame
  4152. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4153. eloca2.Anchored = true
  4154. eloca2.CFrame = elocacenter.CFrame
  4155. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4156. eloca3.Anchored = true
  4157. eloca3.CFrame = elocacenter.CFrame
  4158. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4159. eloca4.Anchored = true
  4160. eloca4.CFrame = elocacenter.CFrame
  4161. local lookavec = 0
  4162. local speeds = 0
  4163. CameraEnshaking(1,1)
  4164. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4165. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4166. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4167. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4168. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4169. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4170. for i = 0, 99 do
  4171. swait()
  4172. lookavec = lookavec + 1
  4173. speeds = speeds + 0.1
  4174. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4175. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4176. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4177.  
  4178. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4179. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4180.  
  4181. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4182. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4183.  
  4184. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4185. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4186. end
  4187.  
  4188. for i = 0, 149 do
  4189. swait()
  4190. speeds = speeds + 0.1
  4191. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4192. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4193. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4194.  
  4195. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4196. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4197.  
  4198. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4199. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4200.  
  4201. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4202. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4203. end
  4204. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4205. if v:FindFirstChild('Head') then
  4206. dmg(v)
  4207. end
  4208. end
  4209. CameraEnshaking(7,30)
  4210. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4211. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4212. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4213. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4214. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4215. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4216. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4217. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4218. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4219. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4220. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4221. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4222. for i = 0, 24 do
  4223. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4224. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4225. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4226. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4227. end
  4228. coroutine.resume(coroutine.create(function()
  4229. for i = 0, 499 do
  4230. swait(1)
  4231. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4232. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4233. end
  4234. elocacenter:Destroy()
  4235. eloca1:Destroy()
  4236. eloca2:Destroy()
  4237. eloca3:Destroy()
  4238. eloca4:Destroy()
  4239. end))
  4240. end
  4241. end)
  4242. end))
  4243. attack = false
  4244. end
  4245.  
  4246.  
  4247. function UniversalCollapse()
  4248. attack = true
  4249. local speedearn = 0
  4250. hum.WalkSpeed = 0
  4251. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4252. for i = 0, 10, 0.1 do
  4253. swait()
  4254. speedearn = speedearn + 0.1
  4255. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4256. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4257. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4258. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4259. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4260. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4261. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4264. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4265. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4266. end
  4267. CameraEnshaking(5,45)
  4268. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4269. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4270. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4271. if v:FindFirstChild('Head') then
  4272. dmg(v)
  4273. end
  4274. end
  4275. hum.WalkSpeed = storehumanoidWS
  4276. attack = false
  4277. end
  4278. function ChaosBegone()
  4279. attack = true
  4280. local speedearn = 0
  4281. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4282. for i = 0, 10, 0.1 do
  4283. swait()
  4284. speedearn = speedearn + 0.1
  4285. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4286. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4287. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4288. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4289. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4290. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4291. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4292. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4293. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4294. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4295. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4296. end
  4297. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4298. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4299. CameraEnshaking(5,25)
  4300. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4301. if v:FindFirstChild('Head') then
  4302. dmg(v)
  4303. end
  4304. end
  4305. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4306. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4307. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4308. for i = 0, 3, 0.1 do
  4309. swait()
  4310. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4311. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4312. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4313. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4314. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4315. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4316. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4317. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4318. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4319. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4320. end
  4321. attack = false
  4322. end
  4323.  
  4324. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4325. local orb = Instance.new("Part", char)
  4326. orb.Anchored = true
  4327. orb.BrickColor = color
  4328. orb.CanCollide = false
  4329. orb.FormFactor = 3
  4330. orb.Name = "Ring"
  4331. orb.Material = "Neon"
  4332. orb.Size = Vector3.new(1, 1, 1)
  4333. orb.Transparency = 0
  4334. orb.TopSurface = 0
  4335. orb.BottomSurface = 0
  4336. local orbm = Instance.new("SpecialMesh", orb)
  4337. orbm.MeshType = "Sphere"
  4338. orb.CFrame = positted
  4339. orbm.Name = "SizeMesh"
  4340. orbm.Scale = vt(1,1,1)
  4341. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4342. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4343. --[[for i = 0, 2 do
  4344. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4345. end]]--
  4346. coroutine.resume(coroutine.create(function()
  4347. wait(timer)
  4348. CameraEnshaking(3,ShakePower)
  4349. orb.Transparency = 1
  4350. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4351. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4352. --[[for i = 0, 4 do
  4353. sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4354. end]]--
  4355. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4356. wait(3)
  4357. orb:Destroy()
  4358. end))
  4359. end
  4360.  
  4361. function orb_spawn(positted,timer)
  4362. local randomcol = math.random(1,2)
  4363. local orb = Instance.new("Part", char)
  4364. orb.Anchored = true
  4365. if randomcol == 1 then
  4366. orb.BrickColor = BrickColor.new("White")
  4367. elseif randomcol == 2 then
  4368. orb.BrickColor = BrickColor.new("Really black")
  4369. end
  4370. orb.CanCollide = false
  4371. orb.FormFactor = 3
  4372. orb.Name = "Ring"
  4373. orb.Material = "Neon"
  4374. orb.Size = Vector3.new(1, 1, 1)
  4375. orb.Transparency = 0
  4376. orb.TopSurface = 0
  4377. orb.BottomSurface = 0
  4378. local orbm = Instance.new("SpecialMesh", orb)
  4379. orbm.MeshType = "Sphere"
  4380. orb.CFrame = positted
  4381. orbm.Name = "SizeMesh"
  4382. orbm.Scale = vt(1,1,1)
  4383. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4384. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4385. for i = 0, 2 do
  4386. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4387. end
  4388. coroutine.resume(coroutine.create(function()
  4389. wait(timer)
  4390. CameraEnshaking(3,2)
  4391. orb.Transparency = 1
  4392. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4393. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4394. for i = 0, 4 do
  4395. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4396. end
  4397. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4398. wait(3)
  4399. orb:Destroy()
  4400. end))
  4401. end
  4402.  
  4403. function scattercorrupt()
  4404. attack = true
  4405. local rot = 0
  4406. local randomrotations = math.random(1,2)
  4407. local lookv = 2.5
  4408. local power = 5
  4409. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4410. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4411. for i = 0, 9 do
  4412. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4413. end
  4414. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4415. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4416. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4417. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4418. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4419. local hite = Instance.new("Part", char)
  4420. hite.Anchored = true
  4421. hite.CanCollide = false
  4422. hite.FormFactor = 3
  4423. hite.Name = "Ring"
  4424. hite.Material = "Neon"
  4425. hite.Size = Vector3.new(1, 1, 1)
  4426. hite.Transparency = 1
  4427. hite.TopSurface = 0
  4428. hite.BottomSurface = 0
  4429. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4430. local rem = Instance.new("Part", char)
  4431. rem.Anchored = true
  4432. rem.CanCollide = false
  4433. rem.FormFactor = 3
  4434. rem.Name = "Ring"
  4435. rem.Material = "Neon"
  4436. rem.Size = Vector3.new(1, 1, 1)
  4437. rem.Transparency = 1
  4438. rem.TopSurface = 0
  4439. rem.BottomSurface = 0
  4440. rem.CFrame = hite.CFrame
  4441. local rem2 = rem:Clone()
  4442. rem2.Parent = char
  4443. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4444. local rem3 = rem:Clone()
  4445. rem3.Parent = char
  4446. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4447. local rem4 = rem:Clone()
  4448. rem4.Parent = char
  4449. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4450. hite:Destroy()
  4451. coroutine.resume(coroutine.create(function()
  4452. for i = 0, 24 do
  4453. swait(1)
  4454. if randomrotations == 1 then
  4455. rot = rot + 1
  4456. elseif randomrotations == 2 then
  4457. rot = rot - 1
  4458. end
  4459. power = power + 0.5
  4460. lookv = lookv + 7.5
  4461. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4462. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4463. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4464. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4465. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4466. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4467. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4468. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4469. end
  4470. end))
  4471. attack = false
  4472. end
  4473. function yinyangi()
  4474. attack = true
  4475. for i = 0, 2, 0.1 do
  4476. swait()
  4477. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4478. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4479. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4480. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4481. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4482. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4483. end
  4484. local bv = Instance.new("BodyVelocity")
  4485. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4486. bv.velocity = root.CFrame.lookVector*175
  4487. bv.Parent = root
  4488. for Rotations = 0, 9 do
  4489. for i = 0, 1, 0.5 do
  4490. swait()
  4491. bv.velocity = root.CFrame.lookVector*175
  4492. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4493. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4494. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4495. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4496. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4497. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4498. end
  4499. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4500. for i = 0, 1, 0.5 do
  4501. swait()
  4502. bv.velocity = root.CFrame.lookVector*175
  4503. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4504. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  4506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4508. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4509. end
  4510. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4511. for i = 0, 1, 0.5 do
  4512. swait()
  4513. bv.velocity = root.CFrame.lookVector*175
  4514. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4515. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4516. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  4517. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4518. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4519. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4520. end
  4521. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4522. for i = 0, 1, 0.5 do
  4523. swait()
  4524. bv.velocity = root.CFrame.lookVector*175
  4525. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4526. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  4528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4530. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4531. end
  4532. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4533. end
  4534. bv:Destroy()
  4535. attack = false
  4536. end
  4537.  
  4538. function Wip()
  4539. attack = true
  4540.  
  4541. local rngb = Instance.new("Part", char)
  4542. rngb.Anchored = true
  4543. rngb.BrickColor = origcolor
  4544. rngb.CanCollide = false
  4545. rngb.FormFactor = 3
  4546. rngb.Name = "Ring"
  4547. rngb.Material = "Neon"
  4548. rngb.Size = Vector3.new(1, 0.05, 1)
  4549. rngb.Transparency = 1
  4550. rngb.TopSurface = 0
  4551. rngb.BottomSurface = 0
  4552. local rngmb = Instance.new("SpecialMesh", rngb)
  4553. rngmb.MeshType = "Brick"
  4554. rngmb.Name = "SizeMesh"
  4555. rngmb.Scale = vt(0,1,0)
  4556.  
  4557. local orb = rngb:Clone()
  4558. orb.Parent = char
  4559. orb.Transparency = 0
  4560. orb.BrickColor = BrickColor.new("White")
  4561. orb.Size = vt(1,1,1)
  4562. local orbmish = orb.SizeMesh
  4563. orbmish.Scale = vt(0,0,0)
  4564. orbmish.MeshType = "Sphere"
  4565.  
  4566. local orbe = rngb:Clone()
  4567. orbe.Parent = char
  4568. orbe.Transparency = 0.5
  4569. orbe.BrickColor = BrickColor.new("New Yeller")
  4570. orbe.Size = vt(1,1,1)
  4571. local orbmish2 = orbe.SizeMesh
  4572. orbmish2.Scale = vt(0,0,0)
  4573. orbmish2.MeshType = "Sphere"
  4574. orbe.Color = Color3.new(r/255,g/255,b/255)
  4575.  
  4576. rngb:Destroy()
  4577. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4578. local scaled = 1
  4579. for i = 0,5,0.1 do
  4580. swait()
  4581. scaled = scaled - 0.02
  4582. if rainbowmode == true then
  4583. orbe.Color = Color3.new(r/255,g/255,b/255)
  4584. end
  4585. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4586. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4587. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4588. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4589. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4590. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4591. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4592. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4593. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4594. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4595. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4596. RootPart.CFrame = FaceMouse()[1]
  4597. end]]--
  4598. for i = 0,5,0.1 do
  4599. swait()
  4600. if rainbowmode == true then
  4601. orbe.Color = Color3.new(r/255,g/255,b/255)
  4602. end
  4603. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4604. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4605. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4606. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4607. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4608. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4609. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4610. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4611. RootPart.CFrame = FaceMouse()[1]
  4612. end
  4613. orbe.Transparency = 1
  4614. orb.Transparency = 1
  4615. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4616. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4617. local a = Instance.new("Part",Character)
  4618. a.Name = "Direction"
  4619. a.Anchored = true
  4620. a.BrickColor = bc("White")
  4621. a.Material = "Neon"
  4622. a.Transparency = 0
  4623. a.Shape = "Cylinder"
  4624. a.CanCollide = false
  4625. local a2 = Instance.new("Part",Character)
  4626. a2.Name = "Direction"
  4627. a2.Anchored = true
  4628. a2.BrickColor = bc("New Yeller")
  4629. a2.Color = Color3.new(r/255,g/255,b/255)
  4630. a2.Material = "Neon"
  4631. a2.Transparency = 0.5
  4632. a2.Shape = "Cylinder"
  4633. a2.CanCollide = false
  4634. local ba = Instance.new("Part",Character)
  4635. ba.Name = "HitDirect"
  4636. ba.Anchored = true
  4637. ba.BrickColor = bc("Cool yellow")
  4638. ba.Material = "Neon"
  4639. ba.Transparency = 1
  4640. ba.CanCollide = false
  4641. local ray = Ray.new(
  4642. orb.CFrame.p, -- origin
  4643. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4644. )
  4645. local ignore = Character
  4646. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4647. a.BottomSurface = 10
  4648. a.TopSurface = 10
  4649. a2.BottomSurface = 10
  4650. a2.TopSurface = 10
  4651. local distance = (orb.CFrame.p - position).magnitude
  4652. a.Size = Vector3.new(distance, 1, 1)
  4653. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4654. a2.Size = Vector3.new(distance, 1, 1)
  4655. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4656. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4657. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4658. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4659. game:GetService("Debris"):AddItem(a, 20)
  4660. game:GetService("Debris"):AddItem(a2, 20)
  4661. game:GetService("Debris"):AddItem(ba, 20)
  4662. local msh = Instance.new("SpecialMesh",a)
  4663. msh.MeshType = "Cylinder"
  4664. msh.Scale = vt(1,5*5,5*5)
  4665. local msh2 = Instance.new("SpecialMesh",a2)
  4666. msh2.MeshType = "Cylinder"
  4667. msh2.Scale = vt(1,6*5,6*5)
  4668.  
  4669. for i = 0,10,0.1 do
  4670. swait()
  4671. CameraEnshaking(1,5)
  4672. a2.Color = Color3.new(r/255,g/255,b/255)
  4673. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4674. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4675. ray = Ray.new(
  4676. orb.CFrame.p, -- origin
  4677. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4678. )
  4679. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4680. distance = (orb.CFrame.p - position).magnitude
  4681. if typrot == 1 then
  4682. rotation = rotation + 2.5
  4683. elseif typrot == 2 then
  4684. rotation = rotation - 2.5
  4685. end
  4686. RootPart.CFrame = FaceMouse()[1]
  4687. a.Size = Vector3.new(distance, 1, 1)
  4688. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4689. a2.Size = Vector3.new(distance, 1, 1)
  4690. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4691. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4692. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4693. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4694. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4695. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4696. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4697. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4698. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4699. end
  4700. a:Destroy()
  4701. a2:Destroy()
  4702. ba:Destroy()
  4703. orb:Destroy()
  4704. orbe:Destroy()
  4705. attack = false
  4706. end
  4707. function HolyBarrier()
  4708. attack = true
  4709. shielding = true
  4710. for i = 0, 2, 0.1 do
  4711. swait()
  4712. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4713. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  4714. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  4715. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4716. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4717. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4718. end
  4719. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4720. stash = Instance.new("Model",workspace)
  4721. local barrier = Instance.new("Part",stash)
  4722. barrier.Anchored = true
  4723. barrier.CanCollide = false
  4724. barrier.Size = Vector3.new(20,20,20)
  4725. barrier.CFrame = root.CFrame
  4726. barrier.Transparency = 0.6
  4727. barrier.BrickColor = MAINRUINCOLOR
  4728. barrier.Material = Enum.Material.Neon
  4729. barrier.Shape = Enum.PartType.Ball
  4730. barrier.CFrame = root.CFrame
  4731. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4732. Torso.Anchored = true
  4733. for i=1,50 do
  4734. local p = Instance.new("Part",stash)
  4735. p.Anchored = true
  4736. p.Transparency = 1
  4737. p.Size = Vector3.new(11,11,11)
  4738. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4739. end
  4740. repeat
  4741. swait(5)
  4742. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0)
  4743. until shielding == false
  4744. stash:Remove()
  4745. Torso.Anchored = false
  4746. shielding = false
  4747. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4748. attack = false
  4749. end
  4750. function Judgement()
  4751. attack = true
  4752. judgement = true
  4753. hum.WalkSpeed = 0
  4754. local p = Instance.new("Part",root)
  4755. p.Anchored = true
  4756. p.CanCollide = false
  4757. p.BrickColor = MAINRUINCOLOR
  4758. p.Material = Enum.Material.Neon
  4759. p.Size = Vector3.new(1,1,1)
  4760. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4761. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4762. local m = Instance.new("SpecialMesh",p)
  4763. m.MeshType = "Cylinder"
  4764. m.Scale = Vector3.new(2000,2,2)
  4765. local targ = Instance.new("Part",root)
  4766. targ.Anchored = true
  4767. targ.Transparency = 1
  4768. targ.CanCollide = false
  4769. targ.Size = Vector3.new(1,1,1)
  4770. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4771. local s = Instance.new("Sound",targ)
  4772. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4773. s.Looped = true
  4774. s.Pitch = 1.2
  4775. s.Volume = 3
  4776. spawn(function()
  4777. swait(15)
  4778. s:Play()
  4779. end)
  4780. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4781. for i = 1,15 do
  4782. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4783. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4784. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4785. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4786. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4787. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  4788. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  4789. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4790. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  4791. m.Scale = m.Scale+Vector3.new(0,1,1)
  4792. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4793. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4794. swait()
  4795. end
  4796. sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  4797. repeat
  4798. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4799. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  4800. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4801. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4802. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4803. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4804. swait()
  4805. until judgement == false
  4806. for i =1,15 do
  4807. m.Scale = m.Scale-Vector3.new(1,1,1)
  4808. p.Transparency = i / 15
  4809. s.Pitch = s.Pitch - 0.4
  4810. swait()
  4811. end
  4812. p:Destroy()
  4813. hum.WalkSpeed = storehumanoidWS
  4814. attack = false
  4815. end
  4816.  
  4817. function UniversalSpark()
  4818. attack = true
  4819.  
  4820. local rngb = Instance.new("Part", char)
  4821. rngb.Anchored = true
  4822. rngb.BrickColor = origcolor
  4823. rngb.CanCollide = false
  4824. rngb.FormFactor = 3
  4825. rngb.Name = "Ring"
  4826. rngb.Material = "Neon"
  4827. rngb.Size = Vector3.new(1, 0.05, 1)
  4828. rngb.Transparency = 1
  4829. rngb.TopSurface = 0
  4830. rngb.BottomSurface = 0
  4831. local rngmb = Instance.new("SpecialMesh", rngb)
  4832. rngmb.MeshType = "Brick"
  4833. rngmb.Name = "SizeMesh"
  4834. rngmb.Scale = vt(0,1,0)
  4835.  
  4836. local orb = rngb:Clone()
  4837. orb.Parent = char
  4838. orb.Transparency = 0
  4839. orb.BrickColor = BrickColor.new("White")
  4840. orb.Size = vt(1,1,1)
  4841. local orbmish = orb.SizeMesh
  4842. orbmish.Scale = vt(0,0,0)
  4843. orbmish.MeshType = "Sphere"
  4844.  
  4845. local orbe = rngb:Clone()
  4846. orbe.Parent = char
  4847. orbe.Transparency = 0.5
  4848. orbe.BrickColor = BrickColor.new("New Yeller")
  4849. orbe.Size = vt(1,1,1)
  4850. local orbmish2 = orbe.SizeMesh
  4851. orbmish2.Scale = vt(0,0,0)
  4852. orbmish2.MeshType = "Sphere"
  4853. orbe.Color = Color3.new(r/255,g/255,b/255)
  4854.  
  4855. rngb:Destroy()
  4856. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4857. local scaled = 1
  4858. for i = 0,5,0.1 do
  4859. swait()
  4860. scaled = scaled - 0.02
  4861. if rainbowmode == true then
  4862. orbe.Color = Color3.new(r/255,g/255,b/255)
  4863. end
  4864. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4865. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4866. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4867. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4868. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4869. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4870. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4871. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4872. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4873. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4874. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4875. RootPart.CFrame = FaceMouse()[1]
  4876. end]]--
  4877. for i = 0,5,0.1 do
  4878. swait()
  4879. if rainbowmode == true then
  4880. orbe.Color = Color3.new(r/255,g/255,b/255)
  4881. end
  4882. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4883. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4884. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4885. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4886. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4887. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4888. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4889. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4890. RootPart.CFrame = FaceMouse()[1]
  4891. end
  4892. orbe.Transparency = 1
  4893. orb.Transparency = 1
  4894. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4895. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4896. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4897. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4898.  
  4899. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4900. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4901. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4902. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4903. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4904. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4905. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4906. local xd= Instance.new("Sound",char)
  4907. xd.SoundId = "rbxassetid://445796828"
  4908. xd.Pitch = 0.75
  4909. xd.Looped = true
  4910. xd.Volume = 1.25
  4911. xd:Play()
  4912. local a = Instance.new("Part",Character)
  4913. a.Name = "Direction"
  4914. a.Anchored = true
  4915. a.BrickColor = bc("Alder")
  4916. a.Color = MAINRUINCOLOR.Color
  4917. a.Material = "Neon"
  4918. a.Transparency = 0.5
  4919. a.Shape = "Cylinder"
  4920. a.CanCollide = false
  4921. local a2 = Instance.new("Part",Character)
  4922. a2.Name = "Direction"
  4923. a2.Anchored = true
  4924. a2.BrickColor = bc("New Yeller")
  4925. a2.Color = MAINRUINCOLOR.Color
  4926. a2.Material = "Neon"
  4927. a2.Transparency = 0.5
  4928. a2.Shape = "Cylinder"
  4929. a2.CanCollide = false
  4930. local ba = Instance.new("Part",Character)
  4931. ba.Name = "HitDirect"
  4932. ba.Anchored = true
  4933. ba.BrickColor = bc("Cool yellow")
  4934. ba.Material = "Neon"
  4935. ba.Transparency = 1
  4936. ba.CanCollide = false
  4937. local ray = Ray.new(
  4938. orb.CFrame.p, -- origin
  4939. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4940. )
  4941. local ignore = Character
  4942. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4943. a.BottomSurface = 10
  4944. a.TopSurface = 10
  4945. a2.BottomSurface = 10
  4946. a2.TopSurface = 10
  4947. local distance = (orb.CFrame.p - position).magnitude
  4948. a.Size = Vector3.new(distance, 1, 1)
  4949. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4950. a2.Size = Vector3.new(distance, 1, 1)
  4951. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4952. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4953. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4954. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4955. game:GetService("Debris"):AddItem(a, 60)
  4956. game:GetService("Debris"):AddItem(a2, 60)
  4957. game:GetService("Debris"):AddItem(ba, 60)
  4958. local outerscale = 0
  4959. local msh = Instance.new("SpecialMesh",a)
  4960. msh.MeshType = "Cylinder"
  4961. msh.Scale = vt(1,0,0)
  4962. local msh2 = Instance.new("SpecialMesh",a2)
  4963. msh2.MeshType = "Cylinder"
  4964. msh2.Scale = vt(1,0,0)
  4965. for i = 0,2,0.1 do
  4966. swait()
  4967. CameraEnshaking(1,1)
  4968. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4969. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4970. outerscale = outerscale - 0.015
  4971. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4972. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4973. ray = Ray.new(
  4974. orb.CFrame.p, -- origin
  4975. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4976. )
  4977. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4978. distance = (orb.CFrame.p - position).magnitude
  4979. if typrot == 1 then
  4980. rotation = rotation + 2.5
  4981. elseif typrot == 2 then
  4982. rotation = rotation - 2.5
  4983. end
  4984. RootPart.CFrame = FaceMouse()[1]
  4985. a.Size = Vector3.new(distance, 1, 1)
  4986. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4987. a2.Size = Vector3.new(distance, 1, 1)
  4988. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4989. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4990. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4991. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4992. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4993. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4994. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4995. end
  4996. for z = 0, 2 do
  4997. for i = 0,4,0.1 do
  4998. swait()
  4999. CameraEnshaking(1,1)
  5000. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5001. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5002. outerscale = outerscale + 0.015
  5003. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5004. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5005. ray = Ray.new(
  5006. orb.CFrame.p, -- origin
  5007. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5008. )
  5009. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5010. distance = (orb.CFrame.p - position).magnitude
  5011. if typrot == 1 then
  5012. rotation = rotation + 2.5
  5013. elseif typrot == 2 then
  5014. rotation = rotation - 2.5
  5015. end
  5016. RootPart.CFrame = FaceMouse()[1]
  5017. a.Size = Vector3.new(distance, 1, 1)
  5018. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5019. a2.Size = Vector3.new(distance, 1, 1)
  5020. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5021. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5022. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5023. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5024. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5025. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5026. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5027. end
  5028. for i = 0,4,0.1 do
  5029. swait()
  5030. CameraEnshaking(1,1)
  5031. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5032. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5033. outerscale = outerscale - 0.015
  5034. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5035. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5036. ray = Ray.new(
  5037. orb.CFrame.p, -- origin
  5038. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5039. )
  5040. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5041. distance = (orb.CFrame.p - position).magnitude
  5042. if typrot == 1 then
  5043. rotation = rotation + 2.5
  5044. elseif typrot == 2 then
  5045. rotation = rotation - 2.5
  5046. end
  5047. RootPart.CFrame = FaceMouse()[1]
  5048. a.Size = Vector3.new(distance, 1, 1)
  5049. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5050. a2.Size = Vector3.new(distance, 1, 1)
  5051. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5052. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5053. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5054. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5055. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5056. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5057. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5058. end
  5059. end
  5060. for i = 0,4,0.1 do
  5061. swait()
  5062. CameraEnshaking(1,1)
  5063. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5064. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5065. xd.Volume = xd.Volume - 0.025
  5066. a.Transparency = a.Transparency + 0.025
  5067. a2.Transparency = a2.Transparency + 0.025
  5068. outerscale = outerscale - 0.015
  5069. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5070. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5071. ray = Ray.new(
  5072. orb.CFrame.p, -- origin
  5073. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5074. )
  5075. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5076. distance = (orb.CFrame.p - position).magnitude
  5077. if typrot == 1 then
  5078. rotation = rotation + 2.5
  5079. elseif typrot == 2 then
  5080. rotation = rotation - 2.5
  5081. end
  5082. RootPart.CFrame = FaceMouse()[1]
  5083. a.Size = Vector3.new(distance, 1, 1)
  5084. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5085. a2.Size = Vector3.new(distance, 1, 1)
  5086. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5087. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5088. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5089. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5090. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5091. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5092. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5093. end
  5094. xd:Destroy()
  5095. a:Destroy()
  5096. a2:Destroy()
  5097. ba:Destroy()
  5098. orb:Destroy()
  5099. orbe:Destroy()
  5100. attack = false
  5101. end
  5102.  
  5103.  
  5104. function resetmode()
  5105. rainbowmode = false
  5106. chaosmode = false
  5107. tl1.Enabled = false
  5108. tl2.Enabled = false
  5109. tl3.Enabled = false
  5110. ModeOfGlitch = 1
  5111. storehumanoidWS = 16
  5112. coroutine.resume(coroutine.create(function()
  5113. attack = true
  5114. hum.WalkSpeed = 0
  5115. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  5116. for i = 0,4,0.1 do
  5117. swait()
  5118. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  5119. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  5120. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  5121. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5)
  5122. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5)
  5123. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  5124. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  5125. end
  5126. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  5127. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  5128. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  5129. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  5130. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  5131. CameraEnshaking(5,2.5)
  5132. MAINRUINCOLOR = BrickColor.new("Really red")
  5133. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5134. for i = 0, 49 do
  5135. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  5136. end
  5137. for i = 0,3,0.1 do
  5138. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  5139. end
  5140. for i, v in pairs(mw2:GetChildren()) do
  5141. if v:IsA("Part") then
  5142. v.BrickColor = BrickColor.new("Really red")
  5143. v.Material = "Neon"
  5144. end
  5145. end
  5146. for i, v in pairs(mw1:GetChildren()) do
  5147. if v:IsA("Part") then
  5148. v.Transparency = 1
  5149. v.BrickColor = BrickColor.new("Really red")
  5150. v.Material = "Neon"
  5151. end
  5152. end
  5153. for i, v in pairs(m:GetChildren()) do
  5154. if v:IsA("Part") then
  5155. v.BrickColor = BrickColor.new("Really black")
  5156. v.Material = "Glass"
  5157. end
  5158. end
  5159. for i, v in pairs(m2:GetChildren()) do
  5160. if v:IsA("Part") then
  5161. v.BrickColor = BrickColor.new("Crimson")
  5162. v.Material = "Granite"
  5163. end
  5164. end
  5165. for i, v in pairs(m3:GetChildren()) do
  5166. if v:IsA("Part") then
  5167. v.BrickColor = BrickColor.new("Really red")
  5168. v.Material = "Neon"
  5169. end
  5170. end
  5171. for i, v in pairs(extrawingmod1:GetChildren()) do
  5172. if v:IsA("Part") then
  5173. v.Transparency = 1
  5174. v.BrickColor = BrickColor.new("White")
  5175. v.Material = "Neon"
  5176. end
  5177. end
  5178. for i, v in pairs(extrawingmod2:GetChildren()) do
  5179. if v:IsA("Part") then
  5180. v.Transparency = 1
  5181. v.BrickColor = BrickColor.new("White")
  5182. v.Material = "Neon"
  5183. end
  5184. end
  5185. for i = 0,2,0.1 do
  5186. swait()
  5187. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  5188. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  5189. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5190. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  5191. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  5192. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  5193. end
  5194. hum.WalkSpeed = storehumanoidWS
  5195. attack = false
  5196. end))
  5197. newTheme("rbxassetid://614032233",48.6,1,0.3)
  5198. end
  5199.  
  5200. function attackone()
  5201. attack = true
  5202. for i = 0,1,0.1 do
  5203. swait()
  5204. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  5205. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  5206. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5207. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5208. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  5209. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
  5210. end
  5211. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  5212.  
  5213. local hitb = Instance.new("Part", char)
  5214. hitb.Anchored = true
  5215. hitb.CanCollide = false
  5216. hitb.FormFactor = 3
  5217. hitb.Name = "Ring"
  5218. hitb.Material = "Neon"
  5219. hitb.Size = Vector3.new(1, 1, 1)
  5220. hitb.Transparency = 1
  5221. hitb.TopSurface = 0
  5222. hitb.BottomSurface = 0
  5223. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5224. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5225. hitb:Destroy()
  5226. for i = 0,1,0.1 do
  5227. swait()
  5228. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  5229. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  5230. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5231. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5232. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  5233. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
  5234. end
  5235.  
  5236. attack = false
  5237. end
  5238.  
  5239. function attacktwo()
  5240. attack = true
  5241. for i = 0,1,0.1 do
  5242. swait()
  5243. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  5244. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  5245. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5246. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5247. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  5248. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
  5249. end
  5250. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  5251. local hitb = Instance.new("Part", char)
  5252. hitb.Anchored = true
  5253. hitb.CanCollide = false
  5254. hitb.FormFactor = 3
  5255. hitb.Name = "Ring"
  5256. hitb.Material = "Neon"
  5257. hitb.Size = Vector3.new(1, 1, 1)
  5258. hitb.Transparency = 1
  5259. hitb.TopSurface = 0
  5260. hitb.BottomSurface = 0
  5261. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5262. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5263. hitb:Destroy()
  5264. for i = 0,1,0.1 do
  5265. swait()
  5266. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  5267. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  5268. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5269. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5270. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  5271. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
  5272. end
  5273. attack = false
  5274. end
  5275.  
  5276. function attackthree()
  5277. attack = true
  5278. for i = 0,1,0.1 do
  5279. swait()
  5280. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5281. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5282. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5283. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5284. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  5285. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  5286. end
  5287. local distlook = 5
  5288. for i = 0, 4 do
  5289. swait(2)
  5290. CameraEnshaking(2,3)
  5291. local hite = Instance.new("Part", char)
  5292. hite.Anchored = true
  5293. hite.CanCollide = false
  5294. hite.FormFactor = 3
  5295. hite.Name = "Ring"
  5296. hite.Material = "Neon"
  5297. hite.Size = Vector3.new(1, 1, 1)
  5298. hite.Transparency = 1
  5299. hite.TopSurface = 0
  5300. hite.BottomSurface = 0
  5301. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5302. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5303. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5304. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5305. for i = 0, 2 do
  5306. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5307. sphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5308. sphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5309. end
  5310. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5311. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5312. game:GetService("Debris"):AddItem(hite, 5)
  5313. distlook = distlook + 10
  5314. end
  5315. attack = false
  5316. end
  5317.  
  5318. local ActiveGia = false
  5319. function THEHELLITSTHATBIG()
  5320. ActiveGia = true
  5321. attack = true
  5322. hum.WalkSpeed = 0
  5323. for i = 0,2,0.1 do
  5324. swait()
  5325. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5326. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5327. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5328. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5329. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  5330. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  5331. end
  5332. for i = 0,1,0.1 do
  5333. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5334. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5335. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5336. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5337. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5338. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5339. end
  5340. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5341. secrleg.Transparency = 0.5
  5342. seclleg.Transparency = 0.5
  5343. secrarm.Transparency = 0.5
  5344. seclarm.Transparency = 0.5
  5345. seched.Transparency = 0.5
  5346. sectors.Transparency = 0.5
  5347. for i = 0,25,0.1 do
  5348. swait()
  5349. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5350. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5351. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025)
  5352. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025)
  5353. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5354. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5355. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5356. end
  5357. --[[secrleg.Transparency = 1
  5358. seclleg.Transparency = 1
  5359. secrarm.Transparency = 1
  5360. seclarm.Transparency = 1
  5361. seched.Transparency = 1
  5362. sectors.Transparency = 1]]--
  5363. torsweld.Part0 = root
  5364. hum.WalkSpeed = storehumanoidWS
  5365. attack = false
  5366. end
  5367.  
  5368. function removelol()
  5369. ActiveGia = false
  5370. attack = true
  5371. hum.WalkSpeed = 0
  5372. for i = 0,2,0.1 do
  5373. swait()
  5374. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5375. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5376. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5377. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5378. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  5379. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  5380. end
  5381. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5382. for i = 0,25,0.1 do
  5383. swait()
  5384. secrleg.Transparency = secrleg.Transparency + 0.00225
  5385. seclleg.Transparency = secrleg.Transparency
  5386. secrarm.Transparency = secrleg.Transparency
  5387. seclarm.Transparency = secrleg.Transparency
  5388. seched.Transparency = secrleg.Transparency
  5389. sectors.Transparency = secrleg.Transparency
  5390. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5391. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5392. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025)
  5393. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025)
  5394. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5395. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5396. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5397. end
  5398. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5399. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5400. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5401. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5402. secrleg.Transparency = 1
  5403. seclleg.Transparency = 1
  5404. secrarm.Transparency = 1
  5405. seclarm.Transparency = 1
  5406. seched.Transparency = 1
  5407. sectors.Transparency = 1
  5408. torsweld.Part0 = root
  5409. hum.WalkSpeed = storehumanoidWS
  5410. attack = false
  5411. end
  5412.  
  5413. function FinalCalamity()
  5414. end
  5415.  
  5416. local attacktype = 1
  5417. mouse.Button1Down:connect(function()
  5418. if attack == false and attacktype == 1 then
  5419. attacktype = 2
  5420. attackone()
  5421. elseif attack == false and attacktype == 2 then
  5422. attacktype = 3
  5423. attacktwo()
  5424. elseif attack == false and attacktype == 3 then
  5425. attacktype = 1
  5426. attackthree()
  5427. elseif attack == false and attacktype == 4 then
  5428. attacktype = 1
  5429. --attackfour()
  5430. end
  5431. end)
  5432. mouse.KeyDown:connect(function(k)
  5433. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5434. ModeOfGlitch = 2
  5435. storehumanoidWS = 16
  5436. hum.WalkSpeed = 16
  5437. rainbowmode = false
  5438. chaosmode = false
  5439. tl1.Enabled = false
  5440. tl2.Enabled = false
  5441. tl3.Enabled = false
  5442. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5443. newTheme("rbxassetid://1539245059",0,1,0.3)
  5444. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5445. for i, v in pairs(mw2:GetChildren()) do
  5446. if v:IsA("Part") then
  5447. v.BrickColor = MAINRUINCOLOR
  5448. v.Material = "Neon"
  5449. end
  5450. end
  5451. for i, v in pairs(mw1:GetChildren()) do
  5452. if v:IsA("Part") then
  5453. v.Transparency = 1
  5454. v.BrickColor = MAINRUINCOLOR
  5455. v.Material = "Neon"
  5456. end
  5457. end
  5458. for i, v in pairs(m:GetChildren()) do
  5459. if v:IsA("Part") then
  5460. v.BrickColor = BrickColor.new("White")
  5461. v.Material = "Ice"
  5462. end
  5463. end
  5464. for i, v in pairs(m2:GetChildren()) do
  5465. if v:IsA("Part") then
  5466. v.BrickColor = BrickColor.new("Pastel light blue")
  5467. v.Material = "Glass"
  5468. end
  5469. end
  5470. for i, v in pairs(m3:GetChildren()) do
  5471. if v:IsA("Part") then
  5472. v.BrickColor = BrickColor.new("Toothpaste")
  5473. v.Material = "Neon"
  5474. end
  5475. end
  5476. for i, v in pairs(extrawingmod1:GetChildren()) do
  5477. if v:IsA("Part") then
  5478. v.Transparency = 1
  5479. v.BrickColor = BrickColor.new("White")
  5480. v.Material = "Neon"
  5481. end
  5482. end
  5483. for i, v in pairs(extrawingmod2:GetChildren()) do
  5484. if v:IsA("Part") then
  5485. v.Transparency = 1
  5486. v.BrickColor = BrickColor.new("White")
  5487. v.Material = "Neon"
  5488. end
  5489. end
  5490. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5491. resetmode()
  5492. end
  5493. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5494. ModeOfGlitch = 3
  5495. storehumanoidWS = 16
  5496. hum.WalkSpeed = 16
  5497. rainbowmode = false
  5498. chaosmode = false
  5499. tl1.Enabled = false
  5500. tl2.Enabled = false
  5501. tl3.Enabled = false
  5502. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5503. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  5504. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5505. for i, v in pairs(mw2:GetChildren()) do
  5506. if v:IsA("Part") then
  5507. v.BrickColor = MAINRUINCOLOR
  5508. v.Material = "Neon"
  5509. end
  5510. end
  5511. for i, v in pairs(mw1:GetChildren()) do
  5512. if v:IsA("Part") then
  5513. v.Transparency = 1
  5514. v.BrickColor = MAINRUINCOLOR
  5515. v.Material = "Neon"
  5516. end
  5517. end
  5518. for i, v in pairs(m:GetChildren()) do
  5519. if v:IsA("Part") then
  5520. v.BrickColor = BrickColor.new("Black")
  5521. v.Material = "Ice"
  5522. end
  5523. end
  5524. for i, v in pairs(m2:GetChildren()) do
  5525. if v:IsA("Part") then
  5526. v.BrickColor = BrickColor.new("Dark indigo")
  5527. v.Material = "Glass"
  5528. end
  5529. end
  5530. for i, v in pairs(m3:GetChildren()) do
  5531. if v:IsA("Part") then
  5532. v.BrickColor = BrickColor.new("Royal purple")
  5533. v.Material = "Neon"
  5534. end
  5535. end
  5536. for i, v in pairs(extrawingmod1:GetChildren()) do
  5537. if v:IsA("Part") then
  5538. v.Transparency = 1
  5539. v.BrickColor = BrickColor.new("White")
  5540. v.Material = "Neon"
  5541. end
  5542. end
  5543. for i, v in pairs(extrawingmod2:GetChildren()) do
  5544. if v:IsA("Part") then
  5545. v.Transparency = 1
  5546. v.BrickColor = BrickColor.new("White")
  5547. v.Material = "Neon"
  5548. end
  5549. end
  5550. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5551. resetmode()
  5552. end
  5553. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5554. ModeOfGlitch = 4
  5555. storehumanoidWS = 16
  5556. hum.WalkSpeed = 16
  5557. rainbowmode = false
  5558. chaosmode = true
  5559. tl1.Enabled = true
  5560. tl2.Enabled = true
  5561. tl3.Enabled = true
  5562. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5563. newTheme("rbxassetid://1369263130",0,1,1)
  5564. MAINRUINCOLOR = BrickColor.new("Black")
  5565. for i, v in pairs(mw2:GetChildren()) do
  5566. if v:IsA("Part") then
  5567. v.BrickColor = MAINRUINCOLOR
  5568. v.Material = "Neon"
  5569. end
  5570. end
  5571. for i, v in pairs(mw1:GetChildren()) do
  5572. if v:IsA("Part") then
  5573. v.Transparency = 0.75
  5574. v.BrickColor = BrickColor.random()
  5575. v.Material = "Neon"
  5576. end
  5577. end
  5578. for i, v in pairs(m:GetChildren()) do
  5579. if v:IsA("Part") then
  5580. v.BrickColor = BrickColor.new("Black")
  5581. v.Material = "Neon"
  5582. end
  5583. end
  5584. for i, v in pairs(m2:GetChildren()) do
  5585. if v:IsA("Part") then
  5586. v.BrickColor = BrickColor.random()
  5587. v.Material = "Neon"
  5588. end
  5589. end
  5590. for i, v in pairs(m3:GetChildren()) do
  5591. if v:IsA("Part") then
  5592. v.BrickColor = BrickColor.new("Black")
  5593. v.Material = "Neon"
  5594. end
  5595. end
  5596. for i, v in pairs(extrawingmod1:GetChildren()) do
  5597. if v:IsA("Part") then
  5598. v.Transparency = 1
  5599. v.BrickColor = BrickColor.new("White")
  5600. v.Material = "Neon"
  5601. end
  5602. end
  5603. for i, v in pairs(extrawingmod2:GetChildren()) do
  5604. if v:IsA("Part") then
  5605. v.Transparency = 1
  5606. v.BrickColor = BrickColor.new("White")
  5607. v.Material = "Neon"
  5608. end
  5609. end
  5610. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5611. resetmode()
  5612. end
  5613. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5614. ModeOfGlitch = 5
  5615. storehumanoidWS = 16
  5616. hum.WalkSpeed = 16
  5617. rainbowmode = false
  5618. chaosmode = false
  5619. tl1.Enabled = true
  5620. tl2.Enabled = true
  5621. tl3.Enabled = true
  5622. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5623. newTheme("rbxassetid://661079869",0,1.02,1)
  5624. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5625. for i, v in pairs(mw2:GetChildren()) do
  5626. if v:IsA("Part") then
  5627. v.BrickColor = MAINRUINCOLOR
  5628. v.Material = "Neon"
  5629. end
  5630. end
  5631. for i, v in pairs(mw1:GetChildren()) do
  5632. if v:IsA("Part") then
  5633. v.Transparency = 0
  5634. v.BrickColor = MAINRUINCOLOR
  5635. v.Material = "Neon"
  5636. end
  5637. end
  5638. for i, v in pairs(m:GetChildren()) do
  5639. if v:IsA("Part") then
  5640. v.BrickColor = BrickColor.new("Cool yellow")
  5641. v.Material = "Ice"
  5642. end
  5643. end
  5644. for i, v in pairs(m2:GetChildren()) do
  5645. if v:IsA("Part") then
  5646. v.BrickColor = BrickColor.new("Bright yellow")
  5647. v.Material = "Ice"
  5648. end
  5649. end
  5650. for i, v in pairs(m3:GetChildren()) do
  5651. if v:IsA("Part") then
  5652. v.BrickColor = BrickColor.new("Bright yellow")
  5653. v.Material = "Neon"
  5654. end
  5655. end
  5656. for i, v in pairs(extrawingmod1:GetChildren()) do
  5657. if v:IsA("Part") then
  5658. v.Transparency = 1
  5659. v.BrickColor = BrickColor.new("White")
  5660. v.Material = "Neon"
  5661. end
  5662. end
  5663. for i, v in pairs(extrawingmod2:GetChildren()) do
  5664. if v:IsA("Part") then
  5665. v.Transparency = 1
  5666. v.BrickColor = BrickColor.new("White")
  5667. v.Material = "Neon"
  5668. end
  5669. end
  5670. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5671. resetmode()
  5672. end
  5673. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5674. ModeOfGlitch = 6
  5675. storehumanoidWS = 75
  5676. hum.WalkSpeed = 75
  5677. rainbowmode = false
  5678. chaosmode = false
  5679. tl1.Enabled = true
  5680. tl2.Enabled = true
  5681. tl3.Enabled = true
  5682. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  5683. newTheme("rbxassetid://395351949",0,1,1)
  5684. MAINRUINCOLOR = BrickColor.new("White")
  5685. for i, v in pairs(mw2:GetChildren()) do
  5686. if v:IsA("Part") then
  5687. v.BrickColor = MAINRUINCOLOR
  5688. v.Material = "Neon"
  5689. end
  5690. end
  5691. for i, v in pairs(mw1:GetChildren()) do
  5692. if v:IsA("Part") then
  5693. v.Transparency = 0
  5694. v.BrickColor = MAINRUINCOLOR
  5695. v.Material = "Neon"
  5696. end
  5697. end
  5698. for i, v in pairs(m:GetChildren()) do
  5699. if v:IsA("Part") then
  5700. v.BrickColor = BrickColor.new("White")
  5701. v.Material = "Ice"
  5702. end
  5703. end
  5704. for i, v in pairs(m2:GetChildren()) do
  5705. if v:IsA("Part") then
  5706. v.BrickColor = BrickColor.new("Really black")
  5707. v.Material = "Ice"
  5708. end
  5709. end
  5710. for i, v in pairs(m3:GetChildren()) do
  5711. if v:IsA("Part") then
  5712. v.BrickColor = BrickColor.new("White")
  5713. v.Material = "Neon"
  5714. end
  5715. end
  5716. for i, v in pairs(extrawingmod1:GetChildren()) do
  5717. if v:IsA("Part") then
  5718. v.Transparency = 1
  5719. v.BrickColor = BrickColor.new("White")
  5720. v.Material = "Neon"
  5721. end
  5722. end
  5723. for i, v in pairs(extrawingmod2:GetChildren()) do
  5724. if v:IsA("Part") then
  5725. v.Transparency = 1
  5726. v.BrickColor = BrickColor.new("White")
  5727. v.Material = "Neon"
  5728. end
  5729. end
  5730. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5731. resetmode()
  5732. end
  5733. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5734. ModeOfGlitch = 6127843
  5735. storehumanoidWS = 50
  5736. hum.WalkSpeed = 50
  5737. rainbowmode = true
  5738. chaosmode = false
  5739. tl1.Enabled = true
  5740. tl2.Enabled = true
  5741. tl3.Enabled = true
  5742. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  5743. newTheme("rbxassetid://147930134",0,1,1)
  5744. MAINRUINCOLOR = BrickColor.new("White")
  5745. for i, v in pairs(mw2:GetChildren()) do
  5746. if v:IsA("Part") then
  5747. v.BrickColor = MAINRUINCOLOR
  5748. v.Material = "Neon"
  5749. end
  5750. end
  5751. for i, v in pairs(mw1:GetChildren()) do
  5752. if v:IsA("Part") then
  5753. v.Transparency = 0
  5754. v.BrickColor = MAINRUINCOLOR
  5755. v.Material = "Neon"
  5756. end
  5757. end
  5758. for i, v in pairs(m:GetChildren()) do
  5759. if v:IsA("Part") then
  5760. v.BrickColor = BrickColor.new("White")
  5761. v.Material = "Neon"
  5762. end
  5763. end
  5764. for i, v in pairs(m2:GetChildren()) do
  5765. if v:IsA("Part") then
  5766. v.BrickColor = BrickColor.new("White")
  5767. v.Material = "Neon"
  5768. end
  5769. end
  5770. for i, v in pairs(m3:GetChildren()) do
  5771. if v:IsA("Part") then
  5772. v.BrickColor = BrickColor.new("White")
  5773. v.Material = "Neon"
  5774. end
  5775. end
  5776. for i, v in pairs(extrawingmod1:GetChildren()) do
  5777. if v:IsA("Part") then
  5778. v.Transparency = 1
  5779. v.BrickColor = BrickColor.new("White")
  5780. v.Material = "Neon"
  5781. end
  5782. end
  5783. for i, v in pairs(extrawingmod2:GetChildren()) do
  5784. if v:IsA("Part") then
  5785. v.Transparency = 1
  5786. v.BrickColor = BrickColor.new("White")
  5787. v.Material = "Neon"
  5788. end
  5789. end
  5790. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5791. resetmode()
  5792. end
  5793. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5794. ModeOfGlitch = 1000000
  5795. storehumanoidWS = 100
  5796. hum.WalkSpeed = 100
  5797. rainbowmode = false
  5798. chaosmode = false
  5799. tl1.Enabled = true
  5800. tl2.Enabled = true
  5801. tl3.Enabled = true
  5802. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5803. newTheme("rbxassetid://1359036559",0,1,1)
  5804. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5805. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5806. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5807. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5808. for i, v in pairs(mw2:GetChildren()) do
  5809. if v:IsA("Part") then
  5810. v.BrickColor = MAINRUINCOLOR
  5811. v.Material = "Neon"
  5812. end
  5813. end
  5814. for i, v in pairs(mw1:GetChildren()) do
  5815. if v:IsA("Part") then
  5816. v.Transparency = 0
  5817. v.BrickColor = MAINRUINCOLOR
  5818. v.Material = "Neon"
  5819. end
  5820. end
  5821. for i, v in pairs(m:GetChildren()) do
  5822. if v:IsA("Part") then
  5823. v.Color = Color3.new(0.5,0,1)
  5824. v.Material = "Neon"
  5825. end
  5826. end
  5827. for i, v in pairs(m2:GetChildren()) do
  5828. if v:IsA("Part") then
  5829. v.Color = Color3.new(0.25,0,1)
  5830. v.Material = "Neon"
  5831. end
  5832. end
  5833. for i, v in pairs(m3:GetChildren()) do
  5834. if v:IsA("Part") then
  5835. v.Color = Color3.new(0.45,0,1)
  5836. v.Material = "Neon"
  5837. end
  5838. end
  5839. for i, v in pairs(extrawingmod1:GetChildren()) do
  5840. if v:IsA("Part") then
  5841. v.Transparency = 0.75
  5842. v.Color = Color3.new(0.25,0,1)
  5843. v.Material = "Neon"
  5844. end
  5845. end
  5846. for i, v in pairs(extrawingmod2:GetChildren()) do
  5847. if v:IsA("Part") then
  5848. v.Transparency = 0.75
  5849. v.Color = Color3.new(0.5,0,1)
  5850. v.Material = "Neon"
  5851. end
  5852. end
  5853. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5854. resetmode()
  5855. end
  5856. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5857. newThemeCust("rbxassetid://1504604335",0,1,1)
  5858. attack = true
  5859. hum.WalkSpeed = 0
  5860. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5861. for i = 0, 24, 0.1 do
  5862. swait()
  5863. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5864. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5865. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5866. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5867. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5868. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5869. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5870. end
  5871. CameraEnshaking(1,1)
  5872. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5873. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5874. wait(0.55)
  5875. CameraEnshaking(1,2)
  5876. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5877. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5878. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5879. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5880. wait(0.55)
  5881. CameraEnshaking(1,3)
  5882. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5883. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5884. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5885. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5886. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5887. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5888. wait(0.55)
  5889. CameraEnshaking(10,5)
  5890. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5891. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5892. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5893. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5894. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5895. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5896. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5897. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5898. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5899. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5900. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5901. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5902. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5903. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5904. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5905. for i = 0, 49 do
  5906. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5907. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5908. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5909. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5910. end
  5911. ModeOfGlitch = 12345678987654321
  5912. storehumanoidWS = 200
  5913. hum.WalkSpeed = 200
  5914. rainbowmode = false
  5915. chaosmode = false
  5916. tl1.Enabled = true
  5917. tl2.Enabled = true
  5918. tl3.Enabled = true
  5919. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5920. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5921. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5922. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5923. for i, v in pairs(mw2:GetChildren()) do
  5924. if v:IsA("Part") then
  5925. v.BrickColor = MAINRUINCOLOR
  5926. v.Material = "Neon"
  5927. end
  5928. end
  5929. for i, v in pairs(mw1:GetChildren()) do
  5930. if v:IsA("Part") then
  5931. v.Transparency = 0
  5932. v.BrickColor = MAINRUINCOLOR
  5933. v.Material = "Neon"
  5934. end
  5935. end
  5936. for i, v in pairs(m:GetChildren()) do
  5937. if v:IsA("Part") then
  5938. v.Color = Color3.new(0.5,0,1)
  5939. v.Material = "Neon"
  5940. end
  5941. end
  5942. for i, v in pairs(m2:GetChildren()) do
  5943. if v:IsA("Part") then
  5944. v.Color = Color3.new(0.5,0,1)
  5945. v.Material = "Neon"
  5946. end
  5947. end
  5948. for i, v in pairs(m3:GetChildren()) do
  5949. if v:IsA("Part") then
  5950. v.Color = Color3.new(0.5,0,1)
  5951. v.Material = "Neon"
  5952. end
  5953. end
  5954. for i, v in pairs(extrawingmod1:GetChildren()) do
  5955. if v:IsA("Part") then
  5956. v.Transparency = 0
  5957. v.Color = Color3.new(0.5,0,1)
  5958. v.Material = "Neon"
  5959. end
  5960. end
  5961. for i, v in pairs(extrawingmod2:GetChildren()) do
  5962. if v:IsA("Part") then
  5963. v.Transparency = 0
  5964. v.Color = Color3.new(0.5,0,1)
  5965. v.Material = "Neon"
  5966. end
  5967. attack = false
  5968. end
  5969. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5970. resetmode()
  5971. end
  5972. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5973. newThemeCust("rbxassetid://723652641",0,1,1)
  5974. attack = true
  5975. hum.WalkSpeed = 0
  5976. MAINRUINCOLOR = BrickColor.new("Crimson")
  5977. for i = 0, 24, 0.1 do
  5978. swait()
  5979. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5980. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5981. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5982. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5983. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5984. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5985. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5986. end
  5987. CameraEnshaking(1,1)
  5988. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5989. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5990. wait(0.55)
  5991. CameraEnshaking(1,2)
  5992. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5993. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5994. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5995. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5996. wait(0.55)
  5997. CameraEnshaking(1,3)
  5998. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5999. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6000. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6001. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6002. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6003. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6004. wait(0.55)
  6005. CameraEnshaking(10,5)
  6006. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6007. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6008. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6009. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6010. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6011. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6012. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6013. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6014. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6015. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6016. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6017. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6018. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6019. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6020. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6021. for i = 0, 49 do
  6022. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  6023. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  6024. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  6025. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  6026. end
  6027. ModeOfGlitch = 666
  6028. storehumanoidWS = 16
  6029. hum.WalkSpeed = 16
  6030. rainbowmode = false
  6031. chaosmode = false
  6032. tl1.Enabled = true
  6033. tl2.Enabled = true
  6034. tl3.Enabled = true
  6035. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  6036. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6037. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6038. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6039. for i, v in pairs(mw2:GetChildren()) do
  6040. if v:IsA("Part") then
  6041. v.BrickColor = MAINRUINCOLOR
  6042. v.Material = "Neon"
  6043. end
  6044. end
  6045. for i, v in pairs(mw1:GetChildren()) do
  6046. if v:IsA("Part") then
  6047. v.Transparency = 0
  6048. v.BrickColor = MAINRUINCOLOR
  6049. v.Material = "Neon"
  6050. end
  6051. end
  6052. for i, v in pairs(m:GetChildren()) do
  6053. if v:IsA("Part") then
  6054. v.Color = Color3.new(1,0,0)
  6055. v.Material = "Neon"
  6056. end
  6057. end
  6058. for i, v in pairs(m2:GetChildren()) do
  6059. if v:IsA("Part") then
  6060. v.Color = Color3.new(1,0,0)
  6061. v.Material = "Neon"
  6062. end
  6063. end
  6064. for i, v in pairs(m3:GetChildren()) do
  6065. if v:IsA("Part") then
  6066. v.Color = Color3.new(1,0,0)
  6067. v.Material = "Neon"
  6068. end
  6069. end
  6070. for i, v in pairs(extrawingmod1:GetChildren()) do
  6071. if v:IsA("Part") then
  6072. v.Transparency = 0
  6073. v.Color = Color3.new(1,0,0)
  6074. v.Material = "Neon"
  6075. end
  6076. end
  6077. for i, v in pairs(extrawingmod2:GetChildren()) do
  6078. if v:IsA("Part") then
  6079. v.Transparency = 0
  6080. v.Color = Color3.new(1,0,0)
  6081. v.Material = "Neon"
  6082. end
  6083. attack = false
  6084. end
  6085. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  6086. resetmode()
  6087. end
  6088. if k == "l" and toggleTag == false then
  6089. toggleTag = true
  6090. text.TextTransparency = 0
  6091. text.TextStrokeTransparency = 0
  6092. elseif k == "l" and toggleTag == true then
  6093. toggleTag = false
  6094. text.TextTransparency = 1
  6095. text.TextStrokeTransparency = 1
  6096. end
  6097. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6098. ExtinctiveHeartbreak()
  6099. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6100. PureBomb()
  6101. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6102. scattercorrupt()
  6103. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6104. ChaosGroundStrike()
  6105. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6106. Judgement()
  6107. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  6108. HolyBarrier()
  6109. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  6110. Starfall()
  6111. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  6112. yinyangi()
  6113. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  6114. MeteorStrike()
  6115. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  6116. Wip()
  6117. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  6118. StarfallEX()
  6119. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  6120. FinalCalam()
  6121. end
  6122. if k == "n" and attack == false then
  6123. Blink()
  6124. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  6125. StarDivision()
  6126. end
  6127. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  6128. UniversalCollapse()
  6129. end
  6130. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  6131. hum.WalkSpeed = 16 + 184
  6132. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  6133. hum.WalkSpeed = 200 - 184
  6134. end
  6135. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  6136. UniversalSpark()
  6137. end
  6138. if k == "z" and attack == false and ModeOfGlitch == 666 then
  6139. StarDivision()
  6140. end
  6141. if k == "x" and attack == false and ModeOfGlitch == 666 then
  6142. Starfall()
  6143. end
  6144. if k == "m" and attack == false and ModeOfGlitch == 4 then
  6145. ChaosBegone()
  6146. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  6147. THEHELLITSTHATBIG()
  6148. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  6149. removelol()
  6150. end
  6151. end)
  6152. mouse.KeyUp:connect(function(k)
  6153. if k == "f" and ModeOfGlitch == 5 then
  6154. shielding = false
  6155. end
  6156. if k == "z" and ModeOfGlitch == 5 then
  6157. judgement = false
  6158. end
  6159. end)
  6160. coroutine.resume(coroutine.create(function()
  6161. while true do
  6162. swait(2)
  6163. if rainbowmode == true or ModeOfGlitch == 6 then
  6164. if eff == true then
  6165. sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0)
  6166. end
  6167. end
  6168. end
  6169. end))
  6170. coroutine.resume(coroutine.create(function()
  6171. while true do
  6172. swait(2)
  6173. if shielding == true then
  6174. end
  6175. end
  6176. end))
  6177.  
  6178.  
  6179. coroutine.resume(coroutine.create(function()
  6180. while true do
  6181. if ModeOfGlitch == 1000000 then
  6182. swait(0.5)
  6183. end
  6184. swait()
  6185. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6186. sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0)
  6187. end
  6188. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6189. sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0)
  6190. end
  6191. end
  6192. end))
  6193.  
  6194.  
  6195. coroutine.resume(coroutine.create(function()
  6196. while true do
  6197. swait(2)
  6198. if chaosmode == true then
  6199. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6200. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6201. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6202. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  6203. for i, v in pairs(mw1:GetChildren()) do
  6204. if v:IsA("Part") then
  6205. v.Transparency = 0.75
  6206. v.BrickColor = BrickColor.random()
  6207. v.Material = "Neon"
  6208. end
  6209. end
  6210. for i, v in pairs(m2:GetChildren()) do
  6211. if v:IsA("Part") then
  6212. v.BrickColor = BrickColor.random()
  6213. v.Material = "Neon"
  6214. end
  6215. end
  6216. for i, v in pairs(secondchar:GetChildren()) do
  6217. if v:IsA("Part") then
  6218. v.BrickColor = BrickColor.random()
  6219. v.Material = "Neon"
  6220. end
  6221. end
  6222. end
  6223. end
  6224. end))
  6225. Humanoid.Name = "STARGLITCHER"
  6226. Humanoid.MaxHealth = math.huge
  6227. Humanoid.Health = math.huge
  6228. Instance.new("ForceField",char).Visible = false
  6229. Humanoid.Animator.Parent = nil
  6230. idleanim=.4
  6231. while true do
  6232. if rainbowmode == false then
  6233. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6234. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6235. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6236. for i, v in pairs(secondchar:GetChildren()) do
  6237. if v:IsA("Part") then
  6238. v.BrickColor = MAINRUINCOLOR
  6239. v.Material = "Neon"
  6240. end
  6241. end
  6242. if chaosmode == false then
  6243. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6244. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6245. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6246. for i, v in pairs(secondchar:GetChildren()) do
  6247. if v:IsA("Part") then
  6248. v.BrickColor = MAINRUINCOLOR
  6249. v.Material = "Neon"
  6250. end
  6251. end
  6252. end
  6253. end
  6254. if rainbowmode == true then
  6255. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  6256. MAINRUINCOLOR = BrickColor.new("White")
  6257. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6258. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6259. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6260. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6261. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6262. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6263. for i, v in pairs(m:GetChildren()) do
  6264. if v:IsA("Part") then
  6265. v.Color = Color3.new(r/255,g/255,b/255)
  6266. end
  6267. end
  6268. for i, v in pairs(m2:GetChildren()) do
  6269. if v:IsA("Part") then
  6270. v.Color = Color3.new(r/255,g/255,b/255)
  6271. end
  6272. end
  6273. for i, v in pairs(secondchar:GetChildren()) do
  6274. if v:IsA("Part") then
  6275. v.Color = Color3.new(r/255,g/255,b/255)
  6276. v.Material = "Neon"
  6277. end
  6278. end
  6279. for i, v in pairs(m3:GetChildren()) do
  6280. if v:IsA("Part") then
  6281. v.Color = Color3.new(r/255,g/255,b/255)
  6282. end
  6283. end
  6284. for i, v in pairs(mw1:GetChildren()) do
  6285. if v:IsA("Part") then
  6286. v.Color = Color3.new(r/255,g/255,b/255)
  6287. v.Material = "Neon"
  6288. end
  6289. end
  6290. for i, v in pairs(mw2:GetChildren()) do
  6291. if v:IsA("Part") then
  6292. v.Color = Color3.new(r/255,g/255,b/255)
  6293. v.Material = "Neon"
  6294. end
  6295. end
  6296. end
  6297. CameraManager()
  6298. swait()
  6299. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  6300. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  6301. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  6302. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  6303. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  6304. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  6305.  
  6306. if attack == false and ActiveGia == false then
  6307. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6308. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6309. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6310. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6311. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6312. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6313. elseif attack == false and ActiveGia == true then
  6314. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6315. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  6316. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6317. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6318. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6319. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6320. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6321. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6322. torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
  6323. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6324. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6325. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
  6326. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6327. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6328. end
  6329. end
  6330.  
  6331. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  6332. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  6333. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  6334. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  6335. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  6336. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  6337. sine = sine + change
  6338. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6339. local velderp=RootPart.Velocity.y
  6340. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6341. if equipped==true or equipped==false then
  6342. if attack==false then
  6343. idle=idle+1
  6344. else
  6345. idle=0
  6346. end
  6347. if idle>=500 then
  6348. if attack==false then
  6349. --Sheath()
  6350. end
  6351. end
  6352. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6353. Anim="Jump"
  6354. if attack==false then
  6355. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6356. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6357. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6359. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  6360. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  6361. end
  6362. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6363. Anim="Fall"
  6364. if attack==false then
  6365. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6366. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6367. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6369. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  6370. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  6371. end
  6372. elseif torvel<1 and hitfloor~=nil then
  6373. Anim="Idle"
  6374. if attack==false then
  6375. if ModeOfGlitch == 1 then
  6376. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6377. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6378. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6379. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  6380. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6381. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6382.  
  6383. elseif ModeOfGlitch == 666 then
  6384. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6385. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6388. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  6389. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  6390.  
  6391. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6392. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6393. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6394. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6395. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6396. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6397. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6398.  
  6399. elseif ModeOfGlitch == 3 then
  6400. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  6401. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6402. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  6403. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  6404. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6405. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6406.  
  6407. elseif ModeOfGlitch == 4 then
  6408. RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
  6409. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
  6410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6411. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6412. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6413. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6414.  
  6415. elseif ModeOfGlitch == 5 then
  6416. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6417. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6418. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6419. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6420. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1)
  6421. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  6422.  
  6423. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6424. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6425. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  6426. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6427. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6428. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
  6429. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
  6430.  
  6431. elseif ModeOfGlitch == 12345678987654321 then
  6432. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6433. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  6434. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  6435. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6436. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6437. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6438. end
  6439. end
  6440. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6441. Anim="Walk"
  6442. if attack==false then
  6443. if ModeOfGlitch == 1 then
  6444. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6445. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6446. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6448. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6449. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6450.  
  6451. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6452. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
  6453. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
  6454. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
  6455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6456. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6457. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6458.  
  6459. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6460. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6461. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6462. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6463. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6464. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6465. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  6466. end
  6467. end
  6468. elseif torvel>=22 and hitfloor~=nil then
  6469. Anim="Run"
  6470. if attack==false then
  6471. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6472. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6473. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6474. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  6475. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  6476. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  6477. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  6478. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6479. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  6480. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  6481. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  6482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6483. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  6484. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
  6485. end
  6486. end
  6487. end
  6488. end
  6489. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement