scriptshocasereditor

Untitled

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