artucox7

TheSinOfTheDeath

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