Advertisement
SithLord332

Kirito's Wings

Jun 1st, 2018
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 246.89 KB | None | 0 0
  1. warn([[Star Glitcher Loaded.
  2. All purpose switcher... -- wat
  3.  
  4. It's not over yet.
  5. The faith is among us.
  6. And yet you still haven't defeated me.
  7. Now is my chance to destroy you.
  8. Then you're out of the world.
  9. With the elemental being struggling to gain power.
  10. This is the result.
  11. Very unstable and powerful.
  12. A insanely chaotic being.
  13. Who haven't ever known that one could hold this power.
  14. It's the one that has been created by an unknown being.
  15. You'll know this name already.
  16. Till now.
  17. The power is inside your body.
  18. You will decide things with this.
  19. And the future changes within the power.
  20. For now, you'll decide your own.
  21. You're one of them who holds this power.
  22. And so on, you would get chaotic to everyone else.
  23. You seem to dont trust everyone else, but one.
  24. That one... you can't know.
  25. It's only your decision.
  26. At yourself.
  27. No mercy, or spare.
  28.  
  29.  
  30. Created by 'NoobyGames12'
  31. Edited by 'danny199990'
  32. Some stuff by 'XXUNORIBOASXX'
  33. ]])
  34. print([[Icons:
  35. ! = New
  36. ? = Spoilers
  37. * = Exclusivity
  38. ]])
  39. warn([[=)]])
  40. --- its obs smooth af do not touch
  41. ---- Sources and functions might be taken from others
  42. plr = game:GetService("Players").LocalPlayer
  43. char = plr.Character
  44. hum = char.Humanoid
  45. local cam = game.Workspace.CurrentCamera
  46. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  47. Camera = cam
  48. local CamInterrupt = false
  49. local TwoD = false
  50. local TargetInfo = {nil, nil}
  51. cam.CameraType = "Custom"
  52. t = char.Torso
  53. h = char.Head
  54. ra = char["Right Arm"]
  55. la = char["Left Arm"]
  56. rl = char["Right Leg"]
  57. ll = char["Left Leg"]
  58. tors = char.Torso
  59. lleg = char["Left Leg"]
  60. root = char.HumanoidRootPart
  61. hed = char.Head
  62. rleg = char["Right Leg"]
  63. rarm = char["Right Arm"]
  64. larm = char["Left Arm"]
  65. radian = math.rad
  66. random = math.random
  67. Vec3 = Vector3.new
  68. Inst = Instance.new
  69. cFrame = CFrame.new
  70. Euler = CFrame.fromEulerAnglesXYZ
  71. vt = Vector3.new
  72. bc = BrickColor.new
  73. br = BrickColor.random
  74. it = Instance.new
  75. cf = CFrame.new
  76. local eff = true
  77. local shielding = false
  78.  
  79. local Booleans = {
  80. CamFollow = true,
  81. GyroUse = true
  82. }
  83.  
  84. function lerp(object, newCFrame, alpha)
  85. return object:lerp(newCFrame, alpha)
  86. end
  87.  
  88. local Directer = Inst("BodyGyro", root)
  89. Directer.MaxTorque = Vec3(0, 0, 0)
  90. Directer.P = 600000
  91. local CPart = Inst("Part")
  92. CPart.Anchored = true
  93. CPart.CanCollide = false
  94. CPart.Locked = true
  95. CPart.Transparency = 1
  96.  
  97. local rainbowmode = false
  98. local chaosmode = false
  99.  
  100. kan = Instance.new("Sound",char)
  101. kan.Volume = 3.25
  102. kan.TimePosition = 0
  103. kan.PlaybackSpeed = 1
  104. kan.Pitch = 1
  105. kan.SoundId = "rbxassetid://1759111654"
  106. kan.Name = "wrecked"
  107. kan.Looped = true
  108. kan:Play()
  109.  
  110. function newTheme(ID,timepos,pitch,vol)
  111. local kanz = kan
  112. --kanz:Stop()
  113. --kanz.Volume = vol
  114. --kanz.TimePosition = timepos
  115. kanz.PlaybackSpeed = pitch
  116. kanz.Pitch = pitch
  117. kanz.SoundId = ID
  118. kanz.Name = "wrecked"
  119. kanz.Looped = true
  120. kanz.Volume = 0.3
  121. --kanz:Play()
  122. --coroutine.resume(coroutine.create(function()
  123. --wait(0.05)
  124. --end))
  125. end
  126.  
  127. function newThemeCust(ID,timepos,pitch,vol)
  128. local kanz = kan
  129. kanz:Stop()
  130. kanz.Volume = vol
  131. kanz.TimePosition = timepos
  132. kanz.PlaybackSpeed = pitch
  133. kanz.Pitch = pitch
  134. kanz.SoundId = ID
  135. kanz.Name = "wrecked"
  136. kanz.Looped = true
  137. kanz:Play()
  138. coroutine.resume(coroutine.create(function()
  139. wait(0.05)
  140. end))
  141. end
  142.  
  143.  
  144.  
  145. function CameraShake(Times, Power, PlayerTarget)
  146. coroutine.resume(coroutine.create(function()
  147. FV = Instance.new("BoolValue", PlayerTarget)
  148. FV.Name = "CameraShake"
  149. for ShakeNum=1,Times do
  150. swait()
  151. local ef=Power
  152. if ef>=1 then
  153. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  154. else
  155. ef=Power*10
  156. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  157. end
  158. end
  159. Humanoid.CameraOffset = Vector3.new(0,0,0)
  160. FV:Destroy()
  161. end))
  162. end
  163.  
  164. function CameraEnshaking(Length,Intensity)
  165. coroutine.resume(coroutine.create(function()
  166. local intensity = 1*Intensity
  167. local rotM = 0.01*Intensity
  168. for i = 0, Length, 0.1 do
  169. swait()
  170. intensity = intensity - 0.05*Intensity/Length
  171. rotM = rotM - 0.0005*Intensity/Length
  172. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  173. 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)
  174. end
  175. Humanoid.CameraOffset = Vec3(0, 0, 0)
  176. end))
  177. end
  178. CamShake=function(Part,Distan,Power,Times)
  179. local de=Part.Position
  180. for i,v in pairs(workspace:children()) do
  181. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  182. for _,c in pairs(v:children()) do
  183. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  184. local Noob=v.Humanoid
  185. if Noob~=nil then
  186. coroutine.resume(coroutine.create(function()
  187. FV = Instance.new("BoolValue", Noob)
  188. FV.Name = "CameraShake"
  189. for ShakeNum=1,Times do
  190. swait()
  191. local ef=Power
  192. if ef>=1 then
  193. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  194. else
  195. ef=Power*10
  196. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  197. end
  198. end
  199. Humanoid.CameraOffset = Vector3.new(0,0,0)
  200. FV:Destroy()
  201. end))
  202. CameraShake(Times, Power, Noob)
  203. end
  204. end
  205. end
  206. end
  207. end
  208. end
  209.  
  210. function chatfunc(text,color)
  211. local chat = coroutine.wrap(function()
  212. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  213. Character:FindFirstChild("TalkingBillBoard"):destroy()
  214. end
  215. local naeeym2 = Instance.new("BillboardGui",Character)
  216. naeeym2.Size = UDim2.new(0,100,0,40)
  217. naeeym2.StudsOffset = Vector3.new(0,3,0)
  218. naeeym2.Adornee = Character.Head
  219. naeeym2.Name = "TalkingBillBoard"
  220. local tecks2 = Instance.new("TextLabel",naeeym2)
  221. tecks2.BackgroundTransparency = 1
  222. tecks2.BorderSizePixel = 0
  223. tecks2.Text = ""
  224. tecks2.Font = "SciFi"
  225. tecks2.TextSize = 30
  226. tecks2.TextStrokeTransparency = 0
  227. tecks2.TextColor3 = color
  228. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  229. tecks2.Size = UDim2.new(1,0,0.5,0)
  230. local tecks3 = Instance.new("TextLabel",naeeym2)
  231. tecks3.BackgroundTransparency = 1
  232. tecks3.BorderSizePixel = 0
  233. tecks3.Text = ""
  234. tecks3.Font = "SciFi"
  235. tecks3.TextSize = 30
  236. tecks3.TextStrokeTransparency = 0
  237. tecks3.TextColor3 = Color3.new(0,0,0)
  238. tecks3.TextStrokeColor3 = color
  239. tecks3.Size = UDim2.new(1,0,0.5,0)
  240. coroutine.resume(coroutine.create(function()
  241. while true do
  242. swait(1)
  243. plr.Character.wrecked.Volume = 0.3
  244. if chaosmode == true then
  245. tecks2.TextColor3 = BrickColor.random().Color
  246. tecks3.TextStrokeColor3 = BrickColor.random().Color
  247. end
  248. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  249. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  250. tecks2.Rotation = math.random(-5,5)
  251. tecks3.Rotation = math.random(-5,5)
  252. end
  253. end))
  254. for i = 1,string.len(text),1 do
  255. CFuncs["Sound"].Create("rbxassetid://1759111654", char, 0.25, 0.115)
  256. tecks2.Text = string.sub(text,1,i)
  257. tecks3.Text = string.sub(text,1,i)
  258. swait(1)
  259. end
  260. wait(1)
  261. local randomrot = math.random(1,2)
  262. if randomrot == 1 then
  263. for i = 1, 50 do
  264. swait()
  265. tecks2.Rotation = tecks2.Rotation - .75
  266. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  267. tecks2.TextTransparency = tecks2.TextTransparency + .04
  268. tecks3.Rotation = tecks2.Rotation + .75
  269. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  270. tecks3.TextTransparency = tecks2.TextTransparency + .04
  271. end
  272. elseif randomrot == 2 then
  273. for i = 1, 50 do
  274. swait()
  275. tecks2.Rotation = tecks2.Rotation + .75
  276. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  277. tecks2.TextTransparency = tecks2.TextTransparency + .04
  278. tecks3.Rotation = tecks2.Rotation - .75
  279. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  280. tecks3.TextTransparency = tecks2.TextTransparency + .04
  281. end
  282. end
  283. naeeym2:Destroy()
  284. end)
  285. chat()
  286. end
  287.  
  288.  
  289. local Create = LoadLibrary("RbxUtility").Create
  290.  
  291. CFuncs = {
  292. ["Part"] = {
  293. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  294. local Part = Create("Part"){
  295. Parent = Parent,
  296. Reflectance = Reflectance,
  297. Transparency = Transparency,
  298. CanCollide = false,
  299. Locked = true,
  300. BrickColor = BrickColor.new(tostring(BColor)),
  301. Name = Name,
  302. Size = Size,
  303. Material = Material,
  304. }
  305. RemoveOutlines(Part)
  306. return Part
  307. end;
  308. };
  309.  
  310. ["Mesh"] = {
  311. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  312. local Msh = Create(Mesh){
  313. Parent = Part,
  314. Offset = OffSet,
  315. Scale = Scale,
  316. }
  317. if Mesh == "SpecialMesh" then
  318. Msh.MeshType = MeshType
  319. Msh.MeshId = MeshId
  320. end
  321. return Msh
  322. end;
  323. };
  324.  
  325. ["Mesh"] = {
  326. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  327. local Msh = Create(Mesh){
  328. Parent = Part,
  329. Offset = OffSet,
  330. Scale = Scale,
  331. }
  332. if Mesh == "SpecialMesh" then
  333. Msh.MeshType = MeshType
  334. Msh.MeshId = MeshId
  335. end
  336. return Msh
  337. end;
  338. };
  339.  
  340. ["Weld"] = {
  341. Create = function(Parent, Part0, Part1, C0, C1)
  342. local Weld = Create("Weld"){
  343. Parent = Parent,
  344. Part0 = Part0,
  345. Part1 = Part1,
  346. C0 = C0,
  347. C1 = C1,
  348. }
  349. return Weld
  350. end;
  351. };
  352.  
  353. ["Sound"] = {
  354. Create = function(id, par, vol, pit)
  355. coroutine.resume(coroutine.create(function()
  356. local S = Create("Sound"){
  357. Volume = vol,
  358. Name = "EffectSoundo",
  359. Pitch = pit or 1,
  360. SoundId = id,
  361. Parent = par or workspace,
  362. }
  363. wait()
  364. S:play()
  365. game:GetService("Debris"):AddItem(S, 10)
  366. end))
  367. end;
  368. };
  369.  
  370. ["LongSound"] = {
  371. Create = function(id, par, vol, pit)
  372. coroutine.resume(coroutine.create(function()
  373. local S = Create("Sound"){
  374. Volume = vol,
  375. Pitch = pit or 1,
  376. SoundId = id,
  377. Parent = par or workspace,
  378. }
  379. wait()
  380. S:play()
  381. game:GetService("Debris"):AddItem(S, 30)
  382. end))
  383. end;
  384. };
  385.  
  386. ["ParticleEmitter"] = {
  387. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  388. local fp = Create("ParticleEmitter"){
  389. Parent = Parent,
  390. Color = ColorSequence.new(Color1, Color2),
  391. LightEmission = LightEmission,
  392. Size = Size,
  393. Texture = Texture,
  394. Transparency = Transparency,
  395. ZOffset = ZOffset,
  396. Acceleration = Accel,
  397. Drag = Drag,
  398. LockedToPart = LockedToPart,
  399. VelocityInheritance = VelocityInheritance,
  400. EmissionDirection = EmissionDirection,
  401. Enabled = Enabled,
  402. Lifetime = LifeTime,
  403. Rate = Rate,
  404. Rotation = Rotation,
  405. RotSpeed = RotSpeed,
  406. Speed = Speed,
  407. VelocitySpread = VelocitySpread,
  408. }
  409. return fp
  410. end;
  411. };
  412.  
  413. CreateTemplate = {
  414.  
  415. };
  416. }
  417.  
  418.  
  419.  
  420. New = function(Object, Parent, Name, Data)
  421. local Object = Instance.new(Object)
  422. for Index, Value in pairs(Data or {}) do
  423. Object[Index] = Value
  424. end
  425. Object.Parent = Parent
  426. Object.Name = Name
  427. return Object
  428. end
  429. local halocolor = BrickColor.new("Pastel light blue")
  430. local halocolor2 = BrickColor.new("Cool yellow")
  431. local starcolor = BrickColor.new("Bright yellow")
  432. local lunacolor = BrickColor.new("Navy blue")
  433. local lunacolor2 = BrickColor.new("Bright blue")
  434. local wepcolor = BrickColor.new("Really black")
  435. local maincolor = BrickColor.new("Really black")
  436. local m = Instance.new("Model",char)
  437. local m2 = Instance.new("Model",char)
  438. local m3 = Instance.new("Model",char)
  439. local mw1 = Instance.new("Model",char)
  440. local mw2 = Instance.new("Model",char)
  441.  
  442. local extrawingmod1 = Instance.new("Model",char)
  443. local extrawingmod2 = Instance.new("Model",char)
  444.  
  445. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  446. local p = Instance.new("Part")
  447. p.TopSurface = 0
  448. p.BottomSurface = 0
  449. p.Parent = parent
  450. p.Size = Vector3.new(0.1,0.1,0.1)
  451. p.Transparency = transparency
  452. p.Reflectance = reflectance
  453. p.CanCollide = false
  454. p.Locked = true
  455. p.BrickColor = brickcolor
  456. p.Material = material
  457. return p
  458. end
  459.  
  460. function CreateMesh(parent,meshtype,x1,y1,z1)
  461. local mesh = Instance.new("SpecialMesh",parent)
  462. mesh.MeshType = meshtype
  463. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  464. return mesh
  465. end
  466.  
  467. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  468. local mesh = Instance.new("SpecialMesh",parent)
  469. mesh.MeshType = "FileMesh"
  470. mesh.MeshId = meshid
  471. mesh.Scale = Vector3.new(x1,y1,z1)
  472. return mesh
  473. end
  474.  
  475.  
  476. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  477. local mesh = Instance.new("SpecialMesh",parent)
  478. mesh.MeshType = "FileMesh"
  479. mesh.MeshId = meshid
  480. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  481. mesh.Scale = Vector3.new(x1,y1,z1)
  482. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  483. return mesh
  484. end
  485.  
  486. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  487. local weld = Instance.new("Weld")
  488. weld.Parent = parent
  489. weld.Part0 = part0
  490. weld.Part1 = part1
  491. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  492. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  493. return weld
  494. end
  495.  
  496.  
  497. --------------
  498. local secondchar = Instance.new("Model",char)
  499. local GhostCol = BrickColor.new("Really red")
  500. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  501. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  502. 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))
  503.  
  504. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  505. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  506. 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))
  507.  
  508. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  509. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  510. 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))
  511.  
  512. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  513. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  514. 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))
  515.  
  516. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  517. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  518. 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))
  519.  
  520. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  521. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  522. 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))
  523. --------------
  524. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  525. 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))
  526. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  527. 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))
  528.  
  529. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  530. CreateMesh(handle,"Brick",0,0,0)
  531. 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))
  532. local valuaring = 10
  533. for i = 0, 49 do
  534. valuaring = valuaring + 10
  535. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  536. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  537. 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))
  538. end
  539.  
  540. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  541. CreateMesh(handle,"Brick",0,0,0)
  542. 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))
  543. local valuaring = 10
  544. for i = 0, 49 do
  545. valuaring = valuaring + 10
  546. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  547. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  548. 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))
  549. end
  550.  
  551.  
  552. local handle = CreateParta(m,1,1,"Neon",maincolor)
  553. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  554. 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))
  555.  
  556. --- Left wing.
  557.  
  558. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  559. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  560. 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))
  561.  
  562. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  563. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  564. 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))
  565. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  566. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  567. 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))
  568. A0 = Instance.new('Attachment',wed)
  569. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  570. CreateMesh(wed,"Wedge",0.05,0.5,3)
  571. 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))
  572. A1 = Instance.new('Attachment',wed)
  573. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  574. CreateMesh(wed,"Wedge",0.05,3,0.5)
  575. 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))
  576.  
  577. tl1 = Instance.new('Trail',wed)
  578. tl1.Attachment0 = A0
  579. tl1.Attachment1 = A1
  580. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  581. tl1.LightEmission = 1
  582. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  583. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  584. tl1.Lifetime = 0.6
  585.  
  586.  
  587. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  588. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  589. 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))
  590.  
  591. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  592. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  593. 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))
  594. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  595. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  596. 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))
  597. A0 = Instance.new('Attachment',wed)
  598. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  599. CreateMesh(wed,"Wedge",0.05,0.5,3)
  600. 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))
  601. A1 = Instance.new('Attachment',wed)
  602. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  603. CreateMesh(wed,"Wedge",0.05,3,0.5)
  604. 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))
  605.  
  606. tl2 = Instance.new('Trail',wed)
  607. tl2.Attachment0 = A0
  608. tl2.Attachment1 = A1
  609. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  610. tl2.LightEmission = 1
  611. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  612. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  613. tl2.Lifetime = 0.6
  614.  
  615. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  616. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  617. 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))
  618.  
  619. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  620. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  621. 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))
  622. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  623. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  624. 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))
  625. A0 = Instance.new('Attachment',wed)
  626. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  627. CreateMesh(wed,"Wedge",0.05,0.5,3)
  628. 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))
  629. A1 = Instance.new('Attachment',wed)
  630. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  631. CreateMesh(wed,"Wedge",0.05,3,0.5)
  632. 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))
  633.  
  634. tl3 = Instance.new('Trail',wed)
  635. tl3.Attachment0 = A0
  636. tl3.Attachment1 = A1
  637. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  638. tl3.LightEmission = 1
  639. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  640. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  641. tl3.Lifetime = 0.6
  642.  
  643. tl1.Enabled = false
  644. tl2.Enabled = false
  645. tl3.Enabled = false
  646. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  647. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  648. 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))
  649.  
  650. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  651. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  652. 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))
  653. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  654. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  655. 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))
  656. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  657. CreateMesh(wed,"Wedge",0.05,0.5,3)
  658. 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))
  659. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  660. CreateMesh(wed,"Wedge",0.05,3,0.5)
  661. 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))
  662.  
  663. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  664. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  665. 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))
  666.  
  667. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  668. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  669. 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))
  670. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  671. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  672. 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))
  673. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  674. CreateMesh(wed,"Wedge",0.05,0.5,3)
  675. 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))
  676. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  677. CreateMesh(wed,"Wedge",0.05,3,0.5)
  678. 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))
  679.  
  680. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  681. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  682. 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))
  683.  
  684. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  685. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  686. 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))
  687. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  688. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  689. 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))
  690. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  691. CreateMesh(wed,"Wedge",0.05,0.5,3)
  692. 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))
  693. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  694. CreateMesh(wed,"Wedge",0.05,3,0.5)
  695. 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))
  696.  
  697. -- Right wing.
  698.  
  699. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  700. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  701. 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))
  702.  
  703. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  704. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  705. 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))
  706. A0 = Instance.new('Attachment',wed)
  707. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  708. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  709. 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))
  710. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  711. CreateMesh(wed,"Wedge",0.05,0.5,3)
  712. 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))
  713. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  714. CreateMesh(wed,"Wedge",0.05,3,0.5)
  715. 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))
  716. A1 = Instance.new('Attachment',wed)
  717.  
  718. tr1 = Instance.new('Trail',wed)
  719. tr1.Attachment0 = A0
  720. tr1.Attachment1 = A1
  721. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  722. tr1.LightEmission = 1
  723. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  724. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  725. tr1.Lifetime = 0.6
  726.  
  727. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  728. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  729. 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))
  730.  
  731. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  732. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  733. 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))
  734. A0 = Instance.new('Attachment',wed)
  735. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  736. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  737. 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))
  738. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  739. CreateMesh(wed,"Wedge",0.05,0.5,3)
  740. 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))
  741. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  742. CreateMesh(wed,"Wedge",0.05,3,0.5)
  743. 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))
  744. A1 = Instance.new('Attachment',wed)
  745.  
  746. tr2 = Instance.new('Trail',wed)
  747. tr2.Attachment0 = A0
  748. tr2.Attachment1 = A1
  749. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  750. tr2.LightEmission = 1
  751. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  752. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  753. tr2.Lifetime = 0.6
  754.  
  755. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  756. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  757. 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))
  758.  
  759. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  760. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  761. 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))
  762. A0 = Instance.new('Attachment',wed)
  763. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  764. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  765. 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))
  766. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  767. CreateMesh(wed,"Wedge",0.05,0.5,3)
  768. 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))
  769. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  770. CreateMesh(wed,"Wedge",0.05,3,0.5)
  771. 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))
  772. A1 = Instance.new('Attachment',wed)
  773.  
  774. tr3 = Instance.new('Trail',wed)
  775. tr3.Attachment0 = A0
  776. tr3.Attachment1 = A1
  777. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  778. tr3.LightEmission = 1
  779. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  780. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  781. tr3.Lifetime = 0.6
  782.  
  783.  
  784. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  785. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  786. 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))
  787.  
  788. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  789. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  790. 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))
  791. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  792. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  793. 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))
  794. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  795. CreateMesh(wed,"Wedge",0.05,0.5,3)
  796. 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))
  797. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  798. CreateMesh(wed,"Wedge",0.05,3,0.5)
  799. 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))
  800.  
  801. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  802. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  803. 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))
  804.  
  805. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  806. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  807. 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))
  808. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  809. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  810. 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))
  811. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  812. CreateMesh(wed,"Wedge",0.05,0.5,3)
  813. 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))
  814. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  815. CreateMesh(wed,"Wedge",0.05,3,0.5)
  816. 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))
  817.  
  818. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  819. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  820. 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))
  821.  
  822. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  823. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  824. 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))
  825. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  826. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  827. 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))
  828. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  829. CreateMesh(wed,"Wedge",0.05,0.5,3)
  830. 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))
  831. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  832. CreateMesh(wed,"Wedge",0.05,3,0.5)
  833. 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))
  834.  
  835. ---- HERES THE RING
  836.  
  837.  
  838. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  839. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  840. 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))
  841. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  842. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  843. 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))
  844. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  845. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  846. 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))
  847.  
  848.  
  849. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  850. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  851. 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))
  852.  
  853. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  854. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  855. 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))
  856.  
  857.  
  858.  
  859. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  860. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  861. 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))
  862.  
  863. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  864. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  865. 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))
  866.  
  867. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  868. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  869. 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))
  870.  
  871. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  872. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  873. 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))
  874. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  875. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  876. 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))
  877.  
  878. --- second ring
  879.  
  880. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  881. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  882. 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))
  883. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  884. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  885. 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))
  886. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  887. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  888. 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))
  889.  
  890. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  891. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  892. 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))
  893.  
  894. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  895. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  896. 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))
  897.  
  898.  
  899.  
  900. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  901. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  902. 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))
  903.  
  904. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  905. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  906. 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))
  907.  
  908. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  909. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  910. 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))
  911.  
  912. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  913. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  914. 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))
  915. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  916. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  917. 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))]]--
  918.  
  919.  
  920.  
  921. for i, v in pairs(m:GetChildren()) do
  922. if v:IsA("Part") then
  923. v.BrickColor = BrickColor.new("Really black")
  924. v.Material = "Glass"
  925. end
  926. end
  927. for i, v in pairs(m2:GetChildren()) do
  928. if v:IsA("Part") then
  929. v.BrickColor = BrickColor.new("Crimson")
  930. v.Material = "Granite"
  931. end
  932. end
  933. for i, v in pairs(m3:GetChildren()) do
  934. if v:IsA("Part") then
  935. v.BrickColor = BrickColor.new("Really red")
  936. v.Material = "Neon"
  937. end
  938. end
  939. for i, v in pairs(mw2:GetChildren()) do
  940. if v:IsA("Part") then
  941. v.BrickColor = BrickColor.new("Really red")
  942. v.Material = "Neon"
  943. end
  944. end
  945. for i, v in pairs(mw1:GetChildren()) do
  946. if v:IsA("Part") then
  947. v.Transparency = 1
  948. v.BrickColor = BrickColor.new("Really red")
  949. v.Material = "Neon"
  950. end
  951. end
  952. for i, v in pairs(extrawingmod1:GetChildren()) do
  953. if v:IsA("Part") then
  954. v.Transparency = 1
  955. v.BrickColor = BrickColor.new("White")
  956. v.Material = "Neon"
  957. end
  958. end
  959. for i, v in pairs(extrawingmod2:GetChildren()) do
  960. if v:IsA("Part") then
  961. v.Transparency = 1
  962. v.BrickColor = BrickColor.new("White")
  963. v.Material = "Neon"
  964. end
  965. end
  966. local MAINRUINCOLOR = BrickColor.new("Really red")
  967. ------
  968.  
  969.  
  970. function RemoveOutlines(part)
  971. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  972. end
  973. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  974. local Part = Create("Part")({
  975. Parent = Parent,
  976. Reflectance = Reflectance,
  977. Transparency = Transparency,
  978. CanCollide = false,
  979. Locked = true,
  980. BrickColor = BrickColor.new(tostring(BColor)),
  981. Name = Name,
  982. Size = Size,
  983. Material = Material
  984. })
  985. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  986. RemoveOutlines(Part)
  987. return Part
  988. end
  989. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  990. local Msh = Create(Mesh)({
  991. Parent = Part,
  992. Offset = OffSet,
  993. Scale = Scale
  994. })
  995. if Mesh == "SpecialMesh" then
  996. Msh.MeshType = MeshType
  997. Msh.MeshId = MeshId
  998. end
  999. return Msh
  1000. end
  1001. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1002. local Weld = Create("Weld")({
  1003. Parent = Parent,
  1004. Part0 = Part0,
  1005. Part1 = Part1,
  1006. C0 = C0,
  1007. C1 = C1
  1008. })
  1009. return Weld
  1010. end
  1011.  
  1012. Player=game:GetService("Players").LocalPlayer
  1013. Character=Player.Character
  1014. PlayerGui=Player.PlayerGui
  1015. Backpack=Player.Backpack
  1016. Torso=Character.Torso
  1017. Head=Character.Head
  1018. Humanoid=Character.Humanoid
  1019. m=Instance.new('Model',Character)
  1020. LeftArm=Character["Left Arm"]
  1021. LeftLeg=Character["Left Leg"]
  1022. RightArm=Character["Right Arm"]
  1023. RightLeg=Character["Right Leg"]
  1024. LS=Torso["Left Shoulder"]
  1025. LH=Torso["Left Hip"]
  1026. RS=Torso["Right Shoulder"]
  1027. RH=Torso["Right Hip"]
  1028. Face = Head.face
  1029. Neck=Torso.Neck
  1030. it=Instance.new
  1031. attacktype=1
  1032. vt=Vector3.new
  1033. cf=CFrame.new
  1034. euler=CFrame.fromEulerAnglesXYZ
  1035. angles=CFrame.Angles
  1036. cloaked=false
  1037. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1038. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1039. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1040. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1041. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1042. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1043. RootPart=Character.HumanoidRootPart
  1044. RootJoint=RootPart.RootJoint
  1045. RootCF=euler(-1.57,0,3.14)
  1046. attack = false
  1047. attackdebounce = false
  1048. deb=false
  1049. equipped=true
  1050. hand=false
  1051. MMouse=nil
  1052. combo=0
  1053. mana=0
  1054. trispeed=.2
  1055. attackmode='none'
  1056. local idle=0
  1057. local Anim="Idle"
  1058. local Effects={}
  1059. local gun=false
  1060. local shoot=false
  1061. local sine = 0
  1062. local change = 1
  1063. player=nil
  1064.  
  1065.  
  1066. local toggleTag = true
  1067. local txt = Instance.new("BillboardGui", Head)
  1068. txt.Adornee = nil
  1069. txt.Name = "NameDetect"
  1070. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1071. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1072. local text = Instance.new("TextLabel", txt)
  1073. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1074. text.FontSize = "Size8"
  1075. text.TextScaled = true
  1076. text.TextTransparency = 0
  1077. text.BackgroundTransparency = 1
  1078. text.TextTransparency = 0
  1079. text.TextStrokeTransparency = 0
  1080. text.Font = "Fantasy"
  1081. text.TextStrokeColor3 = Color3.new(1,0,0)
  1082. text.TextColor3 = Color3.new(0,0,0)
  1083. text.Text = "Kirito's Wings Of Hate"
  1084.  
  1085. function RecolorTextAndRename(name,col1,col2)
  1086. text.TextStrokeColor3 = col2
  1087. text.TextColor3 = col1
  1088. text.Text = name
  1089. end
  1090. mouse=Player:GetMouse()
  1091. --save shoulders
  1092. RSH, LSH=nil, nil
  1093. --welds
  1094. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1095. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1096. LH=Torso["Left Hip"]
  1097. RH=Torso["Right Hip"]
  1098. TorsoColor=Torso.BrickColor
  1099. function NoOutline(Part)
  1100. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1101. end
  1102. player=Player
  1103. ch=Character
  1104. RSH=ch.Torso["Right Shoulder"]
  1105. LSH=ch.Torso["Left Shoulder"]
  1106. --
  1107. RSH.Parent=nil
  1108. LSH.Parent=nil
  1109. --
  1110. RW.Name="Right Shoulder"
  1111. RW.Part0=ch.Torso
  1112. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1113. RW.C1=cf(0, 0.5, 0)
  1114. RW.Part1=ch["Right Arm"]
  1115. RW.Parent=ch.Torso
  1116. --
  1117. LW.Name="Left Shoulder"
  1118. LW.Part0=ch.Torso
  1119. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1120. LW.C1=cf(0, 0.5, 0)
  1121. LW.Part1=ch["Left Arm"]
  1122. LW.Parent=ch.Torso
  1123.  
  1124. local Stats=Instance.new("BoolValue")
  1125. Stats.Name="Stats"
  1126. Stats.Parent=Character
  1127. local Atk=Instance.new("NumberValue")
  1128. Atk.Name="Damage"
  1129. Atk.Parent=Stats
  1130. Atk.Value=1
  1131. local Def=Instance.new("NumberValue")
  1132. Def.Name="Defense"
  1133. Def.Parent=Stats
  1134. Def.Value=1
  1135. local Speed=Instance.new("NumberValue")
  1136. Speed.Name="Speed"
  1137. Speed.Parent=Stats
  1138. Speed.Value=1
  1139. local Mvmt=Instance.new("NumberValue")
  1140. Mvmt.Name="Movement"
  1141. Mvmt.Parent=Stats
  1142. Mvmt.Value=1
  1143.  
  1144. local donum=0
  1145.  
  1146.  
  1147. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1148. local fp=it("Part")
  1149. fp.formFactor=formfactor
  1150. fp.Parent=parent
  1151. fp.Reflectance=reflectance
  1152. fp.Transparency=transparency
  1153. fp.CanCollide=false
  1154. fp.Locked=true
  1155. fp.BrickColor=brickcolor
  1156. fp.Name=name
  1157. fp.Size=size
  1158. fp.Position=Torso.Position
  1159. NoOutline(fp)
  1160. fp.Material="SmoothPlastic"
  1161. fp:BreakJoints()
  1162. return fp
  1163. end
  1164.  
  1165. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1166. local mesh=it(Mesh)
  1167. mesh.Parent=part
  1168. if Mesh=="SpecialMesh" then
  1169. mesh.MeshType=meshtype
  1170. if meshid~="nil" then
  1171. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1172. end
  1173. end
  1174. mesh.Offset=offset
  1175. mesh.Scale=scale
  1176. return mesh
  1177. end
  1178.  
  1179. function weld(parent,part0,part1,c0)
  1180. local weld=it("Weld")
  1181. weld.Parent=parent
  1182. weld.Part0=part0
  1183. weld.Part1=part1
  1184. weld.C0=c0
  1185. return weld
  1186. end
  1187.  
  1188. local Color1=Torso.BrickColor
  1189.  
  1190. local bodvel=Instance.new("BodyVelocity")
  1191. local bg=Instance.new("BodyGyro")
  1192.  
  1193. function swait(num)
  1194. if num==0 or num==nil then
  1195. game:service'RunService'.Stepped:wait(0)
  1196. else
  1197. for i=0,num do
  1198. game:service'RunService'.Stepped:wait(0)
  1199. end
  1200. end
  1201. end
  1202.  
  1203. -------- RAINBOW LEAVE IT TO ME
  1204. local r = 255
  1205. local g = 0
  1206. local b = 0
  1207. coroutine.resume(coroutine.create(function()
  1208. while wait() do
  1209. for i = 0, 254/5 do
  1210. swait()
  1211. g = g + 5
  1212. end
  1213. for i = 0, 254/5 do
  1214. swait()
  1215. r = r - 5
  1216. end
  1217. for i = 0, 254/5 do
  1218. swait()
  1219. b = b + 5
  1220. end
  1221. for i = 0, 254/5 do
  1222. swait()
  1223. g = g - 5
  1224. end
  1225. for i = 0, 254/5 do
  1226. swait()
  1227. r = r + 5
  1228. end
  1229. for i = 0, 254/5 do
  1230. swait()
  1231. b = b - 5
  1232. end
  1233. end
  1234. end))
  1235.  
  1236.  
  1237. so = function(id,par,vol,pit)
  1238. coroutine.resume(coroutine.create(function()
  1239. local sou = Instance.new("Sound",par or workspace)
  1240. sou.Volume=vol
  1241. sou.Pitch=pit or 1
  1242. sou.SoundId=id
  1243. swait()
  1244. sou:play()
  1245. game:GetService("Debris"):AddItem(sou,6)
  1246. end))
  1247. end
  1248.  
  1249. function clerp(a,b,t)
  1250. local qa = {QuaternionFromCFrame(a)}
  1251. local qb = {QuaternionFromCFrame(b)}
  1252. local ax, ay, az = a.x, a.y, a.z
  1253. local bx, by, bz = b.x, b.y, b.z
  1254. local _t = 1-t
  1255. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1256. end
  1257.  
  1258. function QuaternionFromCFrame(cf)
  1259. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1260. local trace = m00 + m11 + m22
  1261. if trace > 0 then
  1262. local s = math.sqrt(1 + trace)
  1263. local recip = 0.5/s
  1264. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1265. else
  1266. local i = 0
  1267. if m11 > m00 then
  1268. i = 1
  1269. end
  1270. if m22 > (i == 0 and m00 or m11) then
  1271. i = 2
  1272. end
  1273. if i == 0 then
  1274. local s = math.sqrt(m00-m11-m22+1)
  1275. local recip = 0.5/s
  1276. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1277. elseif i == 1 then
  1278. local s = math.sqrt(m11-m22-m00+1)
  1279. local recip = 0.5/s
  1280. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1281. elseif i == 2 then
  1282. local s = math.sqrt(m22-m00-m11+1)
  1283. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1284. end
  1285. end
  1286. end
  1287.  
  1288. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1289. local xs, ys, zs = x + x, y + y, z + z
  1290. local wx, wy, wz = w*xs, w*ys, w*zs
  1291. local xx = x*xs
  1292. local xy = x*ys
  1293. local xz = x*zs
  1294. local yy = y*ys
  1295. local yz = y*zs
  1296. local zz = z*zs
  1297. 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))
  1298. end
  1299.  
  1300. function QuaternionSlerp(a, b, t)
  1301. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1302. local startInterp, finishInterp;
  1303. if cosTheta >= 0.0001 then
  1304. if (1 - cosTheta) > 0.0001 then
  1305. local theta = math.acos(cosTheta)
  1306. local invSinTheta = 1/math.sin(theta)
  1307. startInterp = math.sin((1-t)*theta)*invSinTheta
  1308. finishInterp = math.sin(t*theta)*invSinTheta
  1309. else
  1310. startInterp = 1-t
  1311. finishInterp = t
  1312. end
  1313. else
  1314. if (1+cosTheta) > 0.0001 then
  1315. local theta = math.acos(-cosTheta)
  1316. local invSinTheta = 1/math.sin(theta)
  1317. startInterp = math.sin((t-1)*theta)*invSinTheta
  1318. finishInterp = math.sin(t*theta)*invSinTheta
  1319. else
  1320. startInterp = t-1
  1321. finishInterp = t
  1322. end
  1323. end
  1324. 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
  1325. end
  1326.  
  1327. local function CFrameFromTopBack(at, top, back)
  1328. local right = top:Cross(back)
  1329. return CFrame.new(at.x, at.y, at.z,
  1330. right.x, top.x, back.x,
  1331. right.y, top.y, back.y,
  1332. right.z, top.z, back.z)
  1333. end
  1334.  
  1335. function Triangle(a, b, c)
  1336. local edg1 = (c-a):Dot((b-a).unit)
  1337. local edg2 = (a-b):Dot((c-b).unit)
  1338. local edg3 = (b-c):Dot((a-c).unit)
  1339. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1340. a, b, c = a, b, c
  1341. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1342. a, b, c = b, c, a
  1343. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1344. a, b, c = c, a, b
  1345. else
  1346. assert(false, "unreachable")
  1347. end
  1348.  
  1349. local len1 = (c-a):Dot((b-a).unit)
  1350. local len2 = (b-a).magnitude - len1
  1351. local width = (a + (b-a).unit*len1 - c).magnitude
  1352.  
  1353. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1354.  
  1355. local list = {}
  1356.  
  1357. if len1 > 0.01 then
  1358. local w1 = Instance.new('WedgePart', m)
  1359. game:GetService("Debris"):AddItem(w1,5)
  1360. w1.Material = "SmoothPlastic"
  1361. w1.FormFactor = 'Custom'
  1362. w1.BrickColor = BrickColor.new("Really red")
  1363. w1.Transparency = 0
  1364. w1.Reflectance = 0
  1365. w1.Material = "SmoothPlastic"
  1366. w1.CanCollide = false
  1367. local l1 = Instance.new("PointLight",w1)
  1368. l1.Color = Color3.new(170,0,0)
  1369. NoOutline(w1)
  1370. local sz = Vector3.new(0.2, width, len1)
  1371. w1.Size = sz
  1372. local sp = Instance.new("SpecialMesh",w1)
  1373. sp.MeshType = "Wedge"
  1374. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1375. w1:BreakJoints()
  1376. w1.Anchored = true
  1377. w1.Parent = workspace
  1378. w1.Transparency = 0.7
  1379. table.insert(Effects,{w1,"Disappear",.01})
  1380. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1381. table.insert(list,w1)
  1382. end
  1383.  
  1384. if len2 > 0.01 then
  1385. local w2 = Instance.new('WedgePart', m)
  1386. game:GetService("Debris"):AddItem(w2,5)
  1387. w2.Material = "SmoothPlastic"
  1388. w2.FormFactor = 'Custom'
  1389. w2.BrickColor = BrickColor.new("Really red")
  1390. w2.Transparency = 0
  1391. w2.Reflectance = 0
  1392. w2.Material = "SmoothPlastic"
  1393. w2.CanCollide = false
  1394. local l2 = Instance.new("PointLight",w2)
  1395. l2.Color = Color3.new(170,0,0)
  1396. NoOutline(w2)
  1397. local sz = Vector3.new(0.2, width, len2)
  1398. w2.Size = sz
  1399. local sp = Instance.new("SpecialMesh",w2)
  1400. sp.MeshType = "Wedge"
  1401. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1402. w2:BreakJoints()
  1403. w2.Anchored = true
  1404. w2.Parent = workspace
  1405. w2.Transparency = 0.7
  1406. table.insert(Effects,{w2,"Disappear",.01})
  1407. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1408. table.insert(list,w2)
  1409. end
  1410. return unpack(list)
  1411. end
  1412.  
  1413.  
  1414. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1415. if hit.Parent == nil then
  1416. return
  1417. end
  1418. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1419. for _, v in pairs(hit.Parent:children()) do
  1420. if v:IsA("Humanoid") then
  1421. h = v
  1422. end
  1423. end
  1424. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1425. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1426. return
  1427. end
  1428. local c = Create("ObjectValue")({
  1429. Name = "creator",
  1430. Value = game:service("Players").LocalPlayer,
  1431. Parent = h
  1432. })
  1433. game:GetService("Debris"):AddItem(c, 0.5)
  1434. if HitSound ~= nil and HitPitch ~= nil then
  1435. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1436. end
  1437. local Damage = math.random(minim, maxim)
  1438. local blocked = false
  1439. local block = hit.Parent:findFirstChild("Block")
  1440. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1441. blocked = true
  1442. block.Value = block.Value - 1
  1443. print(block.Value)
  1444. end
  1445. if blocked == false then
  1446. HitHealth = h.Health
  1447. h.Health = h.Health - Damage
  1448. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1449. print("gained kill")
  1450. end
  1451. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1452. else
  1453. h.Health = h.Health - Damage / 2
  1454. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1455. end
  1456. if Type == "Knockdown" then
  1457. local hum = hit.Parent.Humanoid
  1458. hum.PlatformStand = true
  1459. coroutine.resume(coroutine.create(function(HHumanoid)
  1460. swait(1)
  1461. HHumanoid.PlatformStand = false
  1462. end), hum)
  1463. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1464. local bodvol = Create("BodyVelocity")({
  1465. velocity = angle * knockback,
  1466. P = 5000,
  1467. maxForce = Vector3.new(8000, 8000, 8000),
  1468. Parent = hit
  1469. })
  1470. local rl = Create("BodyAngularVelocity")({
  1471. P = 3000,
  1472. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1473. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1474. Parent = hit
  1475. })
  1476. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1477. game:GetService("Debris"):AddItem(rl, 0.5)
  1478. elseif Type == "Normal" then
  1479. local vp = Create("BodyVelocity")({
  1480. P = 500,
  1481. maxForce = Vector3.new(math.huge, 0, math.huge),
  1482. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1483. })
  1484. if knockback > 0 then
  1485. vp.Parent = hit.Parent.Head
  1486. end
  1487. game:GetService("Debris"):AddItem(vp, 0.5)
  1488. elseif Type == "Up" then
  1489. local bodyVelocity = Create("BodyVelocity")({
  1490. velocity = Vector3.new(0, 20, 0),
  1491. P = 5000,
  1492. maxForce = Vector3.new(8000, 8000, 8000),
  1493. Parent = hit
  1494. })
  1495. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1496. local bodyVelocity = Create("BodyVelocity")({
  1497. velocity = Vector3.new(0, 20, 0),
  1498. P = 5000,
  1499. maxForce = Vector3.new(8000, 8000, 8000),
  1500. Parent = hit
  1501. })
  1502. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1503. elseif Type == "Leech" then
  1504. local hum = hit.Parent.Humanoid
  1505. if hum ~= nil then
  1506. for i = 0, 2 do
  1507. 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)
  1508. end
  1509. Humanoid.Health = Humanoid.Health + 10
  1510. end
  1511. elseif Type == "UpKnock" then
  1512. local hum = hit.Parent.Humanoid
  1513. hum.PlatformStand = true
  1514. if hum ~= nil then
  1515. hitr = true
  1516. end
  1517. coroutine.resume(coroutine.create(function(HHumanoid)
  1518. swait(5)
  1519. HHumanoid.PlatformStand = false
  1520. hitr = false
  1521. end), hum)
  1522. local bodyVelocity = Create("BodyVelocity")({
  1523. velocity = Vector3.new(0, 20, 0),
  1524. P = 5000,
  1525. maxForce = Vector3.new(8000, 8000, 8000),
  1526. Parent = hit
  1527. })
  1528. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1529. local bodyVelocity = Create("BodyVelocity")({
  1530. velocity = Vector3.new(0, 20, 0),
  1531. P = 5000,
  1532. maxForce = Vector3.new(8000, 8000, 8000),
  1533. Parent = hit
  1534. })
  1535. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1536. elseif Type == "Snare" then
  1537. local bp = Create("BodyPosition")({
  1538. P = 2000,
  1539. D = 100,
  1540. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1541. position = hit.Parent.Torso.Position,
  1542. Parent = hit.Parent.Torso
  1543. })
  1544. game:GetService("Debris"):AddItem(bp, 1)
  1545. elseif Type == "Slashnare" then
  1546. 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)
  1547. for i = 1, math.random(4, 5) do
  1548. 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)
  1549. end
  1550. local bp = Create("BodyPosition")({
  1551. P = 2000,
  1552. D = 100,
  1553. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1554. position = hit.Parent.Torso.Position,
  1555. Parent = hit.Parent.Torso
  1556. })
  1557. game:GetService("Debris"):AddItem(bp, 1)
  1558. elseif Type == "Spike" then
  1559. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1560. local bp = Create("BodyPosition")({
  1561. P = 2000,
  1562. D = 100,
  1563. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1564. position = hit.Parent.Torso.Position,
  1565. Parent = hit.Parent.Torso
  1566. })
  1567. game:GetService("Debris"):AddItem(bp, 1)
  1568. elseif Type == "Freeze" then
  1569. local BodPos = Create("BodyPosition")({
  1570. P = 50000,
  1571. D = 1000,
  1572. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1573. position = hit.Parent.Torso.Position,
  1574. Parent = hit.Parent.Torso
  1575. })
  1576. local BodGy = Create("BodyGyro")({
  1577. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1578. P = 20000,
  1579. Parent = hit.Parent.Torso,
  1580. cframe = hit.Parent.Torso.CFrame
  1581. })
  1582. hit.Parent.Torso.Anchored = true
  1583. coroutine.resume(coroutine.create(function(Part)
  1584. swait(1.5)
  1585. Part.Anchored = false
  1586. end), hit.Parent.Torso)
  1587. game:GetService("Debris"):AddItem(BodPos, 3)
  1588. game:GetService("Debris"):AddItem(BodGy, 3)
  1589. end
  1590. local debounce = Create("BoolValue")({
  1591. Name = "DebounceHit",
  1592. Parent = hit.Parent,
  1593. Value = true
  1594. })
  1595. game:GetService("Debris"):AddItem(debounce, Delay)
  1596. c = Instance.new("ObjectValue")
  1597. c.Name = "creator"
  1598. c.Value = Player
  1599. c.Parent = h
  1600. game:GetService("Debris"):AddItem(c, 0.5)
  1601. end
  1602. end
  1603. function ShowDamage(Pos, Text, Time, Color)
  1604. local Rate = 0.03333333333333333
  1605. local Pos = Pos or Vector3.new(0, 0, 0)
  1606. local Text = Text or ""
  1607. local Time = Time or 2
  1608. local Color = Color or Color3.new(1, 0, 1)
  1609. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1610. EffectPart.Anchored = true
  1611. local BillboardGui = Create("BillboardGui")({
  1612. Size = UDim2.new(3, 0, 3, 0),
  1613. Adornee = EffectPart,
  1614. Parent = EffectPart
  1615. })
  1616. local TextLabel = Create("TextLabel")({
  1617. BackgroundTransparency = 1,
  1618. Size = UDim2.new(1, 0, 1, 0),
  1619. Text = Text,
  1620. TextColor3 = Color,
  1621. TextScaled = true,
  1622. Font = Enum.Font.ArialBold,
  1623. Parent = BillboardGui
  1624. })
  1625. game.Debris:AddItem(EffectPart, Time + 0.1)
  1626. EffectPart.Parent = game:GetService("Workspace")
  1627. delay(0, function()
  1628. local Frames = Time / Rate
  1629. for Frame = 1, Frames do
  1630. wait(Rate)
  1631. local Percent = Frame / Frames
  1632. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1633. TextLabel.TextTransparency = Percent
  1634. end
  1635. if EffectPart and EffectPart.Parent then
  1636. EffectPart:Destroy()
  1637. end
  1638. end)
  1639. end
  1640. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1641. for _, c in pairs(workspace:children()) do
  1642. local hum = c:findFirstChildOfClass("Humanoid")
  1643. if hum ~= nil then
  1644. local head = c:findFirstChild("Head")
  1645. if head ~= nil then
  1646. local targ = head.Position - Part.Position
  1647. local mag = targ.magnitude
  1648. if magni >= mag and c.Name ~= Player.Name then
  1649. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1650. end
  1651. end
  1652. end
  1653. end
  1654. end
  1655.  
  1656. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1657. for _, c in pairs(workspace:children()) do
  1658. local hum = c:findFirstChild("Humanoid")
  1659. if hum ~= nil then
  1660. local head = c:findFirstChild("Torso")
  1661. if head ~= nil then
  1662. local targ = head.Position - Part.Position
  1663. local mag = targ.magnitude
  1664. if magni >= mag and c.Name ~= Player.Name then
  1665. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1666. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1667. end
  1668. end
  1669. end
  1670. end
  1671. end
  1672.  
  1673. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1674. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1675. end
  1676.  
  1677. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1678. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1679. prt.Anchored=true
  1680. prt.CFrame=cframe
  1681. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1682. --http://www.roblox.com/asset/?id=4770560
  1683. game:GetService("Debris"):AddItem(prt,2)
  1684. CF=prt.CFrame
  1685. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1686. for i=0,1,0.2 do
  1687. wait()
  1688. Part.CFrame=CF*cf(0,0,-0.4)
  1689. end
  1690. for i=0,1,delay do
  1691. wait()
  1692. --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)
  1693. Mesh.Scale=Mesh.Scale
  1694. end
  1695. for i=0,1,0.1 do
  1696. wait()
  1697. Part.Transparency=i
  1698. end
  1699. Part.Parent=nil
  1700. end),prt,msh,CF)
  1701. end
  1702.  
  1703. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1704. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1705. prt.Anchored=true
  1706. prt.Material = "Neon"
  1707. prt.CFrame=cframe
  1708. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1709. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1710. game:GetService("Debris"):AddItem(prt,5)
  1711. coroutine.resume(coroutine.create(function(Part,Mesh)
  1712. for i=0,1,delay do
  1713. swait()
  1714. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1715. Part.Transparency=i
  1716. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1717. end
  1718. Part.Parent=nil
  1719. end),prt,msh)
  1720. end
  1721.  
  1722. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1723. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1724. prt.Anchored=true
  1725. prt.Material = "Neon"
  1726. prt.CFrame=cframe
  1727. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1728. game:GetService("Debris"):AddItem(prt,5)
  1729. coroutine.resume(coroutine.create(function(Part,Mesh)
  1730. local rtype = rottype
  1731. for i=0,1,delay do
  1732. swait()
  1733. if rtype == 1 then
  1734. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1735. elseif rtype == 2 then
  1736. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1737. end
  1738. Part.Transparency=i
  1739. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1740. end
  1741. Part.Parent=nil
  1742. end),prt,msh)
  1743. end
  1744.  
  1745. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1746. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1747. prt.Anchored=true
  1748. prt.CFrame=cframe
  1749. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1750. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1751. game:GetService("Debris"):AddItem(prt,5)
  1752. coroutine.resume(coroutine.create(function(Part,Mesh)
  1753. for i=0,1,delay do
  1754. wait()
  1755. Part.Transparency=i
  1756. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1757. end
  1758. Part.Parent=nil
  1759. end),prt,msh)
  1760. end
  1761.  
  1762. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1763. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1764. prt.Anchored=true
  1765. prt.Material = "Neon"
  1766. prt.CFrame=cframe
  1767. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1768. game:GetService("Debris"):AddItem(prt,5)
  1769. coroutine.resume(coroutine.create(function(Part,Mesh)
  1770. local rtype = rottype
  1771. for i=0,1,delay do
  1772. swait()
  1773. if rtype == 1 then
  1774. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1775. elseif rtype == 2 then
  1776. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1777. end
  1778. Part.Transparency=i
  1779. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1780. end
  1781. Part.Parent=nil
  1782. end),prt,msh)
  1783. end
  1784.  
  1785. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1786. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1787. prt.Anchored=true
  1788. prt.Material = "Neon"
  1789. prt.CFrame=cframe
  1790. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1791. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1792. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1793. game:GetService("Debris"):AddItem(prt,5)
  1794. coroutine.resume(coroutine.create(function(Part,Mesh)
  1795. local rtype = rottype
  1796. for i=0,1,delay do
  1797. swait()
  1798. if rtype == 1 then
  1799. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1800. elseif rtype == 2 then
  1801. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1802. end
  1803. dec.Transparency=i
  1804. dec2.Transparency=i
  1805. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1806. end
  1807. Part.Parent=nil
  1808. end),prt,msh)
  1809. end
  1810.  
  1811. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1812. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1813. prt.Anchored=true
  1814. prt.Material = "Neon"
  1815. prt.CFrame=cframe
  1816. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1817. game:GetService("Debris"):AddItem(prt,5)
  1818. coroutine.resume(coroutine.create(function(Part,Mesh)
  1819. local rtype = rottype
  1820. for i=0,1,delay do
  1821. swait()
  1822. if rtype == 1 then
  1823. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1824. elseif rtype == 2 then
  1825. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1826. end
  1827. prt.Transparency=i
  1828. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1829. end
  1830. Part.Parent=nil
  1831. end),prt,msh)
  1832. end
  1833.  
  1834. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1835. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1836. prt.Anchored=true
  1837. prt.Material = "Neon"
  1838. prt.CFrame=cframe
  1839. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1840. game:GetService("Debris"):AddItem(prt,5)
  1841. coroutine.resume(coroutine.create(function(Part,Mesh)
  1842. local rtype = rottype
  1843. for i=0,1,delay do
  1844. swait()
  1845. if rtype == 1 then
  1846. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1847. elseif rtype == 2 then
  1848. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1849. end
  1850. prt.Transparency=i
  1851. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1852. end
  1853. Part.Parent=nil
  1854. end),prt,msh)
  1855. end
  1856.  
  1857. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1858. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1859. prt.Anchored=true
  1860. prt.Material = "Neon"
  1861. prt.CFrame=cframe
  1862. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1863. game:GetService("Debris"):AddItem(prt,5)
  1864. coroutine.resume(coroutine.create(function(Part,Mesh)
  1865. local rtype = rottype
  1866. for i=0,1,delay do
  1867. swait()
  1868. if rtype == 1 then
  1869. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1870. elseif rtype == 2 then
  1871. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1872. end
  1873. prt.Transparency=i
  1874. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1875. end
  1876. Part.Parent=nil
  1877. end),prt,msh)
  1878. end
  1879.  
  1880. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1881. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1882. prt.Anchored=true
  1883. prt.Material = "Neon"
  1884. prt.CFrame=cframe
  1885. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1886. game:GetService("Debris"):AddItem(prt,5)
  1887. coroutine.resume(coroutine.create(function(Part,Mesh)
  1888. local rtype = rottype
  1889. for i=0,1,delay do
  1890. swait()
  1891. if rtype == 1 then
  1892. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1893. elseif rtype == 2 then
  1894. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1895. end
  1896. prt.Transparency=i
  1897. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1898. end
  1899. Part.Parent=nil
  1900. end),prt,msh)
  1901. end
  1902.  
  1903. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1904. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1905. prt.Anchored=false
  1906. prt.CFrame=cframe
  1907. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1908. local wld=weld(prt,prt,Parent,cframe)
  1909. game:GetService("Debris"):AddItem(prt,5)
  1910. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1911. for i=0,1,delay do
  1912. wait()
  1913. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1914. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1915. Part.Transparency=i
  1916. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1917. end
  1918. Part.Parent=nil
  1919. end),prt,msh,wld)
  1920. end
  1921.  
  1922. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1923. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1924. prt.Anchored=false
  1925. prt.CFrame=cframe
  1926. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1927. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1928. game:GetService("Debris"):AddItem(prt,5)
  1929. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1930. for i=0,1,delay do
  1931. wait()
  1932. Weld.C0=euler(i*20,0,0)
  1933. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1934. Part.Transparency=i
  1935. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1936. end
  1937. Part.Parent=nil
  1938. end),prt,msh,wld)
  1939. end
  1940.  
  1941. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1942. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1943. prt.Anchored=true
  1944. prt.CFrame=cframe
  1945. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1946. game:GetService("Debris"):AddItem(prt,2)
  1947. coroutine.resume(coroutine.create(function(Part,Mesh)
  1948. for i=0,1,delay do
  1949. wait()
  1950. Part.CFrame=Part.CFrame
  1951. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1952. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1953. prt2.Anchored=true
  1954. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1955. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1956. game:GetService("Debris"):AddItem(prt2,2)
  1957. coroutine.resume(coroutine.create(function(Part,Mesh)
  1958. for i=0,1,0.1 do
  1959. wait()
  1960. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1961. end
  1962. Part.Parent=nil
  1963. end),prt2,msh2)
  1964. end
  1965. for i=0,1,delay*2 do
  1966. wait()
  1967. Part.CFrame=Part.CFrame
  1968. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1969. end
  1970. Part.Parent=nil
  1971. end),prt,msh)
  1972. end
  1973.  
  1974. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1975. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1976. prt.Anchored=true
  1977. prt.CFrame=cframe
  1978. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1979. game:GetService("Debris"):AddItem(prt,2)
  1980. coroutine.resume(coroutine.create(function(Part,Mesh)
  1981. for i=0,1,delay do
  1982. wait()
  1983. Part.CFrame=Part.CFrame
  1984. Part.Transparency=i
  1985. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1986. end
  1987. Part.Parent=nil
  1988. end),prt,msh)
  1989. end
  1990.  
  1991. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1992. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1993. prt.Anchored=true
  1994. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1995. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1996. game:GetService("Debris"):AddItem(prt,2)
  1997. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1998. CF=Part.CFrame
  1999. Numbb=0
  2000. randnumb=math.random()/10
  2001. rand1=math.random()/10
  2002. for i=0,1,rand1 do
  2003. wait()
  2004. CF=CF*cf(0,math.random()/2,0)
  2005. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2006. Part.CFrame=CF*euler(Numbb,0,0)
  2007. Part.Transparency=i
  2008. Numbb=Numbb+randnumb
  2009. end
  2010. Part.Parent=nil
  2011. end),prt,CF,Numbb,randnumb)
  2012. end
  2013.  
  2014. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2015. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2016. prt.Anchored=true
  2017. prt.CFrame=cframe
  2018. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2019. game:GetService("Debris"):AddItem(prt,5)
  2020. coroutine.resume(coroutine.create(function(Part,Mesh)
  2021. for i=0,1,delay do
  2022. wait()
  2023. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2024. Part.Transparency=i
  2025. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2026. end
  2027. Part.Parent=nil
  2028. end),prt,msh)
  2029. end
  2030.  
  2031. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2032. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2033. prt.Anchored=true
  2034. prt.CFrame=cframe
  2035. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2036. game:GetService("Debris"):AddItem(prt,2)
  2037. coroutine.resume(coroutine.create(function(Part,Mesh)
  2038. for i=0,1,delay do
  2039. wait()
  2040. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2041. Part.Transparency=i
  2042. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2043. end
  2044. Part.Parent=nil
  2045. end),prt,msh)
  2046. end
  2047.  
  2048. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2049. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2050. prt.Anchored=true
  2051. prt.CFrame=cframe*cf(x,y,z)
  2052. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2053. game:GetService("Debris"):AddItem(prt,5)
  2054. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2055. local num=math.random()
  2056. local num2=math.random(-3,2)+math.random()
  2057. local numm=0
  2058. for i=0,1,delay*2 do
  2059. swait()
  2060. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2061. Part.Transparency=i
  2062. numm=numm+0.01
  2063. end
  2064. Part.Parent=nil
  2065. Mesh.Parent=nil
  2066. end),prt,msh,x,y,z)
  2067. end
  2068.  
  2069. function dmgstart(dmg,what)
  2070. hitcon = what.Touched:connect(function(hit)
  2071. local hum = hit.Parent:FindFirstChild("Humanoid")
  2072. if hum and not hum:IsDescendantOf(Character) then
  2073. hum:TakeDamage(dmg)
  2074. end
  2075. end)
  2076. end
  2077.  
  2078. function dmgstop()
  2079. hitcon:disconnect()
  2080. end
  2081.  
  2082. function Cloak()
  2083. Face.Parent=nil
  2084. cloaked=true
  2085. for _,v in pairs(Torso.Parent:children()) do
  2086. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2087. coroutine.resume(coroutine.create(function()
  2088. for i=0,1,0.2 do
  2089. wait()
  2090. v.Transparency=i
  2091. end
  2092. v.Transparency=1
  2093. end))
  2094. end
  2095. if v.className=="Hat" then
  2096. hatp=v.Handle
  2097. coroutine.resume(coroutine.create(function(derp)
  2098. for i=0,1,0.2 do
  2099. wait()
  2100. derp.Transparency=i
  2101. end
  2102. derp.Transparency=1
  2103. end),hatp)
  2104. end
  2105. end
  2106. for _,v in pairs(m:children()) do
  2107. if v.className=="Part" then
  2108. coroutine.resume(coroutine.create(function()
  2109. for i=0,1,0.2 do
  2110. wait()
  2111. v.Transparency=i
  2112. end
  2113. v.Transparency=1
  2114. end))
  2115. end
  2116. end
  2117. end
  2118.  
  2119. function UnCloak()
  2120. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2121. Face.Parent=Head
  2122. cloaked=false
  2123. for _,v in pairs(Torso.Parent:children()) do
  2124. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2125. coroutine.resume(coroutine.create(function()
  2126. for i=0,1,0.1 do
  2127. wait()
  2128. v.Transparency=v.Transparency-0.1
  2129. end
  2130. v.Transparency=0
  2131. end))
  2132. end
  2133. if v.className=="Hat" then
  2134. hatp=v.Handle
  2135. coroutine.resume(coroutine.create(function(derp)
  2136. for i=0,1,0.1 do
  2137. wait()
  2138. derp.Transparency=derp.Transparency-0.1
  2139. end
  2140. derp.Transparency=0
  2141. end),hatp)
  2142. end
  2143. end
  2144. for _,v in pairs(m:children()) do
  2145. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2146. coroutine.resume(coroutine.create(function()
  2147. for i=0,1,0.1 do
  2148. wait()
  2149. v.Transparency=v.Transparency-0.1
  2150. end
  2151. v.Transparency=0
  2152. end))
  2153. v.Transparency=0
  2154. end
  2155. end
  2156. end
  2157.  
  2158. local origcolor = BrickColor.new("Pastel light blue")
  2159. ---- This section of explosions.
  2160. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2161. local expart = Instance.new("Part",char)
  2162. local expart2 = Instance.new("Part",char)
  2163. local rin = Instance.new("Part",char)
  2164. local rin2 = Instance.new("Part",char)
  2165. local partMesh = Instance.new("SpecialMesh",expart)
  2166. partMesh.MeshType = "Sphere"
  2167. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2168. partMesh2.MeshType = "Sphere"
  2169. local partMesh3 = Instance.new("SpecialMesh",rin)
  2170. partMesh3.MeshType = "Brick"
  2171. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2172. partMesh4.MeshType = "Brick"
  2173. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2174. partMesh.Scale = vt(rad,rad,rad)
  2175. expart.Size = vt(1,1,1)
  2176. expart.Transparency = 0
  2177. expart.Anchored = true
  2178. expart.Material = "Neon"
  2179. expart.BrickColor = bc("White")
  2180. expart.CFrame = par.CFrame
  2181. partMesh2.Scale = vt(rad,rad,rad)
  2182. expart2.Size = vt(1.15,1.15,1.15)
  2183. expart2.Transparency = 0.5
  2184. expart2.Anchored = true
  2185. expart2.Material = "Neon"
  2186. expart2.BrickColor = par.BrickColor
  2187. expart2.CFrame = par.CFrame
  2188. rin.Size = vt(1.15,1.15,1.15)
  2189. rin.Transparency = 1
  2190. rin.Anchored = true
  2191. rin.Material = "Neon"
  2192. rin.BrickColor = par.BrickColor
  2193. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2194. rin2.Size = vt(1.15,1.15,1.15)
  2195. rin2.Transparency = 1
  2196. rin2.Anchored = true
  2197. rin2.Material = "Neon"
  2198. rin2.BrickColor = par.BrickColor
  2199. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2200. partMesh3.Scale = vt(0,1,0)
  2201. partMesh4.Scale = vt(0,1,0)
  2202. local dec2 = Instance.new("Decal", rin)
  2203. dec2.Face = "Top"
  2204. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2205. dec2.Parent = rin
  2206. local dec2b = dec2:Clone()
  2207. dec2b.Face = "Bottom"
  2208. dec2b.Parent = rin
  2209.  
  2210. local dec2a = Instance.new("Decal", rin2)
  2211. dec2a.Face = "Top"
  2212. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2213. dec2a.Parent = rin2
  2214. local dec2ab = dec2a:Clone()
  2215. dec2ab.Face = "Bottom"
  2216. dec2ab.Parent = rin2
  2217. expart.CanCollide = false
  2218. expart2.CanCollide = false
  2219. rin.CanCollide = false
  2220. rin2.CanCollide = false
  2221. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2222. local value = 1*rad/6.5
  2223. for i = 0, 199 do
  2224. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2225. expart.CFrame = expart.CFrame
  2226. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2227. expart2.CFrame = expart.CFrame
  2228. value = value - 0.035*rad/30
  2229. if value < 7.5 then
  2230. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2231. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2232. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2233. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2234. end
  2235. if value < 0 then
  2236. dec2.Transparency = dec2.Transparency + 0.025
  2237. dec2a.Transparency = dec2a.Transparency + 0.025
  2238. dec2b.Transparency = dec2b.Transparency + 0.025
  2239. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2240. expart.Transparency = expart.Transparency + 0.025
  2241. expart2.Transparency = expart2.Transparency + 0.025
  2242. rin.Transparency = rin.Transparency + 0.025
  2243. rin2.Transparency = rin2.Transparency + 0.025
  2244. end
  2245. swait()
  2246. end
  2247. game:GetService("Debris"):AddItem(expart, 1)
  2248. game:GetService("Debris"):AddItem(expart2, 1)
  2249. game:GetService("Debris"):AddItem(rin, 1)
  2250. game:GetService("Debris"):AddItem(rin2, 1)
  2251. end
  2252.  
  2253. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2254. local expart = Instance.new("Part",char)
  2255. local expart2 = Instance.new("Part",char)
  2256. local partMesh = Instance.new("SpecialMesh",expart)
  2257. partMesh.MeshType = "Sphere"
  2258. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2259. partMesh2.MeshType = "Sphere"
  2260. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2261. partMesh.Scale = vt(rad,rad,rad)
  2262. expart.Size = vt(1,1,1)
  2263. expart.Transparency = 0
  2264. expart.Anchored = true
  2265. expart.Material = "Neon"
  2266. expart.BrickColor = bc("White")
  2267. expart.CFrame = par.CFrame
  2268. partMesh2.Scale = vt(rad,rad,rad)
  2269. expart2.Size = vt(1.15,1.15,1.15)
  2270. expart2.Transparency = 0.5
  2271. expart2.Anchored = true
  2272. expart2.Material = "Neon"
  2273. expart2.BrickColor = par.BrickColor
  2274. expart2.CFrame = par.CFrame
  2275. expart.CanCollide = false
  2276. expart2.CanCollide = false
  2277. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2278. local value = 1*rad/6.5
  2279. for i = 0, 75 do
  2280. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2281. expart.CFrame = expart.CFrame
  2282. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2283. expart2.CFrame = expart.CFrame
  2284. value = value - 0.035*rad/5
  2285. if value < 0 then
  2286. value = 0
  2287. expart.Transparency = expart.Transparency + 0.05
  2288. expart2.Transparency = expart2.Transparency + 0.05
  2289. end
  2290. swait()
  2291. end
  2292. game:GetService("Debris"):AddItem(expart, 1)
  2293. game:GetService("Debris"):AddItem(expart2, 1)
  2294. end
  2295.  
  2296. function AreaDanger(rad,par,mindam,maxdam)
  2297. local expart = Instance.new("Part",char)
  2298. local partMesh = Instance.new("SpecialMesh",expart)
  2299. CFuncs["Sound"].Create("rbxassetid://1759111654", expart,1.5,1.15)
  2300. partMesh.MeshType = "Sphere"
  2301. partMesh.Scale = vt(rad,rad,rad)
  2302. expart.Size = vt(1,1,1)
  2303. expart.Transparency = 0.5
  2304. expart.Anchored = true
  2305. expart.Material = "Neon"
  2306. expart.CanCollide = false
  2307. expart.BrickColor = par.BrickColor
  2308. expart.CFrame = par.CFrame
  2309. local value = 1*rad/5
  2310. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2311. for i = 0, 14 do
  2312. wait()
  2313. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2314. expart.CFrame = expart.CFrame
  2315. value = value - 0.035*rad
  2316. if value < 0 then
  2317. value = 0
  2318. end
  2319. end
  2320. wait(0.25)
  2321. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2322. wait(0.5)
  2323. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2324. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2325. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2326. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2327. for i = 0, 14 do
  2328. wait()
  2329. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2330. expart.CFrame = expart.CFrame
  2331. value = value - 0.035*rad/2
  2332. end
  2333. expart.Transparency = 1
  2334. game:GetService("Debris"):AddItem(expart, 5)
  2335. end
  2336.  
  2337. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2338. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2339. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2340. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2341. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2342. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2343. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2344. for i = 0, 24 do
  2345. 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))
  2346. end
  2347. for i = 0, 24 do
  2348. local expart = Instance.new("Part",char)
  2349. expart.Transparency = 1
  2350. expart.Anchored = true
  2351. expart.CanCollide = false
  2352. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2353. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2354. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2355. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2356. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2357. for i = 0, 9 do
  2358. 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))
  2359. end
  2360. game:GetService("Debris"):AddItem(expart, 2)
  2361. wait(0.1)
  2362. end
  2363. end
  2364.  
  2365. function EXterPlosion(par)
  2366. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2367. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2368. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2369. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2370. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2371. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2372. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2373. for i = 0, 24 do
  2374. 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))
  2375. end
  2376. for i = 0, 24 do
  2377. 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))
  2378. end
  2379. end
  2380. ----
  2381.  
  2382.  
  2383. function ring(type,pos,scale,value)
  2384. local type = type
  2385. local rng = Instance.new("Part", char)
  2386. rng.Anchored = true
  2387. rng.BrickColor = origcolor
  2388. rng.CanCollide = false
  2389. rng.FormFactor = 3
  2390. rng.Name = "Ring"
  2391. rng.Size = Vector3.new(1, 1, 1)
  2392. rng.Transparency = 0
  2393. rng.TopSurface = 0
  2394. rng.BottomSurface = 0
  2395. rng.CFrame = pos
  2396. local rngm = Instance.new("SpecialMesh", rng)
  2397. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2398. rngm.Scale = scale
  2399. local scaler2 = 1
  2400. if type == "Add" then
  2401. scaler2 = 1*value
  2402. elseif type == "Divide" then
  2403. scaler2 = 1/value
  2404. end
  2405. coroutine.resume(coroutine.create(function()
  2406. for i = 0,10,0.1 do
  2407. swait()
  2408. if type == "Add" then
  2409. scaler2 = scaler2 - 0.01*value
  2410. elseif type == "Divide" then
  2411. scaler2 = scaler2 - 0.01/value
  2412. end
  2413. rng.Transparency = rng.Transparency + 0.01
  2414. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2415. end
  2416. rng:Destroy()
  2417. end))
  2418. end
  2419.  
  2420.  
  2421. function wave(type,pos,scale,value)
  2422. local type = type
  2423. local rng = Instance.new("Part", char)
  2424. rng.Anchored = true
  2425. rng.BrickColor = origcolor
  2426. rng.CanCollide = false
  2427. rng.FormFactor = 3
  2428. rng.Name = "Ring"
  2429. rng.Size = Vector3.new(1, 1, 1)
  2430. rng.Transparency = 0
  2431. rng.TopSurface = 0
  2432. rng.BottomSurface = 0
  2433. rng.CFrame = pos
  2434. local rngm = Instance.new("SpecialMesh", rng)
  2435. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2436. rngm.Scale = scale
  2437. local scaler2 = 1
  2438. if type == "Add" then
  2439. scaler2 = 1*value
  2440. elseif type == "Divide" then
  2441. scaler2 = 1/value
  2442. end
  2443. coroutine.resume(coroutine.create(function()
  2444. for i = 0,10,0.1 do
  2445. swait()
  2446. if type == "Add" then
  2447. scaler2 = scaler2 - 0.01*value
  2448. elseif type == "Divide" then
  2449. scaler2 = scaler2 - 0.01/value
  2450. end
  2451. rng.Transparency = rng.Transparency + 0.01
  2452. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2453. end
  2454. rng:Destroy()
  2455. end))
  2456. end
  2457.  
  2458. function wind(type,pos,scale,value,speed)
  2459. local type = type
  2460. local rng = Instance.new("Part", char)
  2461. rng.Anchored = true
  2462. rng.BrickColor = origcolor
  2463. rng.CanCollide = false
  2464. rng.FormFactor = 3
  2465. rng.Name = "Ring"
  2466. rng.Size = Vector3.new(1, 1, 1)
  2467. rng.Transparency = 0
  2468. rng.TopSurface = 0
  2469. rng.BottomSurface = 0
  2470. rng.CFrame = pos
  2471. local rngm = Instance.new("SpecialMesh", rng)
  2472. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2473. rngm.Scale = scale
  2474. local scaler2 = 1
  2475. if type == "Add" then
  2476. scaler2 = 1*value
  2477. elseif type == "Divide" then
  2478. scaler2 = 1/value
  2479. end
  2480. coroutine.resume(coroutine.create(function()
  2481. for i = 0,10,0.1 do
  2482. swait()
  2483. if type == "Add" then
  2484. scaler2 = scaler2 - 0.01*value
  2485. elseif type == "Divide" then
  2486. scaler2 = scaler2 - 0.01/value
  2487. end
  2488. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2489. rng.Transparency = rng.Transparency + 0.01
  2490. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2491. end
  2492. rng:Destroy()
  2493. end))
  2494. end
  2495.  
  2496. function groundwind(type,pos,scale,value,speed)
  2497. local type = type
  2498. local rng = Instance.new("Part", char)
  2499. rng.Anchored = true
  2500. rng.BrickColor = origcolor
  2501. rng.CanCollide = false
  2502. rng.FormFactor = 3
  2503. rng.Name = "Ring"
  2504. rng.Size = Vector3.new(1, 1, 1)
  2505. rng.Transparency = 0
  2506. rng.TopSurface = 0
  2507. rng.BottomSurface = 0
  2508. rng.CFrame = pos
  2509. local rngm = Instance.new("SpecialMesh", rng)
  2510. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2511. rngm.Scale = scale
  2512. local scaler2 = 1
  2513. if type == "Add" then
  2514. scaler2 = 1*value
  2515. elseif type == "Divide" then
  2516. scaler2 = 1/value
  2517. end
  2518. coroutine.resume(coroutine.create(function()
  2519. for i = 0,10,0.1 do
  2520. swait()
  2521. if type == "Add" then
  2522. scaler2 = scaler2 - 0.01*value
  2523. elseif type == "Divide" then
  2524. scaler2 = scaler2 - 0.01/value
  2525. end
  2526. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2527. rng.Transparency = rng.Transparency + 0.01
  2528. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2529. end
  2530. rng:Destroy()
  2531. end))
  2532. end
  2533.  
  2534. function CameraManager()
  2535. if TwoD and not CamInterrupt then
  2536. if Humanoid.Health > 0 then
  2537. Camera.CameraSubject = Humanoid
  2538. Camera.CameraType = "Scriptable"
  2539. Humanoid.AutoRotate = false
  2540. if Booleans.GyroUse then
  2541. Directer.MaxTorque = Vec3(0, huge, 0)
  2542. else
  2543. Directer.MaxTorque = Vec3(0, 0, 0)
  2544. end
  2545. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2546. if Booleans.CamFollow then
  2547. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2548. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2549. else
  2550. CPart.Position = RootPart.Position
  2551. end
  2552. else
  2553. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2554. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2555. end
  2556. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2557. else
  2558. Camera.CameraSubject = Humanoid
  2559. Camera.CameraType = "Custom"
  2560. Controller.Disabled = false
  2561. end
  2562. end
  2563. end
  2564.  
  2565. function sphere(bonuspeed,type,pos,scale,value,color)
  2566. local type = type
  2567. local rng = Instance.new("Part", char)
  2568. rng.Anchored = true
  2569. rng.BrickColor = color
  2570. rng.CanCollide = false
  2571. rng.FormFactor = 3
  2572. rng.Name = "Ring"
  2573. rng.Material = "Neon"
  2574. rng.Size = Vector3.new(1, 1, 1)
  2575. rng.Transparency = 0
  2576. rng.TopSurface = 0
  2577. rng.BottomSurface = 0
  2578. rng.CFrame = pos
  2579. local rngm = Instance.new("SpecialMesh", rng)
  2580. rngm.MeshType = "Sphere"
  2581. rngm.Scale = scale
  2582. if rainbowmode == true then
  2583. rng.Color = Color3.new(r/255,g/255,b/255)
  2584. end
  2585. local scaler2 = 1
  2586. if type == "Add" then
  2587. scaler2 = 1*value
  2588. elseif type == "Divide" then
  2589. scaler2 = 1/value
  2590. end
  2591. coroutine.resume(coroutine.create(function()
  2592. for i = 0,10/bonuspeed,0.1 do
  2593. swait()
  2594. if rainbowmode == true then
  2595. rng.Color = Color3.new(r/255,g/255,b/255)
  2596. end
  2597. if type == "Add" then
  2598. scaler2 = scaler2 - 0.01*value/bonuspeed
  2599. elseif type == "Divide" then
  2600. scaler2 = scaler2 - 0.01/value*bonuspeed
  2601. end
  2602. if chaosmode == true then
  2603. rng.BrickColor = BrickColor.random()
  2604. end
  2605. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2606. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2607. end
  2608. rng:Destroy()
  2609. end))
  2610. end
  2611.  
  2612. function spherew(bonuspeed,type,pos,scale,value,color)
  2613. local type = type
  2614. local rng = Instance.new("Part", workspace)
  2615. rng.Anchored = true
  2616. rng.BrickColor = color
  2617. rng.CanCollide = false
  2618. rng.FormFactor = 3
  2619. rng.Name = "Ring"
  2620. rng.Material = "Neon"
  2621. rng.Size = Vector3.new(1, 1, 1)
  2622. rng.Transparency = 0
  2623. rng.TopSurface = 0
  2624. rng.BottomSurface = 0
  2625. rng.CFrame = pos
  2626. local rngm = Instance.new("SpecialMesh", rng)
  2627. rngm.MeshType = "Sphere"
  2628. rngm.Scale = scale
  2629. if rainbowmode == true then
  2630. rng.Color = Color3.new(r/255,g/255,b/255)
  2631. end
  2632. local scaler2 = 1
  2633. if type == "Add" then
  2634. scaler2 = 1*value
  2635. elseif type == "Divide" then
  2636. scaler2 = 1/value
  2637. end
  2638. coroutine.resume(coroutine.create(function()
  2639. for i = 0,10/bonuspeed,0.1 do
  2640. swait()
  2641. if rainbowmode == true then
  2642. rng.Color = Color3.new(r/255,g/255,b/255)
  2643. end
  2644. if type == "Add" then
  2645. scaler2 = scaler2 - 0.01*value/bonuspeed
  2646. elseif type == "Divide" then
  2647. scaler2 = scaler2 - 0.01/value*bonuspeed
  2648. end
  2649. if chaosmode == true then
  2650. rng.BrickColor = BrickColor.random()
  2651. end
  2652. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2653. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2654. end
  2655. rng:Destroy()
  2656. end))
  2657. end
  2658.  
  2659. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2660. local type = type
  2661. local rng = Instance.new("Part", char)
  2662. rng.Anchored = true
  2663. rng.BrickColor = color
  2664. rng.CanCollide = false
  2665. rng.FormFactor = 3
  2666. rng.Name = "Ring"
  2667. rng.Material = "Neon"
  2668. rng.Size = Vector3.new(1, 1, 1)
  2669. rng.Transparency = 0
  2670. rng.TopSurface = 0
  2671. rng.BottomSurface = 0
  2672. rng.CFrame = pos
  2673. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2674. local rngm = Instance.new("SpecialMesh", rng)
  2675. rngm.MeshType = "Brick"
  2676. rngm.Scale = vt(x1,y1,z1)
  2677. if rainbowmode == true then
  2678. rng.Color = Color3.new(r/255,g/255,b/255)
  2679. end
  2680. local scaler2 = 1
  2681. local speeder = FastSpeed/10
  2682. if type == "Add" then
  2683. scaler2 = 1*value
  2684. elseif type == "Divide" then
  2685. scaler2 = 1/value
  2686. end
  2687. coroutine.resume(coroutine.create(function()
  2688. for i = 0,10/bonuspeed,0.1 do
  2689. swait()
  2690. if rainbowmode == true then
  2691. rng.Color = Color3.new(r/255,g/255,b/255)
  2692. end
  2693. if type == "Add" then
  2694. scaler2 = scaler2 - 0.01*value/bonuspeed
  2695. elseif type == "Divide" then
  2696. scaler2 = scaler2 - 0.01/value*bonuspeed
  2697. end
  2698. if chaosmode == true then
  2699. rng.BrickColor = BrickColor.random()
  2700. end
  2701. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2702. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2703. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2704. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2705. end
  2706. rng:Destroy()
  2707. end))
  2708. end
  2709.  
  2710. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2711. local type = type
  2712. local rng = Instance.new("Part", char)
  2713. rng.Anchored = true
  2714. rng.BrickColor = color
  2715. rng.CanCollide = false
  2716. rng.FormFactor = 3
  2717. rng.Name = "Ring"
  2718. rng.Material = "Neon"
  2719. rng.Size = Vector3.new(1, 1, 1)
  2720. rng.Transparency = 0
  2721. rng.TopSurface = 0
  2722. rng.BottomSurface = 0
  2723. rng.CFrame = pos
  2724. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2725. local rngm = Instance.new("SpecialMesh", rng)
  2726. rngm.MeshType = "Brick"
  2727. rngm.Scale = vt(x1,y1,z1)
  2728. if rainbowmode == true then
  2729. rng.Color = Color3.new(r/255,g/255,b/255)
  2730. end
  2731. local scaler2 = 0
  2732. local speeder = FastSpeed/10
  2733. if type == "Add" then
  2734. scaler2 = 1*value
  2735. elseif type == "Divide" then
  2736. scaler2 = 1/value
  2737. end
  2738. coroutine.resume(coroutine.create(function()
  2739. for i = 0,10/bonuspeed,0.1 do
  2740. swait()
  2741. if rainbowmode == true then
  2742. rng.Color = Color3.new(r/255,g/255,b/255)
  2743. end
  2744. if type == "Add" then
  2745. scaler2 = scaler2 - 0.01*value/bonuspeed
  2746. elseif type == "Divide" then
  2747. scaler2 = scaler2 - 0.01/value*bonuspeed
  2748. end
  2749. if chaosmode == true then
  2750. rng.BrickColor = BrickColor.random()
  2751. end
  2752. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2753. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2754. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2755. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2756. end
  2757. rng:Destroy()
  2758. end))
  2759. end
  2760.  
  2761. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2762. local type = type
  2763. local rng = Instance.new("Part", workspace)
  2764. rng.Anchored = true
  2765. rng.BrickColor = color
  2766. rng.CanCollide = false
  2767. rng.FormFactor = 3
  2768. rng.Name = "Ring"
  2769. rng.Material = "Neon"
  2770. rng.Size = Vector3.new(1, 1, 1)
  2771. rng.Transparency = 0
  2772. rng.TopSurface = 0
  2773. rng.BottomSurface = 0
  2774. rng.CFrame = pos
  2775. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2776. local rngm = Instance.new("SpecialMesh", rng)
  2777. rngm.MeshType = "Sphere"
  2778. rngm.Scale = vt(x1,y1,z1)
  2779. if rainbowmode == true then
  2780. rng.Color = Color3.new(r/255,g/255,b/255)
  2781. end
  2782. local scaler2 = 1
  2783. local speeder = FastSpeed
  2784. if type == "Add" then
  2785. scaler2 = 1*value
  2786. elseif type == "Divide" then
  2787. scaler2 = 1/value
  2788. end
  2789. coroutine.resume(coroutine.create(function()
  2790. for i = 0,10/bonuspeed,0.1 do
  2791. swait()
  2792. if rainbowmode == true then
  2793. rng.Color = Color3.new(r/255,g/255,b/255)
  2794. end
  2795. if type == "Add" then
  2796. scaler2 = scaler2 - 0.01*value/bonuspeed
  2797. elseif type == "Divide" then
  2798. scaler2 = scaler2 - 0.01/value*bonuspeed
  2799. end
  2800. if chaosmode == true then
  2801. rng.BrickColor = BrickColor.random()
  2802. end
  2803. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2804. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2805. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2806. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2807. end
  2808. rng:Destroy()
  2809. end))
  2810. end
  2811. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2812. local type = type
  2813. local rng = Instance.new("Part", char)
  2814. rng.Anchored = true
  2815. rng.BrickColor = color
  2816. rng.CanCollide = false
  2817. rng.FormFactor = 3
  2818. rng.Name = "Ring"
  2819. rng.Material = "Neon"
  2820. rng.Size = Vector3.new(1, 1, 1)
  2821. rng.Transparency = 0
  2822. rng.TopSurface = 0
  2823. rng.BottomSurface = 0
  2824. rng.CFrame = pos
  2825. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2826. local rngm = Instance.new("SpecialMesh", rng)
  2827. rngm.MeshType = "Sphere"
  2828. rngm.Scale = vt(x1,y1,z1)
  2829. if rainbowmode == true then
  2830. rng.Color = Color3.new(r/255,g/255,b/255)
  2831. end
  2832. local scaler2 = 1
  2833. local speeder = FastSpeed
  2834. if type == "Add" then
  2835. scaler2 = 1*value
  2836. elseif type == "Divide" then
  2837. scaler2 = 1/value
  2838. end
  2839. coroutine.resume(coroutine.create(function()
  2840. for i = 0,10/bonuspeed,0.1 do
  2841. swait()
  2842. if rainbowmode == true then
  2843. rng.Color = Color3.new(r/255,g/255,b/255)
  2844. end
  2845. if type == "Add" then
  2846. scaler2 = scaler2 - 0.01*value/bonuspeed
  2847. elseif type == "Divide" then
  2848. scaler2 = scaler2 - 0.01/value*bonuspeed
  2849. end
  2850. if chaosmode == true then
  2851. rng.BrickColor = BrickColor.random()
  2852. end
  2853. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2854. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2855. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2856. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2857. end
  2858. rng:Destroy()
  2859. end))
  2860. end
  2861.  
  2862.  
  2863. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2864. local type = type
  2865. local rng = Instance.new("Part", char)
  2866. rng.Anchored = true
  2867. rng.BrickColor = color
  2868. rng.CanCollide = false
  2869. rng.FormFactor = 3
  2870. rng.Name = "Ring"
  2871. rng.Material = "Neon"
  2872. rng.Size = Vector3.new(1, 1, 1)
  2873. rng.Transparency = 1
  2874. rng.TopSurface = 0
  2875. rng.BottomSurface = 0
  2876. rng.CFrame = pos
  2877. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2878. local rngm = Instance.new("SpecialMesh", rng)
  2879. rngm.MeshType = "Sphere"
  2880. rngm.Scale = vt(x1,y1,z1)
  2881. if rainbowmode == true then
  2882. rng.Color = Color3.new(r/255,g/255,b/255)
  2883. end
  2884. local scaler2 = 1
  2885. local speeder = FastSpeed
  2886. if type == "Add" then
  2887. scaler2 = 1*value
  2888. elseif type == "Divide" then
  2889. scaler2 = 1/value
  2890. end
  2891. coroutine.resume(coroutine.create(function()
  2892. for i = 0,10/bonuspeed,0.1 do
  2893. swait()
  2894. if rainbowmode == true then
  2895. rng.Color = Color3.new(r/255,g/255,b/255)
  2896. end
  2897. if type == "Add" then
  2898. scaler2 = scaler2 - 0.01*value/bonuspeed
  2899. elseif type == "Divide" then
  2900. scaler2 = scaler2 - 0.01/value*bonuspeed
  2901. end
  2902. if chaosmode == true then
  2903. rng.BrickColor = BrickColor.random()
  2904. end
  2905. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2906. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2907. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2908. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2909. end
  2910. rng:Destroy()
  2911. end))
  2912. end
  2913.  
  2914. function dmg(dude)
  2915. if dude.Name ~= Character then
  2916. local bgf = Instance.new("BodyGyro",dude.Head)
  2917. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2918. local val = Instance.new("BoolValue",dude)
  2919. val.Name = "IsHit"
  2920. local ds = coroutine.wrap(function()
  2921. dude:WaitForChild("Head"):BreakJoints()
  2922. wait(0.5)
  2923. targetted = nil
  2924. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2925. coroutine.resume(coroutine.create(function()
  2926. for i, v in pairs(dude:GetChildren()) do
  2927. if v:IsA("Accessory") then
  2928. v:Destroy()
  2929. end
  2930. if v:IsA("Humanoid") then
  2931. v:Destroy()
  2932. end
  2933. if v:IsA("CharacterMesh") then
  2934. v:Destroy()
  2935. end
  2936. if v:IsA("Model") then
  2937. v:Destroy()
  2938. end
  2939. if v:IsA("Part") or v:IsA("MeshPart") then
  2940. for x, o in pairs(v:GetChildren()) do
  2941. if o:IsA("Decal") then
  2942. o:Destroy()
  2943. end
  2944. end
  2945. coroutine.resume(coroutine.create(function()
  2946. v.Material = "Neon"
  2947. v.CanCollide = false
  2948. local bld = Instance.new("ParticleEmitter",v)
  2949. bld.LightEmission = 1
  2950. bld.Texture = "rbxassetid://284205403"
  2951. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2952. bld.Rate = 50
  2953. bld.Lifetime = NumberRange.new(1)
  2954. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2955. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2956. bld.Speed = NumberRange.new(0,0)
  2957. bld.VelocitySpread = 50000
  2958. bld.Rotation = NumberRange.new(-500,500)
  2959. bld.RotSpeed = NumberRange.new(-500,500)
  2960. local sbs = Instance.new("BodyPosition", v)
  2961. sbs.P = 3000
  2962. sbs.D = 1000
  2963. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2964. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2965. v.Color = Color3.new(1,1,1)
  2966. coroutine.resume(coroutine.create(function()
  2967. for i = 0, 49 do
  2968. swait(1)
  2969. v.Transparency = v.Transparency + 0.02
  2970. end
  2971. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  2972. bld.Speed = NumberRange.new(1,5)
  2973. bld.Acceleration = vt(0,10,0)
  2974. wait(0.5)
  2975. bld.Enabled = false
  2976. wait(3)
  2977. v:Destroy()
  2978. dude:Destroy()
  2979. end))
  2980. end))
  2981. end
  2982. end
  2983. end))
  2984. end)
  2985. ds()
  2986. end
  2987. end
  2988.  
  2989.  
  2990. function FindNearestHead(Position, Distance, SinglePlayer)
  2991. if SinglePlayer then
  2992. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2993. end
  2994. local List = {}
  2995. for i, v in pairs(workspace:GetChildren()) do
  2996. if v:IsA("Model") then
  2997. if v:findFirstChild("Head") then
  2998. if v ~= Character then
  2999. if (v.Head.Position - Position).magnitude <= Distance then
  3000. table.insert(List, v)
  3001. end
  3002. end
  3003. end
  3004. end
  3005. end
  3006. return List
  3007. end
  3008.  
  3009. function FaceMouse()
  3010. Cam = workspace.CurrentCamera
  3011. return {
  3012. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3013. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3014. }
  3015. end
  3016.  
  3017. function FaceMouse2()
  3018. Cam = workspace.CurrentCamera
  3019. return {
  3020. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3021. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3022. }
  3023. end
  3024.  
  3025. local ModeOfGlitch = 1
  3026. -- Functions are ready.
  3027. local storehumanoidWS = 16
  3028.  
  3029. function Blink()
  3030. for i = 0, 14 do
  3031. 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)
  3032. end
  3033. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3034. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3035. CameraEnshaking(2,10)
  3036. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3037. if v:FindFirstChild('Head') then
  3038. end
  3039. end
  3040. for i = 0, 14 do
  3041. 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)
  3042. end
  3043. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3044. end
  3045.  
  3046. function ExtinctiveHeartbreak()
  3047. local targetted = nil
  3048. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3049. targetted = mouse.Target.Parent
  3050. end
  3051. if targetted ~= nil then
  3052. attack = true
  3053. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3054. for i = 0, 9 do
  3055. 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)
  3056. end
  3057. for i = 0, 24 do
  3058. 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)
  3059. end
  3060. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3061. local originalpos = root.CFrame
  3062. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3063. for i = 0, 9 do
  3064. 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)
  3065. end
  3066. for i = 0, 24 do
  3067. 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)
  3068. end
  3069. hum.WalkSpeed = 0
  3070. targetted.Head.Anchored = true
  3071. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3072. for i = 0,2,0.1 do
  3073. swait()
  3074. 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)
  3075. 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)
  3076. 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)
  3077. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3078. 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)
  3079. 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)
  3080. end
  3081. coroutine.resume(coroutine.create(function()
  3082. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3083. bld.LightEmission = 0.1
  3084. bld.Texture = "rbxassetid://284205403"
  3085. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3086. bld.Rate = 500
  3087. bld.Lifetime = NumberRange.new(1)
  3088. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3089. bld.Acceleration = vt(0,-25,0)
  3090. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3091. bld.Speed = NumberRange.new(10,50)
  3092. bld.EmissionDirection = "Front"
  3093. bld.VelocitySpread = 25
  3094. bld.Rotation = NumberRange.new(-500,500)
  3095. bld.RotSpeed = NumberRange.new(-500,500)
  3096. end))
  3097. coroutine.resume(coroutine.create(function()
  3098. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3099. bld.LightEmission = 0.1
  3100. bld.Texture = "rbxassetid://284205403"
  3101. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3102. bld.Rate = 500
  3103. bld.Lifetime = NumberRange.new(1)
  3104. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3105. bld.Acceleration = vt(0,-25,0)
  3106. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3107. bld.Speed = NumberRange.new(10,50)
  3108. bld.EmissionDirection = "Front"
  3109. bld.VelocitySpread = 25
  3110. bld.Rotation = NumberRange.new(-500,500)
  3111. bld.RotSpeed = NumberRange.new(-500,500)
  3112. end))
  3113. CameraEnshaking(5,5)
  3114. game:GetService("Debris"):AddItem(bld,3)
  3115. dmg(targetted)
  3116. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3117. for i = 0,1,0.1 do
  3118. swait()
  3119. 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)
  3120. 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)
  3121. 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)
  3122. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3123. 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)
  3124. 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)
  3125. end
  3126. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3127. for i = 0, 9 do
  3128. 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)
  3129. end
  3130. for i = 0, 24 do
  3131. 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)
  3132. end
  3133. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3134. root.CFrame = originalpos
  3135. for i = 0, 9 do
  3136. 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)
  3137. end
  3138. for i = 0, 24 do
  3139. 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)
  3140. end
  3141. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3142. bld.Enabled = false
  3143. attack = false
  3144. hum.WalkSpeed = storehumanoidWS
  3145. end
  3146. end
  3147. function MeteorStrike()
  3148. attack = true
  3149. for i = 0, 2, 0.1 do
  3150. swait()
  3151. 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)
  3152. 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)
  3153. 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)
  3154. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3155. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3156. 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)
  3157. end
  3158. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3159. for i=1,20 do
  3160. 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)
  3161. swait()
  3162. end
  3163. swait(30)
  3164. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3165. for i =1,20 do
  3166. 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)
  3167. 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)
  3168. end
  3169. for i = 0,2,0.1 do
  3170. swait()
  3171. 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)
  3172. 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)
  3173. 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)
  3174. 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)
  3175. 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)
  3176. 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)
  3177. end
  3178. for i =1,20 do
  3179. 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)
  3180. end
  3181. text.TextTransparency = 1
  3182. text.TextStrokeTransparency = 1
  3183. tr2.Enabled = false
  3184. tr1.Enabled = false
  3185. tr3.Enabled = false
  3186. tl1.Enabled = false
  3187. tl2.Enabled = false
  3188. tl3.Enabled = false
  3189. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3190. eff = false
  3191. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3192. local invtab = {}
  3193. local function search(targ)
  3194. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3195. table.insert(invtab,targ)
  3196. end
  3197. for i,v in pairs(targ:GetChildren()) do
  3198. search(v)
  3199. end
  3200. end
  3201. search(plr.Character)
  3202. local frm = 0
  3203. local frmcon
  3204. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3205. if frm < 10 then
  3206. for i,v in pairs(invtab) do
  3207. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3208. v.Transparency = v.Transparency + 0.1
  3209. end
  3210. end
  3211. frm = frm + 1
  3212. else
  3213. frmcon:disconnect()
  3214. end
  3215. end)
  3216. swait(200)
  3217. text.TextTransparency = 0
  3218. text.TextStrokeTransparency = 0
  3219. tr2.Enabled = false
  3220. tr1.Enabled = false
  3221. tr3.Enabled = false
  3222. tl1.Enabled = false
  3223. tl2.Enabled = false
  3224. tl3.Enabled = false
  3225. eff = true
  3226. for i =1,20 do
  3227. 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)
  3228. end
  3229. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3230. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3231. local invtab = {}
  3232. local function search(targ)
  3233. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3234. table.insert(invtab,targ)
  3235. end
  3236. for i,v in pairs(targ:GetChildren()) do
  3237. search(v)
  3238. end
  3239. end
  3240. search(plr.Character)
  3241. local frm = 0
  3242. local frmcon
  3243. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3244. if frm < 10 then
  3245. for i,v in pairs(invtab) do
  3246. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3247. v.Transparency = v.Transparency - 0.1
  3248. end
  3249. end
  3250. frm = frm + 1
  3251. else
  3252. frmcon:disconnect()
  3253. end
  3254. end)
  3255. swait(5)
  3256. for i = 0, 2, 0.1 do
  3257. swait()
  3258. 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)
  3259. 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)
  3260. 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)
  3261. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3262. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3263. 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)
  3264. end
  3265. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3266. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3267. MagniDamage(root, 30, 65,90, 0, "Normal")
  3268. for i =1,20 do
  3269. 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)
  3270. end
  3271. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3272. for i =1,20 do
  3273. 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)
  3274. end
  3275. swait(20)
  3276. attack = false
  3277. tr2.Enabled = true
  3278. tr1.Enabled = true
  3279. tr3.Enabled = true
  3280. tl1.Enabled = true
  3281. tl2.Enabled = true
  3282. tl3.Enabled = true
  3283. end
  3284. function FinalCalam()
  3285. attack = true
  3286. hum.WalkSpeed = 0
  3287. local orb = Instance.new("Part", char)
  3288. orb.Anchored = true
  3289. orb.BrickColor = MAINRUINCOLOR
  3290. orb.CanCollide = false
  3291. orb.FormFactor = 3
  3292. orb.Name = "Ring"
  3293. orb.Material = "Neon"
  3294. orb.Size = Vector3.new(1, 1, 1)
  3295. orb.Transparency = 0
  3296. orb.TopSurface = 0
  3297. orb.BottomSurface = 0
  3298. local orbm = Instance.new("SpecialMesh", orb)
  3299. orbm.MeshType = "Sphere"
  3300. orbm.Name = "SizeMesh"
  3301. orbm.Scale = vt(0,0,0)
  3302. local scaled = 0.1
  3303. local posid = 0
  3304. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3305. for i = 0, 5, 0.1 do
  3306. swait()
  3307. scaled = scaled - 0.001
  3308. posid = posid - scaled
  3309. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3310. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3311. 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)
  3312. 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)
  3313. 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)
  3314. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3315. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3316. 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)
  3317. end
  3318. swait(60)
  3319. for i =1,3 do
  3320. swait(30)
  3321. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3322. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3323. end
  3324. swait(30)
  3325. for i = 0, 2, 0.1 do
  3326. swait()
  3327. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3328. 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)
  3329. 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)
  3330. 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)
  3331. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3332. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3333. 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)
  3334. end
  3335. swait(60)
  3336. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3337. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3338. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3339. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3340. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3341. if v:FindFirstChild('Head') then
  3342. dmg(v)
  3343. end
  3344. end
  3345. for i = 1,20 do
  3346. 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)
  3347. for i = 0, 10 do
  3348. 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)
  3349. end
  3350. end
  3351. orb:Remove()
  3352. attack = false
  3353. hum.WalkSpeed = storehumanoidWS
  3354. end
  3355. function PureBomb()
  3356. attack = true
  3357.  
  3358. local orb = Instance.new("Part", char)
  3359. orb.Anchored = true
  3360. orb.BrickColor = BrickColor.new("Toothpaste")
  3361. orb.CanCollide = false
  3362. orb.FormFactor = 3
  3363. orb.Name = "Ring"
  3364. orb.Material = "Neon"
  3365. orb.Size = Vector3.new(1, 1, 1)
  3366. orb.Transparency = 0
  3367. orb.TopSurface = 0
  3368. orb.BottomSurface = 0
  3369. local orbm = Instance.new("SpecialMesh", orb)
  3370. orbm.MeshType = "Sphere"
  3371. orbm.Name = "SizeMesh"
  3372. orbm.Scale = vt(0,0,0)
  3373. local scaled = 0.1
  3374. local posid = 0
  3375. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3376. for i = 0, 5, 0.1 do
  3377. swait()
  3378. scaled = scaled - 0.001
  3379. posid = posid - scaled
  3380. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3381. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3382. 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)
  3383. 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)
  3384. 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)
  3385. 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)
  3386. 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)
  3387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3388. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3389. 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)
  3390. end
  3391. for i = 0, 2, 0.1 do
  3392. swait()
  3393. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3394. 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)
  3395. 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)
  3396. 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)
  3397. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3398. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3399. 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)
  3400. end
  3401. coroutine.resume(coroutine.create(function()
  3402. orb.Anchored = false
  3403. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3404. local a = Instance.new("Part",workspace)
  3405. a.Name = "Direction"
  3406. a.Anchored = true
  3407. a.BrickColor = bc("Bright red")
  3408. a.Material = "Neon"
  3409. a.Transparency = 1
  3410. a.CanCollide = false
  3411. local ray = Ray.new(
  3412. orb.CFrame.p, -- origin
  3413. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3414. )
  3415. local ignore = orb
  3416. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3417. a.BottomSurface = 10
  3418. a.TopSurface = 10
  3419. local distance = (orb.CFrame.p - position).magnitude
  3420. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3421. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3422. orb.CFrame = a.CFrame
  3423. a:Destroy()
  3424. local bv = Instance.new("BodyVelocity")
  3425. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3426. bv.velocity = orb.CFrame.lookVector*125
  3427. bv.Parent = orb
  3428. local hitted = false
  3429. game:GetService("Debris"):AddItem(orb, 15)
  3430. wait()
  3431. local hit =orb.Touched:connect(function(hit)
  3432. if hitted == false then
  3433. hitted = true
  3434. CameraEnshaking(10,2.5)
  3435. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3436. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3437. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3438. for i = 0, 49 do
  3439. 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)
  3440. end
  3441. for i = 0, 9 do
  3442. 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)
  3443. 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)
  3444. end
  3445. orb.Anchored = true
  3446. orb.Transparency = 1
  3447. wait(8)
  3448. orb:Destroy()
  3449. end
  3450. end)
  3451. end))
  3452. for i = 0, 1, 0.1 do
  3453. swait()
  3454. 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)
  3455. 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)
  3456. 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)
  3457. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3458. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3459. 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)
  3460. end
  3461. attack = false
  3462. end
  3463.  
  3464. function ChaosGroundStrike()
  3465. attack = true
  3466. for i = 0, 2, 0.1 do
  3467. swait()
  3468. 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)
  3469. 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)
  3470. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3471. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3472. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3473. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3474. end
  3475. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3476. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3477. CameraEnshaking(4,12)
  3478. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3479. if v:FindFirstChild('Head') then
  3480. dmg(v)
  3481. end
  3482. end
  3483. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3484. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3485. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3486. for i = 0, 2, 0.1 do
  3487. swait()
  3488. 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)
  3489. 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)
  3490. 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)
  3491. 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)
  3492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3494. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3495. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3496. end
  3497. attack = false
  3498. end
  3499.  
  3500. function Starfall()
  3501. attack = true
  3502. hum.WalkSpeed = 0
  3503. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3504. for i = 0, 5, 0.1 do
  3505. swait()
  3506. 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)
  3507. 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)
  3508. 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)
  3509. 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)
  3510. 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)
  3511. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3512. 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)
  3513. 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)
  3514. end
  3515. local Overed = false
  3516. CameraEnshaking(2,20)
  3517. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3518. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3519. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3520. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3521. local orb = Instance.new("Part", char)
  3522. orb.Anchored = true
  3523. orb.BrickColor = BrickColor.new("Toothpaste")
  3524. orb.CanCollide = false
  3525. orb.FormFactor = 3
  3526. orb.Name = "Remenant"
  3527. orb.Material = "Neon"
  3528. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3529. orb.Size = Vector3.new(1, 1, 1)
  3530. orb.Transparency = 1
  3531. orb.TopSurface = 0
  3532. orb.BottomSurface = 0
  3533. hum.WalkSpeed = storehumanoidWS
  3534. coroutine.resume(coroutine.create(function()
  3535. for i = 0, 9 do
  3536. swait(10)
  3537. local lb = Instance.new("Part")
  3538. lb.Color = MAINRUINCOLOR.Color
  3539. lb.CanCollide = false
  3540. lb.Material = "Neon"
  3541. lb.Anchored = true
  3542. lb.TopSurface = 0
  3543. lb.BottomSurface = 0
  3544. lb.Transparency = 0
  3545. lb.Size = vt(1,1,1)
  3546. 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)))
  3547. lb.Anchored = false
  3548. lb.Parent = char
  3549. local thingery = Instance.new("SpecialMesh",lb)
  3550. thingery.MeshType = "Sphere"
  3551. thingery.Scale = vt(20,20,20)
  3552. game:GetService("Debris"):AddItem(lb, 10)
  3553. local bv = Instance.new("BodyVelocity")
  3554. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3555. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3556. bv.Parent = lb
  3557. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3558. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3559. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3560. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3561. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3562. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3563. local hitted = false
  3564. coroutine.resume(coroutine.create(function()
  3565. while true do
  3566. swait(1)
  3567. if lb.Parent ~= nil and hitted == false then
  3568. 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)
  3569. elseif lb.Parent == nil then
  3570. break
  3571. end
  3572. end
  3573. end))
  3574.  
  3575. game:GetService("Debris"):AddItem(a, 0.1)
  3576.  
  3577. coroutine.resume(coroutine.create(function()
  3578. swait(1)
  3579. lb.Touched:connect(function(hit)
  3580. if hitted == false then
  3581. hitted = true
  3582. lb.Transparency = 1
  3583. lb.Anchored = true
  3584. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3585. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3586. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3587. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3588. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3589. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3590. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3591. CameraEnshaking(1,5)
  3592. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3593. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3594. for i = 0, 9 do
  3595. 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)
  3596. end
  3597. for i = 0, 49 do
  3598. swait()
  3599. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3600. 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)
  3601. end
  3602. end
  3603. end)
  3604. end))
  3605. end
  3606. Overed = true
  3607. orb:Destroy()
  3608. end))
  3609.  
  3610. attack = false
  3611. end
  3612.  
  3613. function StarfallEX()
  3614. attack = true
  3615. hum.WalkSpeed = 0
  3616. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3617. for i = 0, 5, 0.1 do
  3618. swait()
  3619. 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)
  3620. 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)
  3621. 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)
  3622. 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)
  3623. 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)
  3624. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3625. 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)
  3626. 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)
  3627. end
  3628. local Overed = false
  3629. CameraEnshaking(2,20)
  3630. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3631. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3632. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3633. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3634. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3635. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3636. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3637. local orb = Instance.new("Part", char)
  3638. orb.Anchored = true
  3639. orb.BrickColor = BrickColor.new("Toothpaste")
  3640. orb.CanCollide = false
  3641. orb.FormFactor = 3
  3642. orb.Name = "Remenant"
  3643. orb.Material = "Neon"
  3644. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3645. orb.Size = Vector3.new(1, 1, 1)
  3646. orb.Transparency = 1
  3647. orb.TopSurface = 0
  3648. orb.BottomSurface = 0
  3649. hum.WalkSpeed = storehumanoidWS
  3650. coroutine.resume(coroutine.create(function()
  3651. for i = 0, 9 do
  3652. swait(10)
  3653. local lb = Instance.new("Part")
  3654. lb.Color = MAINRUINCOLOR.Color
  3655. lb.CanCollide = false
  3656. lb.Material = "Neon"
  3657. lb.Anchored = true
  3658. lb.TopSurface = 0
  3659. lb.BottomSurface = 0
  3660. lb.Transparency = 0
  3661. lb.Size = vt(1,1,1)
  3662. 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)))
  3663. lb.Anchored = false
  3664. lb.Parent = char
  3665. local thingery = Instance.new("SpecialMesh",lb)
  3666. thingery.MeshType = "Sphere"
  3667. thingery.Scale = vt(20,20,20)
  3668. game:GetService("Debris"):AddItem(lb, 10)
  3669. local bv = Instance.new("BodyVelocity")
  3670. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3671. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3672. bv.Parent = lb
  3673. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3674. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3675. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3676. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3677. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3678. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3679. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3680. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3681. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3682. local hitted = false
  3683. coroutine.resume(coroutine.create(function()
  3684. while true do
  3685. swait(1)
  3686. if lb.Parent ~= nil and hitted == false then
  3687. 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)
  3688. 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)
  3689. elseif lb.Parent == nil then
  3690. break
  3691. end
  3692. end
  3693. end))
  3694.  
  3695. game:GetService("Debris"):AddItem(a, 0.1)
  3696.  
  3697. coroutine.resume(coroutine.create(function()
  3698. swait(1)
  3699. lb.Touched:connect(function(hit)
  3700. if hitted == false then
  3701. hitted = true
  3702. lb.Transparency = 1
  3703. lb.Anchored = true
  3704. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3705. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3706. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3707. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3708. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3709. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3710. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3711. CameraEnshaking(10,5)
  3712. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3713. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3714. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3715. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3716. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3717. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3718. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3719. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3720. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3721. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3722. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3723. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3724. for i = 0, 9 do
  3725. 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)
  3726. 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)
  3727. 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)
  3728. 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)
  3729. 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)
  3730. 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)
  3731. end
  3732. for i = 0, 49 do
  3733. swait()
  3734. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  3735. 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)
  3736. 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)
  3737. 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)
  3738. end
  3739. end
  3740. end)
  3741. end))
  3742. end
  3743. Overed = true
  3744. orb:Destroy()
  3745. end))
  3746.  
  3747. attack = false
  3748. end
  3749.  
  3750. function StarDivision()
  3751. attack = true
  3752. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3753. for i = 0, 2, 0.1 do
  3754. swait()
  3755. 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)
  3756. 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)
  3757. 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)
  3758. 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)
  3759. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3760. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3761. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3762. end
  3763. local orb = Instance.new("Part", char)
  3764. orb.BrickColor = MAINRUINCOLOR
  3765. orb.CanCollide = false
  3766. orb.FormFactor = 3
  3767. orb.Name = "Ring"
  3768. orb.Material = "Neon"
  3769. orb.Size = Vector3.new(1, 1, 1)
  3770. orb.Transparency = 0
  3771. orb.TopSurface = 0
  3772. orb.BottomSurface = 0
  3773. local orbm = Instance.new("SpecialMesh", orb)
  3774. orbm.MeshType = "Sphere"
  3775. orbm.Name = "SizeMesh"
  3776. orbm.Scale = vt(2,2,2)
  3777. local a = Instance.new("Part",workspace)
  3778. a.Name = "Direction"
  3779. a.Anchored = true
  3780. a.BrickColor = bc("Bright red")
  3781. a.Material = "Neon"
  3782. a.Transparency = 1
  3783. a.CanCollide = false
  3784. local ray = Ray.new(
  3785. sorb.CFrame.p, -- origin
  3786. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3787. )
  3788. local ignore = sorb
  3789. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3790. a.BottomSurface = 10
  3791. a.TopSurface = 10
  3792. local distance = (sorb.CFrame.p - position).magnitude
  3793. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3794. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3795. orb.CFrame = a.CFrame
  3796. a:Destroy()
  3797. local bv = Instance.new("BodyVelocity")
  3798. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3799. bv.velocity = orb.CFrame.lookVector*100
  3800. bv.Parent = orb
  3801. local hitted = false
  3802. game:GetService("Debris"):AddItem(orb, 10)
  3803. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3804. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3805. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3806. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3807. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3808. coroutine.resume(coroutine.create(function()
  3809. while true do
  3810. swait(1)
  3811. if orb.Parent ~= nil and hitted == false then
  3812. 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)
  3813. elseif orb.Parent == nil then
  3814. break
  3815. end
  3816. end
  3817. end))
  3818. coroutine.resume(coroutine.create(function()
  3819. swait(1)
  3820. orb.Touched:connect(function(hit)
  3821. if hitted == false then
  3822. hitted = true
  3823. game:GetService("Debris"):AddItem(orb, 5)
  3824. orb.Transparency = 1
  3825. orb.Anchored = true
  3826. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3827. elocacenter.Anchored = true
  3828. elocacenter.CFrame = orb.CFrame
  3829. elocacenter.Orientation = vt(0,0,0)
  3830. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3831. eloca1.Anchored = true
  3832. eloca1.CFrame = elocacenter.CFrame
  3833. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3834. eloca2.Anchored = true
  3835. eloca2.CFrame = elocacenter.CFrame
  3836. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3837. eloca3.Anchored = true
  3838. eloca3.CFrame = elocacenter.CFrame
  3839. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3840. eloca4.Anchored = true
  3841. eloca4.CFrame = elocacenter.CFrame
  3842. local lookavec = 0
  3843. local speeds = 0
  3844. CameraEnshaking(1,1)
  3845. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3846. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3847. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3848. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3849. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3850. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3851. for i = 0, 99 do
  3852. swait()
  3853. lookavec = lookavec + 1
  3854. speeds = speeds + 0.1
  3855. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3856. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3857. 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)
  3858.  
  3859. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3860. 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)
  3861.  
  3862. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3863. 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)
  3864.  
  3865. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3866. 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)
  3867. end
  3868.  
  3869. for i = 0, 149 do
  3870. swait()
  3871. speeds = speeds + 0.1
  3872. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3873. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3874. 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)
  3875.  
  3876. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3877. 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)
  3878.  
  3879. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3880. 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)
  3881.  
  3882. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3883. 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)
  3884. end
  3885. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3886. if v:FindFirstChild('Head') then
  3887. dmg(v)
  3888. end
  3889. end
  3890. CameraEnshaking(7,30)
  3891. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3892. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3893. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3894. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3895. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3896. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3897. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3898. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3899. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3900. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3901. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3902. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3903. for i = 0, 24 do
  3904. 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)
  3905. 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)
  3906. 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)
  3907. 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)
  3908. end
  3909. coroutine.resume(coroutine.create(function()
  3910. for i = 0, 499 do
  3911. swait(1)
  3912. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3913. 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)
  3914. end
  3915. elocacenter:Destroy()
  3916. eloca1:Destroy()
  3917. eloca2:Destroy()
  3918. eloca3:Destroy()
  3919. eloca4:Destroy()
  3920. end))
  3921. end
  3922. end)
  3923. end))
  3924. attack = false
  3925. end
  3926.  
  3927.  
  3928. function UniversalCollapse()
  3929. attack = true
  3930. local speedearn = 0
  3931. hum.WalkSpeed = 0
  3932. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  3933. for i = 0, 10, 0.1 do
  3934. swait()
  3935. speedearn = speedearn + 0.1
  3936. 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)
  3937. 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)
  3938. 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)
  3939. 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)
  3940. 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)
  3941. 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)
  3942. 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)
  3943. 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)
  3944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  3945. 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)
  3946. 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)
  3947. end
  3948. CameraEnshaking(5,45)
  3949. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  3950. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  3951. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3952. if v:FindFirstChild('Head') then
  3953. dmg(v)
  3954. end
  3955. end
  3956. hum.WalkSpeed = storehumanoidWS
  3957. attack = false
  3958. end
  3959. function ChaosBegone()
  3960. attack = true
  3961. local speedearn = 0
  3962. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  3963. for i = 0, 10, 0.1 do
  3964. swait()
  3965. speedearn = speedearn + 0.1
  3966. 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)
  3967. 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)
  3968. 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)
  3969. 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)
  3970. 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)
  3971. 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)
  3972. 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)
  3973. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3974. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3975. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3976. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3977. end
  3978. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  3979. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  3980. CameraEnshaking(5,25)
  3981. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3982. if v:FindFirstChild('Head') then
  3983. dmg(v)
  3984. end
  3985. end
  3986. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  3987. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  3988. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  3989. for i = 0, 3, 0.1 do
  3990. swait()
  3991. 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)
  3992. 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)
  3993. 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)
  3994. 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)
  3995. 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)
  3996. 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)
  3997. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3998. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3999. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4000. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4001. end
  4002. attack = false
  4003. end
  4004.  
  4005. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4006. local orb = Instance.new("Part", char)
  4007. orb.Anchored = true
  4008. orb.BrickColor = color
  4009. orb.CanCollide = false
  4010. orb.FormFactor = 3
  4011. orb.Name = "Ring"
  4012. orb.Material = "Neon"
  4013. orb.Size = Vector3.new(1, 1, 1)
  4014. orb.Transparency = 0
  4015. orb.TopSurface = 0
  4016. orb.BottomSurface = 0
  4017. local orbm = Instance.new("SpecialMesh", orb)
  4018. orbm.MeshType = "Sphere"
  4019. orb.CFrame = positted
  4020. orbm.Name = "SizeMesh"
  4021. orbm.Scale = vt(1,1,1)
  4022. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4023. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4024. --[[for i = 0, 2 do
  4025. 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)
  4026. end]]--
  4027. coroutine.resume(coroutine.create(function()
  4028. wait(timer)
  4029. CameraEnshaking(3,ShakePower)
  4030. orb.Transparency = 1
  4031. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4032. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4033. --[[for i = 0, 4 do
  4034. 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)
  4035. end]]--
  4036. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4037. wait(3)
  4038. orb:Destroy()
  4039. end))
  4040. end
  4041.  
  4042. function orb_spawn(positted,timer)
  4043. local randomcol = math.random(1,2)
  4044. local orb = Instance.new("Part", char)
  4045. orb.Anchored = true
  4046. if randomcol == 1 then
  4047. orb.BrickColor = BrickColor.new("White")
  4048. elseif randomcol == 2 then
  4049. orb.BrickColor = BrickColor.new("Really black")
  4050. end
  4051. orb.CanCollide = false
  4052. orb.FormFactor = 3
  4053. orb.Name = "Ring"
  4054. orb.Material = "Neon"
  4055. orb.Size = Vector3.new(1, 1, 1)
  4056. orb.Transparency = 0
  4057. orb.TopSurface = 0
  4058. orb.BottomSurface = 0
  4059. local orbm = Instance.new("SpecialMesh", orb)
  4060. orbm.MeshType = "Sphere"
  4061. orb.CFrame = positted
  4062. orbm.Name = "SizeMesh"
  4063. orbm.Scale = vt(1,1,1)
  4064. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4065. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4066. for i = 0, 2 do
  4067. 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)
  4068. end
  4069. coroutine.resume(coroutine.create(function()
  4070. wait(timer)
  4071. CameraEnshaking(3,2)
  4072. orb.Transparency = 1
  4073. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4074. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4075. for i = 0, 4 do
  4076. 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)
  4077. end
  4078. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4079. wait(3)
  4080. orb:Destroy()
  4081. end))
  4082. end
  4083.  
  4084. function scattercorrupt()
  4085. attack = true
  4086. local rot = 0
  4087. local randomrotations = math.random(1,2)
  4088. local lookv = 2.5
  4089. local power = 5
  4090. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4091. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4092. for i = 0, 9 do
  4093. 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)
  4094. end
  4095. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4096. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4097. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4098. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4099. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4100. local hite = Instance.new("Part", char)
  4101. hite.Anchored = true
  4102. hite.CanCollide = false
  4103. hite.FormFactor = 3
  4104. hite.Name = "Ring"
  4105. hite.Material = "Neon"
  4106. hite.Size = Vector3.new(1, 1, 1)
  4107. hite.Transparency = 1
  4108. hite.TopSurface = 0
  4109. hite.BottomSurface = 0
  4110. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4111. local rem = Instance.new("Part", char)
  4112. rem.Anchored = true
  4113. rem.CanCollide = false
  4114. rem.FormFactor = 3
  4115. rem.Name = "Ring"
  4116. rem.Material = "Neon"
  4117. rem.Size = Vector3.new(1, 1, 1)
  4118. rem.Transparency = 1
  4119. rem.TopSurface = 0
  4120. rem.BottomSurface = 0
  4121. rem.CFrame = hite.CFrame
  4122. local rem2 = rem:Clone()
  4123. rem2.Parent = char
  4124. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4125. local rem3 = rem:Clone()
  4126. rem3.Parent = char
  4127. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4128. local rem4 = rem:Clone()
  4129. rem4.Parent = char
  4130. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4131. hite:Destroy()
  4132. coroutine.resume(coroutine.create(function()
  4133. for i = 0, 24 do
  4134. swait(1)
  4135. if randomrotations == 1 then
  4136. rot = rot + 1
  4137. elseif randomrotations == 2 then
  4138. rot = rot - 1
  4139. end
  4140. power = power + 0.5
  4141. lookv = lookv + 7.5
  4142. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4143. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4144. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4145. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4146. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4147. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4148. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4149. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4150. end
  4151. end))
  4152. attack = false
  4153. end
  4154. function yinyangi()
  4155. attack = true
  4156. for i = 0, 2, 0.1 do
  4157. swait()
  4158. 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)
  4159. 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)
  4160. 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)
  4161. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4162. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4163. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4164. end
  4165. local bv = Instance.new("BodyVelocity")
  4166. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4167. bv.velocity = root.CFrame.lookVector*175
  4168. bv.Parent = root
  4169. for Rotations = 0, 9 do
  4170. for i = 0, 1, 0.5 do
  4171. swait()
  4172. bv.velocity = root.CFrame.lookVector*175
  4173. 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)
  4174. 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)
  4175. 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)
  4176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4177. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4178. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4179. end
  4180. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4181. for i = 0, 1, 0.5 do
  4182. swait()
  4183. bv.velocity = root.CFrame.lookVector*175
  4184. 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)
  4185. 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)
  4186. 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)
  4187. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4188. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4189. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4190. end
  4191. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4192. for i = 0, 1, 0.5 do
  4193. swait()
  4194. bv.velocity = root.CFrame.lookVector*175
  4195. 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)
  4196. 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)
  4197. 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)
  4198. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4199. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4200. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4201. end
  4202. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4203. for i = 0, 1, 0.5 do
  4204. swait()
  4205. bv.velocity = root.CFrame.lookVector*175
  4206. 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)
  4207. 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)
  4208. 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)
  4209. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4210. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4211. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4212. end
  4213. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4214. end
  4215. bv:Destroy()
  4216. attack = false
  4217. end
  4218.  
  4219. function Wip()
  4220. attack = true
  4221.  
  4222. local rngb = Instance.new("Part", char)
  4223. rngb.Anchored = true
  4224. rngb.BrickColor = origcolor
  4225. rngb.CanCollide = false
  4226. rngb.FormFactor = 3
  4227. rngb.Name = "Ring"
  4228. rngb.Material = "Neon"
  4229. rngb.Size = Vector3.new(1, 0.05, 1)
  4230. rngb.Transparency = 1
  4231. rngb.TopSurface = 0
  4232. rngb.BottomSurface = 0
  4233. local rngmb = Instance.new("SpecialMesh", rngb)
  4234. rngmb.MeshType = "Brick"
  4235. rngmb.Name = "SizeMesh"
  4236. rngmb.Scale = vt(0,1,0)
  4237.  
  4238. local orb = rngb:Clone()
  4239. orb.Parent = char
  4240. orb.Transparency = 0
  4241. orb.BrickColor = BrickColor.new("White")
  4242. orb.Size = vt(1,1,1)
  4243. local orbmish = orb.SizeMesh
  4244. orbmish.Scale = vt(0,0,0)
  4245. orbmish.MeshType = "Sphere"
  4246.  
  4247. local orbe = rngb:Clone()
  4248. orbe.Parent = char
  4249. orbe.Transparency = 0.5
  4250. orbe.BrickColor = BrickColor.new("New Yeller")
  4251. orbe.Size = vt(1,1,1)
  4252. local orbmish2 = orbe.SizeMesh
  4253. orbmish2.Scale = vt(0,0,0)
  4254. orbmish2.MeshType = "Sphere"
  4255. orbe.Color = Color3.new(r/255,g/255,b/255)
  4256.  
  4257. rngb:Destroy()
  4258. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4259. local scaled = 1
  4260. for i = 0,5,0.1 do
  4261. swait()
  4262. scaled = scaled - 0.02
  4263. if rainbowmode == true then
  4264. orbe.Color = Color3.new(r/255,g/255,b/255)
  4265. end
  4266. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4267. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4268. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4269. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4270. 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)
  4271. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4272. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4273. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4274. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4275. 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)
  4276. 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)
  4277. RootPart.CFrame = FaceMouse()[1]
  4278. end]]--
  4279. for i = 0,5,0.1 do
  4280. swait()
  4281. if rainbowmode == true then
  4282. orbe.Color = Color3.new(r/255,g/255,b/255)
  4283. end
  4284. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4285. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4286. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4287. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4288. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4289. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4290. 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)
  4291. 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)
  4292. RootPart.CFrame = FaceMouse()[1]
  4293. end
  4294. orbe.Transparency = 1
  4295. orb.Transparency = 1
  4296. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4297. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4298. local a = Instance.new("Part",Character)
  4299. a.Name = "Direction"
  4300. a.Anchored = true
  4301. a.BrickColor = bc("White")
  4302. a.Material = "Neon"
  4303. a.Transparency = 0
  4304. a.Shape = "Cylinder"
  4305. a.CanCollide = false
  4306. local a2 = Instance.new("Part",Character)
  4307. a2.Name = "Direction"
  4308. a2.Anchored = true
  4309. a2.BrickColor = bc("New Yeller")
  4310. a2.Color = Color3.new(r/255,g/255,b/255)
  4311. a2.Material = "Neon"
  4312. a2.Transparency = 0.5
  4313. a2.Shape = "Cylinder"
  4314. a2.CanCollide = false
  4315. local ba = Instance.new("Part",Character)
  4316. ba.Name = "HitDirect"
  4317. ba.Anchored = true
  4318. ba.BrickColor = bc("Cool yellow")
  4319. ba.Material = "Neon"
  4320. ba.Transparency = 1
  4321. ba.CanCollide = false
  4322. local ray = Ray.new(
  4323. orb.CFrame.p, -- origin
  4324. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4325. )
  4326. local ignore = Character
  4327. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4328. a.BottomSurface = 10
  4329. a.TopSurface = 10
  4330. a2.BottomSurface = 10
  4331. a2.TopSurface = 10
  4332. local distance = (orb.CFrame.p - position).magnitude
  4333. a.Size = Vector3.new(distance, 1, 1)
  4334. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4335. a2.Size = Vector3.new(distance, 1, 1)
  4336. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4337. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4338. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4339. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4340. game:GetService("Debris"):AddItem(a, 20)
  4341. game:GetService("Debris"):AddItem(a2, 20)
  4342. game:GetService("Debris"):AddItem(ba, 20)
  4343. local msh = Instance.new("SpecialMesh",a)
  4344. msh.MeshType = "Cylinder"
  4345. msh.Scale = vt(1,5*5,5*5)
  4346. local msh2 = Instance.new("SpecialMesh",a2)
  4347. msh2.MeshType = "Cylinder"
  4348. msh2.Scale = vt(1,6*5,6*5)
  4349.  
  4350. for i = 0,10,0.1 do
  4351. swait()
  4352. CameraEnshaking(1,5)
  4353. a2.Color = Color3.new(r/255,g/255,b/255)
  4354. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4355. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4356. ray = Ray.new(
  4357. orb.CFrame.p, -- origin
  4358. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4359. )
  4360. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4361. distance = (orb.CFrame.p - position).magnitude
  4362. if typrot == 1 then
  4363. rotation = rotation + 2.5
  4364. elseif typrot == 2 then
  4365. rotation = rotation - 2.5
  4366. end
  4367. RootPart.CFrame = FaceMouse()[1]
  4368. a.Size = Vector3.new(distance, 1, 1)
  4369. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4370. a2.Size = Vector3.new(distance, 1, 1)
  4371. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4372. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4373. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4374. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4375. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4376. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4377. 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)
  4378. 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)
  4379. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4380. end
  4381. a:Destroy()
  4382. a2:Destroy()
  4383. ba:Destroy()
  4384. orb:Destroy()
  4385. orbe:Destroy()
  4386. attack = false
  4387. end
  4388. function HolyBarrier()
  4389. attack = true
  4390. shielding = true
  4391. for i = 0, 2, 0.1 do
  4392. swait()
  4393. 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)
  4394. 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)
  4395. 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)
  4396. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4397. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4398. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4399. end
  4400. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4401. stash = Instance.new("Model",workspace)
  4402. local barrier = Instance.new("Part",stash)
  4403. barrier.Anchored = true
  4404. barrier.CanCollide = false
  4405. barrier.Size = Vector3.new(20,20,20)
  4406. barrier.CFrame = root.CFrame
  4407. barrier.Transparency = 0.6
  4408. barrier.BrickColor = MAINRUINCOLOR
  4409. barrier.Material = Enum.Material.Neon
  4410. barrier.Shape = Enum.PartType.Ball
  4411. barrier.CFrame = root.CFrame
  4412. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4413. Torso.Anchored = true
  4414. for i=1,50 do
  4415. local p = Instance.new("Part",stash)
  4416. p.Anchored = true
  4417. p.Transparency = 1
  4418. p.Size = Vector3.new(11,11,11)
  4419. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4420. end
  4421. repeat
  4422. swait(5)
  4423. 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)
  4424. until shielding == false
  4425. stash:Remove()
  4426. Torso.Anchored = false
  4427. shielding = false
  4428. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4429. attack = false
  4430. end
  4431. function Judgement()
  4432. attack = true
  4433. judgement = true
  4434. hum.WalkSpeed = 0
  4435. local p = Instance.new("Part",root)
  4436. p.Anchored = true
  4437. p.CanCollide = false
  4438. p.BrickColor = MAINRUINCOLOR
  4439. p.Material = Enum.Material.Neon
  4440. p.Size = Vector3.new(1,1,1)
  4441. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4442. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4443. local m = Instance.new("SpecialMesh",p)
  4444. m.MeshType = "Cylinder"
  4445. m.Scale = Vector3.new(2000,2,2)
  4446. local targ = Instance.new("Part",root)
  4447. targ.Anchored = true
  4448. targ.Transparency = 1
  4449. targ.CanCollide = false
  4450. targ.Size = Vector3.new(1,1,1)
  4451. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4452. local s = Instance.new("Sound",targ)
  4453. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4454. s.Looped = true
  4455. s.Pitch = 1.2
  4456. s.Volume = 3
  4457. spawn(function()
  4458. swait(15)
  4459. s:Play()
  4460. end)
  4461. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4462. for i = 1,15 do
  4463. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4464. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4465. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4466. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4467. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4468. 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)
  4469. 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)
  4470. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4471. 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)
  4472. m.Scale = m.Scale+Vector3.new(0,1,1)
  4473. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4474. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4475. swait()
  4476. end
  4477. 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)
  4478. repeat
  4479. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4480. 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)
  4481. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4482. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4483. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4484. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4485. swait()
  4486. until judgement == false
  4487. for i =1,15 do
  4488. m.Scale = m.Scale-Vector3.new(1,1,1)
  4489. p.Transparency = i / 15
  4490. s.Pitch = s.Pitch - 0.4
  4491. swait()
  4492. end
  4493. p:Destroy()
  4494. hum.WalkSpeed = storehumanoidWS
  4495. attack = false
  4496. end
  4497.  
  4498. function UniversalSpark()
  4499. attack = true
  4500.  
  4501. local rngb = Instance.new("Part", char)
  4502. rngb.Anchored = true
  4503. rngb.BrickColor = origcolor
  4504. rngb.CanCollide = false
  4505. rngb.FormFactor = 3
  4506. rngb.Name = "Ring"
  4507. rngb.Material = "Neon"
  4508. rngb.Size = Vector3.new(1, 0.05, 1)
  4509. rngb.Transparency = 1
  4510. rngb.TopSurface = 0
  4511. rngb.BottomSurface = 0
  4512. local rngmb = Instance.new("SpecialMesh", rngb)
  4513. rngmb.MeshType = "Brick"
  4514. rngmb.Name = "SizeMesh"
  4515. rngmb.Scale = vt(0,1,0)
  4516.  
  4517. local orb = rngb:Clone()
  4518. orb.Parent = char
  4519. orb.Transparency = 0
  4520. orb.BrickColor = BrickColor.new("White")
  4521. orb.Size = vt(1,1,1)
  4522. local orbmish = orb.SizeMesh
  4523. orbmish.Scale = vt(0,0,0)
  4524. orbmish.MeshType = "Sphere"
  4525.  
  4526. local orbe = rngb:Clone()
  4527. orbe.Parent = char
  4528. orbe.Transparency = 0.5
  4529. orbe.BrickColor = BrickColor.new("New Yeller")
  4530. orbe.Size = vt(1,1,1)
  4531. local orbmish2 = orbe.SizeMesh
  4532. orbmish2.Scale = vt(0,0,0)
  4533. orbmish2.MeshType = "Sphere"
  4534. orbe.Color = Color3.new(r/255,g/255,b/255)
  4535.  
  4536. rngb:Destroy()
  4537. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4538. local scaled = 1
  4539. for i = 0,5,0.1 do
  4540. swait()
  4541. scaled = scaled - 0.02
  4542. if rainbowmode == true then
  4543. orbe.Color = Color3.new(r/255,g/255,b/255)
  4544. end
  4545. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4546. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4547. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4548. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4549. 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)
  4550. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4551. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4552. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4553. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4554. 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)
  4555. 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)
  4556. RootPart.CFrame = FaceMouse()[1]
  4557. end]]--
  4558. for i = 0,5,0.1 do
  4559. swait()
  4560. if rainbowmode == true then
  4561. orbe.Color = Color3.new(r/255,g/255,b/255)
  4562. end
  4563. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4564. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4565. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4566. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4567. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4568. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4569. 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)
  4570. 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)
  4571. RootPart.CFrame = FaceMouse()[1]
  4572. end
  4573. orbe.Transparency = 1
  4574. orb.Transparency = 1
  4575. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4576. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4577. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4578. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4579.  
  4580. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4581. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4582. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4583. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4584. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4585. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4586. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4587. local xd= Instance.new("Sound",char)
  4588. xd.SoundId = "rbxassetid://445796828"
  4589. xd.Pitch = 0.75
  4590. xd.Looped = true
  4591. xd.Volume = 3.25
  4592. xd:Play()
  4593. local a = Instance.new("Part",Character)
  4594. a.Name = "Direction"
  4595. a.Anchored = true
  4596. a.BrickColor = bc("Alder")
  4597. a.Color = MAINRUINCOLOR.Color
  4598. a.Material = "Neon"
  4599. a.Transparency = 0.5
  4600. a.Shape = "Cylinder"
  4601. a.CanCollide = false
  4602. local a2 = Instance.new("Part",Character)
  4603. a2.Name = "Direction"
  4604. a2.Anchored = true
  4605. a2.BrickColor = bc("New Yeller")
  4606. a2.Color = MAINRUINCOLOR.Color
  4607. a2.Material = "Neon"
  4608. a2.Transparency = 0.5
  4609. a2.Shape = "Cylinder"
  4610. a2.CanCollide = false
  4611. local ba = Instance.new("Part",Character)
  4612. ba.Name = "HitDirect"
  4613. ba.Anchored = true
  4614. ba.BrickColor = bc("Cool yellow")
  4615. ba.Material = "Neon"
  4616. ba.Transparency = 1
  4617. ba.CanCollide = false
  4618. local ray = Ray.new(
  4619. orb.CFrame.p, -- origin
  4620. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4621. )
  4622. local ignore = Character
  4623. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4624. a.BottomSurface = 10
  4625. a.TopSurface = 10
  4626. a2.BottomSurface = 10
  4627. a2.TopSurface = 10
  4628. local distance = (orb.CFrame.p - position).magnitude
  4629. a.Size = Vector3.new(distance, 1, 1)
  4630. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4631. a2.Size = Vector3.new(distance, 1, 1)
  4632. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4633. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4634. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4635. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4636. game:GetService("Debris"):AddItem(a, 60)
  4637. game:GetService("Debris"):AddItem(a2, 60)
  4638. game:GetService("Debris"):AddItem(ba, 60)
  4639. local outerscale = 0
  4640. local msh = Instance.new("SpecialMesh",a)
  4641. msh.MeshType = "Cylinder"
  4642. msh.Scale = vt(1,0,0)
  4643. local msh2 = Instance.new("SpecialMesh",a2)
  4644. msh2.MeshType = "Cylinder"
  4645. msh2.Scale = vt(1,0,0)
  4646. for i = 0,2,0.1 do
  4647. swait()
  4648. CameraEnshaking(1,1)
  4649. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4650. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4651. outerscale = outerscale - 0.015
  4652. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4653. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4654. ray = Ray.new(
  4655. orb.CFrame.p, -- origin
  4656. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4657. )
  4658. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4659. distance = (orb.CFrame.p - position).magnitude
  4660. if typrot == 1 then
  4661. rotation = rotation + 2.5
  4662. elseif typrot == 2 then
  4663. rotation = rotation - 2.5
  4664. end
  4665. RootPart.CFrame = FaceMouse()[1]
  4666. a.Size = Vector3.new(distance, 1, 1)
  4667. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4668. a2.Size = Vector3.new(distance, 1, 1)
  4669. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4670. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4671. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4672. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4673. 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)
  4674. 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)
  4675. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4676. end
  4677. for z = 0, 2 do
  4678. for i = 0,4,0.1 do
  4679. swait()
  4680. CameraEnshaking(1,1)
  4681. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4682. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4683. outerscale = outerscale + 0.015
  4684. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4685. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4686. ray = Ray.new(
  4687. orb.CFrame.p, -- origin
  4688. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4689. )
  4690. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4691. distance = (orb.CFrame.p - position).magnitude
  4692. if typrot == 1 then
  4693. rotation = rotation + 2.5
  4694. elseif typrot == 2 then
  4695. rotation = rotation - 2.5
  4696. end
  4697. RootPart.CFrame = FaceMouse()[1]
  4698. a.Size = Vector3.new(distance, 1, 1)
  4699. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4700. a2.Size = Vector3.new(distance, 1, 1)
  4701. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4702. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4703. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4704. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4705. 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)
  4706. 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)
  4707. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4708. end
  4709. for i = 0,4,0.1 do
  4710. swait()
  4711. CameraEnshaking(1,1)
  4712. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4713. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4714. outerscale = outerscale - 0.015
  4715. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4716. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4717. ray = Ray.new(
  4718. orb.CFrame.p, -- origin
  4719. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4720. )
  4721. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4722. distance = (orb.CFrame.p - position).magnitude
  4723. if typrot == 1 then
  4724. rotation = rotation + 2.5
  4725. elseif typrot == 2 then
  4726. rotation = rotation - 2.5
  4727. end
  4728. RootPart.CFrame = FaceMouse()[1]
  4729. a.Size = Vector3.new(distance, 1, 1)
  4730. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4731. a2.Size = Vector3.new(distance, 1, 1)
  4732. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4733. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4734. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4735. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4736. 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)
  4737. 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)
  4738. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4739. end
  4740. end
  4741. for i = 0,4,0.1 do
  4742. swait()
  4743. CameraEnshaking(1,1)
  4744. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4745. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4746. xd.Volume = xd.Volume - 0.025
  4747. a.Transparency = a.Transparency + 0.025
  4748. a2.Transparency = a2.Transparency + 0.025
  4749. outerscale = outerscale - 0.015
  4750. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4751. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4752. ray = Ray.new(
  4753. orb.CFrame.p, -- origin
  4754. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4755. )
  4756. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4757. distance = (orb.CFrame.p - position).magnitude
  4758. if typrot == 1 then
  4759. rotation = rotation + 2.5
  4760. elseif typrot == 2 then
  4761. rotation = rotation - 2.5
  4762. end
  4763. RootPart.CFrame = FaceMouse()[1]
  4764. a.Size = Vector3.new(distance, 1, 1)
  4765. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4766. a2.Size = Vector3.new(distance, 1, 1)
  4767. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4768. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4769. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4770. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4771. 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)
  4772. 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)
  4773. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4774. end
  4775. xd:Destroy()
  4776. a:Destroy()
  4777. a2:Destroy()
  4778. ba:Destroy()
  4779. orb:Destroy()
  4780. orbe:Destroy()
  4781. attack = false
  4782. end
  4783.  
  4784.  
  4785. function resetmode()
  4786. rainbowmode = false
  4787. chaosmode = false
  4788. tl1.Enabled = false
  4789. tl2.Enabled = false
  4790. tl3.Enabled = false
  4791. ModeOfGlitch = 1
  4792. storehumanoidWS = 16
  4793. coroutine.resume(coroutine.create(function()
  4794. attack = true
  4795. hum.WalkSpeed = 0
  4796. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4797. for i = 0,4,0.1 do
  4798. swait()
  4799. 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)
  4800. 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)
  4801. 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)
  4802. 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)
  4803. 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)
  4804. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4805. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4806. end
  4807. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4808. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4809. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4810. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4811. RecolorTextAndRename("Kirito's Wings Of Hate",Color3.new(0,0,0),Color3.new(1,0,0))
  4812. CameraEnshaking(5,2.5)
  4813. MAINRUINCOLOR = BrickColor.new("Really red")
  4814. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4815. for i = 0, 49 do
  4816. 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)
  4817. end
  4818. for i = 0,3,0.1 do
  4819. 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)
  4820. end
  4821. for i, v in pairs(mw2:GetChildren()) do
  4822. if v:IsA("Part") then
  4823. v.BrickColor = BrickColor.new("Really red")
  4824. v.Material = "Neon"
  4825. end
  4826. end
  4827. for i, v in pairs(mw1:GetChildren()) do
  4828. if v:IsA("Part") then
  4829. v.Transparency = 1
  4830. v.BrickColor = BrickColor.new("Really red")
  4831. v.Material = "Neon"
  4832. end
  4833. end
  4834. for i, v in pairs(m:GetChildren()) do
  4835. if v:IsA("Part") then
  4836. v.BrickColor = BrickColor.new("Really black")
  4837. v.Material = "Glass"
  4838. end
  4839. end
  4840. for i, v in pairs(m2:GetChildren()) do
  4841. if v:IsA("Part") then
  4842. v.BrickColor = BrickColor.new("Crimson")
  4843. v.Material = "Granite"
  4844. end
  4845. end
  4846. for i, v in pairs(m3:GetChildren()) do
  4847. if v:IsA("Part") then
  4848. v.BrickColor = BrickColor.new("Really red")
  4849. v.Material = "Neon"
  4850. end
  4851. end
  4852. for i, v in pairs(extrawingmod1:GetChildren()) do
  4853. if v:IsA("Part") then
  4854. v.Transparency = 1
  4855. v.BrickColor = BrickColor.new("White")
  4856. v.Material = "Neon"
  4857. end
  4858. end
  4859. for i, v in pairs(extrawingmod2:GetChildren()) do
  4860. if v:IsA("Part") then
  4861. v.Transparency = 1
  4862. v.BrickColor = BrickColor.new("White")
  4863. v.Material = "Neon"
  4864. end
  4865. end
  4866. for i = 0,2,0.1 do
  4867. swait()
  4868. 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)
  4869. 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)
  4870. 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)
  4871. 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)
  4872. 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)
  4873. 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)
  4874. end
  4875. hum.WalkSpeed = storehumanoidWS
  4876. attack = false
  4877. end))
  4878. newTheme("rbxassetid://614032233",48.6,1,0.3)
  4879. end
  4880.  
  4881. function attackone()
  4882. attack = true
  4883. for i = 0,1,0.1 do
  4884. swait()
  4885. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4886. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4887. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4888. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4889. 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)
  4890. 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)
  4891. end
  4892. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4893.  
  4894. local hitb = Instance.new("Part", char)
  4895. hitb.Anchored = true
  4896. hitb.CanCollide = false
  4897. hitb.FormFactor = 3
  4898. hitb.Name = "Ring"
  4899. hitb.Material = "Neon"
  4900. hitb.Size = Vector3.new(1, 1, 1)
  4901. hitb.Transparency = 1
  4902. hitb.TopSurface = 0
  4903. hitb.BottomSurface = 0
  4904. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4905. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4906. hitb:Destroy()
  4907. for i = 0,1,0.1 do
  4908. swait()
  4909. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  4910. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  4911. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  4912. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  4913. 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)
  4914. 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)
  4915. end
  4916.  
  4917. attack = false
  4918. end
  4919.  
  4920. function attacktwo()
  4921. attack = true
  4922. for i = 0,1,0.1 do
  4923. swait()
  4924. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  4925. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  4926. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4927. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4928. 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)
  4929. 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)
  4930. end
  4931. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  4932. local hitb = Instance.new("Part", char)
  4933. hitb.Anchored = true
  4934. hitb.CanCollide = false
  4935. hitb.FormFactor = 3
  4936. hitb.Name = "Ring"
  4937. hitb.Material = "Neon"
  4938. hitb.Size = Vector3.new(1, 1, 1)
  4939. hitb.Transparency = 1
  4940. hitb.TopSurface = 0
  4941. hitb.BottomSurface = 0
  4942. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4943. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4944. hitb:Destroy()
  4945. for i = 0,1,0.1 do
  4946. swait()
  4947. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  4948. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  4949. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  4950. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  4951. 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)
  4952. 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)
  4953. end
  4954. attack = false
  4955. end
  4956.  
  4957. function attackthree()
  4958. attack = true
  4959. for i = 0,1,0.1 do
  4960. swait()
  4961. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  4962. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  4963. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  4964. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4965. 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)
  4966. 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)
  4967. end
  4968. local distlook = 5
  4969. for i = 0, 4 do
  4970. swait(2)
  4971. CameraEnshaking(2,3)
  4972. local hite = Instance.new("Part", char)
  4973. hite.Anchored = true
  4974. hite.CanCollide = false
  4975. hite.FormFactor = 3
  4976. hite.Name = "Ring"
  4977. hite.Material = "Neon"
  4978. hite.Size = Vector3.new(1, 1, 1)
  4979. hite.Transparency = 1
  4980. hite.TopSurface = 0
  4981. hite.BottomSurface = 0
  4982. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  4983. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  4984. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  4985. MagniDamage(hite, 10, 15,35, 0, "Normal")
  4986. for i = 0, 2 do
  4987. 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)
  4988. 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)
  4989. 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)
  4990. end
  4991. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  4992. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  4993. game:GetService("Debris"):AddItem(hite, 5)
  4994. distlook = distlook + 10
  4995. end
  4996. attack = false
  4997. end
  4998.  
  4999. local ActiveGia = false
  5000. function THEHELLITSTHATBIG()
  5001. ActiveGia = true
  5002. attack = true
  5003. hum.WalkSpeed = 0
  5004. for i = 0,2,0.1 do
  5005. swait()
  5006. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5007. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5008. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5009. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5010. 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)
  5011. 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)
  5012. end
  5013. for i = 0,1,0.1 do
  5014. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5015. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5016. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5017. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5018. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5019. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5020. end
  5021. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5022. secrleg.Transparency = 0.5
  5023. seclleg.Transparency = 0.5
  5024. secrarm.Transparency = 0.5
  5025. seclarm.Transparency = 0.5
  5026. seched.Transparency = 0.5
  5027. sectors.Transparency = 0.5
  5028. for i = 0,25,0.1 do
  5029. swait()
  5030. 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)
  5031. 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)
  5032. 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)
  5033. 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)
  5034. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5035. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5036. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5037. end
  5038. --[[secrleg.Transparency = 1
  5039. seclleg.Transparency = 1
  5040. secrarm.Transparency = 1
  5041. seclarm.Transparency = 1
  5042. seched.Transparency = 1
  5043. sectors.Transparency = 1]]--
  5044. torsweld.Part0 = root
  5045. hum.WalkSpeed = storehumanoidWS
  5046. attack = false
  5047. end
  5048.  
  5049. function removelol()
  5050. ActiveGia = false
  5051. attack = true
  5052. hum.WalkSpeed = 0
  5053. for i = 0,2,0.1 do
  5054. swait()
  5055. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5056. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5057. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5058. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5059. 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)
  5060. 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)
  5061. end
  5062. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5063. for i = 0,25,0.1 do
  5064. swait()
  5065. secrleg.Transparency = secrleg.Transparency + 0.00225
  5066. seclleg.Transparency = secrleg.Transparency
  5067. secrarm.Transparency = secrleg.Transparency
  5068. seclarm.Transparency = secrleg.Transparency
  5069. seched.Transparency = secrleg.Transparency
  5070. sectors.Transparency = secrleg.Transparency
  5071. 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)
  5072. 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)
  5073. 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)
  5074. 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)
  5075. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5076. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5077. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5078. end
  5079. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5080. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5081. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5082. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5083. secrleg.Transparency = 1
  5084. seclleg.Transparency = 1
  5085. secrarm.Transparency = 1
  5086. seclarm.Transparency = 1
  5087. seched.Transparency = 1
  5088. sectors.Transparency = 1
  5089. torsweld.Part0 = root
  5090. hum.WalkSpeed = storehumanoidWS
  5091. attack = false
  5092. end
  5093.  
  5094. function FinalCalamity()
  5095. end
  5096.  
  5097. local attacktype = 1
  5098. mouse.Button1Down:connect(function()
  5099. if attack == false and attacktype == 1 then
  5100. attacktype = 2
  5101. attackone()
  5102. elseif attack == false and attacktype == 2 then
  5103. attacktype = 3
  5104. attacktwo()
  5105. elseif attack == false and attacktype == 3 then
  5106. attacktype = 1
  5107. attackthree()
  5108. elseif attack == false and attacktype == 4 then
  5109. attacktype = 1
  5110. --attackfour()
  5111. end
  5112. end)
  5113. mouse.KeyDown:connect(function(k)
  5114. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5115. ModeOfGlitch = 2
  5116. storehumanoidWS = 16
  5117. hum.WalkSpeed = 16
  5118. rainbowmode = false
  5119. chaosmode = false
  5120. tl1.Enabled = false
  5121. tl2.Enabled = false
  5122. tl3.Enabled = false
  5123. RecolorTextAndRename("Kirito's Wings Of Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5124. newTheme("rbxassetid://1539245059",0,1,0.3)
  5125. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5126. for i, v in pairs(mw2:GetChildren()) do
  5127. if v:IsA("Part") then
  5128. v.BrickColor = MAINRUINCOLOR
  5129. v.Material = "Neon"
  5130. end
  5131. end
  5132. for i, v in pairs(mw1:GetChildren()) do
  5133. if v:IsA("Part") then
  5134. v.Transparency = 1
  5135. v.BrickColor = MAINRUINCOLOR
  5136. v.Material = "Neon"
  5137. end
  5138. end
  5139. for i, v in pairs(m:GetChildren()) do
  5140. if v:IsA("Part") then
  5141. v.BrickColor = BrickColor.new("White")
  5142. v.Material = "Ice"
  5143. end
  5144. end
  5145. for i, v in pairs(m2:GetChildren()) do
  5146. if v:IsA("Part") then
  5147. v.BrickColor = BrickColor.new("Pastel light blue")
  5148. v.Material = "Glass"
  5149. end
  5150. end
  5151. for i, v in pairs(m3:GetChildren()) do
  5152. if v:IsA("Part") then
  5153. v.BrickColor = BrickColor.new("Toothpaste")
  5154. v.Material = "Neon"
  5155. end
  5156. end
  5157. for i, v in pairs(extrawingmod1:GetChildren()) do
  5158. if v:IsA("Part") then
  5159. v.Transparency = 1
  5160. v.BrickColor = BrickColor.new("White")
  5161. v.Material = "Neon"
  5162. end
  5163. end
  5164. for i, v in pairs(extrawingmod2:GetChildren()) do
  5165. if v:IsA("Part") then
  5166. v.Transparency = 1
  5167. v.BrickColor = BrickColor.new("White")
  5168. v.Material = "Neon"
  5169. end
  5170. end
  5171. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5172. resetmode()
  5173. end
  5174. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5175. ModeOfGlitch = 3
  5176. storehumanoidWS = 16
  5177. hum.WalkSpeed = 16
  5178. rainbowmode = false
  5179. chaosmode = false
  5180. tl1.Enabled = false
  5181. tl2.Enabled = false
  5182. tl3.Enabled = false
  5183. RecolorTextAndRename("Kirito's Wings Of Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5184. newTheme("rbxassetid://275802730",58.15,0.98,1.25)
  5185. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5186. for i, v in pairs(mw2:GetChildren()) do
  5187. if v:IsA("Part") then
  5188. v.BrickColor = MAINRUINCOLOR
  5189. v.Material = "Neon"
  5190. end
  5191. end
  5192. for i, v in pairs(mw1:GetChildren()) do
  5193. if v:IsA("Part") then
  5194. v.Transparency = 1
  5195. v.BrickColor = MAINRUINCOLOR
  5196. v.Material = "Neon"
  5197. end
  5198. end
  5199. for i, v in pairs(m:GetChildren()) do
  5200. if v:IsA("Part") then
  5201. v.BrickColor = BrickColor.new("Black")
  5202. v.Material = "Ice"
  5203. end
  5204. end
  5205. for i, v in pairs(m2:GetChildren()) do
  5206. if v:IsA("Part") then
  5207. v.BrickColor = BrickColor.new("Dark indigo")
  5208. v.Material = "Glass"
  5209. end
  5210. end
  5211. for i, v in pairs(m3:GetChildren()) do
  5212. if v:IsA("Part") then
  5213. v.BrickColor = BrickColor.new("Royal purple")
  5214. v.Material = "Neon"
  5215. end
  5216. end
  5217. for i, v in pairs(extrawingmod1:GetChildren()) do
  5218. if v:IsA("Part") then
  5219. v.Transparency = 1
  5220. v.BrickColor = BrickColor.new("White")
  5221. v.Material = "Neon"
  5222. end
  5223. end
  5224. for i, v in pairs(extrawingmod2:GetChildren()) do
  5225. if v:IsA("Part") then
  5226. v.Transparency = 1
  5227. v.BrickColor = BrickColor.new("White")
  5228. v.Material = "Neon"
  5229. end
  5230. end
  5231. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5232. resetmode()
  5233. end
  5234. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5235. ModeOfGlitch = 4
  5236. storehumanoidWS = 16
  5237. hum.WalkSpeed = 16
  5238. rainbowmode = false
  5239. chaosmode = true
  5240. tl1.Enabled = true
  5241. tl2.Enabled = true
  5242. tl3.Enabled = true
  5243. RecolorTextAndRename("Kirito's Wings Of Insanity",Color3.new(0,0,0),BrickColor.random().Color)
  5244. newTheme("rbxassetid://311240113",0,1,1)
  5245. MAINRUINCOLOR = BrickColor.new("Black")
  5246. for i, v in pairs(mw2:GetChildren()) do
  5247. if v:IsA("Part") then
  5248. v.BrickColor = MAINRUINCOLOR
  5249. v.Material = "Neon"
  5250. end
  5251. end
  5252. for i, v in pairs(mw1:GetChildren()) do
  5253. if v:IsA("Part") then
  5254. v.Transparency = 0.75
  5255. v.BrickColor = BrickColor.random()
  5256. v.Material = "Neon"
  5257. end
  5258. end
  5259. for i, v in pairs(m:GetChildren()) do
  5260. if v:IsA("Part") then
  5261. v.BrickColor = BrickColor.new("Black")
  5262. v.Material = "Neon"
  5263. end
  5264. end
  5265. for i, v in pairs(m2:GetChildren()) do
  5266. if v:IsA("Part") then
  5267. v.BrickColor = BrickColor.random()
  5268. v.Material = "Neon"
  5269. end
  5270. end
  5271. for i, v in pairs(m3:GetChildren()) do
  5272. if v:IsA("Part") then
  5273. v.BrickColor = BrickColor.new("Black")
  5274. v.Material = "Neon"
  5275. end
  5276. end
  5277. for i, v in pairs(extrawingmod1:GetChildren()) do
  5278. if v:IsA("Part") then
  5279. v.Transparency = 1
  5280. v.BrickColor = BrickColor.new("White")
  5281. v.Material = "Neon"
  5282. end
  5283. end
  5284. for i, v in pairs(extrawingmod2:GetChildren()) do
  5285. if v:IsA("Part") then
  5286. v.Transparency = 1
  5287. v.BrickColor = BrickColor.new("White")
  5288. v.Material = "Neon"
  5289. end
  5290. end
  5291. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5292. resetmode()
  5293. end
  5294. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5295. ModeOfGlitch = 5
  5296. storehumanoidWS = 16
  5297. hum.WalkSpeed = 16
  5298. rainbowmode = false
  5299. chaosmode = false
  5300. tl1.Enabled = true
  5301. tl2.Enabled = true
  5302. tl3.Enabled = true
  5303. RecolorTextAndRename("Kirito's Wings Of Light",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5304. newTheme("rbxassetid://848439234",0,1.02,1)
  5305. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5306. for i, v in pairs(mw2:GetChildren()) do
  5307. if v:IsA("Part") then
  5308. v.BrickColor = MAINRUINCOLOR
  5309. v.Material = "Neon"
  5310. end
  5311. end
  5312. for i, v in pairs(mw1:GetChildren()) do
  5313. if v:IsA("Part") then
  5314. v.Transparency = 0
  5315. v.BrickColor = MAINRUINCOLOR
  5316. v.Material = "Neon"
  5317. end
  5318. end
  5319. for i, v in pairs(m:GetChildren()) do
  5320. if v:IsA("Part") then
  5321. v.BrickColor = BrickColor.new("Cool yellow")
  5322. v.Material = "Ice"
  5323. end
  5324. end
  5325. for i, v in pairs(m2:GetChildren()) do
  5326. if v:IsA("Part") then
  5327. v.BrickColor = BrickColor.new("Bright yellow")
  5328. v.Material = "Ice"
  5329. end
  5330. end
  5331. for i, v in pairs(m3:GetChildren()) do
  5332. if v:IsA("Part") then
  5333. v.BrickColor = BrickColor.new("Bright yellow")
  5334. v.Material = "Neon"
  5335. end
  5336. end
  5337. for i, v in pairs(extrawingmod1:GetChildren()) do
  5338. if v:IsA("Part") then
  5339. v.Transparency = 1
  5340. v.BrickColor = BrickColor.new("White")
  5341. v.Material = "Neon"
  5342. end
  5343. end
  5344. for i, v in pairs(extrawingmod2:GetChildren()) do
  5345. if v:IsA("Part") then
  5346. v.Transparency = 1
  5347. v.BrickColor = BrickColor.new("White")
  5348. v.Material = "Neon"
  5349. end
  5350. end
  5351. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5352. resetmode()
  5353. end
  5354. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5355. ModeOfGlitch = 6
  5356. storehumanoidWS = 75
  5357. hum.WalkSpeed = 75
  5358. rainbowmode = false
  5359. chaosmode = false
  5360. tl1.Enabled = true
  5361. tl2.Enabled = true
  5362. tl3.Enabled = true
  5363. RecolorTextAndRename("Kirito's Wings Of Equality",Color3.new(0,0,0),Color3.new(1,1,1))
  5364. newTheme("rbxassetid://145040747",0,1,1)
  5365. MAINRUINCOLOR = BrickColor.new("White")
  5366. for i, v in pairs(mw2:GetChildren()) do
  5367. if v:IsA("Part") then
  5368. v.BrickColor = MAINRUINCOLOR
  5369. v.Material = "Neon"
  5370. end
  5371. end
  5372. for i, v in pairs(mw1:GetChildren()) do
  5373. if v:IsA("Part") then
  5374. v.Transparency = 0
  5375. v.BrickColor = MAINRUINCOLOR
  5376. v.Material = "Neon"
  5377. end
  5378. end
  5379. for i, v in pairs(m:GetChildren()) do
  5380. if v:IsA("Part") then
  5381. v.BrickColor = BrickColor.new("White")
  5382. v.Material = "Ice"
  5383. end
  5384. end
  5385. for i, v in pairs(m2:GetChildren()) do
  5386. if v:IsA("Part") then
  5387. v.BrickColor = BrickColor.new("Really black")
  5388. v.Material = "Ice"
  5389. end
  5390. end
  5391. for i, v in pairs(m3:GetChildren()) do
  5392. if v:IsA("Part") then
  5393. v.BrickColor = BrickColor.new("White")
  5394. v.Material = "Neon"
  5395. end
  5396. end
  5397. for i, v in pairs(extrawingmod1:GetChildren()) do
  5398. if v:IsA("Part") then
  5399. v.Transparency = 1
  5400. v.BrickColor = BrickColor.new("White")
  5401. v.Material = "Neon"
  5402. end
  5403. end
  5404. for i, v in pairs(extrawingmod2:GetChildren()) do
  5405. if v:IsA("Part") then
  5406. v.Transparency = 1
  5407. v.BrickColor = BrickColor.new("White")
  5408. v.Material = "Neon"
  5409. end
  5410. end
  5411. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5412. resetmode()
  5413. end
  5414. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5415. ModeOfGlitch = 6127843
  5416. storehumanoidWS = 50
  5417. hum.WalkSpeed = 50
  5418. rainbowmode = true
  5419. chaosmode = false
  5420. tl1.Enabled = true
  5421. tl2.Enabled = true
  5422. tl3.Enabled = true
  5423. RecolorTextAndRename("Kirito's Wings Of Stars",Color3.new(1,1,1),Color3.new(1,1,1))
  5424. newTheme("rbxassetid://155945663",0,1,1)
  5425. MAINRUINCOLOR = BrickColor.new("White")
  5426. for i, v in pairs(mw2:GetChildren()) do
  5427. if v:IsA("Part") then
  5428. v.BrickColor = MAINRUINCOLOR
  5429. v.Material = "Neon"
  5430. end
  5431. end
  5432. for i, v in pairs(mw1:GetChildren()) do
  5433. if v:IsA("Part") then
  5434. v.Transparency = 0
  5435. v.BrickColor = MAINRUINCOLOR
  5436. v.Material = "Neon"
  5437. end
  5438. end
  5439. for i, v in pairs(m:GetChildren()) do
  5440. if v:IsA("Part") then
  5441. v.BrickColor = BrickColor.new("White")
  5442. v.Material = "Neon"
  5443. end
  5444. end
  5445. for i, v in pairs(m2:GetChildren()) do
  5446. if v:IsA("Part") then
  5447. v.BrickColor = BrickColor.new("White")
  5448. v.Material = "Neon"
  5449. end
  5450. end
  5451. for i, v in pairs(m3:GetChildren()) do
  5452. if v:IsA("Part") then
  5453. v.BrickColor = BrickColor.new("White")
  5454. v.Material = "Neon"
  5455. end
  5456. end
  5457. for i, v in pairs(extrawingmod1:GetChildren()) do
  5458. if v:IsA("Part") then
  5459. v.Transparency = 1
  5460. v.BrickColor = BrickColor.new("White")
  5461. v.Material = "Neon"
  5462. end
  5463. end
  5464. for i, v in pairs(extrawingmod2:GetChildren()) do
  5465. if v:IsA("Part") then
  5466. v.Transparency = 1
  5467. v.BrickColor = BrickColor.new("White")
  5468. v.Material = "Neon"
  5469. end
  5470. end
  5471. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5472. resetmode()
  5473. end
  5474. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5475. ModeOfGlitch = 1000000
  5476. storehumanoidWS = 100
  5477. hum.WalkSpeed = 100
  5478. rainbowmode = false
  5479. chaosmode = false
  5480. tl1.Enabled = true
  5481. tl2.Enabled = true
  5482. tl3.Enabled = true
  5483. RecolorTextAndRename("Kirito's Wings Of The Universe",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5484. newTheme("rbxassetid://311316650",0,1,1)
  5485. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5486. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5487. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5488. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5489. for i, v in pairs(mw2:GetChildren()) do
  5490. if v:IsA("Part") then
  5491. v.BrickColor = MAINRUINCOLOR
  5492. v.Material = "Neon"
  5493. end
  5494. end
  5495. for i, v in pairs(mw1:GetChildren()) do
  5496. if v:IsA("Part") then
  5497. v.Transparency = 0
  5498. v.BrickColor = MAINRUINCOLOR
  5499. v.Material = "Neon"
  5500. end
  5501. end
  5502. for i, v in pairs(m:GetChildren()) do
  5503. if v:IsA("Part") then
  5504. v.Color = Color3.new(0.5,0,1)
  5505. v.Material = "Neon"
  5506. end
  5507. end
  5508. for i, v in pairs(m2:GetChildren()) do
  5509. if v:IsA("Part") then
  5510. v.Color = Color3.new(0.25,0,1)
  5511. v.Material = "Neon"
  5512. end
  5513. end
  5514. for i, v in pairs(m3:GetChildren()) do
  5515. if v:IsA("Part") then
  5516. v.Color = Color3.new(0.45,0,1)
  5517. v.Material = "Neon"
  5518. end
  5519. end
  5520. for i, v in pairs(extrawingmod1:GetChildren()) do
  5521. if v:IsA("Part") then
  5522. v.Transparency = 0.75
  5523. v.Color = Color3.new(0.25,0,1)
  5524. v.Material = "Neon"
  5525. end
  5526. end
  5527. for i, v in pairs(extrawingmod2:GetChildren()) do
  5528. if v:IsA("Part") then
  5529. v.Transparency = 0.75
  5530. v.Color = Color3.new(0.5,0,1)
  5531. v.Material = "Neon"
  5532. end
  5533. end
  5534. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5535. resetmode()
  5536. end
  5537. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5538. newThemeCust("rbxassetid://1504604335",0,1,1)
  5539. attack = true
  5540. hum.WalkSpeed = 0
  5541. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5542. for i = 0, 24, 0.1 do
  5543. swait()
  5544. 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)
  5545. 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)
  5546. 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)
  5547. 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)
  5548. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5549. 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)
  5550. 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)
  5551. end
  5552. CameraEnshaking(1,1)
  5553. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5554. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5555. wait(0.55)
  5556. CameraEnshaking(1,2)
  5557. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5558. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5559. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5560. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5561. wait(0.55)
  5562. CameraEnshaking(1,3)
  5563. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5564. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5565. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5566. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5567. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5568. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5569. wait(0.55)
  5570. CameraEnshaking(10,5)
  5571. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5572. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5573. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5574. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5575. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5576. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5577. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5578. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5579. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5580. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5581. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5582. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5583. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5584. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5585. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5586. for i = 0, 49 do
  5587. 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)
  5588. 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)
  5589. 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)
  5590. 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)
  5591. end
  5592. ModeOfGlitch = 12345678987654321
  5593. storehumanoidWS = 200
  5594. hum.WalkSpeed = 200
  5595. rainbowmode = false
  5596. chaosmode = false
  5597. tl1.Enabled = true
  5598. tl2.Enabled = true
  5599. tl3.Enabled = true
  5600. RecolorTextAndRename("Kirito's Wings Of Truth",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5601. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5602. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5603. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5604. for i, v in pairs(mw2:GetChildren()) do
  5605. if v:IsA("Part") then
  5606. v.BrickColor = MAINRUINCOLOR
  5607. v.Material = "Neon"
  5608. end
  5609. end
  5610. for i, v in pairs(mw1:GetChildren()) do
  5611. if v:IsA("Part") then
  5612. v.Transparency = 0
  5613. v.BrickColor = MAINRUINCOLOR
  5614. v.Material = "Neon"
  5615. end
  5616. end
  5617. for i, v in pairs(m:GetChildren()) do
  5618. if v:IsA("Part") then
  5619. v.Color = Color3.new(0.5,0,1)
  5620. v.Material = "Neon"
  5621. end
  5622. end
  5623. for i, v in pairs(m2:GetChildren()) do
  5624. if v:IsA("Part") then
  5625. v.Color = Color3.new(0.5,0,1)
  5626. v.Material = "Neon"
  5627. end
  5628. end
  5629. for i, v in pairs(m3:GetChildren()) do
  5630. if v:IsA("Part") then
  5631. v.Color = Color3.new(0.5,0,1)
  5632. v.Material = "Neon"
  5633. end
  5634. end
  5635. for i, v in pairs(extrawingmod1:GetChildren()) do
  5636. if v:IsA("Part") then
  5637. v.Transparency = 0
  5638. v.Color = Color3.new(0.5,0,1)
  5639. v.Material = "Neon"
  5640. end
  5641. end
  5642. for i, v in pairs(extrawingmod2:GetChildren()) do
  5643. if v:IsA("Part") then
  5644. v.Transparency = 0
  5645. v.Color = Color3.new(0.5,0,1)
  5646. v.Material = "Neon"
  5647. end
  5648. attack = false
  5649. end
  5650. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5651. resetmode()
  5652. end
  5653. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5654. newThemeCust("rbxassetid://142299759",0,1,1)
  5655. attack = true
  5656. hum.WalkSpeed = 0
  5657. MAINRUINCOLOR = BrickColor.new("Crimson")
  5658. for i = 0, 24, 0.1 do
  5659. swait()
  5660. 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)
  5661. 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)
  5662. 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)
  5663. 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)
  5664. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5665. 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)
  5666. 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)
  5667. end
  5668. CameraEnshaking(1,1)
  5669. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5670. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5671. wait(0.55)
  5672. CameraEnshaking(1,2)
  5673. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5674. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5675. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5676. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5677. wait(0.55)
  5678. CameraEnshaking(1,3)
  5679. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5680. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5681. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5682. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5683. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5684. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5685. wait(0.55)
  5686. CameraEnshaking(10,5)
  5687. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5688. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5689. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5690. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5691. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5692. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5693. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5694. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5695. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5696. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5697. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5698. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5699. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5700. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5701. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5702. for i = 0, 49 do
  5703. 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)
  5704. 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)
  5705. 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)
  5706. 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)
  5707. end
  5708. ModeOfGlitch = 666
  5709. storehumanoidWS = 16
  5710. hum.WalkSpeed = 16
  5711. rainbowmode = false
  5712. chaosmode = false
  5713. tl1.Enabled = true
  5714. tl2.Enabled = true
  5715. tl3.Enabled = true
  5716. RecolorTextAndRename("Kirito's Wings Of Rage",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5717. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5718. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5719. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5720. for i, v in pairs(mw2:GetChildren()) do
  5721. if v:IsA("Part") then
  5722. v.BrickColor = MAINRUINCOLOR
  5723. v.Material = "Neon"
  5724. end
  5725. end
  5726. for i, v in pairs(mw1:GetChildren()) do
  5727. if v:IsA("Part") then
  5728. v.Transparency = 0
  5729. v.BrickColor = MAINRUINCOLOR
  5730. v.Material = "Neon"
  5731. end
  5732. end
  5733. for i, v in pairs(m:GetChildren()) do
  5734. if v:IsA("Part") then
  5735. v.Color = Color3.new(1,0,0)
  5736. v.Material = "Neon"
  5737. end
  5738. end
  5739. for i, v in pairs(m2:GetChildren()) do
  5740. if v:IsA("Part") then
  5741. v.Color = Color3.new(1,0,0)
  5742. v.Material = "Neon"
  5743. end
  5744. end
  5745. for i, v in pairs(m3:GetChildren()) do
  5746. if v:IsA("Part") then
  5747. v.Color = Color3.new(1,0,0)
  5748. v.Material = "Neon"
  5749. end
  5750. end
  5751. for i, v in pairs(extrawingmod1:GetChildren()) do
  5752. if v:IsA("Part") then
  5753. v.Transparency = 0
  5754. v.Color = Color3.new(1,0,0)
  5755. v.Material = "Neon"
  5756. end
  5757. end
  5758. for i, v in pairs(extrawingmod2:GetChildren()) do
  5759. if v:IsA("Part") then
  5760. v.Transparency = 0
  5761. v.Color = Color3.new(1,0,0)
  5762. v.Material = "Neon"
  5763. end
  5764. attack = false
  5765. end
  5766. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5767. resetmode()
  5768. end
  5769. if k == "l" and toggleTag == false then
  5770. toggleTag = true
  5771. text.TextTransparency = 0
  5772. text.TextStrokeTransparency = 0
  5773. elseif k == "l" and toggleTag == true then
  5774. toggleTag = false
  5775. text.TextTransparency = 1
  5776. text.TextStrokeTransparency = 1
  5777. end
  5778. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5779. ExtinctiveHeartbreak()
  5780. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5781. PureBomb()
  5782. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5783. scattercorrupt()
  5784. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5785. ChaosGroundStrike()
  5786. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5787. Judgement()
  5788. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5789. HolyBarrier()
  5790. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5791. Starfall()
  5792. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5793. yinyangi()
  5794. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5795. MeteorStrike()
  5796. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5797. Wip()
  5798. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5799. StarfallEX()
  5800. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5801. FinalCalam()
  5802. end
  5803. if k == "n" and attack == false then
  5804. Blink()
  5805. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5806. StarDivision()
  5807. end
  5808. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5809. UniversalCollapse()
  5810. end
  5811. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5812. hum.WalkSpeed = 16 + 184
  5813. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5814. hum.WalkSpeed = 200 - 184
  5815. end
  5816. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5817. UniversalSpark()
  5818. end
  5819. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5820. StarDivision()
  5821. end
  5822. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5823. Starfall()
  5824. end
  5825. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5826. ChaosBegone()
  5827. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  5828. THEHELLITSTHATBIG()
  5829. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  5830. removelol()
  5831. end
  5832. end)
  5833. mouse.KeyUp:connect(function(k)
  5834. if k == "f" and ModeOfGlitch == 5 then
  5835. shielding = false
  5836. end
  5837. if k == "z" and ModeOfGlitch == 5 then
  5838. judgement = false
  5839. end
  5840. end)
  5841. coroutine.resume(coroutine.create(function()
  5842. while true do
  5843. swait(2)
  5844. if rainbowmode == true or ModeOfGlitch == 6 then
  5845. if eff == true then
  5846. 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)
  5847. end
  5848. end
  5849. end
  5850. end))
  5851. coroutine.resume(coroutine.create(function()
  5852. while true do
  5853. swait(2)
  5854. if shielding == true then
  5855. end
  5856. end
  5857. end))
  5858.  
  5859.  
  5860. coroutine.resume(coroutine.create(function()
  5861. while true do
  5862. if ModeOfGlitch == 1000000 then
  5863. swait(0.5)
  5864. end
  5865. swait()
  5866. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5867. 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)
  5868. end
  5869. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5870. 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)
  5871. end
  5872. end
  5873. end))
  5874.  
  5875.  
  5876. coroutine.resume(coroutine.create(function()
  5877. while true do
  5878. swait(2)
  5879. if chaosmode == true then
  5880. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5881. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5882. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5883. RecolorTextAndRename("Kirito's Wings Of Insanity",Color3.new(0,0,0),BrickColor.random().Color)
  5884. for i, v in pairs(mw1:GetChildren()) do
  5885. if v:IsA("Part") then
  5886. v.Transparency = 0.75
  5887. v.BrickColor = BrickColor.random()
  5888. v.Material = "Neon"
  5889. end
  5890. end
  5891. for i, v in pairs(m2:GetChildren()) do
  5892. if v:IsA("Part") then
  5893. v.BrickColor = BrickColor.random()
  5894. v.Material = "Neon"
  5895. end
  5896. end
  5897. for i, v in pairs(secondchar:GetChildren()) do
  5898. if v:IsA("Part") then
  5899. v.BrickColor = BrickColor.random()
  5900. v.Material = "Neon"
  5901. end
  5902. end
  5903. end
  5904. end
  5905. end))
  5906. Humanoid.Name = "STARGLITCHER"
  5907. Humanoid.MaxHealth = math.huge
  5908. Humanoid.Health = math.huge
  5909. Instance.new("ForceField",char).Visible = false
  5910. Humanoid.Animator.Parent = nil
  5911. idleanim=.4
  5912. while true do
  5913. if rainbowmode == false then
  5914. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5915. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5916. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5917. for i, v in pairs(secondchar:GetChildren()) do
  5918. if v:IsA("Part") then
  5919. v.BrickColor = MAINRUINCOLOR
  5920. v.Material = "Neon"
  5921. end
  5922. end
  5923. if chaosmode == false then
  5924. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5925. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5926. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5927. for i, v in pairs(secondchar:GetChildren()) do
  5928. if v:IsA("Part") then
  5929. v.BrickColor = MAINRUINCOLOR
  5930. v.Material = "Neon"
  5931. end
  5932. end
  5933. end
  5934. end
  5935. if rainbowmode == true then
  5936. RecolorTextAndRename("Kirito's Wings Of Revenge",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  5937. MAINRUINCOLOR = BrickColor.new("White")
  5938. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5939. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5940. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5941. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5942. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5943. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5944. for i, v in pairs(m:GetChildren()) do
  5945. if v:IsA("Part") then
  5946. v.Color = Color3.new(r/255,g/255,b/255)
  5947. end
  5948. end
  5949. for i, v in pairs(m2:GetChildren()) do
  5950. if v:IsA("Part") then
  5951. v.Color = Color3.new(r/255,g/255,b/255)
  5952. end
  5953. end
  5954. for i, v in pairs(secondchar:GetChildren()) do
  5955. if v:IsA("Part") then
  5956. v.Color = Color3.new(r/255,g/255,b/255)
  5957. v.Material = "Neon"
  5958. end
  5959. end
  5960. for i, v in pairs(m3:GetChildren()) do
  5961. if v:IsA("Part") then
  5962. v.Color = Color3.new(r/255,g/255,b/255)
  5963. end
  5964. end
  5965. for i, v in pairs(mw1:GetChildren()) do
  5966. if v:IsA("Part") then
  5967. v.Color = Color3.new(r/255,g/255,b/255)
  5968. v.Material = "Neon"
  5969. end
  5970. end
  5971. for i, v in pairs(mw2:GetChildren()) do
  5972. if v:IsA("Part") then
  5973. v.Color = Color3.new(r/255,g/255,b/255)
  5974. v.Material = "Neon"
  5975. end
  5976. end
  5977. end
  5978. CameraManager()
  5979. swait()
  5980. 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)
  5981. 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)
  5982. 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)
  5983. 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)
  5984. 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)
  5985. 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)
  5986.  
  5987. if attack == false and ActiveGia == false then
  5988. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5989. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5990. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5991. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5992. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5993. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5994. elseif attack == false and ActiveGia == true then
  5995. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  5996. 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)
  5997. 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)
  5998. 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)
  5999. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6000. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6001. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6002. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6003. 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)
  6004. 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)
  6005. 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)
  6006. 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)
  6007. 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)
  6008. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6009. end
  6010. end
  6011.  
  6012. 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)
  6013. 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)
  6014. 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)
  6015. 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)
  6016. 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)
  6017. 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)
  6018. sine = sine + change
  6019. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6020. local velderp=RootPart.Velocity.y
  6021. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6022. if equipped==true or equipped==false then
  6023. if attack==false then
  6024. idle=idle+1
  6025. else
  6026. idle=0
  6027. end
  6028. if idle>=500 then
  6029. if attack==false then
  6030. --Sheath()
  6031. end
  6032. end
  6033. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6034. Anim="Jump"
  6035. if attack==false then
  6036. 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)
  6037. 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)
  6038. 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)
  6039. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6040. 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)
  6041. 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)
  6042. end
  6043. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6044. Anim="Fall"
  6045. if attack==false then
  6046. 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)
  6047. 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)
  6048. 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)
  6049. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6050. 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)
  6051. 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)
  6052. end
  6053. elseif torvel<1 and hitfloor~=nil then
  6054. Anim="Idle"
  6055. if attack==false then
  6056. if ModeOfGlitch == 1 then
  6057. 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)
  6058. 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)
  6059. 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)
  6060. 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)
  6061. 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)
  6062. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6063.  
  6064. elseif ModeOfGlitch == 666 then
  6065. 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)
  6066. 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)
  6067. 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)
  6068. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6069. 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)
  6070. 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)
  6071.  
  6072. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6073. 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)
  6074. 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)
  6075. 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)
  6076. 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)
  6077. 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)
  6078. 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)
  6079.  
  6080. elseif ModeOfGlitch == 3 then
  6081. 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)
  6082. 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)
  6083. 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)
  6084. 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)
  6085. 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)
  6086. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6087.  
  6088. elseif ModeOfGlitch == 4 then
  6089. 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)
  6090. 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)
  6091. 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)
  6092. 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)
  6093. 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)
  6094. 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)
  6095.  
  6096. elseif ModeOfGlitch == 5 then
  6097. 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)
  6098. 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)
  6099. 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)
  6100. 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)
  6101. 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)
  6102. 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)
  6103.  
  6104. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6105. 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)
  6106. 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)
  6107. 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)
  6108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6109. 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)
  6110. 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)
  6111.  
  6112. elseif ModeOfGlitch == 12345678987654321 then
  6113. 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)
  6114. 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)
  6115. 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)
  6116. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6117. 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)
  6118. 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)
  6119. end
  6120. end
  6121. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6122. Anim="Walk"
  6123. if attack==false then
  6124. if ModeOfGlitch == 1 then
  6125. 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)
  6126. 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)
  6127. 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)
  6128. 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)
  6129. 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)
  6130. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6131.  
  6132. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6133. 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)
  6134. 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)
  6135. 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)
  6136. 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)
  6137. 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)
  6138. 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)
  6139.  
  6140. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6141. 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)
  6142. 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)
  6143. 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)
  6144. 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)
  6145. 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)
  6146. 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)
  6147. end
  6148. end
  6149. elseif torvel>=22 and hitfloor~=nil then
  6150. Anim="Run"
  6151. if attack==false then
  6152. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6153. 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)
  6154. 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)
  6155. 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)
  6156. 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)
  6157. 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)
  6158. 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)
  6159. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6160. 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)
  6161. 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)
  6162. 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)
  6163. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6164. 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)
  6165. 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)
  6166. end
  6167. end
  6168. end
  6169. end
  6170. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement