Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 494.87 KB | None | 0 0
  1. warn([[Star Glitcher Loaded.
  2. All purpose switcher... -- wat
  3.  
  4. It's not over yet.
  5. The faith is among us.
  6. And yet you still haven't defeated me.
  7. Now is my chance to destroy you.
  8. Then you're out of the world.
  9. With the elemental being struggling to gain power.
  10. This is the result.
  11. Very unstable and powerful.
  12. A insanely chaotic being.
  13. Who haven't ever known that one could hold this power.
  14. It's the one that has been created by an unknown being.
  15. You'll know this name already.
  16. Till now.
  17. The power is inside your body.
  18. You will decide things with this.
  19. And the future changes within the power.
  20. For now, you'll decide your own.
  21. You're one of them who holds this power.
  22. And so on, you would get chaotic to everyone else.
  23. You seem to dont trust everyone else, but one.
  24. That one... you can't know.
  25. It's only your decision.
  26. At yourself.
  27. No mercy, or spare.
  28.  
  29.  
  30. Created by 'NoobyGames12'
  31. Edited by 'danny199990'
  32. Some stuff by 'XXUNORIBOASXX'
  33. ]])
  34. print([[Icons:
  35. ! = New
  36. ? = Spoilers
  37. * = Exclusivity
  38. ]])
  39. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  40. - Originall themes included
  41. ! - Calamity's "Z" has changed.
  42. ! - Starfall EX added.
  43. ! - Mayhem now has Destruction mode.
  44. ! - Chaos theme has been changed.
  45. ! - Purity's theme has been extended.
  46. ? - Corruption's "Z" will have animation sooner.
  47. ! - Calamity's "X" is added, named Starfall.
  48. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.
  49. ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990).
  50. ! - Equinox's MeteorStrike move(X) added(Made by danny199990).
  51. ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990).
  52. ! - Divinity's Judgement move(Z) can now be held as long as you want it to.
  53.  
  54. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  55. ]])
  56. --- its obs smooth af do not touch
  57. ---- Sources and functions might be taken from others
  58. plr = game:GetService("Players").LocalPlayer
  59. char = plr.Character
  60. hum = char.Humanoid
  61. local cam = game.Workspace.CurrentCamera
  62. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  63. Camera = cam
  64. local CamInterrupt = false
  65. local TwoD = false
  66. local TargetInfo = {nil, nil}
  67. cam.CameraType = "Custom"
  68. t = char.Torso
  69. h = char.Head
  70. ra = char["Right Arm"]
  71. la = char["Left Arm"]
  72. rl = char["Right Leg"]
  73. ll = char["Left Leg"]
  74. tors = char.Torso
  75. lleg = char["Left Leg"]
  76. root = char.HumanoidRootPart
  77. hed = char.Head
  78. rleg = char["Right Leg"]
  79. rarm = char["Right Arm"]
  80. larm = char["Left Arm"]
  81. radian = math.rad
  82. random = math.random
  83. Vec3 = Vector3.new
  84. Inst = Instance.new
  85. cFrame = CFrame.new
  86. Euler = CFrame.fromEulerAnglesXYZ
  87. vt = Vector3.new
  88. bc = BrickColor.new
  89. br = BrickColor.random
  90. it = Instance.new
  91. cf = CFrame.new
  92. local eff = true
  93. local shielding = false
  94.  
  95. local Booleans = {
  96. CamFollow = true,
  97. GyroUse = true
  98. }
  99.  
  100. function lerp(object, newCFrame, alpha)
  101. return object:lerp(newCFrame, alpha)
  102. end
  103.  
  104. local Directer = Inst("BodyGyro", root)
  105. Directer.MaxTorque = Vec3(0, 0, 0)
  106. Directer.P = 600000
  107. local CPart = Inst("Part")
  108. CPart.Anchored = true
  109. CPart.CanCollide = false
  110. CPart.Locked = true
  111. CPart.Transparency = 1
  112.  
  113. local rainbowmode = false
  114. local chaosmode = false
  115.  
  116. kan = Instance.new("Sound",char)
  117. kan.Volume = 1.25
  118. kan.TimePosition = 0
  119. kan.PlaybackSpeed = 1
  120. kan.Pitch = 1
  121. kan.SoundId = "rbxassetid://614032233"
  122. kan.Name = "wrecked"
  123. kan.Looped = true
  124. kan:Play()
  125.  
  126. function newTheme(ID,timepos,pitch,vol)
  127. local kanz = kan
  128. --kanz:Stop()
  129. --kanz.Volume = vol
  130. --kanz.TimePosition = timepos
  131. kanz.PlaybackSpeed = pitch
  132. kanz.Pitch = pitch
  133. kanz.SoundId = ID
  134. kanz.Name = "wrecked"
  135. kanz.Looped = true
  136. kanz.Volume = 0.3
  137. --kanz:Play()
  138. --coroutine.resume(coroutine.create(function()
  139. --wait(0.05)
  140. --end))
  141. end
  142.  
  143. function newThemeCust(ID,timepos,pitch,vol)
  144. local kanz = kan
  145. kanz:Stop()
  146. kanz.Volume = vol
  147. kanz.TimePosition = timepos
  148. kanz.PlaybackSpeed = pitch
  149. kanz.Pitch = pitch
  150. kanz.SoundId = ID
  151. kanz.Name = "wrecked"
  152. kanz.Looped = true
  153. kanz:Play()
  154. coroutine.resume(coroutine.create(function()
  155. wait(0.05)
  156. end))
  157. end
  158.  
  159.  
  160.  
  161. function CameraShake(Times, Power, PlayerTarget)
  162. coroutine.resume(coroutine.create(function()
  163. FV = Instance.new("BoolValue", PlayerTarget)
  164. FV.Name = "CameraShake"
  165. for ShakeNum=1,Times do
  166. swait()
  167. local ef=Power
  168. if ef>=1 then
  169. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  170. else
  171. ef=Power*10
  172. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  173. end
  174. end
  175. Humanoid.CameraOffset = Vector3.new(0,0,0)
  176. FV:Destroy()
  177. end))
  178. end
  179.  
  180. function CameraEnshaking(Length,Intensity)
  181. coroutine.resume(coroutine.create(function()
  182. local intensity = 1*Intensity
  183. local rotM = 0.01*Intensity
  184. for i = 0, Length, 0.1 do
  185. swait()
  186. intensity = intensity - 0.05*Intensity/Length
  187. rotM = rotM - 0.0005*Intensity/Length
  188. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  189. 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)
  190. end
  191. Humanoid.CameraOffset = Vec3(0, 0, 0)
  192. end))
  193. end
  194. CamShake=function(Part,Distan,Power,Times)
  195. local de=Part.Position
  196. for i,v in pairs(workspace:children()) do
  197. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  198. for _,c in pairs(v:children()) do
  199. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  200. local Noob=v.Humanoid
  201. if Noob~=nil then
  202. coroutine.resume(coroutine.create(function()
  203. FV = Instance.new("BoolValue", Noob)
  204. FV.Name = "CameraShake"
  205. for ShakeNum=1,Times do
  206. swait()
  207. local ef=Power
  208. if ef>=1 then
  209. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  210. else
  211. ef=Power*10
  212. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  213. end
  214. end
  215. Humanoid.CameraOffset = Vector3.new(0,0,0)
  216. FV:Destroy()
  217. end))
  218. CameraShake(Times, Power, Noob)
  219. end
  220. end
  221. end
  222. end
  223. end
  224. end
  225.  
  226. function chatfunc(text,color)
  227. local chat = coroutine.wrap(function()
  228. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  229. Character:FindFirstChild("TalkingBillBoard"):destroy()
  230. end
  231. local naeeym2 = Instance.new("BillboardGui",Character)
  232. naeeym2.Size = UDim2.new(0,100,0,40)
  233. naeeym2.StudsOffset = Vector3.new(0,3,0)
  234. naeeym2.Adornee = Character.Head
  235. naeeym2.Name = "TalkingBillBoard"
  236. local tecks2 = Instance.new("TextLabel",naeeym2)
  237. tecks2.BackgroundTransparency = 1
  238. tecks2.BorderSizePixel = 0
  239. tecks2.Text = ""
  240. tecks2.Font = "SciFi"
  241. tecks2.TextSize = 30
  242. tecks2.TextStrokeTransparency = 0
  243. tecks2.TextColor3 = color
  244. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  245. tecks2.Size = UDim2.new(1,0,0.5,0)
  246. local tecks3 = Instance.new("TextLabel",naeeym2)
  247. tecks3.BackgroundTransparency = 1
  248. tecks3.BorderSizePixel = 0
  249. tecks3.Text = ""
  250. tecks3.Font = "SciFi"
  251. tecks3.TextSize = 30
  252. tecks3.TextStrokeTransparency = 0
  253. tecks3.TextColor3 = Color3.new(0,0,0)
  254. tecks3.TextStrokeColor3 = color
  255. tecks3.Size = UDim2.new(1,0,0.5,0)
  256. coroutine.resume(coroutine.create(function()
  257. while true do
  258. swait(1)
  259. plr.Character.wrecked.Volume = 0.3
  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. Player=game:GetService("Players").LocalPlayer
  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. mouse=Player:GetMouse()
  1107. --save shoulders
  1108. RSH, LSH=nil, nil
  1109. --welds
  1110. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1111. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1112. LH=Torso["Left Hip"]
  1113. RH=Torso["Right Hip"]
  1114. TorsoColor=Torso.BrickColor
  1115. function NoOutline(Part)
  1116. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1117. end
  1118. player=Player
  1119. ch=Character
  1120. RSH=ch.Torso["Right Shoulder"]
  1121. LSH=ch.Torso["Left Shoulder"]
  1122. --
  1123. RSH.Parent=nil
  1124. LSH.Parent=nil
  1125. --
  1126. RW.Name="Right Shoulder"
  1127. RW.Part0=ch.Torso
  1128. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1129. RW.C1=cf(0, 0.5, 0)
  1130. RW.Part1=ch["Right Arm"]
  1131. RW.Parent=ch.Torso
  1132. --
  1133. LW.Name="Left Shoulder"
  1134. LW.Part0=ch.Torso
  1135. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1136. LW.C1=cf(0, 0.5, 0)
  1137. LW.Part1=ch["Left Arm"]
  1138. LW.Parent=ch.Torso
  1139.  
  1140. local Stats=Instance.new("BoolValue")
  1141. Stats.Name="Stats"
  1142. Stats.Parent=Character
  1143. local Atk=Instance.new("NumberValue")
  1144. Atk.Name="Damage"
  1145. Atk.Parent=Stats
  1146. Atk.Value=1
  1147. local Def=Instance.new("NumberValue")
  1148. Def.Name="Defense"
  1149. Def.Parent=Stats
  1150. Def.Value=1
  1151. local Speed=Instance.new("NumberValue")
  1152. Speed.Name="Speed"
  1153. Speed.Parent=Stats
  1154. Speed.Value=1
  1155. local Mvmt=Instance.new("NumberValue")
  1156. Mvmt.Name="Movement"
  1157. Mvmt.Parent=Stats
  1158. Mvmt.Value=1
  1159.  
  1160. local donum=0
  1161.  
  1162.  
  1163. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1164. local fp=it("Part")
  1165. fp.formFactor=formfactor
  1166. fp.Parent=parent
  1167. fp.Reflectance=reflectance
  1168. fp.Transparency=transparency
  1169. fp.CanCollide=false
  1170. fp.Locked=true
  1171. fp.BrickColor=brickcolor
  1172. fp.Name=name
  1173. fp.Size=size
  1174. fp.Position=Torso.Position
  1175. NoOutline(fp)
  1176. fp.Material="SmoothPlastic"
  1177. fp:BreakJoints()
  1178. return fp
  1179. end
  1180.  
  1181. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1182. local mesh=it(Mesh)
  1183. mesh.Parent=part
  1184. if Mesh=="SpecialMesh" then
  1185. mesh.MeshType=meshtype
  1186. if meshid~="nil" then
  1187. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1188. end
  1189. end
  1190. mesh.Offset=offset
  1191. mesh.Scale=scale
  1192. return mesh
  1193. end
  1194.  
  1195. function weld(parent,part0,part1,c0)
  1196. local weld=it("Weld")
  1197. weld.Parent=parent
  1198. weld.Part0=part0
  1199. weld.Part1=part1
  1200. weld.C0=c0
  1201. return weld
  1202. end
  1203.  
  1204. local Color1=Torso.BrickColor
  1205.  
  1206. local bodvel=Instance.new("BodyVelocity")
  1207. local bg=Instance.new("BodyGyro")
  1208.  
  1209. function swait(num)
  1210. if num==0 or num==nil then
  1211. game:service'RunService'.Stepped:wait(0)
  1212. else
  1213. for i=0,num do
  1214. game:service'RunService'.Stepped:wait(0)
  1215. end
  1216. end
  1217. end
  1218.  
  1219. -------- RAINBOW LEAVE IT TO ME
  1220. local r = 255
  1221. local g = 0
  1222. local b = 0
  1223. coroutine.resume(coroutine.create(function()
  1224. while wait() do
  1225. for i = 0, 254/5 do
  1226. swait()
  1227. g = g + 5
  1228. end
  1229. for i = 0, 254/5 do
  1230. swait()
  1231. r = r - 5
  1232. end
  1233. for i = 0, 254/5 do
  1234. swait()
  1235. b = b + 5
  1236. end
  1237. for i = 0, 254/5 do
  1238. swait()
  1239. g = g - 5
  1240. end
  1241. for i = 0, 254/5 do
  1242. swait()
  1243. r = r + 5
  1244. end
  1245. for i = 0, 254/5 do
  1246. swait()
  1247. b = b - 5
  1248. end
  1249. end
  1250. end))
  1251.  
  1252.  
  1253. so = function(id,par,vol,pit)
  1254. coroutine.resume(coroutine.create(function()
  1255. local sou = Instance.new("Sound",par or workspace)
  1256. sou.Volume=vol
  1257. sou.Pitch=pit or 1
  1258. sou.SoundId=id
  1259. swait()
  1260. sou:play()
  1261. game:GetService("Debris"):AddItem(sou,6)
  1262. end))
  1263. end
  1264.  
  1265. function clerp(a,b,t)
  1266. local qa = {QuaternionFromCFrame(a)}
  1267. local qb = {QuaternionFromCFrame(b)}
  1268. local ax, ay, az = a.x, a.y, a.z
  1269. local bx, by, bz = b.x, b.y, b.z
  1270. local _t = 1-t
  1271. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1272. end
  1273.  
  1274. function QuaternionFromCFrame(cf)
  1275. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1276. local trace = m00 + m11 + m22
  1277. if trace > 0 then
  1278. local s = math.sqrt(1 + trace)
  1279. local recip = 0.5/s
  1280. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1281. else
  1282. local i = 0
  1283. if m11 > m00 then
  1284. i = 1
  1285. end
  1286. if m22 > (i == 0 and m00 or m11) then
  1287. i = 2
  1288. end
  1289. if i == 0 then
  1290. local s = math.sqrt(m00-m11-m22+1)
  1291. local recip = 0.5/s
  1292. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1293. elseif i == 1 then
  1294. local s = math.sqrt(m11-m22-m00+1)
  1295. local recip = 0.5/s
  1296. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1297. elseif i == 2 then
  1298. local s = math.sqrt(m22-m00-m11+1)
  1299. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1300. end
  1301. end
  1302. end
  1303.  
  1304. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1305. local xs, ys, zs = x + x, y + y, z + z
  1306. local wx, wy, wz = w*xs, w*ys, w*zs
  1307. local xx = x*xs
  1308. local xy = x*ys
  1309. local xz = x*zs
  1310. local yy = y*ys
  1311. local yz = y*zs
  1312. local zz = z*zs
  1313. 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))
  1314. end
  1315.  
  1316. function QuaternionSlerp(a, b, t)
  1317. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1318. local startInterp, finishInterp;
  1319. if cosTheta >= 0.0001 then
  1320. if (1 - cosTheta) > 0.0001 then
  1321. local theta = math.acos(cosTheta)
  1322. local invSinTheta = 1/math.sin(theta)
  1323. startInterp = math.sin((1-t)*theta)*invSinTheta
  1324. finishInterp = math.sin(t*theta)*invSinTheta
  1325. else
  1326. startInterp = 1-t
  1327. finishInterp = t
  1328. end
  1329. else
  1330. if (1+cosTheta) > 0.0001 then
  1331. local theta = math.acos(-cosTheta)
  1332. local invSinTheta = 1/math.sin(theta)
  1333. startInterp = math.sin((t-1)*theta)*invSinTheta
  1334. finishInterp = math.sin(t*theta)*invSinTheta
  1335. else
  1336. startInterp = t-1
  1337. finishInterp = t
  1338. end
  1339. end
  1340. 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
  1341. end
  1342.  
  1343. local function CFrameFromTopBack(at, top, back)
  1344. local right = top:Cross(back)
  1345. return CFrame.new(at.x, at.y, at.z,
  1346. right.x, top.x, back.x,
  1347. right.y, top.y, back.y,
  1348. right.z, top.z, back.z)
  1349. end
  1350.  
  1351. function Triangle(a, b, c)
  1352. local edg1 = (c-a):Dot((b-a).unit)
  1353. local edg2 = (a-b):Dot((c-b).unit)
  1354. local edg3 = (b-c):Dot((a-c).unit)
  1355. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1356. a, b, c = a, b, c
  1357. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1358. a, b, c = b, c, a
  1359. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1360. a, b, c = c, a, b
  1361. else
  1362. assert(false, "unreachable")
  1363. end
  1364.  
  1365. local len1 = (c-a):Dot((b-a).unit)
  1366. local len2 = (b-a).magnitude - len1
  1367. local width = (a + (b-a).unit*len1 - c).magnitude
  1368.  
  1369. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1370.  
  1371. local list = {}
  1372.  
  1373. if len1 > 0.01 then
  1374. local w1 = Instance.new('WedgePart', m)
  1375. game:GetService("Debris"):AddItem(w1,5)
  1376. w1.Material = "SmoothPlastic"
  1377. w1.FormFactor = 'Custom'
  1378. w1.BrickColor = BrickColor.new("Really red")
  1379. w1.Transparency = 0
  1380. w1.Reflectance = 0
  1381. w1.Material = "SmoothPlastic"
  1382. w1.CanCollide = false
  1383. local l1 = Instance.new("PointLight",w1)
  1384. l1.Color = Color3.new(170,0,0)
  1385. NoOutline(w1)
  1386. local sz = Vector3.new(0.2, width, len1)
  1387. w1.Size = sz
  1388. local sp = Instance.new("SpecialMesh",w1)
  1389. sp.MeshType = "Wedge"
  1390. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1391. w1:BreakJoints()
  1392. w1.Anchored = true
  1393. w1.Parent = workspace
  1394. w1.Transparency = 0.7
  1395. table.insert(Effects,{w1,"Disappear",.01})
  1396. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1397. table.insert(list,w1)
  1398. end
  1399.  
  1400. if len2 > 0.01 then
  1401. local w2 = Instance.new('WedgePart', m)
  1402. game:GetService("Debris"):AddItem(w2,5)
  1403. w2.Material = "SmoothPlastic"
  1404. w2.FormFactor = 'Custom'
  1405. w2.BrickColor = BrickColor.new("Really red")
  1406. w2.Transparency = 0
  1407. w2.Reflectance = 0
  1408. w2.Material = "SmoothPlastic"
  1409. w2.CanCollide = false
  1410. local l2 = Instance.new("PointLight",w2)
  1411. l2.Color = Color3.new(170,0,0)
  1412. NoOutline(w2)
  1413. local sz = Vector3.new(0.2, width, len2)
  1414. w2.Size = sz
  1415. local sp = Instance.new("SpecialMesh",w2)
  1416. sp.MeshType = "Wedge"
  1417. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1418. w2:BreakJoints()
  1419. w2.Anchored = true
  1420. w2.Parent = workspace
  1421. w2.Transparency = 0.7
  1422. table.insert(Effects,{w2,"Disappear",.01})
  1423. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1424. table.insert(list,w2)
  1425. end
  1426. return unpack(list)
  1427. end
  1428.  
  1429.  
  1430. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1431. if hit.Parent == nil then
  1432. return
  1433. end
  1434. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1435. for _, v in pairs(hit.Parent:children()) do
  1436. if v:IsA("Humanoid") then
  1437. h = v
  1438. end
  1439. end
  1440. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1441. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1442. return
  1443. end
  1444. local c = Create("ObjectValue")({
  1445. Name = "creator",
  1446. Value = game:service("Players").LocalPlayer,
  1447. Parent = h
  1448. })
  1449. game:GetService("Debris"):AddItem(c, 0.5)
  1450. if HitSound ~= nil and HitPitch ~= nil then
  1451. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1452. end
  1453. local Damage = math.random(minim, maxim)
  1454. local blocked = false
  1455. local block = hit.Parent:findFirstChild("Block")
  1456. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1457. blocked = true
  1458. block.Value = block.Value - 1
  1459. print(block.Value)
  1460. end
  1461. if blocked == false then
  1462. HitHealth = h.Health
  1463. h.Health = h.Health - Damage
  1464. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1465. print("gained kill")
  1466. end
  1467. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1468. else
  1469. h.Health = h.Health - Damage / 2
  1470. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1471. end
  1472. if Type == "Knockdown" then
  1473. local hum = hit.Parent.Humanoid
  1474. hum.PlatformStand = true
  1475. coroutine.resume(coroutine.create(function(HHumanoid)
  1476. swait(1)
  1477. HHumanoid.PlatformStand = false
  1478. end), hum)
  1479. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1480. local bodvol = Create("BodyVelocity")({
  1481. velocity = angle * knockback,
  1482. P = 5000,
  1483. maxForce = Vector3.new(8000, 8000, 8000),
  1484. Parent = hit
  1485. })
  1486. local rl = Create("BodyAngularVelocity")({
  1487. P = 3000,
  1488. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1489. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1490. Parent = hit
  1491. })
  1492. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1493. game:GetService("Debris"):AddItem(rl, 0.5)
  1494. elseif Type == "Normal" then
  1495. local vp = Create("BodyVelocity")({
  1496. P = 500,
  1497. maxForce = Vector3.new(math.huge, 0, math.huge),
  1498. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1499. })
  1500. if knockback > 0 then
  1501. vp.Parent = hit.Parent.Head
  1502. end
  1503. game:GetService("Debris"):AddItem(vp, 0.5)
  1504. elseif Type == "Up" then
  1505. local bodyVelocity = Create("BodyVelocity")({
  1506. velocity = Vector3.new(0, 20, 0),
  1507. P = 5000,
  1508. maxForce = Vector3.new(8000, 8000, 8000),
  1509. Parent = hit
  1510. })
  1511. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1512. local bodyVelocity = Create("BodyVelocity")({
  1513. velocity = Vector3.new(0, 20, 0),
  1514. P = 5000,
  1515. maxForce = Vector3.new(8000, 8000, 8000),
  1516. Parent = hit
  1517. })
  1518. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1519. elseif Type == "Leech" then
  1520. local hum = hit.Parent.Humanoid
  1521. if hum ~= nil then
  1522. for i = 0, 2 do
  1523. 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)
  1524. end
  1525. Humanoid.Health = Humanoid.Health + 10
  1526. end
  1527. elseif Type == "UpKnock" then
  1528. local hum = hit.Parent.Humanoid
  1529. hum.PlatformStand = true
  1530. if hum ~= nil then
  1531. hitr = true
  1532. end
  1533. coroutine.resume(coroutine.create(function(HHumanoid)
  1534. swait(5)
  1535. HHumanoid.PlatformStand = false
  1536. hitr = false
  1537. end), hum)
  1538. local bodyVelocity = Create("BodyVelocity")({
  1539. velocity = Vector3.new(0, 20, 0),
  1540. P = 5000,
  1541. maxForce = Vector3.new(8000, 8000, 8000),
  1542. Parent = hit
  1543. })
  1544. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1545. local bodyVelocity = Create("BodyVelocity")({
  1546. velocity = Vector3.new(0, 20, 0),
  1547. P = 5000,
  1548. maxForce = Vector3.new(8000, 8000, 8000),
  1549. Parent = hit
  1550. })
  1551. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1552. elseif Type == "Snare" then
  1553. local bp = Create("BodyPosition")({
  1554. P = 2000,
  1555. D = 100,
  1556. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1557. position = hit.Parent.Torso.Position,
  1558. Parent = hit.Parent.Torso
  1559. })
  1560. game:GetService("Debris"):AddItem(bp, 1)
  1561. elseif Type == "Slashnare" then
  1562. 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)
  1563. for i = 1, math.random(4, 5) do
  1564. 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)
  1565. end
  1566. local bp = Create("BodyPosition")({
  1567. P = 2000,
  1568. D = 100,
  1569. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1570. position = hit.Parent.Torso.Position,
  1571. Parent = hit.Parent.Torso
  1572. })
  1573. game:GetService("Debris"):AddItem(bp, 1)
  1574. elseif Type == "Spike" then
  1575. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1576. local bp = Create("BodyPosition")({
  1577. P = 2000,
  1578. D = 100,
  1579. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1580. position = hit.Parent.Torso.Position,
  1581. Parent = hit.Parent.Torso
  1582. })
  1583. game:GetService("Debris"):AddItem(bp, 1)
  1584. elseif Type == "Freeze" then
  1585. local BodPos = Create("BodyPosition")({
  1586. P = 50000,
  1587. D = 1000,
  1588. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1589. position = hit.Parent.Torso.Position,
  1590. Parent = hit.Parent.Torso
  1591. })
  1592. local BodGy = Create("BodyGyro")({
  1593. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1594. P = 20000,
  1595. Parent = hit.Parent.Torso,
  1596. cframe = hit.Parent.Torso.CFrame
  1597. })
  1598. hit.Parent.Torso.Anchored = true
  1599. coroutine.resume(coroutine.create(function(Part)
  1600. swait(1.5)
  1601. Part.Anchored = false
  1602. end), hit.Parent.Torso)
  1603. game:GetService("Debris"):AddItem(BodPos, 3)
  1604. game:GetService("Debris"):AddItem(BodGy, 3)
  1605. end
  1606. local debounce = Create("BoolValue")({
  1607. Name = "DebounceHit",
  1608. Parent = hit.Parent,
  1609. Value = true
  1610. })
  1611. game:GetService("Debris"):AddItem(debounce, Delay)
  1612. c = Instance.new("ObjectValue")
  1613. c.Name = "creator"
  1614. c.Value = Player
  1615. c.Parent = h
  1616. game:GetService("Debris"):AddItem(c, 0.5)
  1617. end
  1618. end
  1619. function ShowDamage(Pos, Text, Time, Color)
  1620. local Rate = 0.03333333333333333
  1621. local Pos = Pos or Vector3.new(0, 0, 0)
  1622. local Text = Text or ""
  1623. local Time = Time or 2
  1624. local Color = Color or Color3.new(1, 0, 1)
  1625. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1626. EffectPart.Anchored = true
  1627. local BillboardGui = Create("BillboardGui")({
  1628. Size = UDim2.new(3, 0, 3, 0),
  1629. Adornee = EffectPart,
  1630. Parent = EffectPart
  1631. })
  1632. local TextLabel = Create("TextLabel")({
  1633. BackgroundTransparency = 1,
  1634. Size = UDim2.new(1, 0, 1, 0),
  1635. Text = Text,
  1636. TextColor3 = Color,
  1637. TextScaled = true,
  1638. Font = Enum.Font.ArialBold,
  1639. Parent = BillboardGui
  1640. })
  1641. game.Debris:AddItem(EffectPart, Time + 0.1)
  1642. EffectPart.Parent = game:GetService("Workspace")
  1643. delay(0, function()
  1644. local Frames = Time / Rate
  1645. for Frame = 1, Frames do
  1646. wait(Rate)
  1647. local Percent = Frame / Frames
  1648. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1649. TextLabel.TextTransparency = Percent
  1650. end
  1651. if EffectPart and EffectPart.Parent then
  1652. EffectPart:Destroy()
  1653. end
  1654. end)
  1655. end
  1656. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1657. for _, c in pairs(workspace:children()) do
  1658. local hum = c:findFirstChildOfClass("Humanoid")
  1659. if hum ~= nil then
  1660. local head = c:findFirstChild("Head")
  1661. if head ~= nil then
  1662. local targ = head.Position - Part.Position
  1663. local mag = targ.magnitude
  1664. if magni >= mag and c.Name ~= Player.Name then
  1665. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1666. end
  1667. end
  1668. end
  1669. end
  1670. end
  1671.  
  1672. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1673. for _, c in pairs(workspace:children()) do
  1674. local hum = c:findFirstChild("Humanoid")
  1675. if hum ~= nil then
  1676. local head = c:findFirstChild("Torso")
  1677. if head ~= nil then
  1678. local targ = head.Position - Part.Position
  1679. local mag = targ.magnitude
  1680. if magni >= mag and c.Name ~= Player.Name then
  1681. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1682. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1683. end
  1684. end
  1685. end
  1686. end
  1687. end
  1688.  
  1689. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1690. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1691. end
  1692.  
  1693. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1694. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1695. prt.Anchored=true
  1696. prt.CFrame=cframe
  1697. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1698. --http://www.roblox.com/asset/?id=4770560
  1699. game:GetService("Debris"):AddItem(prt,2)
  1700. CF=prt.CFrame
  1701. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1702. for i=0,1,0.2 do
  1703. wait()
  1704. Part.CFrame=CF*cf(0,0,-0.4)
  1705. end
  1706. for i=0,1,delay do
  1707. wait()
  1708. --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)
  1709. Mesh.Scale=Mesh.Scale
  1710. end
  1711. for i=0,1,0.1 do
  1712. wait()
  1713. Part.Transparency=i
  1714. end
  1715. Part.Parent=nil
  1716. end),prt,msh,CF)
  1717. end
  1718.  
  1719. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1720. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1721. prt.Anchored=true
  1722. prt.Material = "Neon"
  1723. prt.CFrame=cframe
  1724. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1725. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1726. game:GetService("Debris"):AddItem(prt,5)
  1727. coroutine.resume(coroutine.create(function(Part,Mesh)
  1728. for i=0,1,delay do
  1729. swait()
  1730. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1731. Part.Transparency=i
  1732. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1733. end
  1734. Part.Parent=nil
  1735. end),prt,msh)
  1736. end
  1737.  
  1738. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1739. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1740. prt.Anchored=true
  1741. prt.Material = "Neon"
  1742. prt.CFrame=cframe
  1743. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1744. game:GetService("Debris"):AddItem(prt,5)
  1745. coroutine.resume(coroutine.create(function(Part,Mesh)
  1746. local rtype = rottype
  1747. for i=0,1,delay do
  1748. swait()
  1749. if rtype == 1 then
  1750. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1751. elseif rtype == 2 then
  1752. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1753. end
  1754. Part.Transparency=i
  1755. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1756. end
  1757. Part.Parent=nil
  1758. end),prt,msh)
  1759. end
  1760.  
  1761. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1762. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1763. prt.Anchored=true
  1764. prt.CFrame=cframe
  1765. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1766. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1767. game:GetService("Debris"):AddItem(prt,5)
  1768. coroutine.resume(coroutine.create(function(Part,Mesh)
  1769. for i=0,1,delay do
  1770. wait()
  1771. Part.Transparency=i
  1772. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1773. end
  1774. Part.Parent=nil
  1775. end),prt,msh)
  1776. end
  1777.  
  1778. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1779. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1780. prt.Anchored=true
  1781. prt.Material = "Neon"
  1782. prt.CFrame=cframe
  1783. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1784. game:GetService("Debris"):AddItem(prt,5)
  1785. coroutine.resume(coroutine.create(function(Part,Mesh)
  1786. local rtype = rottype
  1787. for i=0,1,delay do
  1788. swait()
  1789. if rtype == 1 then
  1790. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1791. elseif rtype == 2 then
  1792. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1793. end
  1794. Part.Transparency=i
  1795. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1796. end
  1797. Part.Parent=nil
  1798. end),prt,msh)
  1799. end
  1800.  
  1801. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1802. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1803. prt.Anchored=true
  1804. prt.Material = "Neon"
  1805. prt.CFrame=cframe
  1806. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1807. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1808. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1809. game:GetService("Debris"):AddItem(prt,5)
  1810. coroutine.resume(coroutine.create(function(Part,Mesh)
  1811. local rtype = rottype
  1812. for i=0,1,delay do
  1813. swait()
  1814. if rtype == 1 then
  1815. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1816. elseif rtype == 2 then
  1817. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1818. end
  1819. dec.Transparency=i
  1820. dec2.Transparency=i
  1821. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1822. end
  1823. Part.Parent=nil
  1824. end),prt,msh)
  1825. end
  1826.  
  1827. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1828. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1829. prt.Anchored=true
  1830. prt.Material = "Neon"
  1831. prt.CFrame=cframe
  1832. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1833. game:GetService("Debris"):AddItem(prt,5)
  1834. coroutine.resume(coroutine.create(function(Part,Mesh)
  1835. local rtype = rottype
  1836. for i=0,1,delay do
  1837. swait()
  1838. if rtype == 1 then
  1839. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1840. elseif rtype == 2 then
  1841. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1842. end
  1843. prt.Transparency=i
  1844. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1845. end
  1846. Part.Parent=nil
  1847. end),prt,msh)
  1848. end
  1849.  
  1850. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1851. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1852. prt.Anchored=true
  1853. prt.Material = "Neon"
  1854. prt.CFrame=cframe
  1855. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1856. game:GetService("Debris"):AddItem(prt,5)
  1857. coroutine.resume(coroutine.create(function(Part,Mesh)
  1858. local rtype = rottype
  1859. for i=0,1,delay do
  1860. swait()
  1861. if rtype == 1 then
  1862. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1863. elseif rtype == 2 then
  1864. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1865. end
  1866. prt.Transparency=i
  1867. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1868. end
  1869. Part.Parent=nil
  1870. end),prt,msh)
  1871. end
  1872.  
  1873. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1874. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1875. prt.Anchored=true
  1876. prt.Material = "Neon"
  1877. prt.CFrame=cframe
  1878. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1879. game:GetService("Debris"):AddItem(prt,5)
  1880. coroutine.resume(coroutine.create(function(Part,Mesh)
  1881. local rtype = rottype
  1882. for i=0,1,delay do
  1883. swait()
  1884. if rtype == 1 then
  1885. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1886. elseif rtype == 2 then
  1887. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1888. end
  1889. prt.Transparency=i
  1890. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1891. end
  1892. Part.Parent=nil
  1893. end),prt,msh)
  1894. end
  1895.  
  1896. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1897. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1898. prt.Anchored=true
  1899. prt.Material = "Neon"
  1900. prt.CFrame=cframe
  1901. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1902. game:GetService("Debris"):AddItem(prt,5)
  1903. coroutine.resume(coroutine.create(function(Part,Mesh)
  1904. local rtype = rottype
  1905. for i=0,1,delay do
  1906. swait()
  1907. if rtype == 1 then
  1908. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1909. elseif rtype == 2 then
  1910. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1911. end
  1912. prt.Transparency=i
  1913. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1914. end
  1915. Part.Parent=nil
  1916. end),prt,msh)
  1917. end
  1918.  
  1919. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1920. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1921. prt.Anchored=false
  1922. prt.CFrame=cframe
  1923. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1924. local wld=weld(prt,prt,Parent,cframe)
  1925. game:GetService("Debris"):AddItem(prt,5)
  1926. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1927. for i=0,1,delay do
  1928. wait()
  1929. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1930. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1931. Part.Transparency=i
  1932. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1933. end
  1934. Part.Parent=nil
  1935. end),prt,msh,wld)
  1936. end
  1937.  
  1938. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1939. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1940. prt.Anchored=false
  1941. prt.CFrame=cframe
  1942. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1943. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1944. game:GetService("Debris"):AddItem(prt,5)
  1945. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1946. for i=0,1,delay do
  1947. wait()
  1948. Weld.C0=euler(i*20,0,0)
  1949. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1950. Part.Transparency=i
  1951. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1952. end
  1953. Part.Parent=nil
  1954. end),prt,msh,wld)
  1955. end
  1956.  
  1957. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1958. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1959. prt.Anchored=true
  1960. prt.CFrame=cframe
  1961. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1962. game:GetService("Debris"):AddItem(prt,2)
  1963. coroutine.resume(coroutine.create(function(Part,Mesh)
  1964. for i=0,1,delay do
  1965. wait()
  1966. Part.CFrame=Part.CFrame
  1967. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1968. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1969. prt2.Anchored=true
  1970. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1971. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1972. game:GetService("Debris"):AddItem(prt2,2)
  1973. coroutine.resume(coroutine.create(function(Part,Mesh)
  1974. for i=0,1,0.1 do
  1975. wait()
  1976. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1977. end
  1978. Part.Parent=nil
  1979. end),prt2,msh2)
  1980. end
  1981. for i=0,1,delay*2 do
  1982. wait()
  1983. Part.CFrame=Part.CFrame
  1984. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1985. end
  1986. Part.Parent=nil
  1987. end),prt,msh)
  1988. end
  1989.  
  1990. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1991. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1992. prt.Anchored=true
  1993. prt.CFrame=cframe
  1994. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1995. game:GetService("Debris"):AddItem(prt,2)
  1996. coroutine.resume(coroutine.create(function(Part,Mesh)
  1997. for i=0,1,delay do
  1998. wait()
  1999. Part.CFrame=Part.CFrame
  2000. Part.Transparency=i
  2001. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2002. end
  2003. Part.Parent=nil
  2004. end),prt,msh)
  2005. end
  2006.  
  2007. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2008. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2009. prt.Anchored=true
  2010. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2011. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2012. game:GetService("Debris"):AddItem(prt,2)
  2013. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2014. CF=Part.CFrame
  2015. Numbb=0
  2016. randnumb=math.random()/10
  2017. rand1=math.random()/10
  2018. for i=0,1,rand1 do
  2019. wait()
  2020. CF=CF*cf(0,math.random()/2,0)
  2021. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2022. Part.CFrame=CF*euler(Numbb,0,0)
  2023. Part.Transparency=i
  2024. Numbb=Numbb+randnumb
  2025. end
  2026. Part.Parent=nil
  2027. end),prt,CF,Numbb,randnumb)
  2028. end
  2029.  
  2030. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2031. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2032. prt.Anchored=true
  2033. prt.CFrame=cframe
  2034. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2035. game:GetService("Debris"):AddItem(prt,5)
  2036. coroutine.resume(coroutine.create(function(Part,Mesh)
  2037. for i=0,1,delay do
  2038. wait()
  2039. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2040. Part.Transparency=i
  2041. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2042. end
  2043. Part.Parent=nil
  2044. end),prt,msh)
  2045. end
  2046.  
  2047. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2048. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2049. prt.Anchored=true
  2050. prt.CFrame=cframe
  2051. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2052. game:GetService("Debris"):AddItem(prt,2)
  2053. coroutine.resume(coroutine.create(function(Part,Mesh)
  2054. for i=0,1,delay do
  2055. wait()
  2056. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2057. Part.Transparency=i
  2058. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2059. end
  2060. Part.Parent=nil
  2061. end),prt,msh)
  2062. end
  2063.  
  2064. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2065. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2066. prt.Anchored=true
  2067. prt.CFrame=cframe*cf(x,y,z)
  2068. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2069. game:GetService("Debris"):AddItem(prt,5)
  2070. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2071. local num=math.random()
  2072. local num2=math.random(-3,2)+math.random()
  2073. local numm=0
  2074. for i=0,1,delay*2 do
  2075. swait()
  2076. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2077. Part.Transparency=i
  2078. numm=numm+0.01
  2079. end
  2080. Part.Parent=nil
  2081. Mesh.Parent=nil
  2082. end),prt,msh,x,y,z)
  2083. end
  2084.  
  2085. function dmgstart(dmg,what)
  2086. hitcon = what.Touched:connect(function(hit)
  2087. local hum = hit.Parent:FindFirstChild("Humanoid")
  2088. if hum and not hum:IsDescendantOf(Character) then
  2089. hum:TakeDamage(dmg)
  2090. end
  2091. end)
  2092. end
  2093.  
  2094. function dmgstop()
  2095. hitcon:disconnect()
  2096. end
  2097.  
  2098. function Cloak()
  2099. Face.Parent=nil
  2100. cloaked=true
  2101. for _,v in pairs(Torso.Parent:children()) do
  2102. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2103. coroutine.resume(coroutine.create(function()
  2104. for i=0,1,0.2 do
  2105. wait()
  2106. v.Transparency=i
  2107. end
  2108. v.Transparency=1
  2109. end))
  2110. end
  2111. if v.className=="Hat" then
  2112. hatp=v.Handle
  2113. coroutine.resume(coroutine.create(function(derp)
  2114. for i=0,1,0.2 do
  2115. wait()
  2116. derp.Transparency=i
  2117. end
  2118. derp.Transparency=1
  2119. end),hatp)
  2120. end
  2121. end
  2122. for _,v in pairs(m:children()) do
  2123. if v.className=="Part" then
  2124. coroutine.resume(coroutine.create(function()
  2125. for i=0,1,0.2 do
  2126. wait()
  2127. v.Transparency=i
  2128. end
  2129. v.Transparency=1
  2130. end))
  2131. end
  2132. end
  2133. end
  2134.  
  2135. function UnCloak()
  2136. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2137. Face.Parent=Head
  2138. cloaked=false
  2139. for _,v in pairs(Torso.Parent:children()) do
  2140. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2141. coroutine.resume(coroutine.create(function()
  2142. for i=0,1,0.1 do
  2143. wait()
  2144. v.Transparency=v.Transparency-0.1
  2145. end
  2146. v.Transparency=0
  2147. end))
  2148. end
  2149. if v.className=="Hat" then
  2150. hatp=v.Handle
  2151. coroutine.resume(coroutine.create(function(derp)
  2152. for i=0,1,0.1 do
  2153. wait()
  2154. derp.Transparency=derp.Transparency-0.1
  2155. end
  2156. derp.Transparency=0
  2157. end),hatp)
  2158. end
  2159. end
  2160. for _,v in pairs(m:children()) do
  2161. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2162. coroutine.resume(coroutine.create(function()
  2163. for i=0,1,0.1 do
  2164. wait()
  2165. v.Transparency=v.Transparency-0.1
  2166. end
  2167. v.Transparency=0
  2168. end))
  2169. v.Transparency=0
  2170. end
  2171. end
  2172. end
  2173.  
  2174. local origcolor = BrickColor.new("Pastel light blue")
  2175. ---- This section of explosions.
  2176. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2177. local expart = Instance.new("Part",char)
  2178. local expart2 = Instance.new("Part",char)
  2179. local rin = Instance.new("Part",char)
  2180. local rin2 = Instance.new("Part",char)
  2181. local partMesh = Instance.new("SpecialMesh",expart)
  2182. partMesh.MeshType = "Sphere"
  2183. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2184. partMesh2.MeshType = "Sphere"
  2185. local partMesh3 = Instance.new("SpecialMesh",rin)
  2186. partMesh3.MeshType = "Brick"
  2187. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2188. partMesh4.MeshType = "Brick"
  2189. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2190. partMesh.Scale = vt(rad,rad,rad)
  2191. expart.Size = vt(1,1,1)
  2192. expart.Transparency = 0
  2193. expart.Anchored = true
  2194. expart.Material = "Neon"
  2195. expart.BrickColor = bc("White")
  2196. expart.CFrame = par.CFrame
  2197. partMesh2.Scale = vt(rad,rad,rad)
  2198. expart2.Size = vt(1.15,1.15,1.15)
  2199. expart2.Transparency = 0.5
  2200. expart2.Anchored = true
  2201. expart2.Material = "Neon"
  2202. expart2.BrickColor = par.BrickColor
  2203. expart2.CFrame = par.CFrame
  2204. rin.Size = vt(1.15,1.15,1.15)
  2205. rin.Transparency = 1
  2206. rin.Anchored = true
  2207. rin.Material = "Neon"
  2208. rin.BrickColor = par.BrickColor
  2209. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2210. rin2.Size = vt(1.15,1.15,1.15)
  2211. rin2.Transparency = 1
  2212. rin2.Anchored = true
  2213. rin2.Material = "Neon"
  2214. rin2.BrickColor = par.BrickColor
  2215. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2216. partMesh3.Scale = vt(0,1,0)
  2217. partMesh4.Scale = vt(0,1,0)
  2218. local dec2 = Instance.new("Decal", rin)
  2219. dec2.Face = "Top"
  2220. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2221. dec2.Parent = rin
  2222. local dec2b = dec2:Clone()
  2223. dec2b.Face = "Bottom"
  2224. dec2b.Parent = rin
  2225.  
  2226. local dec2a = Instance.new("Decal", rin2)
  2227. dec2a.Face = "Top"
  2228. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2229. dec2a.Parent = rin2
  2230. local dec2ab = dec2a:Clone()
  2231. dec2ab.Face = "Bottom"
  2232. dec2ab.Parent = rin2
  2233. expart.CanCollide = false
  2234. expart2.CanCollide = false
  2235. rin.CanCollide = false
  2236. rin2.CanCollide = false
  2237. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2238. local value = 1*rad/6.5
  2239. for i = 0, 199 do
  2240. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2241. expart.CFrame = expart.CFrame
  2242. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2243. expart2.CFrame = expart.CFrame
  2244. value = value - 0.035*rad/30
  2245. if value < 7.5 then
  2246. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2247. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2248. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2249. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2250. end
  2251. if value < 0 then
  2252. dec2.Transparency = dec2.Transparency + 0.025
  2253. dec2a.Transparency = dec2a.Transparency + 0.025
  2254. dec2b.Transparency = dec2b.Transparency + 0.025
  2255. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2256. expart.Transparency = expart.Transparency + 0.025
  2257. expart2.Transparency = expart2.Transparency + 0.025
  2258. rin.Transparency = rin.Transparency + 0.025
  2259. rin2.Transparency = rin2.Transparency + 0.025
  2260. end
  2261. swait()
  2262. end
  2263. game:GetService("Debris"):AddItem(expart, 1)
  2264. game:GetService("Debris"):AddItem(expart2, 1)
  2265. game:GetService("Debris"):AddItem(rin, 1)
  2266. game:GetService("Debris"):AddItem(rin2, 1)
  2267. end
  2268.  
  2269. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2270. local expart = Instance.new("Part",char)
  2271. local expart2 = Instance.new("Part",char)
  2272. local partMesh = Instance.new("SpecialMesh",expart)
  2273. partMesh.MeshType = "Sphere"
  2274. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2275. partMesh2.MeshType = "Sphere"
  2276. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2277. partMesh.Scale = vt(rad,rad,rad)
  2278. expart.Size = vt(1,1,1)
  2279. expart.Transparency = 0
  2280. expart.Anchored = true
  2281. expart.Material = "Neon"
  2282. expart.BrickColor = bc("White")
  2283. expart.CFrame = par.CFrame
  2284. partMesh2.Scale = vt(rad,rad,rad)
  2285. expart2.Size = vt(1.15,1.15,1.15)
  2286. expart2.Transparency = 0.5
  2287. expart2.Anchored = true
  2288. expart2.Material = "Neon"
  2289. expart2.BrickColor = par.BrickColor
  2290. expart2.CFrame = par.CFrame
  2291. expart.CanCollide = false
  2292. expart2.CanCollide = false
  2293. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2294. local value = 1*rad/6.5
  2295. for i = 0, 75 do
  2296. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2297. expart.CFrame = expart.CFrame
  2298. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2299. expart2.CFrame = expart.CFrame
  2300. value = value - 0.035*rad/5
  2301. if value < 0 then
  2302. value = 0
  2303. expart.Transparency = expart.Transparency + 0.05
  2304. expart2.Transparency = expart2.Transparency + 0.05
  2305. end
  2306. swait()
  2307. end
  2308. game:GetService("Debris"):AddItem(expart, 1)
  2309. game:GetService("Debris"):AddItem(expart2, 1)
  2310. end
  2311.  
  2312. function AreaDanger(rad,par,mindam,maxdam)
  2313. local expart = Instance.new("Part",char)
  2314. local partMesh = Instance.new("SpecialMesh",expart)
  2315. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2316. partMesh.MeshType = "Sphere"
  2317. partMesh.Scale = vt(rad,rad,rad)
  2318. expart.Size = vt(1,1,1)
  2319. expart.Transparency = 0.5
  2320. expart.Anchored = true
  2321. expart.Material = "Neon"
  2322. expart.CanCollide = false
  2323. expart.BrickColor = par.BrickColor
  2324. expart.CFrame = par.CFrame
  2325. local value = 1*rad/5
  2326. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2327. for i = 0, 14 do
  2328. wait()
  2329. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2330. expart.CFrame = expart.CFrame
  2331. value = value - 0.035*rad
  2332. if value < 0 then
  2333. value = 0
  2334. end
  2335. end
  2336. wait(0.25)
  2337. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2338. wait(0.5)
  2339. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2340. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2341. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2342. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2343. for i = 0, 14 do
  2344. wait()
  2345. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2346. expart.CFrame = expart.CFrame
  2347. value = value - 0.035*rad/2
  2348. end
  2349. expart.Transparency = 1
  2350. game:GetService("Debris"):AddItem(expart, 5)
  2351. end
  2352.  
  2353. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2354. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2355. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2356. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2357. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2358. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2359. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2360. for i = 0, 24 do
  2361. 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))
  2362. end
  2363. for i = 0, 24 do
  2364. local expart = Instance.new("Part",char)
  2365. expart.Transparency = 1
  2366. expart.Anchored = true
  2367. expart.CanCollide = false
  2368. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2369. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2370. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2371. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2372. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2373. for i = 0, 9 do
  2374. 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))
  2375. end
  2376. game:GetService("Debris"):AddItem(expart, 2)
  2377. wait(0.1)
  2378. end
  2379. end
  2380.  
  2381. function EXterPlosion(par)
  2382. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2383. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2384. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2385. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2386. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2387. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2388. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2389. for i = 0, 24 do
  2390. 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))
  2391. end
  2392. for i = 0, 24 do
  2393. 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))
  2394. end
  2395. end
  2396. ----
  2397.  
  2398.  
  2399. function ring(type,pos,scale,value)
  2400. local type = type
  2401. local rng = Instance.new("Part", char)
  2402. rng.Anchored = true
  2403. rng.BrickColor = origcolor
  2404. rng.CanCollide = false
  2405. rng.FormFactor = 3
  2406. rng.Name = "Ring"
  2407. rng.Size = Vector3.new(1, 1, 1)
  2408. rng.Transparency = 0
  2409. rng.TopSurface = 0
  2410. rng.BottomSurface = 0
  2411. rng.CFrame = pos
  2412. local rngm = Instance.new("SpecialMesh", rng)
  2413. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2414. rngm.Scale = scale
  2415. local scaler2 = 1
  2416. if type == "Add" then
  2417. scaler2 = 1*value
  2418. elseif type == "Divide" then
  2419. scaler2 = 1/value
  2420. end
  2421. coroutine.resume(coroutine.create(function()
  2422. for i = 0,10,0.1 do
  2423. swait()
  2424. if type == "Add" then
  2425. scaler2 = scaler2 - 0.01*value
  2426. elseif type == "Divide" then
  2427. scaler2 = scaler2 - 0.01/value
  2428. end
  2429. rng.Transparency = rng.Transparency + 0.01
  2430. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2431. end
  2432. rng:Destroy()
  2433. end))
  2434. end
  2435.  
  2436.  
  2437. function wave(type,pos,scale,value)
  2438. local type = type
  2439. local rng = Instance.new("Part", char)
  2440. rng.Anchored = true
  2441. rng.BrickColor = origcolor
  2442. rng.CanCollide = false
  2443. rng.FormFactor = 3
  2444. rng.Name = "Ring"
  2445. rng.Size = Vector3.new(1, 1, 1)
  2446. rng.Transparency = 0
  2447. rng.TopSurface = 0
  2448. rng.BottomSurface = 0
  2449. rng.CFrame = pos
  2450. local rngm = Instance.new("SpecialMesh", rng)
  2451. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2452. rngm.Scale = scale
  2453. local scaler2 = 1
  2454. if type == "Add" then
  2455. scaler2 = 1*value
  2456. elseif type == "Divide" then
  2457. scaler2 = 1/value
  2458. end
  2459. coroutine.resume(coroutine.create(function()
  2460. for i = 0,10,0.1 do
  2461. swait()
  2462. if type == "Add" then
  2463. scaler2 = scaler2 - 0.01*value
  2464. elseif type == "Divide" then
  2465. scaler2 = scaler2 - 0.01/value
  2466. end
  2467. rng.Transparency = rng.Transparency + 0.01
  2468. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2469. end
  2470. rng:Destroy()
  2471. end))
  2472. end
  2473.  
  2474. function wind(type,pos,scale,value,speed)
  2475. local type = type
  2476. local rng = Instance.new("Part", char)
  2477. rng.Anchored = true
  2478. rng.BrickColor = origcolor
  2479. rng.CanCollide = false
  2480. rng.FormFactor = 3
  2481. rng.Name = "Ring"
  2482. rng.Size = Vector3.new(1, 1, 1)
  2483. rng.Transparency = 0
  2484. rng.TopSurface = 0
  2485. rng.BottomSurface = 0
  2486. rng.CFrame = pos
  2487. local rngm = Instance.new("SpecialMesh", rng)
  2488. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2489. rngm.Scale = scale
  2490. local scaler2 = 1
  2491. if type == "Add" then
  2492. scaler2 = 1*value
  2493. elseif type == "Divide" then
  2494. scaler2 = 1/value
  2495. end
  2496. coroutine.resume(coroutine.create(function()
  2497. for i = 0,10,0.1 do
  2498. swait()
  2499. if type == "Add" then
  2500. scaler2 = scaler2 - 0.01*value
  2501. elseif type == "Divide" then
  2502. scaler2 = scaler2 - 0.01/value
  2503. end
  2504. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2505. rng.Transparency = rng.Transparency + 0.01
  2506. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2507. end
  2508. rng:Destroy()
  2509. end))
  2510. end
  2511.  
  2512. function groundwind(type,pos,scale,value,speed)
  2513. local type = type
  2514. local rng = Instance.new("Part", char)
  2515. rng.Anchored = true
  2516. rng.BrickColor = origcolor
  2517. rng.CanCollide = false
  2518. rng.FormFactor = 3
  2519. rng.Name = "Ring"
  2520. rng.Size = Vector3.new(1, 1, 1)
  2521. rng.Transparency = 0
  2522. rng.TopSurface = 0
  2523. rng.BottomSurface = 0
  2524. rng.CFrame = pos
  2525. local rngm = Instance.new("SpecialMesh", rng)
  2526. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2527. rngm.Scale = scale
  2528. local scaler2 = 1
  2529. if type == "Add" then
  2530. scaler2 = 1*value
  2531. elseif type == "Divide" then
  2532. scaler2 = 1/value
  2533. end
  2534. coroutine.resume(coroutine.create(function()
  2535. for i = 0,10,0.1 do
  2536. swait()
  2537. if type == "Add" then
  2538. scaler2 = scaler2 - 0.01*value
  2539. elseif type == "Divide" then
  2540. scaler2 = scaler2 - 0.01/value
  2541. end
  2542. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2543. rng.Transparency = rng.Transparency + 0.01
  2544. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2545. end
  2546. rng:Destroy()
  2547. end))
  2548. end
  2549.  
  2550. function CameraManager()
  2551. if TwoD and not CamInterrupt then
  2552. if Humanoid.Health > 0 then
  2553. Camera.CameraSubject = Humanoid
  2554. Camera.CameraType = "Scriptable"
  2555. Humanoid.AutoRotate = false
  2556. if Booleans.GyroUse then
  2557. Directer.MaxTorque = Vec3(0, huge, 0)
  2558. else
  2559. Directer.MaxTorque = Vec3(0, 0, 0)
  2560. end
  2561. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2562. if Booleans.CamFollow then
  2563. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2564. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2565. else
  2566. CPart.Position = RootPart.Position
  2567. end
  2568. else
  2569. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2570. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2571. end
  2572. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2573. else
  2574. Camera.CameraSubject = Humanoid
  2575. Camera.CameraType = "Custom"
  2576. Controller.Disabled = false
  2577. end
  2578. end
  2579. end
  2580.  
  2581. function sphere(bonuspeed,type,pos,scale,value,color)
  2582. local type = type
  2583. local rng = Instance.new("Part", char)
  2584. rng.Anchored = true
  2585. rng.BrickColor = color
  2586. rng.CanCollide = false
  2587. rng.FormFactor = 3
  2588. rng.Name = "Ring"
  2589. rng.Material = "Neon"
  2590. rng.Size = Vector3.new(1, 1, 1)
  2591. rng.Transparency = 0
  2592. rng.TopSurface = 0
  2593. rng.BottomSurface = 0
  2594. rng.CFrame = pos
  2595. local rngm = Instance.new("SpecialMesh", rng)
  2596. rngm.MeshType = "Sphere"
  2597. rngm.Scale = scale
  2598. if rainbowmode == true then
  2599. rng.Color = Color3.new(r/255,g/255,b/255)
  2600. end
  2601. local scaler2 = 1
  2602. if type == "Add" then
  2603. scaler2 = 1*value
  2604. elseif type == "Divide" then
  2605. scaler2 = 1/value
  2606. end
  2607. coroutine.resume(coroutine.create(function()
  2608. for i = 0,10/bonuspeed,0.1 do
  2609. swait()
  2610. if rainbowmode == true then
  2611. rng.Color = Color3.new(r/255,g/255,b/255)
  2612. end
  2613. if type == "Add" then
  2614. scaler2 = scaler2 - 0.01*value/bonuspeed
  2615. elseif type == "Divide" then
  2616. scaler2 = scaler2 - 0.01/value*bonuspeed
  2617. end
  2618. if chaosmode == true then
  2619. rng.BrickColor = BrickColor.random()
  2620. end
  2621. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2622. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2623. end
  2624. rng:Destroy()
  2625. end))
  2626. end
  2627.  
  2628. function spherew(bonuspeed,type,pos,scale,value,color)
  2629. local type = type
  2630. local rng = Instance.new("Part", workspace)
  2631. rng.Anchored = true
  2632. rng.BrickColor = color
  2633. rng.CanCollide = false
  2634. rng.FormFactor = 3
  2635. rng.Name = "Ring"
  2636. rng.Material = "Neon"
  2637. rng.Size = Vector3.new(1, 1, 1)
  2638. rng.Transparency = 0
  2639. rng.TopSurface = 0
  2640. rng.BottomSurface = 0
  2641. rng.CFrame = pos
  2642. local rngm = Instance.new("SpecialMesh", rng)
  2643. rngm.MeshType = "Sphere"
  2644. rngm.Scale = scale
  2645. if rainbowmode == true then
  2646. rng.Color = Color3.new(r/255,g/255,b/255)
  2647. end
  2648. local scaler2 = 1
  2649. if type == "Add" then
  2650. scaler2 = 1*value
  2651. elseif type == "Divide" then
  2652. scaler2 = 1/value
  2653. end
  2654. coroutine.resume(coroutine.create(function()
  2655. for i = 0,10/bonuspeed,0.1 do
  2656. swait()
  2657. if rainbowmode == true then
  2658. rng.Color = Color3.new(r/255,g/255,b/255)
  2659. end
  2660. if type == "Add" then
  2661. scaler2 = scaler2 - 0.01*value/bonuspeed
  2662. elseif type == "Divide" then
  2663. scaler2 = scaler2 - 0.01/value*bonuspeed
  2664. end
  2665. if chaosmode == true then
  2666. rng.BrickColor = BrickColor.random()
  2667. end
  2668. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2669. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2670. end
  2671. rng:Destroy()
  2672. end))
  2673. end
  2674.  
  2675. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2676. local type = type
  2677. local rng = Instance.new("Part", char)
  2678. rng.Anchored = true
  2679. rng.BrickColor = color
  2680. rng.CanCollide = false
  2681. rng.FormFactor = 3
  2682. rng.Name = "Ring"
  2683. rng.Material = "Neon"
  2684. rng.Size = Vector3.new(1, 1, 1)
  2685. rng.Transparency = 0
  2686. rng.TopSurface = 0
  2687. rng.BottomSurface = 0
  2688. rng.CFrame = pos
  2689. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2690. local rngm = Instance.new("SpecialMesh", rng)
  2691. rngm.MeshType = "Brick"
  2692. rngm.Scale = vt(x1,y1,z1)
  2693. if rainbowmode == true then
  2694. rng.Color = Color3.new(r/255,g/255,b/255)
  2695. end
  2696. local scaler2 = 1
  2697. local speeder = FastSpeed/10
  2698. if type == "Add" then
  2699. scaler2 = 1*value
  2700. elseif type == "Divide" then
  2701. scaler2 = 1/value
  2702. end
  2703. coroutine.resume(coroutine.create(function()
  2704. for i = 0,10/bonuspeed,0.1 do
  2705. swait()
  2706. if rainbowmode == true then
  2707. rng.Color = Color3.new(r/255,g/255,b/255)
  2708. end
  2709. if type == "Add" then
  2710. scaler2 = scaler2 - 0.01*value/bonuspeed
  2711. elseif type == "Divide" then
  2712. scaler2 = scaler2 - 0.01/value*bonuspeed
  2713. end
  2714. if chaosmode == true then
  2715. rng.BrickColor = BrickColor.random()
  2716. end
  2717. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2718. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2719. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2720. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2721. end
  2722. rng:Destroy()
  2723. end))
  2724. end
  2725.  
  2726. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2727. local type = type
  2728. local rng = Instance.new("Part", char)
  2729. rng.Anchored = true
  2730. rng.BrickColor = color
  2731. rng.CanCollide = false
  2732. rng.FormFactor = 3
  2733. rng.Name = "Ring"
  2734. rng.Material = "Neon"
  2735. rng.Size = Vector3.new(1, 1, 1)
  2736. rng.Transparency = 0
  2737. rng.TopSurface = 0
  2738. rng.BottomSurface = 0
  2739. rng.CFrame = pos
  2740. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2741. local rngm = Instance.new("SpecialMesh", rng)
  2742. rngm.MeshType = "Brick"
  2743. rngm.Scale = vt(x1,y1,z1)
  2744. if rainbowmode == true then
  2745. rng.Color = Color3.new(r/255,g/255,b/255)
  2746. end
  2747. local scaler2 = 0
  2748. local speeder = FastSpeed/10
  2749. if type == "Add" then
  2750. scaler2 = 1*value
  2751. elseif type == "Divide" then
  2752. scaler2 = 1/value
  2753. end
  2754. coroutine.resume(coroutine.create(function()
  2755. for i = 0,10/bonuspeed,0.1 do
  2756. swait()
  2757. if rainbowmode == true then
  2758. rng.Color = Color3.new(r/255,g/255,b/255)
  2759. end
  2760. if type == "Add" then
  2761. scaler2 = scaler2 - 0.01*value/bonuspeed
  2762. elseif type == "Divide" then
  2763. scaler2 = scaler2 - 0.01/value*bonuspeed
  2764. end
  2765. if chaosmode == true then
  2766. rng.BrickColor = BrickColor.random()
  2767. end
  2768. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2769. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2770. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2771. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2772. end
  2773. rng:Destroy()
  2774. end))
  2775. end
  2776.  
  2777. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2778. local type = type
  2779. local rng = Instance.new("Part", workspace)
  2780. rng.Anchored = true
  2781. rng.BrickColor = color
  2782. rng.CanCollide = false
  2783. rng.FormFactor = 3
  2784. rng.Name = "Ring"
  2785. rng.Material = "Neon"
  2786. rng.Size = Vector3.new(1, 1, 1)
  2787. rng.Transparency = 0
  2788. rng.TopSurface = 0
  2789. rng.BottomSurface = 0
  2790. rng.CFrame = pos
  2791. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2792. local rngm = Instance.new("SpecialMesh", rng)
  2793. rngm.MeshType = "Sphere"
  2794. rngm.Scale = vt(x1,y1,z1)
  2795. if rainbowmode == true then
  2796. rng.Color = Color3.new(r/255,g/255,b/255)
  2797. end
  2798. local scaler2 = 1
  2799. local speeder = FastSpeed
  2800. if type == "Add" then
  2801. scaler2 = 1*value
  2802. elseif type == "Divide" then
  2803. scaler2 = 1/value
  2804. end
  2805. coroutine.resume(coroutine.create(function()
  2806. for i = 0,10/bonuspeed,0.1 do
  2807. swait()
  2808. if rainbowmode == true then
  2809. rng.Color = Color3.new(r/255,g/255,b/255)
  2810. end
  2811. if type == "Add" then
  2812. scaler2 = scaler2 - 0.01*value/bonuspeed
  2813. elseif type == "Divide" then
  2814. scaler2 = scaler2 - 0.01/value*bonuspeed
  2815. end
  2816. if chaosmode == true then
  2817. rng.BrickColor = BrickColor.random()
  2818. end
  2819. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2820. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2821. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2822. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2823. end
  2824. rng:Destroy()
  2825. end))
  2826. end
  2827. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2828. local type = type
  2829. local rng = Instance.new("Part", char)
  2830. rng.Anchored = true
  2831. rng.BrickColor = color
  2832. rng.CanCollide = false
  2833. rng.FormFactor = 3
  2834. rng.Name = "Ring"
  2835. rng.Material = "Neon"
  2836. rng.Size = Vector3.new(1, 1, 1)
  2837. rng.Transparency = 0
  2838. rng.TopSurface = 0
  2839. rng.BottomSurface = 0
  2840. rng.CFrame = pos
  2841. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2842. local rngm = Instance.new("SpecialMesh", rng)
  2843. rngm.MeshType = "Sphere"
  2844. rngm.Scale = vt(x1,y1,z1)
  2845. if rainbowmode == true then
  2846. rng.Color = Color3.new(r/255,g/255,b/255)
  2847. end
  2848. local scaler2 = 1
  2849. local speeder = FastSpeed
  2850. if type == "Add" then
  2851. scaler2 = 1*value
  2852. elseif type == "Divide" then
  2853. scaler2 = 1/value
  2854. end
  2855. coroutine.resume(coroutine.create(function()
  2856. for i = 0,10/bonuspeed,0.1 do
  2857. swait()
  2858. if rainbowmode == true then
  2859. rng.Color = Color3.new(r/255,g/255,b/255)
  2860. end
  2861. if type == "Add" then
  2862. scaler2 = scaler2 - 0.01*value/bonuspeed
  2863. elseif type == "Divide" then
  2864. scaler2 = scaler2 - 0.01/value*bonuspeed
  2865. end
  2866. if chaosmode == true then
  2867. rng.BrickColor = BrickColor.random()
  2868. end
  2869. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2870. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2871. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2872. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2873. end
  2874. rng:Destroy()
  2875. end))
  2876. end
  2877.  
  2878.  
  2879. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2880. local type = type
  2881. local rng = Instance.new("Part", char)
  2882. rng.Anchored = true
  2883. rng.BrickColor = color
  2884. rng.CanCollide = false
  2885. rng.FormFactor = 3
  2886. rng.Name = "Ring"
  2887. rng.Material = "Neon"
  2888. rng.Size = Vector3.new(1, 1, 1)
  2889. rng.Transparency = 1
  2890. rng.TopSurface = 0
  2891. rng.BottomSurface = 0
  2892. rng.CFrame = pos
  2893. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2894. local rngm = Instance.new("SpecialMesh", rng)
  2895. rngm.MeshType = "Sphere"
  2896. rngm.Scale = vt(x1,y1,z1)
  2897. if rainbowmode == true then
  2898. rng.Color = Color3.new(r/255,g/255,b/255)
  2899. end
  2900. local scaler2 = 1
  2901. local speeder = FastSpeed
  2902. if type == "Add" then
  2903. scaler2 = 1*value
  2904. elseif type == "Divide" then
  2905. scaler2 = 1/value
  2906. end
  2907. coroutine.resume(coroutine.create(function()
  2908. for i = 0,10/bonuspeed,0.1 do
  2909. swait()
  2910. if rainbowmode == true then
  2911. rng.Color = Color3.new(r/255,g/255,b/255)
  2912. end
  2913. if type == "Add" then
  2914. scaler2 = scaler2 - 0.01*value/bonuspeed
  2915. elseif type == "Divide" then
  2916. scaler2 = scaler2 - 0.01/value*bonuspeed
  2917. end
  2918. if chaosmode == true then
  2919. rng.BrickColor = BrickColor.random()
  2920. end
  2921. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2922. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2923. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2924. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2925. end
  2926. rng:Destroy()
  2927. end))
  2928. end
  2929.  
  2930. function dmg(dude)
  2931. if dude.Name ~= Character then
  2932. local bgf = Instance.new("BodyGyro",dude.Head)
  2933. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2934. local val = Instance.new("BoolValue",dude)
  2935. val.Name = "IsHit"
  2936. local ds = coroutine.wrap(function()
  2937. dude:WaitForChild("Head"):BreakJoints()
  2938. wait(0.5)
  2939. targetted = nil
  2940. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2941. coroutine.resume(coroutine.create(function()
  2942. for i, v in pairs(dude:GetChildren()) do
  2943. if v:IsA("Accessory") then
  2944. v:Destroy()
  2945. end
  2946. if v:IsA("Humanoid") then
  2947. v:Destroy()
  2948. end
  2949. if v:IsA("CharacterMesh") then
  2950. v:Destroy()
  2951. end
  2952. if v:IsA("Model") then
  2953. v:Destroy()
  2954. end
  2955. if v:IsA("Part") or v:IsA("MeshPart") then
  2956. for x, o in pairs(v:GetChildren()) do
  2957. if o:IsA("Decal") then
  2958. o:Destroy()
  2959. end
  2960. end
  2961. coroutine.resume(coroutine.create(function()
  2962. v.Material = "Neon"
  2963. v.CanCollide = false
  2964. local bld = Instance.new("ParticleEmitter",v)
  2965. bld.LightEmission = 1
  2966. bld.Texture = "rbxassetid://284205403"
  2967. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2968. bld.Rate = 50
  2969. bld.Lifetime = NumberRange.new(1)
  2970. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2971. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2972. bld.Speed = NumberRange.new(0,0)
  2973. bld.VelocitySpread = 50000
  2974. bld.Rotation = NumberRange.new(-500,500)
  2975. bld.RotSpeed = NumberRange.new(-500,500)
  2976. local sbs = Instance.new("BodyPosition", v)
  2977. sbs.P = 3000
  2978. sbs.D = 1000
  2979. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2980. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2981. v.Color = Color3.new(1,1,1)
  2982. coroutine.resume(coroutine.create(function()
  2983. for i = 0, 49 do
  2984. swait(1)
  2985. v.Transparency = v.Transparency + 0.02
  2986. end
  2987. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  2988. bld.Speed = NumberRange.new(1,5)
  2989. bld.Acceleration = vt(0,10,0)
  2990. wait(0.5)
  2991. bld.Enabled = false
  2992. wait(3)
  2993. v:Destroy()
  2994. dude:Destroy()
  2995. end))
  2996. end))
  2997. end
  2998. end
  2999. end))
  3000. end)
  3001. ds()
  3002. end
  3003. end
  3004.  
  3005.  
  3006. function FindNearestHead(Position, Distance, SinglePlayer)
  3007. if SinglePlayer then
  3008. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3009. end
  3010. local List = {}
  3011. for i, v in pairs(workspace:GetChildren()) do
  3012. if v:IsA("Model") then
  3013. if v:findFirstChild("Head") then
  3014. if v ~= Character then
  3015. if (v.Head.Position - Position).magnitude <= Distance then
  3016. table.insert(List, v)
  3017. end
  3018. end
  3019. end
  3020. end
  3021. end
  3022. return List
  3023. end
  3024.  
  3025. function FaceMouse()
  3026. Cam = workspace.CurrentCamera
  3027. return {
  3028. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3029. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3030. }
  3031. end
  3032.  
  3033. function FaceMouse2()
  3034. Cam = workspace.CurrentCamera
  3035. return {
  3036. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3037. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3038. }
  3039. end
  3040.  
  3041. local ModeOfGlitch = 1
  3042. -- Functions are ready.
  3043. local storehumanoidWS = 16
  3044.  
  3045. function Blink()
  3046. for i = 0, 14 do
  3047. 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)
  3048. end
  3049. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3050. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3051. CameraEnshaking(2,10)
  3052. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3053. if v:FindFirstChild('Head') then
  3054. end
  3055. end
  3056. for i = 0, 14 do
  3057. 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)
  3058. end
  3059. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3060. end
  3061.  
  3062. function ExtinctiveHeartbreak()
  3063. local targetted = nil
  3064. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3065. targetted = mouse.Target.Parent
  3066. end
  3067. if targetted ~= nil then
  3068. attack = true
  3069. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3070. for i = 0, 9 do
  3071. 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)
  3072. end
  3073. for i = 0, 24 do
  3074. 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)
  3075. end
  3076. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3077. local originalpos = root.CFrame
  3078. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3079. for i = 0, 9 do
  3080. 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)
  3081. end
  3082. for i = 0, 24 do
  3083. 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)
  3084. end
  3085. hum.WalkSpeed = 0
  3086. targetted.Head.Anchored = true
  3087. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3088. for i = 0,2,0.1 do
  3089. swait()
  3090. 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)
  3091. 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)
  3092. 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)
  3093. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3094. 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)
  3095. 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)
  3096. end
  3097. coroutine.resume(coroutine.create(function()
  3098. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3099. bld.LightEmission = 0.1
  3100. bld.Texture = "rbxassetid://284205403"
  3101. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3102. bld.Rate = 500
  3103. bld.Lifetime = NumberRange.new(1)
  3104. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3105. bld.Acceleration = vt(0,-25,0)
  3106. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3107. bld.Speed = NumberRange.new(10,50)
  3108. bld.EmissionDirection = "Front"
  3109. bld.VelocitySpread = 25
  3110. bld.Rotation = NumberRange.new(-500,500)
  3111. bld.RotSpeed = NumberRange.new(-500,500)
  3112. end))
  3113. coroutine.resume(coroutine.create(function()
  3114. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3115. bld.LightEmission = 0.1
  3116. bld.Texture = "rbxassetid://284205403"
  3117. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3118. bld.Rate = 500
  3119. bld.Lifetime = NumberRange.new(1)
  3120. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3121. bld.Acceleration = vt(0,-25,0)
  3122. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3123. bld.Speed = NumberRange.new(10,50)
  3124. bld.EmissionDirection = "Front"
  3125. bld.VelocitySpread = 25
  3126. bld.Rotation = NumberRange.new(-500,500)
  3127. bld.RotSpeed = NumberRange.new(-500,500)
  3128. end))
  3129. CameraEnshaking(5,5)
  3130. game:GetService("Debris"):AddItem(bld,3)
  3131. dmg(targetted)
  3132. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3133. for i = 0,1,0.1 do
  3134. swait()
  3135. 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)
  3136. 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)
  3137. 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)
  3138. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3139. 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)
  3140. 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)
  3141. end
  3142. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3143. for i = 0, 9 do
  3144. 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)
  3145. end
  3146. for i = 0, 24 do
  3147. 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)
  3148. end
  3149. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3150. root.CFrame = originalpos
  3151. for i = 0, 9 do
  3152. 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)
  3153. end
  3154. for i = 0, 24 do
  3155. 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)
  3156. end
  3157. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3158. bld.Enabled = false
  3159. attack = false
  3160. hum.WalkSpeed = storehumanoidWS
  3161. end
  3162. end
  3163. function MeteorStrike()
  3164. attack = true
  3165. for i = 0, 2, 0.1 do
  3166. swait()
  3167. 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)
  3168. 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)
  3169. 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)
  3170. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3171. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3172. 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)
  3173. end
  3174. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3175. for i=1,20 do
  3176. 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)
  3177. swait()
  3178. end
  3179. swait(30)
  3180. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3181. for i =1,20 do
  3182. 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)
  3183. 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)
  3184. end
  3185. for i = 0,2,0.1 do
  3186. swait()
  3187. 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)
  3188. 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)
  3189. 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)
  3190. 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)
  3191. 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)
  3192. 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)
  3193. end
  3194. for i =1,20 do
  3195. 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)
  3196. end
  3197. text.TextTransparency = 1
  3198. text.TextStrokeTransparency = 1
  3199. tr2.Enabled = false
  3200. tr1.Enabled = false
  3201. tr3.Enabled = false
  3202. tl1.Enabled = false
  3203. tl2.Enabled = false
  3204. tl3.Enabled = false
  3205. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3206. eff = false
  3207. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3208. local invtab = {}
  3209. local function search(targ)
  3210. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3211. table.insert(invtab,targ)
  3212. end
  3213. for i,v in pairs(targ:GetChildren()) do
  3214. search(v)
  3215. end
  3216. end
  3217. search(plr.Character)
  3218. local frm = 0
  3219. local frmcon
  3220. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3221. if frm < 10 then
  3222. for i,v in pairs(invtab) do
  3223. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3224. v.Transparency = v.Transparency + 0.1
  3225. end
  3226. end
  3227. frm = frm + 1
  3228. else
  3229. frmcon:disconnect()
  3230. end
  3231. end)
  3232. swait(200)
  3233. text.TextTransparency = 0
  3234. text.TextStrokeTransparency = 0
  3235. tr2.Enabled = false
  3236. tr1.Enabled = false
  3237. tr3.Enabled = false
  3238. tl1.Enabled = false
  3239. tl2.Enabled = false
  3240. tl3.Enabled = false
  3241. eff = true
  3242. for i =1,20 do
  3243. 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)
  3244. end
  3245. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3246. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3247. local invtab = {}
  3248. local function search(targ)
  3249. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3250. table.insert(invtab,targ)
  3251. end
  3252. for i,v in pairs(targ:GetChildren()) do
  3253. search(v)
  3254. end
  3255. end
  3256. search(plr.Character)
  3257. local frm = 0
  3258. local frmcon
  3259. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3260. if frm < 10 then
  3261. for i,v in pairs(invtab) do
  3262. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3263. v.Transparency = v.Transparency - 0.1
  3264. end
  3265. end
  3266. frm = frm + 1
  3267. else
  3268. frmcon:disconnect()
  3269. end
  3270. end)
  3271. swait(5)
  3272. for i = 0, 2, 0.1 do
  3273. swait()
  3274. 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)
  3275. 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)
  3276. 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)
  3277. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3278. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3279. 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)
  3280. end
  3281. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3282. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3283. MagniDamage(root, 30, 65,90, 0, "Normal")
  3284. for i =1,20 do
  3285. 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)
  3286. end
  3287. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3288. for i =1,20 do
  3289. 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)
  3290. end
  3291. swait(20)
  3292. attack = false
  3293. tr2.Enabled = true
  3294. tr1.Enabled = true
  3295. tr3.Enabled = true
  3296. tl1.Enabled = true
  3297. tl2.Enabled = true
  3298. tl3.Enabled = true
  3299. end
  3300. function FinalCalam()
  3301. attack = true
  3302. hum.WalkSpeed = 0
  3303. local orb = Instance.new("Part", char)
  3304. orb.Anchored = true
  3305. orb.BrickColor = MAINRUINCOLOR
  3306. orb.CanCollide = false
  3307. orb.FormFactor = 3
  3308. orb.Name = "Ring"
  3309. orb.Material = "Neon"
  3310. orb.Size = Vector3.new(1, 1, 1)
  3311. orb.Transparency = 0
  3312. orb.TopSurface = 0
  3313. orb.BottomSurface = 0
  3314. local orbm = Instance.new("SpecialMesh", orb)
  3315. orbm.MeshType = "Sphere"
  3316. orbm.Name = "SizeMesh"
  3317. orbm.Scale = vt(0,0,0)
  3318. local scaled = 0.1
  3319. local posid = 0
  3320. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3321. for i = 0, 5, 0.1 do
  3322. swait()
  3323. scaled = scaled - 0.001
  3324. posid = posid - scaled
  3325. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3326. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3327. 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)
  3328. 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)
  3329. 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)
  3330. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3331. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3332. 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)
  3333. end
  3334. swait(60)
  3335. for i =1,3 do
  3336. swait(30)
  3337. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3338. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3339. end
  3340. swait(30)
  3341. for i = 0, 2, 0.1 do
  3342. swait()
  3343. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3344. 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)
  3345. 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)
  3346. 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)
  3347. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3348. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3349. 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)
  3350. end
  3351. swait(60)
  3352. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3353. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3354. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3355. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3356. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3357. if v:FindFirstChild('Head') then
  3358. dmg(v)
  3359. end
  3360. end
  3361. for i = 1,20 do
  3362. 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)
  3363. for i = 0, 10 do
  3364. 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)
  3365. end
  3366. end
  3367. orb:Remove()
  3368. attack = false
  3369. hum.WalkSpeed = storehumanoidWS
  3370. end
  3371. function PureBomb()
  3372. attack = true
  3373.  
  3374. local orb = Instance.new("Part", char)
  3375. orb.Anchored = true
  3376. orb.BrickColor = BrickColor.new("Toothpaste")
  3377. orb.CanCollide = false
  3378. orb.FormFactor = 3
  3379. orb.Name = "Ring"
  3380. orb.Material = "Neon"
  3381. orb.Size = Vector3.new(1, 1, 1)
  3382. orb.Transparency = 0
  3383. orb.TopSurface = 0
  3384. orb.BottomSurface = 0
  3385. local orbm = Instance.new("SpecialMesh", orb)
  3386. orbm.MeshType = "Sphere"
  3387. orbm.Name = "SizeMesh"
  3388. orbm.Scale = vt(0,0,0)
  3389. local scaled = 0.1
  3390. local posid = 0
  3391. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3392. for i = 0, 5, 0.1 do
  3393. swait()
  3394. scaled = scaled - 0.001
  3395. posid = posid - scaled
  3396. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3397. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3398. 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)
  3399. 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)
  3400. 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)
  3401. 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)
  3402. 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)
  3403. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3404. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3405. 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)
  3406. end
  3407. for i = 0, 2, 0.1 do
  3408. swait()
  3409. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3410. 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)
  3411. 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)
  3412. 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)
  3413. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3414. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3415. 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)
  3416. end
  3417. coroutine.resume(coroutine.create(function()
  3418. orb.Anchored = false
  3419. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3420. local a = Instance.new("Part",workspace)
  3421. a.Name = "Direction"
  3422. a.Anchored = true
  3423. a.BrickColor = bc("Bright red")
  3424. a.Material = "Neon"
  3425. a.Transparency = 1
  3426. a.CanCollide = false
  3427. local ray = Ray.new(
  3428. orb.CFrame.p, -- origin
  3429. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3430. )
  3431. local ignore = orb
  3432. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3433. a.BottomSurface = 10
  3434. a.TopSurface = 10
  3435. local distance = (orb.CFrame.p - position).magnitude
  3436. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3437. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3438. orb.CFrame = a.CFrame
  3439. a:Destroy()
  3440. local bv = Instance.new("BodyVelocity")
  3441. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3442. bv.velocity = orb.CFrame.lookVector*125
  3443. bv.Parent = orb
  3444. local hitted = false
  3445. game:GetService("Debris"):AddItem(orb, 15)
  3446. wait()
  3447. local hit =orb.Touched:connect(function(hit)
  3448. if hitted == false then
  3449. hitted = true
  3450. CameraEnshaking(10,2.5)
  3451. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3452. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3453. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3454. for i = 0, 49 do
  3455. 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)
  3456. end
  3457. for i = 0, 9 do
  3458. 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)
  3459. 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)
  3460. end
  3461. orb.Anchored = true
  3462. orb.Transparency = 1
  3463. wait(8)
  3464. orb:Destroy()
  3465. end
  3466. end)
  3467. end))
  3468. for i = 0, 1, 0.1 do
  3469. swait()
  3470. 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)
  3471. 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)
  3472. 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)
  3473. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3474. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3475. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3476. end
  3477. attack = false
  3478. end
  3479.  
  3480. function ChaosGroundStrike()
  3481. attack = true
  3482. for i = 0, 2, 0.1 do
  3483. swait()
  3484. 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)
  3485. 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)
  3486. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3487. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3488. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3489. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3490. end
  3491. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3492. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3493. CameraEnshaking(4,12)
  3494. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3495. if v:FindFirstChild('Head') then
  3496. dmg(v)
  3497. end
  3498. end
  3499. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3500. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3501. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3502. for i = 0, 2, 0.1 do
  3503. swait()
  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. 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)
  3506. 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)
  3507. 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)
  3508. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3510. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3511. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3512. end
  3513. attack = false
  3514. end
  3515.  
  3516. function Starfall()
  3517. attack = true
  3518. hum.WalkSpeed = 0
  3519. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3520. for i = 0, 5, 0.1 do
  3521. swait()
  3522. 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)
  3523. 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)
  3524. 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)
  3525. 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)
  3526. 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)
  3527. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3528. 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)
  3529. 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)
  3530. end
  3531. local Overed = false
  3532. CameraEnshaking(2,20)
  3533. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3534. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3535. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3536. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3537. local orb = Instance.new("Part", char)
  3538. orb.Anchored = true
  3539. orb.BrickColor = BrickColor.new("Toothpaste")
  3540. orb.CanCollide = false
  3541. orb.FormFactor = 3
  3542. orb.Name = "Remenant"
  3543. orb.Material = "Neon"
  3544. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3545. orb.Size = Vector3.new(1, 1, 1)
  3546. orb.Transparency = 1
  3547. orb.TopSurface = 0
  3548. orb.BottomSurface = 0
  3549. hum.WalkSpeed = storehumanoidWS
  3550. coroutine.resume(coroutine.create(function()
  3551. for i = 0, 9 do
  3552. swait(10)
  3553. local lb = Instance.new("Part")
  3554. lb.Color = MAINRUINCOLOR.Color
  3555. lb.CanCollide = false
  3556. lb.Material = "Neon"
  3557. lb.Anchored = true
  3558. lb.TopSurface = 0
  3559. lb.BottomSurface = 0
  3560. lb.Transparency = 0
  3561. lb.Size = vt(1,1,1)
  3562. 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)))
  3563. lb.Anchored = false
  3564. lb.Parent = char
  3565. local thingery = Instance.new("SpecialMesh",lb)
  3566. thingery.MeshType = "Sphere"
  3567. thingery.Scale = vt(20,20,20)
  3568. game:GetService("Debris"):AddItem(lb, 10)
  3569. local bv = Instance.new("BodyVelocity")
  3570. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3571. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3572. bv.Parent = lb
  3573. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3574. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3575. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3576. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3577. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3578. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3579. local hitted = false
  3580. coroutine.resume(coroutine.create(function()
  3581. while true do
  3582. swait(1)
  3583. if lb.Parent ~= nil and hitted == false then
  3584. 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)
  3585. elseif lb.Parent == nil then
  3586. break
  3587. end
  3588. end
  3589. end))
  3590.  
  3591. game:GetService("Debris"):AddItem(a, 0.1)
  3592.  
  3593. coroutine.resume(coroutine.create(function()
  3594. swait(1)
  3595. lb.Touched:connect(function(hit)
  3596. if hitted == false then
  3597. hitted = true
  3598. lb.Transparency = 1
  3599. lb.Anchored = true
  3600. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3601. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3602. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3603. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3604. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3605. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3606. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3607. CameraEnshaking(1,5)
  3608. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3609. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3610. for i = 0, 9 do
  3611. 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)
  3612. end
  3613. for i = 0, 49 do
  3614. swait()
  3615. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3616. 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)
  3617. end
  3618. end
  3619. end)
  3620. end))
  3621. end
  3622. Overed = true
  3623. orb:Destroy()
  3624. end))
  3625.  
  3626. attack = false
  3627. end
  3628.  
  3629. function StarfallEX()
  3630. attack = true
  3631. hum.WalkSpeed = 0
  3632. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3633. for i = 0, 5, 0.1 do
  3634. swait()
  3635. 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)
  3636. 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)
  3637. 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)
  3638. 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)
  3639. 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)
  3640. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3641. 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)
  3642. 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)
  3643. end
  3644. local Overed = false
  3645. CameraEnshaking(2,20)
  3646. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3647. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3648. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3649. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3650. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3651. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3652. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3653. local orb = Instance.new("Part", char)
  3654. orb.Anchored = true
  3655. orb.BrickColor = BrickColor.new("Toothpaste")
  3656. orb.CanCollide = false
  3657. orb.FormFactor = 3
  3658. orb.Name = "Remenant"
  3659. orb.Material = "Neon"
  3660. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3661. orb.Size = Vector3.new(1, 1, 1)
  3662. orb.Transparency = 1
  3663. orb.TopSurface = 0
  3664. orb.BottomSurface = 0
  3665. hum.WalkSpeed = storehumanoidWS
  3666. coroutine.resume(coroutine.create(function()
  3667. for i = 0, 9 do
  3668. swait(10)
  3669. local lb = Instance.new("Part")
  3670. lb.Color = MAINRUINCOLOR.Color
  3671. lb.CanCollide = false
  3672. lb.Material = "Neon"
  3673. lb.Anchored = true
  3674. lb.TopSurface = 0
  3675. lb.BottomSurface = 0
  3676. lb.Transparency = 0
  3677. lb.Size = vt(1,1,1)
  3678. 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)))
  3679. lb.Anchored = false
  3680. lb.Parent = char
  3681. local thingery = Instance.new("SpecialMesh",lb)
  3682. thingery.MeshType = "Sphere"
  3683. thingery.Scale = vt(20,20,20)
  3684. game:GetService("Debris"):AddItem(lb, 10)
  3685. local bv = Instance.new("BodyVelocity")
  3686. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3687. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3688. bv.Parent = lb
  3689. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3690. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3691. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3692. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3693. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3694. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3695. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3696. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3697. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3698. local hitted = false
  3699. coroutine.resume(coroutine.create(function()
  3700. while true do
  3701. swait(1)
  3702. if lb.Parent ~= nil and hitted == false then
  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. 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)
  3705. elseif lb.Parent == nil then
  3706. break
  3707. end
  3708. end
  3709. end))
  3710.  
  3711. game:GetService("Debris"):AddItem(a, 0.1)
  3712.  
  3713. coroutine.resume(coroutine.create(function()
  3714. swait(1)
  3715. lb.Touched:connect(function(hit)
  3716. if hitted == false then
  3717. hitted = true
  3718. lb.Transparency = 1
  3719. lb.Anchored = true
  3720. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3721. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3722. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3723. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3724. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3725. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3726. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3727. CameraEnshaking(10,5)
  3728. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3729. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3730. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3731. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3732. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3733. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3734. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3735. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3736. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3737. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3738. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3739. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3740. for i = 0, 9 do
  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. 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)
  3747. end
  3748. for i = 0, 49 do
  3749. swait()
  3750. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  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. 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)
  3754. end
  3755. end
  3756. end)
  3757. end))
  3758. end
  3759. Overed = true
  3760. orb:Destroy()
  3761. end))
  3762.  
  3763. attack = false
  3764. end
  3765.  
  3766. function StarDivision()
  3767. attack = true
  3768. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3769. for i = 0, 2, 0.1 do
  3770. swait()
  3771. 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)
  3772. 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)
  3773. 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)
  3774. 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)
  3775. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3776. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3777. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3778. end
  3779. local orb = Instance.new("Part", char)
  3780. orb.BrickColor = MAINRUINCOLOR
  3781. orb.CanCollide = false
  3782. orb.FormFactor = 3
  3783. orb.Name = "Ring"
  3784. orb.Material = "Neon"
  3785. orb.Size = Vector3.new(1, 1, 1)
  3786. orb.Transparency = 0
  3787. orb.TopSurface = 0
  3788. orb.BottomSurface = 0
  3789. local orbm = Instance.new("SpecialMesh", orb)
  3790. orbm.MeshType = "Sphere"
  3791. orbm.Name = "SizeMesh"
  3792. orbm.Scale = vt(2,2,2)
  3793. local a = Instance.new("Part",workspace)
  3794. a.Name = "Direction"
  3795. a.Anchored = true
  3796. a.BrickColor = bc("Bright red")
  3797. a.Material = "Neon"
  3798. a.Transparency = 1
  3799. a.CanCollide = false
  3800. local ray = Ray.new(
  3801. sorb.CFrame.p, -- origin
  3802. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3803. )
  3804. local ignore = sorb
  3805. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3806. a.BottomSurface = 10
  3807. a.TopSurface = 10
  3808. local distance = (sorb.CFrame.p - position).magnitude
  3809. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3810. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3811. orb.CFrame = a.CFrame
  3812. a:Destroy()
  3813. local bv = Instance.new("BodyVelocity")
  3814. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3815. bv.velocity = orb.CFrame.lookVector*100
  3816. bv.Parent = orb
  3817. local hitted = false
  3818. game:GetService("Debris"):AddItem(orb, 10)
  3819. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3820. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3821. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3822. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3823. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3824. coroutine.resume(coroutine.create(function()
  3825. while true do
  3826. swait(1)
  3827. if orb.Parent ~= nil and hitted == false then
  3828. 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)
  3829. elseif orb.Parent == nil then
  3830. break
  3831. end
  3832. end
  3833. end))
  3834. coroutine.resume(coroutine.create(function()
  3835. swait(1)
  3836. orb.Touched:connect(function(hit)
  3837. if hitted == false then
  3838. hitted = true
  3839. game:GetService("Debris"):AddItem(orb, 5)
  3840. orb.Transparency = 1
  3841. orb.Anchored = true
  3842. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3843. elocacenter.Anchored = true
  3844. elocacenter.CFrame = orb.CFrame
  3845. elocacenter.Orientation = vt(0,0,0)
  3846. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3847. eloca1.Anchored = true
  3848. eloca1.CFrame = elocacenter.CFrame
  3849. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3850. eloca2.Anchored = true
  3851. eloca2.CFrame = elocacenter.CFrame
  3852. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3853. eloca3.Anchored = true
  3854. eloca3.CFrame = elocacenter.CFrame
  3855. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3856. eloca4.Anchored = true
  3857. eloca4.CFrame = elocacenter.CFrame
  3858. local lookavec = 0
  3859. local speeds = 0
  3860. CameraEnshaking(1,1)
  3861. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3862. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3863. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3864. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3865. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3866. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3867. for i = 0, 99 do
  3868. swait()
  3869. lookavec = lookavec + 1
  3870. speeds = speeds + 0.1
  3871. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3872. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3873. 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)
  3874.  
  3875. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3876. 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)
  3877.  
  3878. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3879. 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)
  3880.  
  3881. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3882. 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)
  3883. end
  3884.  
  3885. for i = 0, 149 do
  3886. swait()
  3887. speeds = speeds + 0.1
  3888. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3889. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3890. 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)
  3891.  
  3892. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3893. 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)
  3894.  
  3895. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3896. 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)
  3897.  
  3898. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3899. 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)
  3900. end
  3901. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3902. if v:FindFirstChild('Head') then
  3903. dmg(v)
  3904. end
  3905. end
  3906. CameraEnshaking(7,30)
  3907. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3908. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3909. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3910. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3911. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3912. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3913. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3914. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3915. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3916. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3917. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3918. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3919. for i = 0, 24 do
  3920. 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)
  3921. 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)
  3922. 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)
  3923. 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)
  3924. end
  3925. coroutine.resume(coroutine.create(function()
  3926. for i = 0, 499 do
  3927. swait(1)
  3928. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3929. 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)
  3930. end
  3931. elocacenter:Destroy()
  3932. eloca1:Destroy()
  3933. eloca2:Destroy()
  3934. eloca3:Destroy()
  3935. eloca4:Destroy()
  3936. end))
  3937. end
  3938. end)
  3939. end))
  3940. attack = false
  3941. end
  3942.  
  3943.  
  3944. function UniversalCollapse()
  3945. attack = true
  3946. local speedearn = 0
  3947. hum.WalkSpeed = 0
  3948. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  3949. for i = 0, 10, 0.1 do
  3950. swait()
  3951. speedearn = speedearn + 0.1
  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. 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)
  3957. 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)
  3958. 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)
  3959. 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)
  3960. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  3961. 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)
  3962. 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)
  3963. end
  3964. CameraEnshaking(5,45)
  3965. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  3966. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  3967. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3968. if v:FindFirstChild('Head') then
  3969. dmg(v)
  3970. end
  3971. end
  3972. hum.WalkSpeed = storehumanoidWS
  3973. attack = false
  3974. end
  3975. function ChaosBegone()
  3976. attack = true
  3977. local speedearn = 0
  3978. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  3979. for i = 0, 10, 0.1 do
  3980. swait()
  3981. speedearn = speedearn + 0.1
  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. 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)
  3987. 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)
  3988. 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)
  3989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3991. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3992. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3993. end
  3994. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  3995. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  3996. CameraEnshaking(5,25)
  3997. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3998. if v:FindFirstChild('Head') then
  3999. dmg(v)
  4000. end
  4001. end
  4002. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4003. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4004. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4005. for i = 0, 3, 0.1 do
  4006. swait()
  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. 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)
  4011. 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)
  4012. 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)
  4013. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4014. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4015. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4016. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4017. end
  4018. attack = false
  4019. end
  4020.  
  4021. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4022. local orb = Instance.new("Part", char)
  4023. orb.Anchored = true
  4024. orb.BrickColor = color
  4025. orb.CanCollide = false
  4026. orb.FormFactor = 3
  4027. orb.Name = "Ring"
  4028. orb.Material = "Neon"
  4029. orb.Size = Vector3.new(1, 1, 1)
  4030. orb.Transparency = 0
  4031. orb.TopSurface = 0
  4032. orb.BottomSurface = 0
  4033. local orbm = Instance.new("SpecialMesh", orb)
  4034. orbm.MeshType = "Sphere"
  4035. orb.CFrame = positted
  4036. orbm.Name = "SizeMesh"
  4037. orbm.Scale = vt(1,1,1)
  4038. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4039. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4040. --[[for i = 0, 2 do
  4041. 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)
  4042. end]]--
  4043. coroutine.resume(coroutine.create(function()
  4044. wait(timer)
  4045. CameraEnshaking(3,ShakePower)
  4046. orb.Transparency = 1
  4047. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4048. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4049. --[[for i = 0, 4 do
  4050. 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)
  4051. end]]--
  4052. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4053. wait(3)
  4054. orb:Destroy()
  4055. end))
  4056. end
  4057.  
  4058. function orb_spawn(positted,timer)
  4059. local randomcol = math.random(1,2)
  4060. local orb = Instance.new("Part", char)
  4061. orb.Anchored = true
  4062. if randomcol == 1 then
  4063. orb.BrickColor = BrickColor.new("White")
  4064. elseif randomcol == 2 then
  4065. orb.BrickColor = BrickColor.new("Really black")
  4066. end
  4067. orb.CanCollide = false
  4068. orb.FormFactor = 3
  4069. orb.Name = "Ring"
  4070. orb.Material = "Neon"
  4071. orb.Size = Vector3.new(1, 1, 1)
  4072. orb.Transparency = 0
  4073. orb.TopSurface = 0
  4074. orb.BottomSurface = 0
  4075. local orbm = Instance.new("SpecialMesh", orb)
  4076. orbm.MeshType = "Sphere"
  4077. orb.CFrame = positted
  4078. orbm.Name = "SizeMesh"
  4079. orbm.Scale = vt(1,1,1)
  4080. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4081. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4082. for i = 0, 2 do
  4083. 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)
  4084. end
  4085. coroutine.resume(coroutine.create(function()
  4086. wait(timer)
  4087. CameraEnshaking(3,2)
  4088. orb.Transparency = 1
  4089. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4090. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4091. for i = 0, 4 do
  4092. 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)
  4093. end
  4094. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4095. wait(3)
  4096. orb:Destroy()
  4097. end))
  4098. end
  4099.  
  4100. function scattercorrupt()
  4101. attack = true
  4102. local rot = 0
  4103. local randomrotations = math.random(1,2)
  4104. local lookv = 2.5
  4105. local power = 5
  4106. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4107. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4108. for i = 0, 9 do
  4109. 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)
  4110. end
  4111. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4112. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4113. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4114. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4115. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4116. local hite = Instance.new("Part", char)
  4117. hite.Anchored = true
  4118. hite.CanCollide = false
  4119. hite.FormFactor = 3
  4120. hite.Name = "Ring"
  4121. hite.Material = "Neon"
  4122. hite.Size = Vector3.new(1, 1, 1)
  4123. hite.Transparency = 1
  4124. hite.TopSurface = 0
  4125. hite.BottomSurface = 0
  4126. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4127. local rem = Instance.new("Part", char)
  4128. rem.Anchored = true
  4129. rem.CanCollide = false
  4130. rem.FormFactor = 3
  4131. rem.Name = "Ring"
  4132. rem.Material = "Neon"
  4133. rem.Size = Vector3.new(1, 1, 1)
  4134. rem.Transparency = 1
  4135. rem.TopSurface = 0
  4136. rem.BottomSurface = 0
  4137. rem.CFrame = hite.CFrame
  4138. local rem2 = rem:Clone()
  4139. rem2.Parent = char
  4140. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4141. local rem3 = rem:Clone()
  4142. rem3.Parent = char
  4143. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4144. local rem4 = rem:Clone()
  4145. rem4.Parent = char
  4146. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4147. hite:Destroy()
  4148. coroutine.resume(coroutine.create(function()
  4149. for i = 0, 24 do
  4150. swait(1)
  4151. if randomrotations == 1 then
  4152. rot = rot + 1
  4153. elseif randomrotations == 2 then
  4154. rot = rot - 1
  4155. end
  4156. power = power + 0.5
  4157. lookv = lookv + 7.5
  4158. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4159. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4160. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4161. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4162. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4163. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4164. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4165. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4166. end
  4167. end))
  4168. attack = false
  4169. end
  4170. function yinyangi()
  4171. attack = true
  4172. for i = 0, 2, 0.1 do
  4173. swait()
  4174. 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)
  4175. 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)
  4176. 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)
  4177. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4178. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4179. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4180. end
  4181. local bv = Instance.new("BodyVelocity")
  4182. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4183. bv.velocity = root.CFrame.lookVector*175
  4184. bv.Parent = root
  4185. for Rotations = 0, 9 do
  4186. for i = 0, 1, 0.5 do
  4187. swait()
  4188. bv.velocity = root.CFrame.lookVector*175
  4189. 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)
  4190. 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)
  4191. 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)
  4192. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4193. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4194. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4195. end
  4196. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4197. for i = 0, 1, 0.5 do
  4198. swait()
  4199. bv.velocity = root.CFrame.lookVector*175
  4200. 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)
  4201. 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)
  4202. 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)
  4203. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4204. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4205. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4206. end
  4207. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4208. for i = 0, 1, 0.5 do
  4209. swait()
  4210. bv.velocity = root.CFrame.lookVector*175
  4211. 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)
  4212. 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)
  4213. 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)
  4214. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4215. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4216. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4217. end
  4218. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4219. for i = 0, 1, 0.5 do
  4220. swait()
  4221. bv.velocity = root.CFrame.lookVector*175
  4222. 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)
  4223. 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)
  4224. 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)
  4225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4226. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4227. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4228. end
  4229. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4230. end
  4231. bv:Destroy()
  4232. attack = false
  4233. end
  4234.  
  4235. function Wip()
  4236. attack = true
  4237.  
  4238. local rngb = Instance.new("Part", char)
  4239. rngb.Anchored = true
  4240. rngb.BrickColor = origcolor
  4241. rngb.CanCollide = false
  4242. rngb.FormFactor = 3
  4243. rngb.Name = "Ring"
  4244. rngb.Material = "Neon"
  4245. rngb.Size = Vector3.new(1, 0.05, 1)
  4246. rngb.Transparency = 1
  4247. rngb.TopSurface = 0
  4248. rngb.BottomSurface = 0
  4249. local rngmb = Instance.new("SpecialMesh", rngb)
  4250. rngmb.MeshType = "Brick"
  4251. rngmb.Name = "SizeMesh"
  4252. rngmb.Scale = vt(0,1,0)
  4253.  
  4254. local orb = rngb:Clone()
  4255. orb.Parent = char
  4256. orb.Transparency = 0
  4257. orb.BrickColor = BrickColor.new("White")
  4258. orb.Size = vt(1,1,1)
  4259. local orbmish = orb.SizeMesh
  4260. orbmish.Scale = vt(0,0,0)
  4261. orbmish.MeshType = "Sphere"
  4262.  
  4263. local orbe = rngb:Clone()
  4264. orbe.Parent = char
  4265. orbe.Transparency = 0.5
  4266. orbe.BrickColor = BrickColor.new("New Yeller")
  4267. orbe.Size = vt(1,1,1)
  4268. local orbmish2 = orbe.SizeMesh
  4269. orbmish2.Scale = vt(0,0,0)
  4270. orbmish2.MeshType = "Sphere"
  4271. orbe.Color = Color3.new(r/255,g/255,b/255)
  4272.  
  4273. rngb:Destroy()
  4274. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4275. local scaled = 1
  4276. for i = 0,5,0.1 do
  4277. swait()
  4278. scaled = scaled - 0.02
  4279. if rainbowmode == true then
  4280. orbe.Color = Color3.new(r/255,g/255,b/255)
  4281. end
  4282. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4283. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4284. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4285. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4286. 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)
  4287. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4288. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4289. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4290. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4291. 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)
  4292. 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)
  4293. RootPart.CFrame = FaceMouse()[1]
  4294. end]]--
  4295. for i = 0,5,0.1 do
  4296. swait()
  4297. if rainbowmode == true then
  4298. orbe.Color = Color3.new(r/255,g/255,b/255)
  4299. end
  4300. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4301. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4302. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4303. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4304. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4305. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4306. 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)
  4307. 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)
  4308. RootPart.CFrame = FaceMouse()[1]
  4309. end
  4310. orbe.Transparency = 1
  4311. orb.Transparency = 1
  4312. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4313. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4314. local a = Instance.new("Part",Character)
  4315. a.Name = "Direction"
  4316. a.Anchored = true
  4317. a.BrickColor = bc("White")
  4318. a.Material = "Neon"
  4319. a.Transparency = 0
  4320. a.Shape = "Cylinder"
  4321. a.CanCollide = false
  4322. local a2 = Instance.new("Part",Character)
  4323. a2.Name = "Direction"
  4324. a2.Anchored = true
  4325. a2.BrickColor = bc("New Yeller")
  4326. a2.Color = Color3.new(r/255,g/255,b/255)
  4327. a2.Material = "Neon"
  4328. a2.Transparency = 0.5
  4329. a2.Shape = "Cylinder"
  4330. a2.CanCollide = false
  4331. local ba = Instance.new("Part",Character)
  4332. ba.Name = "HitDirect"
  4333. ba.Anchored = true
  4334. ba.BrickColor = bc("Cool yellow")
  4335. ba.Material = "Neon"
  4336. ba.Transparency = 1
  4337. ba.CanCollide = false
  4338. local ray = Ray.new(
  4339. orb.CFrame.p, -- origin
  4340. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4341. )
  4342. local ignore = Character
  4343. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4344. a.BottomSurface = 10
  4345. a.TopSurface = 10
  4346. a2.BottomSurface = 10
  4347. a2.TopSurface = 10
  4348. local distance = (orb.CFrame.p - position).magnitude
  4349. a.Size = Vector3.new(distance, 1, 1)
  4350. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4351. a2.Size = Vector3.new(distance, 1, 1)
  4352. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4353. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4354. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4355. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4356. game:GetService("Debris"):AddItem(a, 20)
  4357. game:GetService("Debris"):AddItem(a2, 20)
  4358. game:GetService("Debris"):AddItem(ba, 20)
  4359. local msh = Instance.new("SpecialMesh",a)
  4360. msh.MeshType = "Cylinder"
  4361. msh.Scale = vt(1,5*5,5*5)
  4362. local msh2 = Instance.new("SpecialMesh",a2)
  4363. msh2.MeshType = "Cylinder"
  4364. msh2.Scale = vt(1,6*5,6*5)
  4365.  
  4366. for i = 0,10,0.1 do
  4367. swait()
  4368. CameraEnshaking(1,5)
  4369. a2.Color = Color3.new(r/255,g/255,b/255)
  4370. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4371. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4372. ray = Ray.new(
  4373. orb.CFrame.p, -- origin
  4374. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4375. )
  4376. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4377. distance = (orb.CFrame.p - position).magnitude
  4378. if typrot == 1 then
  4379. rotation = rotation + 2.5
  4380. elseif typrot == 2 then
  4381. rotation = rotation - 2.5
  4382. end
  4383. RootPart.CFrame = FaceMouse()[1]
  4384. a.Size = Vector3.new(distance, 1, 1)
  4385. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4386. a2.Size = Vector3.new(distance, 1, 1)
  4387. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4388. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4389. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4390. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4391. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4392. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  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. 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)
  4395. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4396. end
  4397. a:Destroy()
  4398. a2:Destroy()
  4399. ba:Destroy()
  4400. orb:Destroy()
  4401. orbe:Destroy()
  4402. attack = false
  4403. end
  4404. function HolyBarrier()
  4405. attack = true
  4406. shielding = true
  4407. for i = 0, 2, 0.1 do
  4408. swait()
  4409. 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)
  4410. 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)
  4411. 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)
  4412. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4413. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4414. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4415. end
  4416. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4417. stash = Instance.new("Model",workspace)
  4418. local barrier = Instance.new("Part",stash)
  4419. barrier.Anchored = true
  4420. barrier.CanCollide = false
  4421. barrier.Size = Vector3.new(20,20,20)
  4422. barrier.CFrame = root.CFrame
  4423. barrier.Transparency = 0.6
  4424. barrier.BrickColor = MAINRUINCOLOR
  4425. barrier.Material = Enum.Material.Neon
  4426. barrier.Shape = Enum.PartType.Ball
  4427. barrier.CFrame = root.CFrame
  4428. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4429. Torso.Anchored = true
  4430. for i=1,50 do
  4431. local p = Instance.new("Part",stash)
  4432. p.Anchored = true
  4433. p.Transparency = 1
  4434. p.Size = Vector3.new(11,11,11)
  4435. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4436. end
  4437. repeat
  4438. swait(5)
  4439. 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)
  4440. until shielding == false
  4441. stash:Remove()
  4442. Torso.Anchored = false
  4443. shielding = false
  4444. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4445. attack = false
  4446. end
  4447. function Judgement()
  4448. attack = true
  4449. judgement = true
  4450. hum.WalkSpeed = 0
  4451. local p = Instance.new("Part",root)
  4452. p.Anchored = true
  4453. p.CanCollide = false
  4454. p.BrickColor = MAINRUINCOLOR
  4455. p.Material = Enum.Material.Neon
  4456. p.Size = Vector3.new(1,1,1)
  4457. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4458. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4459. local m = Instance.new("SpecialMesh",p)
  4460. m.MeshType = "Cylinder"
  4461. m.Scale = Vector3.new(2000,2,2)
  4462. local targ = Instance.new("Part",root)
  4463. targ.Anchored = true
  4464. targ.Transparency = 1
  4465. targ.CanCollide = false
  4466. targ.Size = Vector3.new(1,1,1)
  4467. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4468. local s = Instance.new("Sound",targ)
  4469. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4470. s.Looped = true
  4471. s.Pitch = 1.2
  4472. s.Volume = 3
  4473. spawn(function()
  4474. swait(15)
  4475. s:Play()
  4476. end)
  4477. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4478. for i = 1,15 do
  4479. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4480. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4481. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4482. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4483. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4484. 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)
  4485. 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)
  4486. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4487. 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)
  4488. m.Scale = m.Scale+Vector3.new(0,1,1)
  4489. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4490. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4491. swait()
  4492. end
  4493. 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)
  4494. repeat
  4495. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4496. 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)
  4497. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4498. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4499. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4500. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4501. swait()
  4502. until judgement == false
  4503. for i =1,15 do
  4504. m.Scale = m.Scale-Vector3.new(1,1,1)
  4505. p.Transparency = i / 15
  4506. s.Pitch = s.Pitch - 0.4
  4507. swait()
  4508. end
  4509. p:Destroy()
  4510. hum.WalkSpeed = storehumanoidWS
  4511. attack = false
  4512. end
  4513.  
  4514. function UniversalSpark()
  4515. attack = true
  4516.  
  4517. local rngb = Instance.new("Part", char)
  4518. rngb.Anchored = true
  4519. rngb.BrickColor = origcolor
  4520. rngb.CanCollide = false
  4521. rngb.FormFactor = 3
  4522. rngb.Name = "Ring"
  4523. rngb.Material = "Neon"
  4524. rngb.Size = Vector3.new(1, 0.05, 1)
  4525. rngb.Transparency = 1
  4526. rngb.TopSurface = 0
  4527. rngb.BottomSurface = 0
  4528. local rngmb = Instance.new("SpecialMesh", rngb)
  4529. rngmb.MeshType = "Brick"
  4530. rngmb.Name = "SizeMesh"
  4531. rngmb.Scale = vt(0,1,0)
  4532.  
  4533. local orb = rngb:Clone()
  4534. orb.Parent = char
  4535. orb.Transparency = 0
  4536. orb.BrickColor = BrickColor.new("White")
  4537. orb.Size = vt(1,1,1)
  4538. local orbmish = orb.SizeMesh
  4539. orbmish.Scale = vt(0,0,0)
  4540. orbmish.MeshType = "Sphere"
  4541.  
  4542. local orbe = rngb:Clone()
  4543. orbe.Parent = char
  4544. orbe.Transparency = 0.5
  4545. orbe.BrickColor = BrickColor.new("New Yeller")
  4546. orbe.Size = vt(1,1,1)
  4547. local orbmish2 = orbe.SizeMesh
  4548. orbmish2.Scale = vt(0,0,0)
  4549. orbmish2.MeshType = "Sphere"
  4550. orbe.Color = Color3.new(r/255,g/255,b/255)
  4551.  
  4552. rngb:Destroy()
  4553. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4554. local scaled = 1
  4555. for i = 0,5,0.1 do
  4556. swait()
  4557. scaled = scaled - 0.02
  4558. if rainbowmode == true then
  4559. orbe.Color = Color3.new(r/255,g/255,b/255)
  4560. end
  4561. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4562. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4563. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4564. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4565. 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)
  4566. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4567. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4568. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4569. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4570. 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)
  4571. 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)
  4572. RootPart.CFrame = FaceMouse()[1]
  4573. end]]--
  4574. for i = 0,5,0.1 do
  4575. swait()
  4576. if rainbowmode == true then
  4577. orbe.Color = Color3.new(r/255,g/255,b/255)
  4578. end
  4579. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4580. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4581. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4582. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4583. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4584. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4585. 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)
  4586. 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)
  4587. RootPart.CFrame = FaceMouse()[1]
  4588. end
  4589. orbe.Transparency = 1
  4590. orb.Transparency = 1
  4591. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4592. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4593. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4594. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4595.  
  4596. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4597. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4598. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4599. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4600. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4601. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4602. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4603. local xd= Instance.new("Sound",char)
  4604. xd.SoundId = "rbxassetid://445796828"
  4605. xd.Pitch = 0.75
  4606. xd.Looped = true
  4607. xd.Volume = 1.25
  4608. xd:Play()
  4609. local a = Instance.new("Part",Character)
  4610. a.Name = "Direction"
  4611. a.Anchored = true
  4612. a.BrickColor = bc("Alder")
  4613. a.Color = MAINRUINCOLOR.Color
  4614. a.Material = "Neon"
  4615. a.Transparency = 0.5
  4616. a.Shape = "Cylinder"
  4617. a.CanCollide = false
  4618. local a2 = Instance.new("Part",Character)
  4619. a2.Name = "Direction"
  4620. a2.Anchored = true
  4621. a2.BrickColor = bc("New Yeller")
  4622. a2.Color = MAINRUINCOLOR.Color
  4623. a2.Material = "Neon"
  4624. a2.Transparency = 0.5
  4625. a2.Shape = "Cylinder"
  4626. a2.CanCollide = false
  4627. local ba = Instance.new("Part",Character)
  4628. ba.Name = "HitDirect"
  4629. ba.Anchored = true
  4630. ba.BrickColor = bc("Cool yellow")
  4631. ba.Material = "Neon"
  4632. ba.Transparency = 1
  4633. ba.CanCollide = false
  4634. local ray = Ray.new(
  4635. orb.CFrame.p, -- origin
  4636. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4637. )
  4638. local ignore = Character
  4639. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4640. a.BottomSurface = 10
  4641. a.TopSurface = 10
  4642. a2.BottomSurface = 10
  4643. a2.TopSurface = 10
  4644. local distance = (orb.CFrame.p - position).magnitude
  4645. a.Size = Vector3.new(distance, 1, 1)
  4646. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4647. a2.Size = Vector3.new(distance, 1, 1)
  4648. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4649. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4650. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4651. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4652. game:GetService("Debris"):AddItem(a, 60)
  4653. game:GetService("Debris"):AddItem(a2, 60)
  4654. game:GetService("Debris"):AddItem(ba, 60)
  4655. local outerscale = 0
  4656. local msh = Instance.new("SpecialMesh",a)
  4657. msh.MeshType = "Cylinder"
  4658. msh.Scale = vt(1,0,0)
  4659. local msh2 = Instance.new("SpecialMesh",a2)
  4660. msh2.MeshType = "Cylinder"
  4661. msh2.Scale = vt(1,0,0)
  4662. for i = 0,2,0.1 do
  4663. swait()
  4664. CameraEnshaking(1,1)
  4665. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4666. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4667. outerscale = outerscale - 0.015
  4668. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4669. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4670. ray = Ray.new(
  4671. orb.CFrame.p, -- origin
  4672. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4673. )
  4674. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4675. distance = (orb.CFrame.p - position).magnitude
  4676. if typrot == 1 then
  4677. rotation = rotation + 2.5
  4678. elseif typrot == 2 then
  4679. rotation = rotation - 2.5
  4680. end
  4681. RootPart.CFrame = FaceMouse()[1]
  4682. a.Size = Vector3.new(distance, 1, 1)
  4683. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4684. a2.Size = Vector3.new(distance, 1, 1)
  4685. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4686. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4687. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4688. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4691. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4692. end
  4693. for z = 0, 2 do
  4694. for i = 0,4,0.1 do
  4695. swait()
  4696. CameraEnshaking(1,1)
  4697. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4698. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4699. outerscale = outerscale + 0.015
  4700. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4701. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4702. ray = Ray.new(
  4703. orb.CFrame.p, -- origin
  4704. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4705. )
  4706. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4707. distance = (orb.CFrame.p - position).magnitude
  4708. if typrot == 1 then
  4709. rotation = rotation + 2.5
  4710. elseif typrot == 2 then
  4711. rotation = rotation - 2.5
  4712. end
  4713. RootPart.CFrame = FaceMouse()[1]
  4714. a.Size = Vector3.new(distance, 1, 1)
  4715. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4716. a2.Size = Vector3.new(distance, 1, 1)
  4717. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4718. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4719. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4720. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4723. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4724. end
  4725. for i = 0,4,0.1 do
  4726. swait()
  4727. CameraEnshaking(1,1)
  4728. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4729. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4730. outerscale = outerscale - 0.015
  4731. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4732. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4733. ray = Ray.new(
  4734. orb.CFrame.p, -- origin
  4735. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4736. )
  4737. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4738. distance = (orb.CFrame.p - position).magnitude
  4739. if typrot == 1 then
  4740. rotation = rotation + 2.5
  4741. elseif typrot == 2 then
  4742. rotation = rotation - 2.5
  4743. end
  4744. RootPart.CFrame = FaceMouse()[1]
  4745. a.Size = Vector3.new(distance, 1, 1)
  4746. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4747. a2.Size = Vector3.new(distance, 1, 1)
  4748. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4749. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4750. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4751. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4754. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4755. end
  4756. end
  4757. for i = 0,4,0.1 do
  4758. swait()
  4759. CameraEnshaking(1,1)
  4760. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4761. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4762. xd.Volume = xd.Volume - 0.025
  4763. a.Transparency = a.Transparency + 0.025
  4764. a2.Transparency = a2.Transparency + 0.025
  4765. outerscale = outerscale - 0.015
  4766. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4767. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4768. ray = Ray.new(
  4769. orb.CFrame.p, -- origin
  4770. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4771. )
  4772. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4773. distance = (orb.CFrame.p - position).magnitude
  4774. if typrot == 1 then
  4775. rotation = rotation + 2.5
  4776. elseif typrot == 2 then
  4777. rotation = rotation - 2.5
  4778. end
  4779. RootPart.CFrame = FaceMouse()[1]
  4780. a.Size = Vector3.new(distance, 1, 1)
  4781. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4782. a2.Size = Vector3.new(distance, 1, 1)
  4783. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4784. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4785. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4786. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4789. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4790. end
  4791. xd:Destroy()
  4792. a:Destroy()
  4793. a2:Destroy()
  4794. ba:Destroy()
  4795. orb:Destroy()
  4796. orbe:Destroy()
  4797. attack = false
  4798. end
  4799.  
  4800.  
  4801. function resetmode()
  4802. rainbowmode = false
  4803. chaosmode = false
  4804. tl1.Enabled = false
  4805. tl2.Enabled = false
  4806. tl3.Enabled = false
  4807. ModeOfGlitch = 1
  4808. storehumanoidWS = 16
  4809. coroutine.resume(coroutine.create(function()
  4810. attack = true
  4811. hum.WalkSpeed = 0
  4812. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4813. for i = 0,4,0.1 do
  4814. swait()
  4815. 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)
  4816. 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)
  4817. 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)
  4818. 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)
  4819. 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)
  4820. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4821. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4822. end
  4823. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4824. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4825. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4826. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4827. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  4828. CameraEnshaking(5,2.5)
  4829. MAINRUINCOLOR = BrickColor.new("Really red")
  4830. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4831. for i = 0, 49 do
  4832. 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)
  4833. end
  4834. for i = 0,3,0.1 do
  4835. 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)
  4836. end
  4837. for i, v in pairs(mw2:GetChildren()) do
  4838. if v:IsA("Part") then
  4839. v.BrickColor = BrickColor.new("Really red")
  4840. v.Material = "Neon"
  4841. end
  4842. end
  4843. for i, v in pairs(mw1:GetChildren()) do
  4844. if v:IsA("Part") then
  4845. v.Transparency = 1
  4846. v.BrickColor = BrickColor.new("Really red")
  4847. v.Material = "Neon"
  4848. end
  4849. end
  4850. for i, v in pairs(m:GetChildren()) do
  4851. if v:IsA("Part") then
  4852. v.BrickColor = BrickColor.new("Really black")
  4853. v.Material = "Glass"
  4854. end
  4855. end
  4856. for i, v in pairs(m2:GetChildren()) do
  4857. if v:IsA("Part") then
  4858. v.BrickColor = BrickColor.new("Crimson")
  4859. v.Material = "Granite"
  4860. end
  4861. end
  4862. for i, v in pairs(m3:GetChildren()) do
  4863. if v:IsA("Part") then
  4864. v.BrickColor = BrickColor.new("Really red")
  4865. v.Material = "Neon"
  4866. end
  4867. end
  4868. for i, v in pairs(extrawingmod1:GetChildren()) do
  4869. if v:IsA("Part") then
  4870. v.Transparency = 1
  4871. v.BrickColor = BrickColor.new("White")
  4872. v.Material = "Neon"
  4873. end
  4874. end
  4875. for i, v in pairs(extrawingmod2:GetChildren()) do
  4876. if v:IsA("Part") then
  4877. v.Transparency = 1
  4878. v.BrickColor = BrickColor.new("White")
  4879. v.Material = "Neon"
  4880. end
  4881. end
  4882. for i = 0,2,0.1 do
  4883. swait()
  4884. 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)
  4885. 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)
  4886. 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)
  4887. 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)
  4888. 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)
  4889. 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)
  4890. end
  4891. hum.WalkSpeed = storehumanoidWS
  4892. attack = false
  4893. end))
  4894. newTheme("rbxassetid://614032233",48.6,1,0.3)
  4895. end
  4896.  
  4897. function attackone()
  4898. attack = true
  4899. for i = 0,1,0.1 do
  4900. swait()
  4901. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4902. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4903. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4904. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4905. 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)
  4906. 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)
  4907. end
  4908. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4909.  
  4910. local hitb = Instance.new("Part", char)
  4911. hitb.Anchored = true
  4912. hitb.CanCollide = false
  4913. hitb.FormFactor = 3
  4914. hitb.Name = "Ring"
  4915. hitb.Material = "Neon"
  4916. hitb.Size = Vector3.new(1, 1, 1)
  4917. hitb.Transparency = 1
  4918. hitb.TopSurface = 0
  4919. hitb.BottomSurface = 0
  4920. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4921. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4922. hitb:Destroy()
  4923. for i = 0,1,0.1 do
  4924. swait()
  4925. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  4926. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  4927. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  4928. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  4929. 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)
  4930. 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)
  4931. end
  4932.  
  4933. attack = false
  4934. end
  4935.  
  4936. function attacktwo()
  4937. attack = true
  4938. for i = 0,1,0.1 do
  4939. swait()
  4940. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  4941. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  4942. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4943. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4944. 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)
  4945. 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)
  4946. end
  4947. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  4948. local hitb = Instance.new("Part", char)
  4949. hitb.Anchored = true
  4950. hitb.CanCollide = false
  4951. hitb.FormFactor = 3
  4952. hitb.Name = "Ring"
  4953. hitb.Material = "Neon"
  4954. hitb.Size = Vector3.new(1, 1, 1)
  4955. hitb.Transparency = 1
  4956. hitb.TopSurface = 0
  4957. hitb.BottomSurface = 0
  4958. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4959. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4960. hitb:Destroy()
  4961. for i = 0,1,0.1 do
  4962. swait()
  4963. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  4964. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  4965. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  4966. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  4967. 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)
  4968. 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)
  4969. end
  4970. attack = false
  4971. end
  4972.  
  4973. function attackthree()
  4974. attack = true
  4975. for i = 0,1,0.1 do
  4976. swait()
  4977. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  4978. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  4979. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  4980. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4981. 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)
  4982. 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)
  4983. end
  4984. local distlook = 5
  4985. for i = 0, 4 do
  4986. swait(2)
  4987. CameraEnshaking(2,3)
  4988. local hite = Instance.new("Part", char)
  4989. hite.Anchored = true
  4990. hite.CanCollide = false
  4991. hite.FormFactor = 3
  4992. hite.Name = "Ring"
  4993. hite.Material = "Neon"
  4994. hite.Size = Vector3.new(1, 1, 1)
  4995. hite.Transparency = 1
  4996. hite.TopSurface = 0
  4997. hite.BottomSurface = 0
  4998. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  4999. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5000. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5001. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5002. for i = 0, 2 do
  5003. 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)
  5004. 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)
  5005. 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)
  5006. end
  5007. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5008. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5009. game:GetService("Debris"):AddItem(hite, 5)
  5010. distlook = distlook + 10
  5011. end
  5012. attack = false
  5013. end
  5014.  
  5015. local ActiveGia = false
  5016. function THEHELLITSTHATBIG()
  5017. ActiveGia = true
  5018. attack = true
  5019. hum.WalkSpeed = 0
  5020. for i = 0,2,0.1 do
  5021. swait()
  5022. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5023. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5024. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5025. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5026. 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)
  5027. 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)
  5028. end
  5029. for i = 0,1,0.1 do
  5030. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5031. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5032. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5033. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5034. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5035. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5036. end
  5037. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5038. secrleg.Transparency = 0.5
  5039. seclleg.Transparency = 0.5
  5040. secrarm.Transparency = 0.5
  5041. seclarm.Transparency = 0.5
  5042. seched.Transparency = 0.5
  5043. sectors.Transparency = 0.5
  5044. for i = 0,25,0.1 do
  5045. swait()
  5046. 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)
  5047. 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)
  5048. 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)
  5049. 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)
  5050. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5051. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5052. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5053. end
  5054. --[[secrleg.Transparency = 1
  5055. seclleg.Transparency = 1
  5056. secrarm.Transparency = 1
  5057. seclarm.Transparency = 1
  5058. seched.Transparency = 1
  5059. sectors.Transparency = 1]]--
  5060. torsweld.Part0 = root
  5061. hum.WalkSpeed = storehumanoidWS
  5062. attack = false
  5063. end
  5064.  
  5065. function removelol()
  5066. ActiveGia = false
  5067. attack = true
  5068. hum.WalkSpeed = 0
  5069. for i = 0,2,0.1 do
  5070. swait()
  5071. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5072. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5073. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5074. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5075. 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)
  5076. 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)
  5077. end
  5078. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5079. for i = 0,25,0.1 do
  5080. swait()
  5081. secrleg.Transparency = secrleg.Transparency + 0.00225
  5082. seclleg.Transparency = secrleg.Transparency
  5083. secrarm.Transparency = secrleg.Transparency
  5084. seclarm.Transparency = secrleg.Transparency
  5085. seched.Transparency = secrleg.Transparency
  5086. sectors.Transparency = secrleg.Transparency
  5087. 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)
  5088. 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)
  5089. 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)
  5090. 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)
  5091. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5092. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5093. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5094. end
  5095. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5096. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5097. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5098. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5099. secrleg.Transparency = 1
  5100. seclleg.Transparency = 1
  5101. secrarm.Transparency = 1
  5102. seclarm.Transparency = 1
  5103. seched.Transparency = 1
  5104. sectors.Transparency = 1
  5105. torsweld.Part0 = root
  5106. hum.WalkSpeed = storehumanoidWS
  5107. attack = false
  5108. end
  5109.  
  5110. function FinalCalamity()
  5111. end
  5112.  
  5113. local attacktype = 1
  5114. mouse.Button1Down:connect(function()
  5115. if attack == false and attacktype == 1 then
  5116. attacktype = 2
  5117. attackone()
  5118. elseif attack == false and attacktype == 2 then
  5119. attacktype = 3
  5120. attacktwo()
  5121. elseif attack == false and attacktype == 3 then
  5122. attacktype = 1
  5123. attackthree()
  5124. elseif attack == false and attacktype == 4 then
  5125. attacktype = 1
  5126. --attackfour()
  5127. end
  5128. end)
  5129. mouse.KeyDown:connect(function(k)
  5130. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5131. ModeOfGlitch = 2
  5132. storehumanoidWS = 16
  5133. hum.WalkSpeed = 16
  5134. rainbowmode = false
  5135. chaosmode = false
  5136. tl1.Enabled = false
  5137. tl2.Enabled = false
  5138. tl3.Enabled = false
  5139. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5140. newTheme("rbxassetid://1539245059",0,1,0.3)
  5141. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5142. for i, v in pairs(mw2:GetChildren()) do
  5143. if v:IsA("Part") then
  5144. v.BrickColor = MAINRUINCOLOR
  5145. v.Material = "Neon"
  5146. end
  5147. end
  5148. for i, v in pairs(mw1:GetChildren()) do
  5149. if v:IsA("Part") then
  5150. v.Transparency = 1
  5151. v.BrickColor = MAINRUINCOLOR
  5152. v.Material = "Neon"
  5153. end
  5154. end
  5155. for i, v in pairs(m:GetChildren()) do
  5156. if v:IsA("Part") then
  5157. v.BrickColor = BrickColor.new("White")
  5158. v.Material = "Ice"
  5159. end
  5160. end
  5161. for i, v in pairs(m2:GetChildren()) do
  5162. if v:IsA("Part") then
  5163. v.BrickColor = BrickColor.new("Pastel light blue")
  5164. v.Material = "Glass"
  5165. end
  5166. end
  5167. for i, v in pairs(m3:GetChildren()) do
  5168. if v:IsA("Part") then
  5169. v.BrickColor = BrickColor.new("Toothpaste")
  5170. v.Material = "Neon"
  5171. end
  5172. end
  5173. for i, v in pairs(extrawingmod1:GetChildren()) do
  5174. if v:IsA("Part") then
  5175. v.Transparency = 1
  5176. v.BrickColor = BrickColor.new("White")
  5177. v.Material = "Neon"
  5178. end
  5179. end
  5180. for i, v in pairs(extrawingmod2:GetChildren()) do
  5181. if v:IsA("Part") then
  5182. v.Transparency = 1
  5183. v.BrickColor = BrickColor.new("White")
  5184. v.Material = "Neon"
  5185. end
  5186. end
  5187. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5188. resetmode()
  5189. end
  5190. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5191. ModeOfGlitch = 3
  5192. storehumanoidWS = 16
  5193. hum.WalkSpeed = 16
  5194. rainbowmode = false
  5195. chaosmode = false
  5196. tl1.Enabled = false
  5197. tl2.Enabled = false
  5198. tl3.Enabled = false
  5199. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5200. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  5201. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5202. for i, v in pairs(mw2:GetChildren()) do
  5203. if v:IsA("Part") then
  5204. v.BrickColor = MAINRUINCOLOR
  5205. v.Material = "Neon"
  5206. end
  5207. end
  5208. for i, v in pairs(mw1:GetChildren()) do
  5209. if v:IsA("Part") then
  5210. v.Transparency = 1
  5211. v.BrickColor = MAINRUINCOLOR
  5212. v.Material = "Neon"
  5213. end
  5214. end
  5215. for i, v in pairs(m:GetChildren()) do
  5216. if v:IsA("Part") then
  5217. v.BrickColor = BrickColor.new("Black")
  5218. v.Material = "Ice"
  5219. end
  5220. end
  5221. for i, v in pairs(m2:GetChildren()) do
  5222. if v:IsA("Part") then
  5223. v.BrickColor = BrickColor.new("Dark indigo")
  5224. v.Material = "Glass"
  5225. end
  5226. end
  5227. for i, v in pairs(m3:GetChildren()) do
  5228. if v:IsA("Part") then
  5229. v.BrickColor = BrickColor.new("Royal purple")
  5230. v.Material = "Neon"
  5231. end
  5232. end
  5233. for i, v in pairs(extrawingmod1:GetChildren()) do
  5234. if v:IsA("Part") then
  5235. v.Transparency = 1
  5236. v.BrickColor = BrickColor.new("White")
  5237. v.Material = "Neon"
  5238. end
  5239. end
  5240. for i, v in pairs(extrawingmod2:GetChildren()) do
  5241. if v:IsA("Part") then
  5242. v.Transparency = 1
  5243. v.BrickColor = BrickColor.new("White")
  5244. v.Material = "Neon"
  5245. end
  5246. end
  5247. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5248. resetmode()
  5249. end
  5250. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5251. ModeOfGlitch = 4
  5252. storehumanoidWS = 16
  5253. hum.WalkSpeed = 16
  5254. rainbowmode = false
  5255. chaosmode = true
  5256. tl1.Enabled = true
  5257. tl2.Enabled = true
  5258. tl3.Enabled = true
  5259. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5260. newTheme("rbxassetid://1369263130",0,1,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://1359036559",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,1)
  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. CameraEnshaking(1,1)
  5685. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5686. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5687. wait(0.55)
  5688. CameraEnshaking(1,2)
  5689. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5690. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5691. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5692. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5693. wait(0.55)
  5694. CameraEnshaking(1,3)
  5695. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5696. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5697. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5698. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5699. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5700. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5701. wait(0.55)
  5702. CameraEnshaking(10,5)
  5703. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5704. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5705. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5706. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5707. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5708. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5709. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5710. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5711. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5712. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5713. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5714. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5715. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5716. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5717. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5718. for i = 0, 49 do
  5719. 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)
  5720. 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)
  5721. 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)
  5722. 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)
  5723. end
  5724. ModeOfGlitch = 666
  5725. storehumanoidWS = 16
  5726. hum.WalkSpeed = 16
  5727. rainbowmode = false
  5728. chaosmode = false
  5729. tl1.Enabled = true
  5730. tl2.Enabled = true
  5731. tl3.Enabled = true
  5732. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5733. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5734. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5735. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5736. for i, v in pairs(mw2:GetChildren()) do
  5737. if v:IsA("Part") then
  5738. v.BrickColor = MAINRUINCOLOR
  5739. v.Material = "Neon"
  5740. end
  5741. end
  5742. for i, v in pairs(mw1:GetChildren()) do
  5743. if v:IsA("Part") then
  5744. v.Transparency = 0
  5745. v.BrickColor = MAINRUINCOLOR
  5746. v.Material = "Neon"
  5747. end
  5748. end
  5749. for i, v in pairs(m:GetChildren()) do
  5750. if v:IsA("Part") then
  5751. v.Color = Color3.new(1,0,0)
  5752. v.Material = "Neon"
  5753. end
  5754. end
  5755. for i, v in pairs(m2:GetChildren()) do
  5756. if v:IsA("Part") then
  5757. v.Color = Color3.new(1,0,0)
  5758. v.Material = "Neon"
  5759. end
  5760. end
  5761. for i, v in pairs(m3:GetChildren()) do
  5762. if v:IsA("Part") then
  5763. v.Color = Color3.new(1,0,0)
  5764. v.Material = "Neon"
  5765. end
  5766. end
  5767. for i, v in pairs(extrawingmod1:GetChildren()) do
  5768. if v:IsA("Part") then
  5769. v.Transparency = 0
  5770. v.Color = Color3.new(1,0,0)
  5771. v.Material = "Neon"
  5772. end
  5773. end
  5774. for i, v in pairs(extrawingmod2:GetChildren()) do
  5775. if v:IsA("Part") then
  5776. v.Transparency = 0
  5777. v.Color = Color3.new(1,0,0)
  5778. v.Material = "Neon"
  5779. end
  5780. attack = false
  5781. end
  5782. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5783. resetmode()
  5784. end
  5785. if k == "l" and toggleTag == false then
  5786. toggleTag = true
  5787. text.TextTransparency = 0
  5788. text.TextStrokeTransparency = 0
  5789. elseif k == "l" and toggleTag == true then
  5790. toggleTag = false
  5791. text.TextTransparency = 1
  5792. text.TextStrokeTransparency = 1
  5793. end
  5794. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5795. ExtinctiveHeartbreak()
  5796. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5797. PureBomb()
  5798. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5799. scattercorrupt()
  5800. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5801. ChaosGroundStrike()
  5802. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5803. Judgement()
  5804. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5805. HolyBarrier()
  5806. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5807. Starfall()
  5808. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5809. yinyangi()
  5810. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5811. MeteorStrike()
  5812. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5813. Wip()
  5814. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5815. StarfallEX()
  5816. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5817. FinalCalam()
  5818. end
  5819. if k == "n" and attack == false then
  5820. Blink()
  5821. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5822. StarDivision()
  5823. end
  5824. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5825. UniversalCollapse()
  5826. end
  5827. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5828. hum.WalkSpeed = 16 + 184
  5829. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5830. hum.WalkSpeed = 200 - 184
  5831. end
  5832. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5833. UniversalSpark()
  5834. end
  5835. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5836. StarDivision()
  5837. end
  5838. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5839. Starfall()
  5840. end
  5841. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5842. ChaosBegone()
  5843. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  5844. THEHELLITSTHATBIG()
  5845. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  5846. removelol()
  5847. end
  5848. end)
  5849. mouse.KeyUp:connect(function(k)
  5850. if k == "f" and ModeOfGlitch == 5 then
  5851. shielding = false
  5852. end
  5853. if k == "z" and ModeOfGlitch == 5 then
  5854. judgement = false
  5855. end
  5856. end)
  5857. coroutine.resume(coroutine.create(function()
  5858. while true do
  5859. swait(2)
  5860. if rainbowmode == true or ModeOfGlitch == 6 then
  5861. if eff == true then
  5862. 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)
  5863. end
  5864. end
  5865. end
  5866. end))
  5867. coroutine.resume(coroutine.create(function()
  5868. while true do
  5869. swait(2)
  5870. if shielding == true then
  5871. end
  5872. end
  5873. end))
  5874.  
  5875.  
  5876. coroutine.resume(coroutine.create(function()
  5877. while true do
  5878. if ModeOfGlitch == 1000000 then
  5879. swait(0.5)
  5880. end
  5881. swait()
  5882. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5883. 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)
  5884. end
  5885. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5886. 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)
  5887. end
  5888. end
  5889. end))
  5890.  
  5891.  
  5892. coroutine.resume(coroutine.create(function()
  5893. while true do
  5894. swait(2)
  5895. if chaosmode == true then
  5896. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5897. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5898. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5899. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5900. for i, v in pairs(mw1:GetChildren()) do
  5901. if v:IsA("Part") then
  5902. v.Transparency = 0.75
  5903. v.BrickColor = BrickColor.random()
  5904. v.Material = "Neon"
  5905. end
  5906. end
  5907. for i, v in pairs(m2:GetChildren()) do
  5908. if v:IsA("Part") then
  5909. v.BrickColor = BrickColor.random()
  5910. v.Material = "Neon"
  5911. end
  5912. end
  5913. for i, v in pairs(secondchar:GetChildren()) do
  5914. if v:IsA("Part") then
  5915. v.BrickColor = BrickColor.random()
  5916. v.Material = "Neon"
  5917. end
  5918. end
  5919. end
  5920. end
  5921. end))
  5922. Humanoid.Name = "STARGLITCHER"
  5923. Humanoid.MaxHealth = math.huge
  5924. Humanoid.Health = math.huge
  5925. Instance.new("ForceField",char).Visible = false
  5926. Humanoid.Animator.Parent = nil
  5927. idleanim=.4
  5928. while true do
  5929. if rainbowmode == false then
  5930. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5931. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5932. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5933. for i, v in pairs(secondchar:GetChildren()) do
  5934. if v:IsA("Part") then
  5935. v.BrickColor = MAINRUINCOLOR
  5936. v.Material = "Neon"
  5937. end
  5938. end
  5939. if chaosmode == false then
  5940. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5941. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5942. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5943. for i, v in pairs(secondchar:GetChildren()) do
  5944. if v:IsA("Part") then
  5945. v.BrickColor = MAINRUINCOLOR
  5946. v.Material = "Neon"
  5947. end
  5948. end
  5949. end
  5950. end
  5951. if rainbowmode == true then
  5952. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  5953. MAINRUINCOLOR = BrickColor.new("White")
  5954. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5955. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5956. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5957. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5958. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5959. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5960. for i, v in pairs(m:GetChildren()) do
  5961. if v:IsA("Part") then
  5962. v.Color = Color3.new(r/255,g/255,b/255)
  5963. end
  5964. end
  5965. for i, v in pairs(m2:GetChildren()) do
  5966. if v:IsA("Part") then
  5967. v.Color = Color3.new(r/255,g/255,b/255)
  5968. end
  5969. end
  5970. for i, v in pairs(secondchar:GetChildren()) do
  5971. if v:IsA("Part") then
  5972. v.Color = Color3.new(r/255,g/255,b/255)
  5973. v.Material = "Neon"
  5974. end
  5975. end
  5976. for i, v in pairs(m3:GetChildren()) do
  5977. if v:IsA("Part") then
  5978. v.Color = Color3.new(r/255,g/255,b/255)
  5979. end
  5980. end
  5981. for i, v in pairs(mw1:GetChildren()) do
  5982. if v:IsA("Part") then
  5983. v.Color = Color3.new(r/255,g/255,b/255)
  5984. v.Material = "Neon"
  5985. end
  5986. end
  5987. for i, v in pairs(mw2:GetChildren()) do
  5988. if v:IsA("Part") then
  5989. v.Color = Color3.new(r/255,g/255,b/255)
  5990. v.Material = "Neon"
  5991. end
  5992. end
  5993. end
  5994. CameraManager()
  5995. swait()
  5996. 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)
  5997. 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)
  5998. 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)
  5999. 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)
  6000. 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)
  6001. 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)
  6002.  
  6003. if attack == false and ActiveGia == false then
  6004. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6005. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6006. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6007. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6008. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6009. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6010. elseif attack == false and ActiveGia == true then
  6011. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6012. 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)
  6013. 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)
  6014. 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)
  6015. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6016. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6017. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6018. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6019. 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)
  6020. 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)
  6021. 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)
  6022. 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)
  6023. 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)
  6024. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6025. end
  6026. end
  6027.  
  6028. 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)
  6029. 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)
  6030. 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)
  6031. 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)
  6032. 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)
  6033. 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)
  6034. sine = sine + change
  6035. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6036. local velderp=RootPart.Velocity.y
  6037. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6038. if equipped==true or equipped==false then
  6039. if attack==false then
  6040. idle=idle+1
  6041. else
  6042. idle=0
  6043. end
  6044. if idle>=500 then
  6045. if attack==false then
  6046. --Sheath()
  6047. end
  6048. end
  6049. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6050. Anim="Jump"
  6051. if attack==false then
  6052. 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)
  6053. 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)
  6054. 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)
  6055. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6056. 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)
  6057. 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)
  6058. end
  6059. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6060. Anim="Fall"
  6061. if attack==false then
  6062. 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)
  6063. 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)
  6064. 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)
  6065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6066. 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)
  6067. 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)
  6068. end
  6069. elseif torvel<1 and hitfloor~=nil then
  6070. Anim="Idle"
  6071. if attack==false then
  6072. if ModeOfGlitch == 1 then
  6073. 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)
  6074. 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)
  6075. 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)
  6076. 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)
  6077. 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)
  6078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6079.  
  6080. elseif ModeOfGlitch == 666 then
  6081. 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)
  6082. 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)
  6083. 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)
  6084. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6085. 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)
  6086. 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)
  6087.  
  6088. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6089. 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)
  6090. 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)
  6091. 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)
  6092. 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)
  6093. 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)
  6094. 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)
  6095.  
  6096. elseif ModeOfGlitch == 3 then
  6097. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  6098. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6099. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  6100. 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)
  6101. 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)
  6102. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6103.  
  6104. elseif ModeOfGlitch == 4 then
  6105. 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)
  6106. 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)
  6107. 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)
  6108. 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)
  6109. 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)
  6110. 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)
  6111.  
  6112. elseif ModeOfGlitch == 5 then
  6113. 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)
  6114. 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)
  6115. 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)
  6116. 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)
  6117. 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)
  6118. 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)
  6119.  
  6120. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6121. 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)
  6122. 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)
  6123. 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)
  6124. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6125. 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)
  6126. 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)
  6127.  
  6128. elseif ModeOfGlitch == 12345678987654321 then
  6129. 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)
  6130. 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)
  6131. 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)
  6132. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6133. 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)
  6134. 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)
  6135. end
  6136. end
  6137. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6138. Anim="Walk"
  6139. if attack==false then
  6140. if ModeOfGlitch == 1 then
  6141. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6142. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6143. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6144. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(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)
  6145. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6146. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6147.  
  6148. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6149. 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)
  6150. 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)
  6151. 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)
  6152. 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)
  6153. 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)
  6154. 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)
  6155.  
  6156. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6157. 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)
  6158. 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)
  6159. 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)
  6160. 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)
  6161. 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)
  6162. 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)
  6163. end
  6164. end
  6165. elseif torvel>=22 and hitfloor~=nil then
  6166. Anim="Run"
  6167. if attack==false then
  6168. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6169. 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)
  6170. 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)
  6171. 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)
  6172. 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)
  6173. 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)
  6174. 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)
  6175. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6176. 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)
  6177. 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)
  6178. 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)
  6179. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6180. RW.C0=clerp(RW.C0,cf(1.5,0warn([[Star Glitcher Loaded.
  6181. All purpose switcher... -- wat
  6182.  
  6183. It's not over yet.
  6184. The faith is among us.
  6185. And yet you still haven't defeated me.
  6186. Now is my chance to destroy you.
  6187. Then you're out of the world.
  6188. With the elemental being struggling to gain power.
  6189. This is the result.
  6190. Very unstable and powerful.
  6191. A insanely chaotic being.
  6192. Who haven't ever known that one could hold this power.
  6193. It's the one that has been created by an unknown being.
  6194. You'll know this name already.
  6195. Till now.
  6196. The power is inside your body.
  6197. You will decide things with this.
  6198. And the future changes within the power.
  6199. For now, you'll decide your own.
  6200. You're one of them who holds this power.
  6201. And so on, you would get chaotic to everyone else.
  6202. You seem to dont trust everyone else, but one.
  6203. That one... you can't know.
  6204. It's only your decision.
  6205. At yourself.
  6206. No mercy, or spare.
  6207.  
  6208.  
  6209. Created by 'NoobyGames12'
  6210. Edited by 'danny199990'
  6211. Some stuff by 'XXUNORIBOASXX'
  6212. ]])
  6213. print([[Icons:
  6214. ! = New
  6215. ? = Spoilers
  6216. * = Exclusivity
  6217. ]])
  6218. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  6219. - Originall themes included
  6220. ! - Calamity's "Z" has changed.
  6221. ! - Starfall EX added.
  6222. ! - Mayhem now has Destruction mode.
  6223. ! - Chaos theme has been changed.
  6224. ! - Purity's theme has been extended.
  6225. ? - Corruption's "Z" will have animation sooner.
  6226. ! - Calamity's "X" is added, named Starfall.
  6227. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.
  6228. ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990).
  6229. ! - Equinox's MeteorStrike move(X) added(Made by danny199990).
  6230. ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990).
  6231. ! - Divinity's Judgement move(Z) can now be held as long as you want it to.
  6232.  
  6233. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  6234. ]])
  6235. --- its obs smooth af do not touch
  6236. ---- Sources and functions might be taken from others
  6237. plr = game:GetService("Players").LocalPlayer
  6238. char = plr.Character
  6239. hum = char.Humanoid
  6240. local cam = game.Workspace.CurrentCamera
  6241. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  6242. Camera = cam
  6243. local CamInterrupt = false
  6244. local TwoD = false
  6245. local TargetInfo = {nil, nil}
  6246. cam.CameraType = "Custom"
  6247. t = char.Torso
  6248. h = char.Head
  6249. ra = char["Right Arm"]
  6250. la = char["Left Arm"]
  6251. rl = char["Right Leg"]
  6252. ll = char["Left Leg"]
  6253. tors = char.Torso
  6254. lleg = char["Left Leg"]
  6255. root = char.HumanoidRootPart
  6256. hed = char.Head
  6257. rleg = char["Right Leg"]
  6258. rarm = char["Right Arm"]
  6259. larm = char["Left Arm"]
  6260. radian = math.rad
  6261. random = math.random
  6262. Vec3 = Vector3.new
  6263. Inst = Instance.new
  6264. cFrame = CFrame.new
  6265. Euler = CFrame.fromEulerAnglesXYZ
  6266. vt = Vector3.new
  6267. bc = BrickColor.new
  6268. br = BrickColor.random
  6269. it = Instance.new
  6270. cf = CFrame.new
  6271. local eff = true
  6272. local shielding = false
  6273.  
  6274. local Booleans = {
  6275. CamFollow = true,
  6276. GyroUse = true
  6277. }
  6278.  
  6279. function lerp(object, newCFrame, alpha)
  6280. return object:lerp(newCFrame, alpha)
  6281. end
  6282.  
  6283. local Directer = Inst("BodyGyro", root)
  6284. Directer.MaxTorque = Vec3(0, 0, 0)
  6285. Directer.P = 600000
  6286. local CPart = Inst("Part")
  6287. CPart.Anchored = true
  6288. CPart.CanCollide = false
  6289. CPart.Locked = true
  6290. CPart.Transparency = 1
  6291.  
  6292. local rainbowmode = false
  6293. local chaosmode = false
  6294.  
  6295. kan = Instance.new("Sound",char)
  6296. kan.Volume = 1.25
  6297. kan.TimePosition = 0
  6298. kan.PlaybackSpeed = 1
  6299. kan.Pitch = 1
  6300. kan.SoundId = "rbxassetid://614032233"
  6301. kan.Name = "wrecked"
  6302. kan.Looped = true
  6303. kan:Play()
  6304.  
  6305. function newTheme(ID,timepos,pitch,vol)
  6306. local kanz = kan
  6307. --kanz:Stop()
  6308. --kanz.Volume = vol
  6309. --kanz.TimePosition = timepos
  6310. kanz.PlaybackSpeed = pitch
  6311. kanz.Pitch = pitch
  6312. kanz.SoundId = ID
  6313. kanz.Name = "wrecked"
  6314. kanz.Looped = true
  6315. kanz.Volume = 0.3
  6316. --kanz:Play()
  6317. --coroutine.resume(coroutine.create(function()
  6318. --wait(0.05)
  6319. --end))
  6320. end
  6321.  
  6322. function newThemeCust(ID,timepos,pitch,vol)
  6323. local kanz = kan
  6324. kanz:Stop()
  6325. kanz.Volume = vol
  6326. kanz.TimePosition = timepos
  6327. kanz.PlaybackSpeed = pitch
  6328. kanz.Pitch = pitch
  6329. kanz.SoundId = ID
  6330. kanz.Name = "wrecked"
  6331. kanz.Looped = true
  6332. kanz:Play()
  6333. coroutine.resume(coroutine.create(function()
  6334. wait(0.05)
  6335. end))
  6336. end
  6337.  
  6338.  
  6339.  
  6340. function CameraShake(Times, Power, PlayerTarget)
  6341. coroutine.resume(coroutine.create(function()
  6342. FV = Instance.new("BoolValue", PlayerTarget)
  6343. FV.Name = "CameraShake"
  6344. for ShakeNum=1,Times do
  6345. swait()
  6346. local ef=Power
  6347. if ef>=1 then
  6348. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  6349. else
  6350. ef=Power*10
  6351. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  6352. end
  6353. end
  6354. Humanoid.CameraOffset = Vector3.new(0,0,0)
  6355. FV:Destroy()
  6356. end))
  6357. end
  6358.  
  6359. function CameraEnshaking(Length,Intensity)
  6360. coroutine.resume(coroutine.create(function()
  6361. local intensity = 1*Intensity
  6362. local rotM = 0.01*Intensity
  6363. for i = 0, Length, 0.1 do
  6364. swait()
  6365. intensity = intensity - 0.05*Intensity/Length
  6366. rotM = rotM - 0.0005*Intensity/Length
  6367. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  6368. 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)
  6369. end
  6370. Humanoid.CameraOffset = Vec3(0, 0, 0)
  6371. end))
  6372. end
  6373. CamShake=function(Part,Distan,Power,Times)
  6374. local de=Part.Position
  6375. for i,v in pairs(workspace:children()) do
  6376. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  6377. for _,c in pairs(v:children()) do
  6378. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  6379. local Noob=v.Humanoid
  6380. if Noob~=nil then
  6381. coroutine.resume(coroutine.create(function()
  6382. FV = Instance.new("BoolValue", Noob)
  6383. FV.Name = "CameraShake"
  6384. for ShakeNum=1,Times do
  6385. swait()
  6386. local ef=Power
  6387. if ef>=1 then
  6388. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  6389. else
  6390. ef=Power*10
  6391. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  6392. end
  6393. end
  6394. Humanoid.CameraOffset = Vector3.new(0,0,0)
  6395. FV:Destroy()
  6396. end))
  6397. CameraShake(Times, Power, Noob)
  6398. end
  6399. end
  6400. end
  6401. end
  6402. end
  6403. end
  6404.  
  6405. function chatfunc(text,color)
  6406. local chat = coroutine.wrap(function()
  6407. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  6408. Character:FindFirstChild("TalkingBillBoard"):destroy()
  6409. end
  6410. local naeeym2 = Instance.new("BillboardGui",Character)
  6411. naeeym2.Size = UDim2.new(0,100,0,40)
  6412. naeeym2.StudsOffset = Vector3.new(0,3,0)
  6413. naeeym2.Adornee = Character.Head
  6414. naeeym2.Name = "TalkingBillBoard"
  6415. local tecks2 = Instance.new("TextLabel",naeeym2)
  6416. tecks2.BackgroundTransparency = 1
  6417. tecks2.BorderSizePixel = 0
  6418. tecks2.Text = ""
  6419. tecks2.Font = "SciFi"
  6420. tecks2.TextSize = 30
  6421. tecks2.TextStrokeTransparency = 0
  6422. tecks2.TextColor3 = color
  6423. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  6424. tecks2.Size = UDim2.new(1,0,0.5,0)
  6425. local tecks3 = Instance.new("TextLabel",naeeym2)
  6426. tecks3.BackgroundTransparency = 1
  6427. tecks3.BorderSizePixel = 0
  6428. tecks3.Text = ""
  6429. tecks3.Font = "SciFi"
  6430. tecks3.TextSize = 30
  6431. tecks3.TextStrokeTransparency = 0
  6432. tecks3.TextColor3 = Color3.new(0,0,0)
  6433. tecks3.TextStrokeColor3 = color
  6434. tecks3.Size = UDim2.new(1,0,0.5,0)
  6435. coroutine.resume(coroutine.create(function()
  6436. while true do
  6437. swait(1)
  6438. plr.Character.wrecked.Volume = 0.3
  6439. if chaosmode == true then
  6440. tecks2.TextColor3 = BrickColor.random().Color
  6441. tecks3.TextStrokeColor3 = BrickColor.random().Color
  6442. end
  6443. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  6444. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  6445. tecks2.Rotation = math.random(-5,5)
  6446. tecks3.Rotation = math.random(-5,5)
  6447. end
  6448. end))
  6449. for i = 1,string.len(text),1 do
  6450. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  6451. tecks2.Text = string.sub(text,1,i)
  6452. tecks3.Text = string.sub(text,1,i)
  6453. swait(1)
  6454. end
  6455. wait(1)
  6456. local randomrot = math.random(1,2)
  6457. if randomrot == 1 then
  6458. for i = 1, 50 do
  6459. swait()
  6460. tecks2.Rotation = tecks2.Rotation - .75
  6461. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  6462. tecks2.TextTransparency = tecks2.TextTransparency + .04
  6463. tecks3.Rotation = tecks2.Rotation + .75
  6464. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  6465. tecks3.TextTransparency = tecks2.TextTransparency + .04
  6466. end
  6467. elseif randomrot == 2 then
  6468. for i = 1, 50 do
  6469. swait()
  6470. tecks2.Rotation = tecks2.Rotation + .75
  6471. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  6472. tecks2.TextTransparency = tecks2.TextTransparency + .04
  6473. tecks3.Rotation = tecks2.Rotation - .75
  6474. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  6475. tecks3.TextTransparency = tecks2.TextTransparency + .04
  6476. end
  6477. end
  6478. naeeym2:Destroy()
  6479. end)
  6480. chat()
  6481. end
  6482.  
  6483.  
  6484. local Create = LoadLibrary("RbxUtility").Create
  6485.  
  6486. CFuncs = {
  6487. ["Part"] = {
  6488. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  6489. local Part = Create("Part"){
  6490. Parent = Parent,
  6491. Reflectance = Reflectance,
  6492. Transparency = Transparency,
  6493. CanCollide = false,
  6494. Locked = true,
  6495. BrickColor = BrickColor.new(tostring(BColor)),
  6496. Name = Name,
  6497. Size = Size,
  6498. Material = Material,
  6499. }
  6500. RemoveOutlines(Part)
  6501. return Part
  6502. end;
  6503. };
  6504.  
  6505. ["Mesh"] = {
  6506. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  6507. local Msh = Create(Mesh){
  6508. Parent = Part,
  6509. Offset = OffSet,
  6510. Scale = Scale,
  6511. }
  6512. if Mesh == "SpecialMesh" then
  6513. Msh.MeshType = MeshType
  6514. Msh.MeshId = MeshId
  6515. end
  6516. return Msh
  6517. end;
  6518. };
  6519.  
  6520. ["Mesh"] = {
  6521. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  6522. local Msh = Create(Mesh){
  6523. Parent = Part,
  6524. Offset = OffSet,
  6525. Scale = Scale,
  6526. }
  6527. if Mesh == "SpecialMesh" then
  6528. Msh.MeshType = MeshType
  6529. Msh.MeshId = MeshId
  6530. end
  6531. return Msh
  6532. end;
  6533. };
  6534.  
  6535. ["Weld"] = {
  6536. Create = function(Parent, Part0, Part1, C0, C1)
  6537. local Weld = Create("Weld"){
  6538. Parent = Parent,
  6539. Part0 = Part0,
  6540. Part1 = Part1,
  6541. C0 = C0,
  6542. C1 = C1,
  6543. }
  6544. return Weld
  6545. end;
  6546. };
  6547.  
  6548. ["Sound"] = {
  6549. Create = function(id, par, vol, pit)
  6550. coroutine.resume(coroutine.create(function()
  6551. local S = Create("Sound"){
  6552. Volume = vol,
  6553. Name = "EffectSoundo",
  6554. Pitch = pit or 1,
  6555. SoundId = id,
  6556. Parent = par or workspace,
  6557. }
  6558. wait()
  6559. S:play()
  6560. game:GetService("Debris"):AddItem(S, 10)
  6561. end))
  6562. end;
  6563. };
  6564.  
  6565. ["LongSound"] = {
  6566. Create = function(id, par, vol, pit)
  6567. coroutine.resume(coroutine.create(function()
  6568. local S = Create("Sound"){
  6569. Volume = vol,
  6570. Pitch = pit or 1,
  6571. SoundId = id,
  6572. Parent = par or workspace,
  6573. }
  6574. wait()
  6575. S:play()
  6576. game:GetService("Debris"):AddItem(S, 30)
  6577. end))
  6578. end;
  6579. };
  6580.  
  6581. ["ParticleEmitter"] = {
  6582. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  6583. local fp = Create("ParticleEmitter"){
  6584. Parent = Parent,
  6585. Color = ColorSequence.new(Color1, Color2),
  6586. LightEmission = LightEmission,
  6587. Size = Size,
  6588. Texture = Texture,
  6589. Transparency = Transparency,
  6590. ZOffset = ZOffset,
  6591. Acceleration = Accel,
  6592. Drag = Drag,
  6593. LockedToPart = LockedToPart,
  6594. VelocityInheritance = VelocityInheritance,
  6595. EmissionDirection = EmissionDirection,
  6596. Enabled = Enabled,
  6597. Lifetime = LifeTime,
  6598. Rate = Rate,
  6599. Rotation = Rotation,
  6600. RotSpeed = RotSpeed,
  6601. Speed = Speed,
  6602. VelocitySpread = VelocitySpread,
  6603. }
  6604. return fp
  6605. end;
  6606. };
  6607.  
  6608. CreateTemplate = {
  6609.  
  6610. };
  6611. }
  6612.  
  6613.  
  6614.  
  6615. New = function(Object, Parent, Name, Data)
  6616. local Object = Instance.new(Object)
  6617. for Index, Value in pairs(Data or {}) do
  6618. Object[Index] = Value
  6619. end
  6620. Object.Parent = Parent
  6621. Object.Name = Name
  6622. return Object
  6623. end
  6624. local halocolor = BrickColor.new("Pastel light blue")
  6625. local halocolor2 = BrickColor.new("Cool yellow")
  6626. local starcolor = BrickColor.new("Bright yellow")
  6627. local lunacolor = BrickColor.new("Navy blue")
  6628. local lunacolor2 = BrickColor.new("Bright blue")
  6629. local wepcolor = BrickColor.new("Really black")
  6630. local maincolor = BrickColor.new("Really black")
  6631. local m = Instance.new("Model",char)
  6632. local m2 = Instance.new("Model",char)
  6633. local m3 = Instance.new("Model",char)
  6634. local mw1 = Instance.new("Model",char)
  6635. local mw2 = Instance.new("Model",char)
  6636.  
  6637. local extrawingmod1 = Instance.new("Model",char)
  6638. local extrawingmod2 = Instance.new("Model",char)
  6639.  
  6640. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  6641. local p = Instance.new("Part")
  6642. p.TopSurface = 0
  6643. p.BottomSurface = 0
  6644. p.Parent = parent
  6645. p.Size = Vector3.new(0.1,0.1,0.1)
  6646. p.Transparency = transparency
  6647. p.Reflectance = reflectance
  6648. p.CanCollide = false
  6649. p.Locked = true
  6650. p.BrickColor = brickcolor
  6651. p.Material = material
  6652. return p
  6653. end
  6654.  
  6655. function CreateMesh(parent,meshtype,x1,y1,z1)
  6656. local mesh = Instance.new("SpecialMesh",parent)
  6657. mesh.MeshType = meshtype
  6658. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  6659. return mesh
  6660. end
  6661.  
  6662. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  6663. local mesh = Instance.new("SpecialMesh",parent)
  6664. mesh.MeshType = "FileMesh"
  6665. mesh.MeshId = meshid
  6666. mesh.Scale = Vector3.new(x1,y1,z1)
  6667. return mesh
  6668. end
  6669.  
  6670.  
  6671. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  6672. local mesh = Instance.new("SpecialMesh",parent)
  6673. mesh.MeshType = "FileMesh"
  6674. mesh.MeshId = meshid
  6675. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  6676. mesh.Scale = Vector3.new(x1,y1,z1)
  6677. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  6678. return mesh
  6679. end
  6680.  
  6681. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  6682. local weld = Instance.new("Weld")
  6683. weld.Parent = parent
  6684. weld.Part0 = part0
  6685. weld.Part1 = part1
  6686. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  6687. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  6688. return weld
  6689. end
  6690.  
  6691.  
  6692. --------------
  6693. local secondchar = Instance.new("Model",char)
  6694. local GhostCol = BrickColor.new("Really red")
  6695. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  6696. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  6697. 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))
  6698.  
  6699. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  6700. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  6701. 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))
  6702.  
  6703. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  6704. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  6705. 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))
  6706.  
  6707. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  6708. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  6709. 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))
  6710.  
  6711. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  6712. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  6713. 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))
  6714.  
  6715. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  6716. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  6717. 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))
  6718. --------------
  6719. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  6720. 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))
  6721. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  6722. 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))
  6723.  
  6724. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  6725. CreateMesh(handle,"Brick",0,0,0)
  6726. 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))
  6727. local valuaring = 10
  6728. for i = 0, 49 do
  6729. valuaring = valuaring + 10
  6730. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  6731. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  6732. 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))
  6733. end
  6734.  
  6735. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  6736. CreateMesh(handle,"Brick",0,0,0)
  6737. 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))
  6738. local valuaring = 10
  6739. for i = 0, 49 do
  6740. valuaring = valuaring + 10
  6741. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6742. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  6743. 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))
  6744. end
  6745.  
  6746.  
  6747. local handle = CreateParta(m,1,1,"Neon",maincolor)
  6748. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6749. 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))
  6750.  
  6751. --- Left wing.
  6752.  
  6753. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  6754. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6755. 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))
  6756.  
  6757. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6758. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6759. 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))
  6760. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6761. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6762. 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))
  6763. A0 = Instance.new('Attachment',wed)
  6764. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6765. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6766. 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))
  6767. A1 = Instance.new('Attachment',wed)
  6768. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6769. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6770. 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))
  6771.  
  6772. tl1 = Instance.new('Trail',wed)
  6773. tl1.Attachment0 = A0
  6774. tl1.Attachment1 = A1
  6775. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  6776. tl1.LightEmission = 1
  6777. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6778. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  6779. tl1.Lifetime = 0.6
  6780.  
  6781.  
  6782. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  6783. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6784. 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))
  6785.  
  6786. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6787. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6788. 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))
  6789. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6790. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6791. 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))
  6792. A0 = Instance.new('Attachment',wed)
  6793. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6794. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6795. 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))
  6796. A1 = Instance.new('Attachment',wed)
  6797. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6798. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6799. 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))
  6800.  
  6801. tl2 = Instance.new('Trail',wed)
  6802. tl2.Attachment0 = A0
  6803. tl2.Attachment1 = A1
  6804. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  6805. tl2.LightEmission = 1
  6806. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6807. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  6808. tl2.Lifetime = 0.6
  6809.  
  6810. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  6811. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6812. 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))
  6813.  
  6814. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6815. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6816. 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))
  6817. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6818. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6819. 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))
  6820. A0 = Instance.new('Attachment',wed)
  6821. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6822. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6823. 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))
  6824. A1 = Instance.new('Attachment',wed)
  6825. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  6826. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6827. 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))
  6828.  
  6829. tl3 = Instance.new('Trail',wed)
  6830. tl3.Attachment0 = A0
  6831. tl3.Attachment1 = A1
  6832. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  6833. tl3.LightEmission = 1
  6834. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6835. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  6836. tl3.Lifetime = 0.6
  6837.  
  6838. tl1.Enabled = false
  6839. tl2.Enabled = false
  6840. tl3.Enabled = false
  6841. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  6842. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6843. 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))
  6844.  
  6845. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6846. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6847. 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))
  6848. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6849. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6850. 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))
  6851. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6852. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6853. 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))
  6854. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6855. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6856. 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))
  6857.  
  6858. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  6859. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6860. 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))
  6861.  
  6862. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6863. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6864. 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))
  6865. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6866. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6867. 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))
  6868. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6869. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6870. 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))
  6871. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6872. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6873. 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))
  6874.  
  6875. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  6876. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6877. 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))
  6878.  
  6879. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6880. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6881. 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))
  6882. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6883. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6884. 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))
  6885. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6886. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6887. 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))
  6888. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  6889. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6890. 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))
  6891.  
  6892. -- Right wing.
  6893.  
  6894. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  6895. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6896. 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))
  6897.  
  6898. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6899. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6900. 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))
  6901. A0 = Instance.new('Attachment',wed)
  6902. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6903. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6904. 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))
  6905. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6906. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6907. 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))
  6908. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6909. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6910. 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))
  6911. A1 = Instance.new('Attachment',wed)
  6912.  
  6913. tr1 = Instance.new('Trail',wed)
  6914. tr1.Attachment0 = A0
  6915. tr1.Attachment1 = A1
  6916. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  6917. tr1.LightEmission = 1
  6918. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6919. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  6920. tr1.Lifetime = 0.6
  6921.  
  6922. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  6923. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6924. 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))
  6925.  
  6926. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6927. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6928. 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))
  6929. A0 = Instance.new('Attachment',wed)
  6930. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6931. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6932. 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))
  6933. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6934. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6935. 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))
  6936. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6937. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6938. 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))
  6939. A1 = Instance.new('Attachment',wed)
  6940.  
  6941. tr2 = Instance.new('Trail',wed)
  6942. tr2.Attachment0 = A0
  6943. tr2.Attachment1 = A1
  6944. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  6945. tr2.LightEmission = 1
  6946. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6947. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  6948. tr2.Lifetime = 0.6
  6949.  
  6950. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  6951. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6952. 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))
  6953.  
  6954. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6955. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6956. 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))
  6957. A0 = Instance.new('Attachment',wed)
  6958. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6959. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6960. 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))
  6961. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6962. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6963. 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))
  6964. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  6965. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6966. 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))
  6967. A1 = Instance.new('Attachment',wed)
  6968.  
  6969. tr3 = Instance.new('Trail',wed)
  6970. tr3.Attachment0 = A0
  6971. tr3.Attachment1 = A1
  6972. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  6973. tr3.LightEmission = 1
  6974. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6975. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  6976. tr3.Lifetime = 0.6
  6977.  
  6978.  
  6979. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  6980. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6981. 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))
  6982.  
  6983. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  6984. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6985. 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))
  6986. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  6987. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  6988. 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))
  6989. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  6990. CreateMesh(wed,"Wedge",0.05,0.5,3)
  6991. 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))
  6992. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  6993. CreateMesh(wed,"Wedge",0.05,3,0.5)
  6994. 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))
  6995.  
  6996. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  6997. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  6998. 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))
  6999.  
  7000. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  7001. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  7002. 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))
  7003. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  7004. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  7005. 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))
  7006. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  7007. CreateMesh(wed,"Wedge",0.05,0.5,3)
  7008. 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))
  7009. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  7010. CreateMesh(wed,"Wedge",0.05,3,0.5)
  7011. 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))
  7012.  
  7013. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  7014. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  7015. 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))
  7016.  
  7017. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  7018. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  7019. 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))
  7020. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  7021. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  7022. 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))
  7023. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  7024. CreateMesh(wed,"Wedge",0.05,0.5,3)
  7025. 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))
  7026. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  7027. CreateMesh(wed,"Wedge",0.05,3,0.5)
  7028. 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))
  7029.  
  7030. ---- HERES THE RING
  7031.  
  7032.  
  7033. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  7034. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  7035. 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))
  7036. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7037. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  7038. 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))
  7039. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7040. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  7041. 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))
  7042.  
  7043.  
  7044. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7045. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  7046. 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))
  7047.  
  7048. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7049. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  7050. 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))
  7051.  
  7052.  
  7053.  
  7054. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  7055. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  7056. 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))
  7057.  
  7058. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  7059. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  7060. 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))
  7061.  
  7062. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  7063. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  7064. 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))
  7065.  
  7066. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7067. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  7068. 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))
  7069. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  7070. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  7071. 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))
  7072.  
  7073. --- second ring
  7074.  
  7075. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  7076. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  7077. 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))
  7078. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7079. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  7080. 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))
  7081. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7082. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  7083. 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))
  7084.  
  7085. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7086. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  7087. 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))
  7088.  
  7089. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7090. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  7091. 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))
  7092.  
  7093.  
  7094.  
  7095. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  7096. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  7097. 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))
  7098.  
  7099. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  7100. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  7101. 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))
  7102.  
  7103. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  7104. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  7105. 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))
  7106.  
  7107. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  7108. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  7109. 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))
  7110. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  7111. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  7112. 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))]]--
  7113.  
  7114.  
  7115.  
  7116. for i, v in pairs(m:GetChildren()) do
  7117. if v:IsA("Part") then
  7118. v.BrickColor = BrickColor.new("Really black")
  7119. v.Material = "Glass"
  7120. end
  7121. end
  7122. for i, v in pairs(m2:GetChildren()) do
  7123. if v:IsA("Part") then
  7124. v.BrickColor = BrickColor.new("Crimson")
  7125. v.Material = "Granite"
  7126. end
  7127. end
  7128. for i, v in pairs(m3:GetChildren()) do
  7129. if v:IsA("Part") then
  7130. v.BrickColor = BrickColor.new("Really red")
  7131. v.Material = "Neon"
  7132. end
  7133. end
  7134. for i, v in pairs(mw2:GetChildren()) do
  7135. if v:IsA("Part") then
  7136. v.BrickColor = BrickColor.new("Really red")
  7137. v.Material = "Neon"
  7138. end
  7139. end
  7140. for i, v in pairs(mw1:GetChildren()) do
  7141. if v:IsA("Part") then
  7142. v.Transparency = 1
  7143. v.BrickColor = BrickColor.new("Really red")
  7144. v.Material = "Neon"
  7145. end
  7146. end
  7147. for i, v in pairs(extrawingmod1:GetChildren()) do
  7148. if v:IsA("Part") then
  7149. v.Transparency = 1
  7150. v.BrickColor = BrickColor.new("White")
  7151. v.Material = "Neon"
  7152. end
  7153. end
  7154. for i, v in pairs(extrawingmod2:GetChildren()) do
  7155. if v:IsA("Part") then
  7156. v.Transparency = 1
  7157. v.BrickColor = BrickColor.new("White")
  7158. v.Material = "Neon"
  7159. end
  7160. end
  7161. local MAINRUINCOLOR = BrickColor.new("Really red")
  7162. ------
  7163.  
  7164.  
  7165. function RemoveOutlines(part)
  7166. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  7167. end
  7168. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  7169. local Part = Create("Part")({
  7170. Parent = Parent,
  7171. Reflectance = Reflectance,
  7172. Transparency = Transparency,
  7173. CanCollide = false,
  7174. Locked = true,
  7175. BrickColor = BrickColor.new(tostring(BColor)),
  7176. Name = Name,
  7177. Size = Size,
  7178. Material = Material
  7179. })
  7180. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  7181. RemoveOutlines(Part)
  7182. return Part
  7183. end
  7184. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  7185. local Msh = Create(Mesh)({
  7186. Parent = Part,
  7187. Offset = OffSet,
  7188. Scale = Scale
  7189. })
  7190. if Mesh == "SpecialMesh" then
  7191. Msh.MeshType = MeshType
  7192. Msh.MeshId = MeshId
  7193. end
  7194. return Msh
  7195. end
  7196. function CreateWeld(Parent, Part0, Part1, C0, C1)
  7197. local Weld = Create("Weld")({
  7198. Parent = Parent,
  7199. Part0 = Part0,
  7200. Part1 = Part1,
  7201. C0 = C0,
  7202. C1 = C1
  7203. })
  7204. return Weld
  7205. end
  7206.  
  7207. Player=game:GetService("Players").LocalPlayer
  7208. Character=Player.Character
  7209. PlayerGui=Player.PlayerGui
  7210. Backpack=Player.Backpack
  7211. Torso=Character.Torso
  7212. Head=Character.Head
  7213. Humanoid=Character.Humanoid
  7214. m=Instance.new('Model',Character)
  7215. LeftArm=Character["Left Arm"]
  7216. LeftLeg=Character["Left Leg"]
  7217. RightArm=Character["Right Arm"]
  7218. RightLeg=Character["Right Leg"]
  7219. LS=Torso["Left Shoulder"]
  7220. LH=Torso["Left Hip"]
  7221. RS=Torso["Right Shoulder"]
  7222. RH=Torso["Right Hip"]
  7223. Face = Head.face
  7224. Neck=Torso.Neck
  7225. it=Instance.new
  7226. attacktype=1
  7227. vt=Vector3.new
  7228. cf=CFrame.new
  7229. euler=CFrame.fromEulerAnglesXYZ
  7230. angles=CFrame.Angles
  7231. cloaked=false
  7232. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  7233. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  7234. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  7235. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  7236. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  7237. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  7238. RootPart=Character.HumanoidRootPart
  7239. RootJoint=RootPart.RootJoint
  7240. RootCF=euler(-1.57,0,3.14)
  7241. attack = false
  7242. attackdebounce = false
  7243. deb=false
  7244. equipped=true
  7245. hand=false
  7246. MMouse=nil
  7247. combo=0
  7248. mana=0
  7249. trispeed=.2
  7250. attackmode='none'
  7251. local idle=0
  7252. local Anim="Idle"
  7253. local Effects={}
  7254. local gun=false
  7255. local shoot=false
  7256. local sine = 0
  7257. local change = 1
  7258. player=nil
  7259.  
  7260.  
  7261. local toggleTag = true
  7262. local txt = Instance.new("BillboardGui", Head)
  7263. txt.Adornee = nil
  7264. txt.Name = "NameDetect"
  7265. txt.Size = UDim2.new(4, 0, 1.2, 0)
  7266. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  7267. local text = Instance.new("TextLabel", txt)
  7268. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  7269. text.FontSize = "Size8"
  7270. text.TextScaled = true
  7271. text.TextTransparency = 0
  7272. text.BackgroundTransparency = 1
  7273. text.TextTransparency = 0
  7274. text.TextStrokeTransparency = 0
  7275. text.Font = "Fantasy"
  7276. text.TextStrokeColor3 = Color3.new(1,0,0)
  7277. text.TextColor3 = Color3.new(0,0,0)
  7278. text.Text = "Mayhem"
  7279.  
  7280. function RecolorTextAndRename(name,col1,col2)
  7281. text.TextStrokeColor3 = col2
  7282. text.TextColor3 = col1
  7283. text.Text = name
  7284. end
  7285. mouse=Player:GetMouse()
  7286. --save shoulders
  7287. RSH, LSH=nil, nil
  7288. --welds
  7289. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  7290. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  7291. LH=Torso["Left Hip"]
  7292. RH=Torso["Right Hip"]
  7293. TorsoColor=Torso.BrickColor
  7294. function NoOutline(Part)
  7295. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  7296. end
  7297. player=Player
  7298. ch=Character
  7299. RSH=ch.Torso["Right Shoulder"]
  7300. LSH=ch.Torso["Left Shoulder"]
  7301. --
  7302. RSH.Parent=nil
  7303. LSH.Parent=nil
  7304. --
  7305. RW.Name="Right Shoulder"
  7306. RW.Part0=ch.Torso
  7307. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  7308. RW.C1=cf(0, 0.5, 0)
  7309. RW.Part1=ch["Right Arm"]
  7310. RW.Parent=ch.Torso
  7311. --
  7312. LW.Name="Left Shoulder"
  7313. LW.Part0=ch.Torso
  7314. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  7315. LW.C1=cf(0, 0.5, 0)
  7316. LW.Part1=ch["Left Arm"]
  7317. LW.Parent=ch.Torso
  7318.  
  7319. local Stats=Instance.new("BoolValue")
  7320. Stats.Name="Stats"
  7321. Stats.Parent=Character
  7322. local Atk=Instance.new("NumberValue")
  7323. Atk.Name="Damage"
  7324. Atk.Parent=Stats
  7325. Atk.Value=1
  7326. local Def=Instance.new("NumberValue")
  7327. Def.Name="Defense"
  7328. Def.Parent=Stats
  7329. Def.Value=1
  7330. local Speed=Instance.new("NumberValue")
  7331. Speed.Name="Speed"
  7332. Speed.Parent=Stats
  7333. Speed.Value=1
  7334. local Mvmt=Instance.new("NumberValue")
  7335. Mvmt.Name="Movement"
  7336. Mvmt.Parent=Stats
  7337. Mvmt.Value=1
  7338.  
  7339. local donum=0
  7340.  
  7341.  
  7342. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  7343. local fp=it("Part")
  7344. fp.formFactor=formfactor
  7345. fp.Parent=parent
  7346. fp.Reflectance=reflectance
  7347. fp.Transparency=transparency
  7348. fp.CanCollide=false
  7349. fp.Locked=true
  7350. fp.BrickColor=brickcolor
  7351. fp.Name=name
  7352. fp.Size=size
  7353. fp.Position=Torso.Position
  7354. NoOutline(fp)
  7355. fp.Material="SmoothPlastic"
  7356. fp:BreakJoints()
  7357. return fp
  7358. end
  7359.  
  7360. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  7361. local mesh=it(Mesh)
  7362. mesh.Parent=part
  7363. if Mesh=="SpecialMesh" then
  7364. mesh.MeshType=meshtype
  7365. if meshid~="nil" then
  7366. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  7367. end
  7368. end
  7369. mesh.Offset=offset
  7370. mesh.Scale=scale
  7371. return mesh
  7372. end
  7373.  
  7374. function weld(parent,part0,part1,c0)
  7375. local weld=it("Weld")
  7376. weld.Parent=parent
  7377. weld.Part0=part0
  7378. weld.Part1=part1
  7379. weld.C0=c0
  7380. return weld
  7381. end
  7382.  
  7383. local Color1=Torso.BrickColor
  7384.  
  7385. local bodvel=Instance.new("BodyVelocity")
  7386. local bg=Instance.new("BodyGyro")
  7387.  
  7388. function swait(num)
  7389. if num==0 or num==nil then
  7390. game:service'RunService'.Stepped:wait(0)
  7391. else
  7392. for i=0,num do
  7393. game:service'RunService'.Stepped:wait(0)
  7394. end
  7395. end
  7396. end
  7397.  
  7398. -------- RAINBOW LEAVE IT TO ME
  7399. local r = 255
  7400. local g = 0
  7401. local b = 0
  7402. coroutine.resume(coroutine.create(function()
  7403. while wait() do
  7404. for i = 0, 254/5 do
  7405. swait()
  7406. g = g + 5
  7407. end
  7408. for i = 0, 254/5 do
  7409. swait()
  7410. r = r - 5
  7411. end
  7412. for i = 0, 254/5 do
  7413. swait()
  7414. b = b + 5
  7415. end
  7416. for i = 0, 254/5 do
  7417. swait()
  7418. g = g - 5
  7419. end
  7420. for i = 0, 254/5 do
  7421. swait()
  7422. r = r + 5
  7423. end
  7424. for i = 0, 254/5 do
  7425. swait()
  7426. b = b - 5
  7427. end
  7428. end
  7429. end))
  7430.  
  7431.  
  7432. so = function(id,par,vol,pit)
  7433. coroutine.resume(coroutine.create(function()
  7434. local sou = Instance.new("Sound",par or workspace)
  7435. sou.Volume=vol
  7436. sou.Pitch=pit or 1
  7437. sou.SoundId=id
  7438. swait()
  7439. sou:play()
  7440. game:GetService("Debris"):AddItem(sou,6)
  7441. end))
  7442. end
  7443.  
  7444. function clerp(a,b,t)
  7445. local qa = {QuaternionFromCFrame(a)}
  7446. local qb = {QuaternionFromCFrame(b)}
  7447. local ax, ay, az = a.x, a.y, a.z
  7448. local bx, by, bz = b.x, b.y, b.z
  7449. local _t = 1-t
  7450. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  7451. end
  7452.  
  7453. function QuaternionFromCFrame(cf)
  7454. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  7455. local trace = m00 + m11 + m22
  7456. if trace > 0 then
  7457. local s = math.sqrt(1 + trace)
  7458. local recip = 0.5/s
  7459. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  7460. else
  7461. local i = 0
  7462. if m11 > m00 then
  7463. i = 1
  7464. end
  7465. if m22 > (i == 0 and m00 or m11) then
  7466. i = 2
  7467. end
  7468. if i == 0 then
  7469. local s = math.sqrt(m00-m11-m22+1)
  7470. local recip = 0.5/s
  7471. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  7472. elseif i == 1 then
  7473. local s = math.sqrt(m11-m22-m00+1)
  7474. local recip = 0.5/s
  7475. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  7476. elseif i == 2 then
  7477. local s = math.sqrt(m22-m00-m11+1)
  7478. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  7479. end
  7480. end
  7481. end
  7482.  
  7483. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  7484. local xs, ys, zs = x + x, y + y, z + z
  7485. local wx, wy, wz = w*xs, w*ys, w*zs
  7486. local xx = x*xs
  7487. local xy = x*ys
  7488. local xz = x*zs
  7489. local yy = y*ys
  7490. local yz = y*zs
  7491. local zz = z*zs
  7492. 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))
  7493. end
  7494.  
  7495. function QuaternionSlerp(a, b, t)
  7496. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  7497. local startInterp, finishInterp;
  7498. if cosTheta >= 0.0001 then
  7499. if (1 - cosTheta) > 0.0001 then
  7500. local theta = math.acos(cosTheta)
  7501. local invSinTheta = 1/math.sin(theta)
  7502. startInterp = math.sin((1-t)*theta)*invSinTheta
  7503. finishInterp = math.sin(t*theta)*invSinTheta
  7504. else
  7505. startInterp = 1-t
  7506. finishInterp = t
  7507. end
  7508. else
  7509. if (1+cosTheta) > 0.0001 then
  7510. local theta = math.acos(-cosTheta)
  7511. local invSinTheta = 1/math.sin(theta)
  7512. startInterp = math.sin((t-1)*theta)*invSinTheta
  7513. finishInterp = math.sin(t*theta)*invSinTheta
  7514. else
  7515. startInterp = t-1
  7516. finishInterp = t
  7517. end
  7518. end
  7519. 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
  7520. end
  7521.  
  7522. local function CFrameFromTopBack(at, top, back)
  7523. local right = top:Cross(back)
  7524. return CFrame.new(at.x, at.y, at.z,
  7525. right.x, top.x, back.x,
  7526. right.y, top.y, back.y,
  7527. right.z, top.z, back.z)
  7528. end
  7529.  
  7530. function Triangle(a, b, c)
  7531. local edg1 = (c-a):Dot((b-a).unit)
  7532. local edg2 = (a-b):Dot((c-b).unit)
  7533. local edg3 = (b-c):Dot((a-c).unit)
  7534. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  7535. a, b, c = a, b, c
  7536. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  7537. a, b, c = b, c, a
  7538. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  7539. a, b, c = c, a, b
  7540. else
  7541. assert(false, "unreachable")
  7542. end
  7543.  
  7544. local len1 = (c-a):Dot((b-a).unit)
  7545. local len2 = (b-a).magnitude - len1
  7546. local width = (a + (b-a).unit*len1 - c).magnitude
  7547.  
  7548. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  7549.  
  7550. local list = {}
  7551.  
  7552. if len1 > 0.01 then
  7553. local w1 = Instance.new('WedgePart', m)
  7554. game:GetService("Debris"):AddItem(w1,5)
  7555. w1.Material = "SmoothPlastic"
  7556. w1.FormFactor = 'Custom'
  7557. w1.BrickColor = BrickColor.new("Really red")
  7558. w1.Transparency = 0
  7559. w1.Reflectance = 0
  7560. w1.Material = "SmoothPlastic"
  7561. w1.CanCollide = false
  7562. local l1 = Instance.new("PointLight",w1)
  7563. l1.Color = Color3.new(170,0,0)
  7564. NoOutline(w1)
  7565. local sz = Vector3.new(0.2, width, len1)
  7566. w1.Size = sz
  7567. local sp = Instance.new("SpecialMesh",w1)
  7568. sp.MeshType = "Wedge"
  7569. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  7570. w1:BreakJoints()
  7571. w1.Anchored = true
  7572. w1.Parent = workspace
  7573. w1.Transparency = 0.7
  7574. table.insert(Effects,{w1,"Disappear",.01})
  7575. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  7576. table.insert(list,w1)
  7577. end
  7578.  
  7579. if len2 > 0.01 then
  7580. local w2 = Instance.new('WedgePart', m)
  7581. game:GetService("Debris"):AddItem(w2,5)
  7582. w2.Material = "SmoothPlastic"
  7583. w2.FormFactor = 'Custom'
  7584. w2.BrickColor = BrickColor.new("Really red")
  7585. w2.Transparency = 0
  7586. w2.Reflectance = 0
  7587. w2.Material = "SmoothPlastic"
  7588. w2.CanCollide = false
  7589. local l2 = Instance.new("PointLight",w2)
  7590. l2.Color = Color3.new(170,0,0)
  7591. NoOutline(w2)
  7592. local sz = Vector3.new(0.2, width, len2)
  7593. w2.Size = sz
  7594. local sp = Instance.new("SpecialMesh",w2)
  7595. sp.MeshType = "Wedge"
  7596. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  7597. w2:BreakJoints()
  7598. w2.Anchored = true
  7599. w2.Parent = workspace
  7600. w2.Transparency = 0.7
  7601. table.insert(Effects,{w2,"Disappear",.01})
  7602. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  7603. table.insert(list,w2)
  7604. end
  7605. return unpack(list)
  7606. end
  7607.  
  7608.  
  7609. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  7610. if hit.Parent == nil then
  7611. return
  7612. end
  7613. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  7614. for _, v in pairs(hit.Parent:children()) do
  7615. if v:IsA("Humanoid") then
  7616. h = v
  7617. end
  7618. end
  7619. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  7620. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  7621. return
  7622. end
  7623. local c = Create("ObjectValue")({
  7624. Name = "creator",
  7625. Value = game:service("Players").LocalPlayer,
  7626. Parent = h
  7627. })
  7628. game:GetService("Debris"):AddItem(c, 0.5)
  7629. if HitSound ~= nil and HitPitch ~= nil then
  7630. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  7631. end
  7632. local Damage = math.random(minim, maxim)
  7633. local blocked = false
  7634. local block = hit.Parent:findFirstChild("Block")
  7635. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  7636. blocked = true
  7637. block.Value = block.Value - 1
  7638. print(block.Value)
  7639. end
  7640. if blocked == false then
  7641. HitHealth = h.Health
  7642. h.Health = h.Health - Damage
  7643. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  7644. print("gained kill")
  7645. end
  7646. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  7647. else
  7648. h.Health = h.Health - Damage / 2
  7649. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  7650. end
  7651. if Type == "Knockdown" then
  7652. local hum = hit.Parent.Humanoid
  7653. hum.PlatformStand = true
  7654. coroutine.resume(coroutine.create(function(HHumanoid)
  7655. swait(1)
  7656. HHumanoid.PlatformStand = false
  7657. end), hum)
  7658. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  7659. local bodvol = Create("BodyVelocity")({
  7660. velocity = angle * knockback,
  7661. P = 5000,
  7662. maxForce = Vector3.new(8000, 8000, 8000),
  7663. Parent = hit
  7664. })
  7665. local rl = Create("BodyAngularVelocity")({
  7666. P = 3000,
  7667. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  7668. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  7669. Parent = hit
  7670. })
  7671. game:GetService("Debris"):AddItem(bodvol, 0.5)
  7672. game:GetService("Debris"):AddItem(rl, 0.5)
  7673. elseif Type == "Normal" then
  7674. local vp = Create("BodyVelocity")({
  7675. P = 500,
  7676. maxForce = Vector3.new(math.huge, 0, math.huge),
  7677. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  7678. })
  7679. if knockback > 0 then
  7680. vp.Parent = hit.Parent.Head
  7681. end
  7682. game:GetService("Debris"):AddItem(vp, 0.5)
  7683. elseif Type == "Up" then
  7684. local bodyVelocity = Create("BodyVelocity")({
  7685. velocity = Vector3.new(0, 20, 0),
  7686. P = 5000,
  7687. maxForce = Vector3.new(8000, 8000, 8000),
  7688. Parent = hit
  7689. })
  7690. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  7691. local bodyVelocity = Create("BodyVelocity")({
  7692. velocity = Vector3.new(0, 20, 0),
  7693. P = 5000,
  7694. maxForce = Vector3.new(8000, 8000, 8000),
  7695. Parent = hit
  7696. })
  7697. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  7698. elseif Type == "Leech" then
  7699. local hum = hit.Parent.Humanoid
  7700. if hum ~= nil then
  7701. for i = 0, 2 do
  7702. 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)
  7703. end
  7704. Humanoid.Health = Humanoid.Health + 10
  7705. end
  7706. elseif Type == "UpKnock" then
  7707. local hum = hit.Parent.Humanoid
  7708. hum.PlatformStand = true
  7709. if hum ~= nil then
  7710. hitr = true
  7711. end
  7712. coroutine.resume(coroutine.create(function(HHumanoid)
  7713. swait(5)
  7714. HHumanoid.PlatformStand = false
  7715. hitr = false
  7716. end), hum)
  7717. local bodyVelocity = Create("BodyVelocity")({
  7718. velocity = Vector3.new(0, 20, 0),
  7719. P = 5000,
  7720. maxForce = Vector3.new(8000, 8000, 8000),
  7721. Parent = hit
  7722. })
  7723. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  7724. local bodyVelocity = Create("BodyVelocity")({
  7725. velocity = Vector3.new(0, 20, 0),
  7726. P = 5000,
  7727. maxForce = Vector3.new(8000, 8000, 8000),
  7728. Parent = hit
  7729. })
  7730. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  7731. elseif Type == "Snare" then
  7732. local bp = Create("BodyPosition")({
  7733. P = 2000,
  7734. D = 100,
  7735. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  7736. position = hit.Parent.Torso.Position,
  7737. Parent = hit.Parent.Torso
  7738. })
  7739. game:GetService("Debris"):AddItem(bp, 1)
  7740. elseif Type == "Slashnare" then
  7741. 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)
  7742. for i = 1, math.random(4, 5) do
  7743. 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)
  7744. end
  7745. local bp = Create("BodyPosition")({
  7746. P = 2000,
  7747. D = 100,
  7748. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  7749. position = hit.Parent.Torso.Position,
  7750. Parent = hit.Parent.Torso
  7751. })
  7752. game:GetService("Debris"):AddItem(bp, 1)
  7753. elseif Type == "Spike" then
  7754. CreateBigIceSword(hit.Parent.Torso.CFrame)
  7755. local bp = Create("BodyPosition")({
  7756. P = 2000,
  7757. D = 100,
  7758. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  7759. position = hit.Parent.Torso.Position,
  7760. Parent = hit.Parent.Torso
  7761. })
  7762. game:GetService("Debris"):AddItem(bp, 1)
  7763. elseif Type == "Freeze" then
  7764. local BodPos = Create("BodyPosition")({
  7765. P = 50000,
  7766. D = 1000,
  7767. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  7768. position = hit.Parent.Torso.Position,
  7769. Parent = hit.Parent.Torso
  7770. })
  7771. local BodGy = Create("BodyGyro")({
  7772. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  7773. P = 20000,
  7774. Parent = hit.Parent.Torso,
  7775. cframe = hit.Parent.Torso.CFrame
  7776. })
  7777. hit.Parent.Torso.Anchored = true
  7778. coroutine.resume(coroutine.create(function(Part)
  7779. swait(1.5)
  7780. Part.Anchored = false
  7781. end), hit.Parent.Torso)
  7782. game:GetService("Debris"):AddItem(BodPos, 3)
  7783. game:GetService("Debris"):AddItem(BodGy, 3)
  7784. end
  7785. local debounce = Create("BoolValue")({
  7786. Name = "DebounceHit",
  7787. Parent = hit.Parent,
  7788. Value = true
  7789. })
  7790. game:GetService("Debris"):AddItem(debounce, Delay)
  7791. c = Instance.new("ObjectValue")
  7792. c.Name = "creator"
  7793. c.Value = Player
  7794. c.Parent = h
  7795. game:GetService("Debris"):AddItem(c, 0.5)
  7796. end
  7797. end
  7798. function ShowDamage(Pos, Text, Time, Color)
  7799. local Rate = 0.03333333333333333
  7800. local Pos = Pos or Vector3.new(0, 0, 0)
  7801. local Text = Text or ""
  7802. local Time = Time or 2
  7803. local Color = Color or Color3.new(1, 0, 1)
  7804. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  7805. EffectPart.Anchored = true
  7806. local BillboardGui = Create("BillboardGui")({
  7807. Size = UDim2.new(3, 0, 3, 0),
  7808. Adornee = EffectPart,
  7809. Parent = EffectPart
  7810. })
  7811. local TextLabel = Create("TextLabel")({
  7812. BackgroundTransparency = 1,
  7813. Size = UDim2.new(1, 0, 1, 0),
  7814. Text = Text,
  7815. TextColor3 = Color,
  7816. TextScaled = true,
  7817. Font = Enum.Font.ArialBold,
  7818. Parent = BillboardGui
  7819. })
  7820. game.Debris:AddItem(EffectPart, Time + 0.1)
  7821. EffectPart.Parent = game:GetService("Workspace")
  7822. delay(0, function()
  7823. local Frames = Time / Rate
  7824. for Frame = 1, Frames do
  7825. wait(Rate)
  7826. local Percent = Frame / Frames
  7827. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  7828. TextLabel.TextTransparency = Percent
  7829. end
  7830. if EffectPart and EffectPart.Parent then
  7831. EffectPart:Destroy()
  7832. end
  7833. end)
  7834. end
  7835. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  7836. for _, c in pairs(workspace:children()) do
  7837. local hum = c:findFirstChildOfClass("Humanoid")
  7838. if hum ~= nil then
  7839. local head = c:findFirstChild("Head")
  7840. if head ~= nil then
  7841. local targ = head.Position - Part.Position
  7842. local mag = targ.magnitude
  7843. if magni >= mag and c.Name ~= Player.Name then
  7844. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  7845. end
  7846. end
  7847. end
  7848. end
  7849. end
  7850.  
  7851. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  7852. for _, c in pairs(workspace:children()) do
  7853. local hum = c:findFirstChild("Humanoid")
  7854. if hum ~= nil then
  7855. local head = c:findFirstChild("Torso")
  7856. if head ~= nil then
  7857. local targ = head.Position - Part.Position
  7858. local mag = targ.magnitude
  7859. if magni >= mag and c.Name ~= Player.Name then
  7860. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  7861. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  7862. end
  7863. end
  7864. end
  7865. end
  7866. end
  7867.  
  7868. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  7869. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  7870. end
  7871.  
  7872. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  7873. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  7874. prt.Anchored=true
  7875. prt.CFrame=cframe
  7876. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  7877. --http://www.roblox.com/asset/?id=4770560
  7878. game:GetService("Debris"):AddItem(prt,2)
  7879. CF=prt.CFrame
  7880. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  7881. for i=0,1,0.2 do
  7882. wait()
  7883. Part.CFrame=CF*cf(0,0,-0.4)
  7884. end
  7885. for i=0,1,delay do
  7886. wait()
  7887. --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)
  7888. Mesh.Scale=Mesh.Scale
  7889. end
  7890. for i=0,1,0.1 do
  7891. wait()
  7892. Part.Transparency=i
  7893. end
  7894. Part.Parent=nil
  7895. end),prt,msh,CF)
  7896. end
  7897.  
  7898. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  7899. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  7900. prt.Anchored=true
  7901. prt.Material = "Neon"
  7902. prt.CFrame=cframe
  7903. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  7904. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  7905. game:GetService("Debris"):AddItem(prt,5)
  7906. coroutine.resume(coroutine.create(function(Part,Mesh)
  7907. for i=0,1,delay do
  7908. swait()
  7909. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  7910. Part.Transparency=i
  7911. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  7912. end
  7913. Part.Parent=nil
  7914. end),prt,msh)
  7915. end
  7916.  
  7917. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  7918. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  7919. prt.Anchored=true
  7920. prt.Material = "Neon"
  7921. prt.CFrame=cframe
  7922. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  7923. game:GetService("Debris"):AddItem(prt,5)
  7924. coroutine.resume(coroutine.create(function(Part,Mesh)
  7925. local rtype = rottype
  7926. for i=0,1,delay do
  7927. swait()
  7928. if rtype == 1 then
  7929. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  7930. elseif rtype == 2 then
  7931. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  7932. end
  7933. Part.Transparency=i
  7934. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  7935. end
  7936. Part.Parent=nil
  7937. end),prt,msh)
  7938. end
  7939.  
  7940. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  7941. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  7942. prt.Anchored=true
  7943. prt.CFrame=cframe
  7944. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  7945. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  7946. game:GetService("Debris"):AddItem(prt,5)
  7947. coroutine.resume(coroutine.create(function(Part,Mesh)
  7948. for i=0,1,delay do
  7949. wait()
  7950. Part.Transparency=i
  7951. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  7952. end
  7953. Part.Parent=nil
  7954. end),prt,msh)
  7955. end
  7956.  
  7957. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  7958. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  7959. prt.Anchored=true
  7960. prt.Material = "Neon"
  7961. prt.CFrame=cframe
  7962. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  7963. game:GetService("Debris"):AddItem(prt,5)
  7964. coroutine.resume(coroutine.create(function(Part,Mesh)
  7965. local rtype = rottype
  7966. for i=0,1,delay do
  7967. swait()
  7968. if rtype == 1 then
  7969. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  7970. elseif rtype == 2 then
  7971. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  7972. end
  7973. Part.Transparency=i
  7974. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  7975. end
  7976. Part.Parent=nil
  7977. end),prt,msh)
  7978. end
  7979.  
  7980. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  7981. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  7982. prt.Anchored=true
  7983. prt.Material = "Neon"
  7984. prt.CFrame=cframe
  7985. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  7986. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  7987. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  7988. game:GetService("Debris"):AddItem(prt,5)
  7989. coroutine.resume(coroutine.create(function(Part,Mesh)
  7990. local rtype = rottype
  7991. for i=0,1,delay do
  7992. swait()
  7993. if rtype == 1 then
  7994. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  7995. elseif rtype == 2 then
  7996. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  7997. end
  7998. dec.Transparency=i
  7999. dec2.Transparency=i
  8000. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  8001. end
  8002. Part.Parent=nil
  8003. end),prt,msh)
  8004. end
  8005.  
  8006. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  8007. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8008. prt.Anchored=true
  8009. prt.Material = "Neon"
  8010. prt.CFrame=cframe
  8011. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  8012. game:GetService("Debris"):AddItem(prt,5)
  8013. coroutine.resume(coroutine.create(function(Part,Mesh)
  8014. local rtype = rottype
  8015. for i=0,1,delay do
  8016. swait()
  8017. if rtype == 1 then
  8018. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  8019. elseif rtype == 2 then
  8020. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  8021. end
  8022. prt.Transparency=i
  8023. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  8024. end
  8025. Part.Parent=nil
  8026. end),prt,msh)
  8027. end
  8028.  
  8029. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  8030. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8031. prt.Anchored=true
  8032. prt.Material = "Neon"
  8033. prt.CFrame=cframe
  8034. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  8035. game:GetService("Debris"):AddItem(prt,5)
  8036. coroutine.resume(coroutine.create(function(Part,Mesh)
  8037. local rtype = rottype
  8038. for i=0,1,delay do
  8039. swait()
  8040. if rtype == 1 then
  8041. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  8042. elseif rtype == 2 then
  8043. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  8044. end
  8045. prt.Transparency=i
  8046. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  8047. end
  8048. Part.Parent=nil
  8049. end),prt,msh)
  8050. end
  8051.  
  8052. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  8053. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8054. prt.Anchored=true
  8055. prt.Material = "Neon"
  8056. prt.CFrame=cframe
  8057. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  8058. game:GetService("Debris"):AddItem(prt,5)
  8059. coroutine.resume(coroutine.create(function(Part,Mesh)
  8060. local rtype = rottype
  8061. for i=0,1,delay do
  8062. swait()
  8063. if rtype == 1 then
  8064. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  8065. elseif rtype == 2 then
  8066. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  8067. end
  8068. prt.Transparency=i
  8069. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  8070. end
  8071. Part.Parent=nil
  8072. end),prt,msh)
  8073. end
  8074.  
  8075. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  8076. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8077. prt.Anchored=true
  8078. prt.Material = "Neon"
  8079. prt.CFrame=cframe
  8080. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  8081. game:GetService("Debris"):AddItem(prt,5)
  8082. coroutine.resume(coroutine.create(function(Part,Mesh)
  8083. local rtype = rottype
  8084. for i=0,1,delay do
  8085. swait()
  8086. if rtype == 1 then
  8087. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  8088. elseif rtype == 2 then
  8089. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  8090. end
  8091. prt.Transparency=i
  8092. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  8093. end
  8094. Part.Parent=nil
  8095. end),prt,msh)
  8096. end
  8097.  
  8098. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  8099. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8100. prt.Anchored=false
  8101. prt.CFrame=cframe
  8102. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  8103. local wld=weld(prt,prt,Parent,cframe)
  8104. game:GetService("Debris"):AddItem(prt,5)
  8105. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  8106. for i=0,1,delay do
  8107. wait()
  8108. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  8109. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  8110. Part.Transparency=i
  8111. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  8112. end
  8113. Part.Parent=nil
  8114. end),prt,msh,wld)
  8115. end
  8116.  
  8117. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  8118. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8119. prt.Anchored=false
  8120. prt.CFrame=cframe
  8121. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  8122. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  8123. game:GetService("Debris"):AddItem(prt,5)
  8124. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  8125. for i=0,1,delay do
  8126. wait()
  8127. Weld.C0=euler(i*20,0,0)
  8128. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  8129. Part.Transparency=i
  8130. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  8131. end
  8132. Part.Parent=nil
  8133. end),prt,msh,wld)
  8134. end
  8135.  
  8136. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  8137. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8138. prt.Anchored=true
  8139. prt.CFrame=cframe
  8140. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  8141. game:GetService("Debris"):AddItem(prt,2)
  8142. coroutine.resume(coroutine.create(function(Part,Mesh)
  8143. for i=0,1,delay do
  8144. wait()
  8145. Part.CFrame=Part.CFrame
  8146. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  8147. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8148. prt2.Anchored=true
  8149. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  8150. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  8151. game:GetService("Debris"):AddItem(prt2,2)
  8152. coroutine.resume(coroutine.create(function(Part,Mesh)
  8153. for i=0,1,0.1 do
  8154. wait()
  8155. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  8156. end
  8157. Part.Parent=nil
  8158. end),prt2,msh2)
  8159. end
  8160. for i=0,1,delay*2 do
  8161. wait()
  8162. Part.CFrame=Part.CFrame
  8163. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  8164. end
  8165. Part.Parent=nil
  8166. end),prt,msh)
  8167. end
  8168.  
  8169. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  8170. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8171. prt.Anchored=true
  8172. prt.CFrame=cframe
  8173. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  8174. game:GetService("Debris"):AddItem(prt,2)
  8175. coroutine.resume(coroutine.create(function(Part,Mesh)
  8176. for i=0,1,delay do
  8177. wait()
  8178. Part.CFrame=Part.CFrame
  8179. Part.Transparency=i
  8180. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  8181. end
  8182. Part.Parent=nil
  8183. end),prt,msh)
  8184. end
  8185.  
  8186. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  8187. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8188. prt.Anchored=true
  8189. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  8190. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  8191. game:GetService("Debris"):AddItem(prt,2)
  8192. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  8193. CF=Part.CFrame
  8194. Numbb=0
  8195. randnumb=math.random()/10
  8196. rand1=math.random()/10
  8197. for i=0,1,rand1 do
  8198. wait()
  8199. CF=CF*cf(0,math.random()/2,0)
  8200. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  8201. Part.CFrame=CF*euler(Numbb,0,0)
  8202. Part.Transparency=i
  8203. Numbb=Numbb+randnumb
  8204. end
  8205. Part.Parent=nil
  8206. end),prt,CF,Numbb,randnumb)
  8207. end
  8208.  
  8209. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  8210. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8211. prt.Anchored=true
  8212. prt.CFrame=cframe
  8213. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  8214. game:GetService("Debris"):AddItem(prt,5)
  8215. coroutine.resume(coroutine.create(function(Part,Mesh)
  8216. for i=0,1,delay do
  8217. wait()
  8218. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  8219. Part.Transparency=i
  8220. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  8221. end
  8222. Part.Parent=nil
  8223. end),prt,msh)
  8224. end
  8225.  
  8226. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  8227. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8228. prt.Anchored=true
  8229. prt.CFrame=cframe
  8230. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  8231. game:GetService("Debris"):AddItem(prt,2)
  8232. coroutine.resume(coroutine.create(function(Part,Mesh)
  8233. for i=0,1,delay do
  8234. wait()
  8235. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  8236. Part.Transparency=i
  8237. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  8238. end
  8239. Part.Parent=nil
  8240. end),prt,msh)
  8241. end
  8242.  
  8243. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  8244. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8245. prt.Anchored=true
  8246. prt.CFrame=cframe*cf(x,y,z)
  8247. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  8248. game:GetService("Debris"):AddItem(prt,5)
  8249. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  8250. local num=math.random()
  8251. local num2=math.random(-3,2)+math.random()
  8252. local numm=0
  8253. for i=0,1,delay*2 do
  8254. swait()
  8255. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  8256. Part.Transparency=i
  8257. numm=numm+0.01
  8258. end
  8259. Part.Parent=nil
  8260. Mesh.Parent=nil
  8261. end),prt,msh,x,y,z)
  8262. end
  8263.  
  8264. function dmgstart(dmg,what)
  8265. hitcon = what.Touched:connect(function(hit)
  8266. local hum = hit.Parent:FindFirstChild("Humanoid")
  8267. if hum and not hum:IsDescendantOf(Character) then
  8268. hum:TakeDamage(dmg)
  8269. end
  8270. end)
  8271. end
  8272.  
  8273. function dmgstop()
  8274. hitcon:disconnect()
  8275. end
  8276.  
  8277. function Cloak()
  8278. Face.Parent=nil
  8279. cloaked=true
  8280. for _,v in pairs(Torso.Parent:children()) do
  8281. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  8282. coroutine.resume(coroutine.create(function()
  8283. for i=0,1,0.2 do
  8284. wait()
  8285. v.Transparency=i
  8286. end
  8287. v.Transparency=1
  8288. end))
  8289. end
  8290. if v.className=="Hat" then
  8291. hatp=v.Handle
  8292. coroutine.resume(coroutine.create(function(derp)
  8293. for i=0,1,0.2 do
  8294. wait()
  8295. derp.Transparency=i
  8296. end
  8297. derp.Transparency=1
  8298. end),hatp)
  8299. end
  8300. end
  8301. for _,v in pairs(m:children()) do
  8302. if v.className=="Part" then
  8303. coroutine.resume(coroutine.create(function()
  8304. for i=0,1,0.2 do
  8305. wait()
  8306. v.Transparency=i
  8307. end
  8308. v.Transparency=1
  8309. end))
  8310. end
  8311. end
  8312. end
  8313.  
  8314. function UnCloak()
  8315. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  8316. Face.Parent=Head
  8317. cloaked=false
  8318. for _,v in pairs(Torso.Parent:children()) do
  8319. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  8320. coroutine.resume(coroutine.create(function()
  8321. for i=0,1,0.1 do
  8322. wait()
  8323. v.Transparency=v.Transparency-0.1
  8324. end
  8325. v.Transparency=0
  8326. end))
  8327. end
  8328. if v.className=="Hat" then
  8329. hatp=v.Handle
  8330. coroutine.resume(coroutine.create(function(derp)
  8331. for i=0,1,0.1 do
  8332. wait()
  8333. derp.Transparency=derp.Transparency-0.1
  8334. end
  8335. derp.Transparency=0
  8336. end),hatp)
  8337. end
  8338. end
  8339. for _,v in pairs(m:children()) do
  8340. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  8341. coroutine.resume(coroutine.create(function()
  8342. for i=0,1,0.1 do
  8343. wait()
  8344. v.Transparency=v.Transparency-0.1
  8345. end
  8346. v.Transparency=0
  8347. end))
  8348. v.Transparency=0
  8349. end
  8350. end
  8351. end
  8352.  
  8353. local origcolor = BrickColor.new("Pastel light blue")
  8354. ---- This section of explosions.
  8355. function Explode(rad,par,pitch,vol,mindam,maxdam)
  8356. local expart = Instance.new("Part",char)
  8357. local expart2 = Instance.new("Part",char)
  8358. local rin = Instance.new("Part",char)
  8359. local rin2 = Instance.new("Part",char)
  8360. local partMesh = Instance.new("SpecialMesh",expart)
  8361. partMesh.MeshType = "Sphere"
  8362. local partMesh2 = Instance.new("SpecialMesh",expart2)
  8363. partMesh2.MeshType = "Sphere"
  8364. local partMesh3 = Instance.new("SpecialMesh",rin)
  8365. partMesh3.MeshType = "Brick"
  8366. local partMesh4 = Instance.new("SpecialMesh",rin2)
  8367. partMesh4.MeshType = "Brick"
  8368. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  8369. partMesh.Scale = vt(rad,rad,rad)
  8370. expart.Size = vt(1,1,1)
  8371. expart.Transparency = 0
  8372. expart.Anchored = true
  8373. expart.Material = "Neon"
  8374. expart.BrickColor = bc("White")
  8375. expart.CFrame = par.CFrame
  8376. partMesh2.Scale = vt(rad,rad,rad)
  8377. expart2.Size = vt(1.15,1.15,1.15)
  8378. expart2.Transparency = 0.5
  8379. expart2.Anchored = true
  8380. expart2.Material = "Neon"
  8381. expart2.BrickColor = par.BrickColor
  8382. expart2.CFrame = par.CFrame
  8383. rin.Size = vt(1.15,1.15,1.15)
  8384. rin.Transparency = 1
  8385. rin.Anchored = true
  8386. rin.Material = "Neon"
  8387. rin.BrickColor = par.BrickColor
  8388. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  8389. rin2.Size = vt(1.15,1.15,1.15)
  8390. rin2.Transparency = 1
  8391. rin2.Anchored = true
  8392. rin2.Material = "Neon"
  8393. rin2.BrickColor = par.BrickColor
  8394. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  8395. partMesh3.Scale = vt(0,1,0)
  8396. partMesh4.Scale = vt(0,1,0)
  8397. local dec2 = Instance.new("Decal", rin)
  8398. dec2.Face = "Top"
  8399. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  8400. dec2.Parent = rin
  8401. local dec2b = dec2:Clone()
  8402. dec2b.Face = "Bottom"
  8403. dec2b.Parent = rin
  8404.  
  8405. local dec2a = Instance.new("Decal", rin2)
  8406. dec2a.Face = "Top"
  8407. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  8408. dec2a.Parent = rin2
  8409. local dec2ab = dec2a:Clone()
  8410. dec2ab.Face = "Bottom"
  8411. dec2ab.Parent = rin2
  8412. expart.CanCollide = false
  8413. expart2.CanCollide = false
  8414. rin.CanCollide = false
  8415. rin2.CanCollide = false
  8416. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  8417. local value = 1*rad/6.5
  8418. for i = 0, 199 do
  8419. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  8420. expart.CFrame = expart.CFrame
  8421. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  8422. expart2.CFrame = expart.CFrame
  8423. value = value - 0.035*rad/30
  8424. if value < 7.5 then
  8425. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  8426. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  8427. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  8428. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  8429. end
  8430. if value < 0 then
  8431. dec2.Transparency = dec2.Transparency + 0.025
  8432. dec2a.Transparency = dec2a.Transparency + 0.025
  8433. dec2b.Transparency = dec2b.Transparency + 0.025
  8434. dec2ab.Transparency = dec2ab.Transparency + 0.025
  8435. expart.Transparency = expart.Transparency + 0.025
  8436. expart2.Transparency = expart2.Transparency + 0.025
  8437. rin.Transparency = rin.Transparency + 0.025
  8438. rin2.Transparency = rin2.Transparency + 0.025
  8439. end
  8440. swait()
  8441. end
  8442. game:GetService("Debris"):AddItem(expart, 1)
  8443. game:GetService("Debris"):AddItem(expart2, 1)
  8444. game:GetService("Debris"):AddItem(rin, 1)
  8445. game:GetService("Debris"):AddItem(rin2, 1)
  8446. end
  8447.  
  8448. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  8449. local expart = Instance.new("Part",char)
  8450. local expart2 = Instance.new("Part",char)
  8451. local partMesh = Instance.new("SpecialMesh",expart)
  8452. partMesh.MeshType = "Sphere"
  8453. local partMesh2 = Instance.new("SpecialMesh",expart2)
  8454. partMesh2.MeshType = "Sphere"
  8455. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  8456. partMesh.Scale = vt(rad,rad,rad)
  8457. expart.Size = vt(1,1,1)
  8458. expart.Transparency = 0
  8459. expart.Anchored = true
  8460. expart.Material = "Neon"
  8461. expart.BrickColor = bc("White")
  8462. expart.CFrame = par.CFrame
  8463. partMesh2.Scale = vt(rad,rad,rad)
  8464. expart2.Size = vt(1.15,1.15,1.15)
  8465. expart2.Transparency = 0.5
  8466. expart2.Anchored = true
  8467. expart2.Material = "Neon"
  8468. expart2.BrickColor = par.BrickColor
  8469. expart2.CFrame = par.CFrame
  8470. expart.CanCollide = false
  8471. expart2.CanCollide = false
  8472. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  8473. local value = 1*rad/6.5
  8474. for i = 0, 75 do
  8475. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  8476. expart.CFrame = expart.CFrame
  8477. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  8478. expart2.CFrame = expart.CFrame
  8479. value = value - 0.035*rad/5
  8480. if value < 0 then
  8481. value = 0
  8482. expart.Transparency = expart.Transparency + 0.05
  8483. expart2.Transparency = expart2.Transparency + 0.05
  8484. end
  8485. swait()
  8486. end
  8487. game:GetService("Debris"):AddItem(expart, 1)
  8488. game:GetService("Debris"):AddItem(expart2, 1)
  8489. end
  8490.  
  8491. function AreaDanger(rad,par,mindam,maxdam)
  8492. local expart = Instance.new("Part",char)
  8493. local partMesh = Instance.new("SpecialMesh",expart)
  8494. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  8495. partMesh.MeshType = "Sphere"
  8496. partMesh.Scale = vt(rad,rad,rad)
  8497. expart.Size = vt(1,1,1)
  8498. expart.Transparency = 0.5
  8499. expart.Anchored = true
  8500. expart.Material = "Neon"
  8501. expart.CanCollide = false
  8502. expart.BrickColor = par.BrickColor
  8503. expart.CFrame = par.CFrame
  8504. local value = 1*rad/5
  8505. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  8506. for i = 0, 14 do
  8507. wait()
  8508. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  8509. expart.CFrame = expart.CFrame
  8510. value = value - 0.035*rad
  8511. if value < 0 then
  8512. value = 0
  8513. end
  8514. end
  8515. wait(0.25)
  8516. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  8517. wait(0.5)
  8518. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  8519. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  8520. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  8521. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  8522. for i = 0, 14 do
  8523. wait()
  8524. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  8525. expart.CFrame = expart.CFrame
  8526. value = value - 0.035*rad/2
  8527. end
  8528. expart.Transparency = 1
  8529. game:GetService("Debris"):AddItem(expart, 5)
  8530. end
  8531.  
  8532. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  8533. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  8534. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  8535. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  8536. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  8537. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  8538. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  8539. for i = 0, 24 do
  8540. 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))
  8541. end
  8542. for i = 0, 24 do
  8543. local expart = Instance.new("Part",char)
  8544. expart.Transparency = 1
  8545. expart.Anchored = true
  8546. expart.CanCollide = false
  8547. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  8548. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  8549. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  8550. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  8551. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  8552. for i = 0, 9 do
  8553. 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))
  8554. end
  8555. game:GetService("Debris"):AddItem(expart, 2)
  8556. wait(0.1)
  8557. end
  8558. end
  8559.  
  8560. function EXterPlosion(par)
  8561. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  8562. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  8563. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  8564. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  8565. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  8566. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  8567. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  8568. for i = 0, 24 do
  8569. 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))
  8570. end
  8571. for i = 0, 24 do
  8572. 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))
  8573. end
  8574. end
  8575. ----
  8576.  
  8577.  
  8578. function ring(type,pos,scale,value)
  8579. local type = type
  8580. local rng = Instance.new("Part", char)
  8581. rng.Anchored = true
  8582. rng.BrickColor = origcolor
  8583. rng.CanCollide = false
  8584. rng.FormFactor = 3
  8585. rng.Name = "Ring"
  8586. rng.Size = Vector3.new(1, 1, 1)
  8587. rng.Transparency = 0
  8588. rng.TopSurface = 0
  8589. rng.BottomSurface = 0
  8590. rng.CFrame = pos
  8591. local rngm = Instance.new("SpecialMesh", rng)
  8592. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  8593. rngm.Scale = scale
  8594. local scaler2 = 1
  8595. if type == "Add" then
  8596. scaler2 = 1*value
  8597. elseif type == "Divide" then
  8598. scaler2 = 1/value
  8599. end
  8600. coroutine.resume(coroutine.create(function()
  8601. for i = 0,10,0.1 do
  8602. swait()
  8603. if type == "Add" then
  8604. scaler2 = scaler2 - 0.01*value
  8605. elseif type == "Divide" then
  8606. scaler2 = scaler2 - 0.01/value
  8607. end
  8608. rng.Transparency = rng.Transparency + 0.01
  8609. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  8610. end
  8611. rng:Destroy()
  8612. end))
  8613. end
  8614.  
  8615.  
  8616. function wave(type,pos,scale,value)
  8617. local type = type
  8618. local rng = Instance.new("Part", char)
  8619. rng.Anchored = true
  8620. rng.BrickColor = origcolor
  8621. rng.CanCollide = false
  8622. rng.FormFactor = 3
  8623. rng.Name = "Ring"
  8624. rng.Size = Vector3.new(1, 1, 1)
  8625. rng.Transparency = 0
  8626. rng.TopSurface = 0
  8627. rng.BottomSurface = 0
  8628. rng.CFrame = pos
  8629. local rngm = Instance.new("SpecialMesh", rng)
  8630. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  8631. rngm.Scale = scale
  8632. local scaler2 = 1
  8633. if type == "Add" then
  8634. scaler2 = 1*value
  8635. elseif type == "Divide" then
  8636. scaler2 = 1/value
  8637. end
  8638. coroutine.resume(coroutine.create(function()
  8639. for i = 0,10,0.1 do
  8640. swait()
  8641. if type == "Add" then
  8642. scaler2 = scaler2 - 0.01*value
  8643. elseif type == "Divide" then
  8644. scaler2 = scaler2 - 0.01/value
  8645. end
  8646. rng.Transparency = rng.Transparency + 0.01
  8647. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  8648. end
  8649. rng:Destroy()
  8650. end))
  8651. end
  8652.  
  8653. function wind(type,pos,scale,value,speed)
  8654. local type = type
  8655. local rng = Instance.new("Part", char)
  8656. rng.Anchored = true
  8657. rng.BrickColor = origcolor
  8658. rng.CanCollide = false
  8659. rng.FormFactor = 3
  8660. rng.Name = "Ring"
  8661. rng.Size = Vector3.new(1, 1, 1)
  8662. rng.Transparency = 0
  8663. rng.TopSurface = 0
  8664. rng.BottomSurface = 0
  8665. rng.CFrame = pos
  8666. local rngm = Instance.new("SpecialMesh", rng)
  8667. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  8668. rngm.Scale = scale
  8669. local scaler2 = 1
  8670. if type == "Add" then
  8671. scaler2 = 1*value
  8672. elseif type == "Divide" then
  8673. scaler2 = 1/value
  8674. end
  8675. coroutine.resume(coroutine.create(function()
  8676. for i = 0,10,0.1 do
  8677. swait()
  8678. if type == "Add" then
  8679. scaler2 = scaler2 - 0.01*value
  8680. elseif type == "Divide" then
  8681. scaler2 = scaler2 - 0.01/value
  8682. end
  8683. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  8684. rng.Transparency = rng.Transparency + 0.01
  8685. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  8686. end
  8687. rng:Destroy()
  8688. end))
  8689. end
  8690.  
  8691. function groundwind(type,pos,scale,value,speed)
  8692. local type = type
  8693. local rng = Instance.new("Part", char)
  8694. rng.Anchored = true
  8695. rng.BrickColor = origcolor
  8696. rng.CanCollide = false
  8697. rng.FormFactor = 3
  8698. rng.Name = "Ring"
  8699. rng.Size = Vector3.new(1, 1, 1)
  8700. rng.Transparency = 0
  8701. rng.TopSurface = 0
  8702. rng.BottomSurface = 0
  8703. rng.CFrame = pos
  8704. local rngm = Instance.new("SpecialMesh", rng)
  8705. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  8706. rngm.Scale = scale
  8707. local scaler2 = 1
  8708. if type == "Add" then
  8709. scaler2 = 1*value
  8710. elseif type == "Divide" then
  8711. scaler2 = 1/value
  8712. end
  8713. coroutine.resume(coroutine.create(function()
  8714. for i = 0,10,0.1 do
  8715. swait()
  8716. if type == "Add" then
  8717. scaler2 = scaler2 - 0.01*value
  8718. elseif type == "Divide" then
  8719. scaler2 = scaler2 - 0.01/value
  8720. end
  8721. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  8722. rng.Transparency = rng.Transparency + 0.01
  8723. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  8724. end
  8725. rng:Destroy()
  8726. end))
  8727. end
  8728.  
  8729. function CameraManager()
  8730. if TwoD and not CamInterrupt then
  8731. if Humanoid.Health > 0 then
  8732. Camera.CameraSubject = Humanoid
  8733. Camera.CameraType = "Scriptable"
  8734. Humanoid.AutoRotate = false
  8735. if Booleans.GyroUse then
  8736. Directer.MaxTorque = Vec3(0, huge, 0)
  8737. else
  8738. Directer.MaxTorque = Vec3(0, 0, 0)
  8739. end
  8740. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  8741. if Booleans.CamFollow then
  8742. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  8743. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  8744. else
  8745. CPart.Position = RootPart.Position
  8746. end
  8747. else
  8748. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  8749. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  8750. end
  8751. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  8752. else
  8753. Camera.CameraSubject = Humanoid
  8754. Camera.CameraType = "Custom"
  8755. Controller.Disabled = false
  8756. end
  8757. end
  8758. end
  8759.  
  8760. function sphere(bonuspeed,type,pos,scale,value,color)
  8761. local type = type
  8762. local rng = Instance.new("Part", char)
  8763. rng.Anchored = true
  8764. rng.BrickColor = color
  8765. rng.CanCollide = false
  8766. rng.FormFactor = 3
  8767. rng.Name = "Ring"
  8768. rng.Material = "Neon"
  8769. rng.Size = Vector3.new(1, 1, 1)
  8770. rng.Transparency = 0
  8771. rng.TopSurface = 0
  8772. rng.BottomSurface = 0
  8773. rng.CFrame = pos
  8774. local rngm = Instance.new("SpecialMesh", rng)
  8775. rngm.MeshType = "Sphere"
  8776. rngm.Scale = scale
  8777. if rainbowmode == true then
  8778. rng.Color = Color3.new(r/255,g/255,b/255)
  8779. end
  8780. local scaler2 = 1
  8781. if type == "Add" then
  8782. scaler2 = 1*value
  8783. elseif type == "Divide" then
  8784. scaler2 = 1/value
  8785. end
  8786. coroutine.resume(coroutine.create(function()
  8787. for i = 0,10/bonuspeed,0.1 do
  8788. swait()
  8789. if rainbowmode == true then
  8790. rng.Color = Color3.new(r/255,g/255,b/255)
  8791. end
  8792. if type == "Add" then
  8793. scaler2 = scaler2 - 0.01*value/bonuspeed
  8794. elseif type == "Divide" then
  8795. scaler2 = scaler2 - 0.01/value*bonuspeed
  8796. end
  8797. if chaosmode == true then
  8798. rng.BrickColor = BrickColor.random()
  8799. end
  8800. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  8801. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  8802. end
  8803. rng:Destroy()
  8804. end))
  8805. end
  8806.  
  8807. function spherew(bonuspeed,type,pos,scale,value,color)
  8808. local type = type
  8809. local rng = Instance.new("Part", workspace)
  8810. rng.Anchored = true
  8811. rng.BrickColor = color
  8812. rng.CanCollide = false
  8813. rng.FormFactor = 3
  8814. rng.Name = "Ring"
  8815. rng.Material = "Neon"
  8816. rng.Size = Vector3.new(1, 1, 1)
  8817. rng.Transparency = 0
  8818. rng.TopSurface = 0
  8819. rng.BottomSurface = 0
  8820. rng.CFrame = pos
  8821. local rngm = Instance.new("SpecialMesh", rng)
  8822. rngm.MeshType = "Sphere"
  8823. rngm.Scale = scale
  8824. if rainbowmode == true then
  8825. rng.Color = Color3.new(r/255,g/255,b/255)
  8826. end
  8827. local scaler2 = 1
  8828. if type == "Add" then
  8829. scaler2 = 1*value
  8830. elseif type == "Divide" then
  8831. scaler2 = 1/value
  8832. end
  8833. coroutine.resume(coroutine.create(function()
  8834. for i = 0,10/bonuspeed,0.1 do
  8835. swait()
  8836. if rainbowmode == true then
  8837. rng.Color = Color3.new(r/255,g/255,b/255)
  8838. end
  8839. if type == "Add" then
  8840. scaler2 = scaler2 - 0.01*value/bonuspeed
  8841. elseif type == "Divide" then
  8842. scaler2 = scaler2 - 0.01/value*bonuspeed
  8843. end
  8844. if chaosmode == true then
  8845. rng.BrickColor = BrickColor.random()
  8846. end
  8847. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  8848. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  8849. end
  8850. rng:Destroy()
  8851. end))
  8852. end
  8853.  
  8854. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  8855. local type = type
  8856. local rng = Instance.new("Part", char)
  8857. rng.Anchored = true
  8858. rng.BrickColor = color
  8859. rng.CanCollide = false
  8860. rng.FormFactor = 3
  8861. rng.Name = "Ring"
  8862. rng.Material = "Neon"
  8863. rng.Size = Vector3.new(1, 1, 1)
  8864. rng.Transparency = 0
  8865. rng.TopSurface = 0
  8866. rng.BottomSurface = 0
  8867. rng.CFrame = pos
  8868. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  8869. local rngm = Instance.new("SpecialMesh", rng)
  8870. rngm.MeshType = "Brick"
  8871. rngm.Scale = vt(x1,y1,z1)
  8872. if rainbowmode == true then
  8873. rng.Color = Color3.new(r/255,g/255,b/255)
  8874. end
  8875. local scaler2 = 1
  8876. local speeder = FastSpeed/10
  8877. if type == "Add" then
  8878. scaler2 = 1*value
  8879. elseif type == "Divide" then
  8880. scaler2 = 1/value
  8881. end
  8882. coroutine.resume(coroutine.create(function()
  8883. for i = 0,10/bonuspeed,0.1 do
  8884. swait()
  8885. if rainbowmode == true then
  8886. rng.Color = Color3.new(r/255,g/255,b/255)
  8887. end
  8888. if type == "Add" then
  8889. scaler2 = scaler2 - 0.01*value/bonuspeed
  8890. elseif type == "Divide" then
  8891. scaler2 = scaler2 - 0.01/value*bonuspeed
  8892. end
  8893. if chaosmode == true then
  8894. rng.BrickColor = BrickColor.random()
  8895. end
  8896. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  8897. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  8898. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  8899. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  8900. end
  8901. rng:Destroy()
  8902. end))
  8903. end
  8904.  
  8905. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  8906. local type = type
  8907. local rng = Instance.new("Part", char)
  8908. rng.Anchored = true
  8909. rng.BrickColor = color
  8910. rng.CanCollide = false
  8911. rng.FormFactor = 3
  8912. rng.Name = "Ring"
  8913. rng.Material = "Neon"
  8914. rng.Size = Vector3.new(1, 1, 1)
  8915. rng.Transparency = 0
  8916. rng.TopSurface = 0
  8917. rng.BottomSurface = 0
  8918. rng.CFrame = pos
  8919. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  8920. local rngm = Instance.new("SpecialMesh", rng)
  8921. rngm.MeshType = "Brick"
  8922. rngm.Scale = vt(x1,y1,z1)
  8923. if rainbowmode == true then
  8924. rng.Color = Color3.new(r/255,g/255,b/255)
  8925. end
  8926. local scaler2 = 0
  8927. local speeder = FastSpeed/10
  8928. if type == "Add" then
  8929. scaler2 = 1*value
  8930. elseif type == "Divide" then
  8931. scaler2 = 1/value
  8932. end
  8933. coroutine.resume(coroutine.create(function()
  8934. for i = 0,10/bonuspeed,0.1 do
  8935. swait()
  8936. if rainbowmode == true then
  8937. rng.Color = Color3.new(r/255,g/255,b/255)
  8938. end
  8939. if type == "Add" then
  8940. scaler2 = scaler2 - 0.01*value/bonuspeed
  8941. elseif type == "Divide" then
  8942. scaler2 = scaler2 - 0.01/value*bonuspeed
  8943. end
  8944. if chaosmode == true then
  8945. rng.BrickColor = BrickColor.random()
  8946. end
  8947. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  8948. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  8949. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  8950. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  8951. end
  8952. rng:Destroy()
  8953. end))
  8954. end
  8955.  
  8956. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  8957. local type = type
  8958. local rng = Instance.new("Part", workspace)
  8959. rng.Anchored = true
  8960. rng.BrickColor = color
  8961. rng.CanCollide = false
  8962. rng.FormFactor = 3
  8963. rng.Name = "Ring"
  8964. rng.Material = "Neon"
  8965. rng.Size = Vector3.new(1, 1, 1)
  8966. rng.Transparency = 0
  8967. rng.TopSurface = 0
  8968. rng.BottomSurface = 0
  8969. rng.CFrame = pos
  8970. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  8971. local rngm = Instance.new("SpecialMesh", rng)
  8972. rngm.MeshType = "Sphere"
  8973. rngm.Scale = vt(x1,y1,z1)
  8974. if rainbowmode == true then
  8975. rng.Color = Color3.new(r/255,g/255,b/255)
  8976. end
  8977. local scaler2 = 1
  8978. local speeder = FastSpeed
  8979. if type == "Add" then
  8980. scaler2 = 1*value
  8981. elseif type == "Divide" then
  8982. scaler2 = 1/value
  8983. end
  8984. coroutine.resume(coroutine.create(function()
  8985. for i = 0,10/bonuspeed,0.1 do
  8986. swait()
  8987. if rainbowmode == true then
  8988. rng.Color = Color3.new(r/255,g/255,b/255)
  8989. end
  8990. if type == "Add" then
  8991. scaler2 = scaler2 - 0.01*value/bonuspeed
  8992. elseif type == "Divide" then
  8993. scaler2 = scaler2 - 0.01/value*bonuspeed
  8994. end
  8995. if chaosmode == true then
  8996. rng.BrickColor = BrickColor.random()
  8997. end
  8998. speeder = speeder - 0.01*FastSpeed*bonuspeed
  8999. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  9000. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  9001. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  9002. end
  9003. rng:Destroy()
  9004. end))
  9005. end
  9006. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  9007. local type = type
  9008. local rng = Instance.new("Part", char)
  9009. rng.Anchored = true
  9010. rng.BrickColor = color
  9011. rng.CanCollide = false
  9012. rng.FormFactor = 3
  9013. rng.Name = "Ring"
  9014. rng.Material = "Neon"
  9015. rng.Size = Vector3.new(1, 1, 1)
  9016. rng.Transparency = 0
  9017. rng.TopSurface = 0
  9018. rng.BottomSurface = 0
  9019. rng.CFrame = pos
  9020. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  9021. local rngm = Instance.new("SpecialMesh", rng)
  9022. rngm.MeshType = "Sphere"
  9023. rngm.Scale = vt(x1,y1,z1)
  9024. if rainbowmode == true then
  9025. rng.Color = Color3.new(r/255,g/255,b/255)
  9026. end
  9027. local scaler2 = 1
  9028. local speeder = FastSpeed
  9029. if type == "Add" then
  9030. scaler2 = 1*value
  9031. elseif type == "Divide" then
  9032. scaler2 = 1/value
  9033. end
  9034. coroutine.resume(coroutine.create(function()
  9035. for i = 0,10/bonuspeed,0.1 do
  9036. swait()
  9037. if rainbowmode == true then
  9038. rng.Color = Color3.new(r/255,g/255,b/255)
  9039. end
  9040. if type == "Add" then
  9041. scaler2 = scaler2 - 0.01*value/bonuspeed
  9042. elseif type == "Divide" then
  9043. scaler2 = scaler2 - 0.01/value*bonuspeed
  9044. end
  9045. if chaosmode == true then
  9046. rng.BrickColor = BrickColor.random()
  9047. end
  9048. speeder = speeder - 0.01*FastSpeed*bonuspeed
  9049. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  9050. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  9051. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  9052. end
  9053. rng:Destroy()
  9054. end))
  9055. end
  9056.  
  9057.  
  9058. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  9059. local type = type
  9060. local rng = Instance.new("Part", char)
  9061. rng.Anchored = true
  9062. rng.BrickColor = color
  9063. rng.CanCollide = false
  9064. rng.FormFactor = 3
  9065. rng.Name = "Ring"
  9066. rng.Material = "Neon"
  9067. rng.Size = Vector3.new(1, 1, 1)
  9068. rng.Transparency = 1
  9069. rng.TopSurface = 0
  9070. rng.BottomSurface = 0
  9071. rng.CFrame = pos
  9072. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  9073. local rngm = Instance.new("SpecialMesh", rng)
  9074. rngm.MeshType = "Sphere"
  9075. rngm.Scale = vt(x1,y1,z1)
  9076. if rainbowmode == true then
  9077. rng.Color = Color3.new(r/255,g/255,b/255)
  9078. end
  9079. local scaler2 = 1
  9080. local speeder = FastSpeed
  9081. if type == "Add" then
  9082. scaler2 = 1*value
  9083. elseif type == "Divide" then
  9084. scaler2 = 1/value
  9085. end
  9086. coroutine.resume(coroutine.create(function()
  9087. for i = 0,10/bonuspeed,0.1 do
  9088. swait()
  9089. if rainbowmode == true then
  9090. rng.Color = Color3.new(r/255,g/255,b/255)
  9091. end
  9092. if type == "Add" then
  9093. scaler2 = scaler2 - 0.01*value/bonuspeed
  9094. elseif type == "Divide" then
  9095. scaler2 = scaler2 - 0.01/value*bonuspeed
  9096. end
  9097. if chaosmode == true then
  9098. rng.BrickColor = BrickColor.random()
  9099. end
  9100. speeder = speeder - 0.01*FastSpeed*bonuspeed
  9101. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  9102. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  9103. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  9104. end
  9105. rng:Destroy()
  9106. end))
  9107. end
  9108.  
  9109. function dmg(dude)
  9110. if dude.Name ~= Character then
  9111. local bgf = Instance.new("BodyGyro",dude.Head)
  9112. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  9113. local val = Instance.new("BoolValue",dude)
  9114. val.Name = "IsHit"
  9115. local ds = coroutine.wrap(function()
  9116. dude:WaitForChild("Head"):BreakJoints()
  9117. wait(0.5)
  9118. targetted = nil
  9119. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  9120. coroutine.resume(coroutine.create(function()
  9121. for i, v in pairs(dude:GetChildren()) do
  9122. if v:IsA("Accessory") then
  9123. v:Destroy()
  9124. end
  9125. if v:IsA("Humanoid") then
  9126. v:Destroy()
  9127. end
  9128. if v:IsA("CharacterMesh") then
  9129. v:Destroy()
  9130. end
  9131. if v:IsA("Model") then
  9132. v:Destroy()
  9133. end
  9134. if v:IsA("Part") or v:IsA("MeshPart") then
  9135. for x, o in pairs(v:GetChildren()) do
  9136. if o:IsA("Decal") then
  9137. o:Destroy()
  9138. end
  9139. end
  9140. coroutine.resume(coroutine.create(function()
  9141. v.Material = "Neon"
  9142. v.CanCollide = false
  9143. local bld = Instance.new("ParticleEmitter",v)
  9144. bld.LightEmission = 1
  9145. bld.Texture = "rbxassetid://284205403"
  9146. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  9147. bld.Rate = 50
  9148. bld.Lifetime = NumberRange.new(1)
  9149. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  9150. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  9151. bld.Speed = NumberRange.new(0,0)
  9152. bld.VelocitySpread = 50000
  9153. bld.Rotation = NumberRange.new(-500,500)
  9154. bld.RotSpeed = NumberRange.new(-500,500)
  9155. local sbs = Instance.new("BodyPosition", v)
  9156. sbs.P = 3000
  9157. sbs.D = 1000
  9158. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  9159. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  9160. v.Color = Color3.new(1,1,1)
  9161. coroutine.resume(coroutine.create(function()
  9162. for i = 0, 49 do
  9163. swait(1)
  9164. v.Transparency = v.Transparency + 0.02
  9165. end
  9166. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  9167. bld.Speed = NumberRange.new(1,5)
  9168. bld.Acceleration = vt(0,10,0)
  9169. wait(0.5)
  9170. bld.Enabled = false
  9171. wait(3)
  9172. v:Destroy()
  9173. dude:Destroy()
  9174. end))
  9175. end))
  9176. end
  9177. end
  9178. end))
  9179. end)
  9180. ds()
  9181. end
  9182. end
  9183.  
  9184.  
  9185. function FindNearestHead(Position, Distance, SinglePlayer)
  9186. if SinglePlayer then
  9187. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  9188. end
  9189. local List = {}
  9190. for i, v in pairs(workspace:GetChildren()) do
  9191. if v:IsA("Model") then
  9192. if v:findFirstChild("Head") then
  9193. if v ~= Character then
  9194. if (v.Head.Position - Position).magnitude <= Distance then
  9195. table.insert(List, v)
  9196. end
  9197. end
  9198. end
  9199. end
  9200. end
  9201. return List
  9202. end
  9203.  
  9204. function FaceMouse()
  9205. Cam = workspace.CurrentCamera
  9206. return {
  9207. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  9208. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  9209. }
  9210. end
  9211.  
  9212. function FaceMouse2()
  9213. Cam = workspace.CurrentCamera
  9214. return {
  9215. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  9216. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  9217. }
  9218. end
  9219.  
  9220. local ModeOfGlitch = 1
  9221. -- Functions are ready.
  9222. local storehumanoidWS = 16
  9223.  
  9224. function Blink()
  9225. for i = 0, 14 do
  9226. 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)
  9227. end
  9228. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  9229. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  9230. CameraEnshaking(2,10)
  9231. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  9232. if v:FindFirstChild('Head') then
  9233. end
  9234. end
  9235. for i = 0, 14 do
  9236. 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)
  9237. end
  9238. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  9239. end
  9240.  
  9241. function ExtinctiveHeartbreak()
  9242. local targetted = nil
  9243. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9244. targetted = mouse.Target.Parent
  9245. end
  9246. if targetted ~= nil then
  9247. attack = true
  9248. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  9249. for i = 0, 9 do
  9250. 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)
  9251. end
  9252. for i = 0, 24 do
  9253. 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)
  9254. end
  9255. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  9256. local originalpos = root.CFrame
  9257. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  9258. for i = 0, 9 do
  9259. 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)
  9260. end
  9261. for i = 0, 24 do
  9262. 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)
  9263. end
  9264. hum.WalkSpeed = 0
  9265. targetted.Head.Anchored = true
  9266. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  9267. for i = 0,2,0.1 do
  9268. swait()
  9269. 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)
  9270. 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)
  9271. 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)
  9272. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  9273. 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)
  9274. 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)
  9275. end
  9276. coroutine.resume(coroutine.create(function()
  9277. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  9278. bld.LightEmission = 0.1
  9279. bld.Texture = "rbxassetid://284205403"
  9280. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  9281. bld.Rate = 500
  9282. bld.Lifetime = NumberRange.new(1)
  9283. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  9284. bld.Acceleration = vt(0,-25,0)
  9285. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  9286. bld.Speed = NumberRange.new(10,50)
  9287. bld.EmissionDirection = "Front"
  9288. bld.VelocitySpread = 25
  9289. bld.Rotation = NumberRange.new(-500,500)
  9290. bld.RotSpeed = NumberRange.new(-500,500)
  9291. end))
  9292. coroutine.resume(coroutine.create(function()
  9293. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  9294. bld.LightEmission = 0.1
  9295. bld.Texture = "rbxassetid://284205403"
  9296. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  9297. bld.Rate = 500
  9298. bld.Lifetime = NumberRange.new(1)
  9299. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  9300. bld.Acceleration = vt(0,-25,0)
  9301. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  9302. bld.Speed = NumberRange.new(10,50)
  9303. bld.EmissionDirection = "Front"
  9304. bld.VelocitySpread = 25
  9305. bld.Rotation = NumberRange.new(-500,500)
  9306. bld.RotSpeed = NumberRange.new(-500,500)
  9307. end))
  9308. CameraEnshaking(5,5)
  9309. game:GetService("Debris"):AddItem(bld,3)
  9310. dmg(targetted)
  9311. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  9312. for i = 0,1,0.1 do
  9313. swait()
  9314. 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)
  9315. 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)
  9316. 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)
  9317. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  9318. 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)
  9319. 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)
  9320. end
  9321. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  9322. for i = 0, 9 do
  9323. 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)
  9324. end
  9325. for i = 0, 24 do
  9326. 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)
  9327. end
  9328. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  9329. root.CFrame = originalpos
  9330. for i = 0, 9 do
  9331. 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)
  9332. end
  9333. for i = 0, 24 do
  9334. 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)
  9335. end
  9336. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  9337. bld.Enabled = false
  9338. attack = false
  9339. hum.WalkSpeed = storehumanoidWS
  9340. end
  9341. end
  9342. function MeteorStrike()
  9343. attack = true
  9344. for i = 0, 2, 0.1 do
  9345. swait()
  9346. 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)
  9347. 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)
  9348. 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)
  9349. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  9350. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  9351. 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)
  9352. end
  9353. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  9354. for i=1,20 do
  9355. 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)
  9356. swait()
  9357. end
  9358. swait(30)
  9359. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  9360. for i =1,20 do
  9361. 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)
  9362. 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)
  9363. end
  9364. for i = 0,2,0.1 do
  9365. swait()
  9366. 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)
  9367. 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)
  9368. 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)
  9369. 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)
  9370. 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)
  9371. 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)
  9372. end
  9373. for i =1,20 do
  9374. 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)
  9375. end
  9376. text.TextTransparency = 1
  9377. text.TextStrokeTransparency = 1
  9378. tr2.Enabled = false
  9379. tr1.Enabled = false
  9380. tr3.Enabled = false
  9381. tl1.Enabled = false
  9382. tl2.Enabled = false
  9383. tl3.Enabled = false
  9384. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  9385. eff = false
  9386. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  9387. local invtab = {}
  9388. local function search(targ)
  9389. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  9390. table.insert(invtab,targ)
  9391. end
  9392. for i,v in pairs(targ:GetChildren()) do
  9393. search(v)
  9394. end
  9395. end
  9396. search(plr.Character)
  9397. local frm = 0
  9398. local frmcon
  9399. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  9400. if frm < 10 then
  9401. for i,v in pairs(invtab) do
  9402. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  9403. v.Transparency = v.Transparency + 0.1
  9404. end
  9405. end
  9406. frm = frm + 1
  9407. else
  9408. frmcon:disconnect()
  9409. end
  9410. end)
  9411. swait(200)
  9412. text.TextTransparency = 0
  9413. text.TextStrokeTransparency = 0
  9414. tr2.Enabled = false
  9415. tr1.Enabled = false
  9416. tr3.Enabled = false
  9417. tl1.Enabled = false
  9418. tl2.Enabled = false
  9419. tl3.Enabled = false
  9420. eff = true
  9421. for i =1,20 do
  9422. 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)
  9423. end
  9424. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  9425. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  9426. local invtab = {}
  9427. local function search(targ)
  9428. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  9429. table.insert(invtab,targ)
  9430. end
  9431. for i,v in pairs(targ:GetChildren()) do
  9432. search(v)
  9433. end
  9434. end
  9435. search(plr.Character)
  9436. local frm = 0
  9437. local frmcon
  9438. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  9439. if frm < 10 then
  9440. for i,v in pairs(invtab) do
  9441. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  9442. v.Transparency = v.Transparency - 0.1
  9443. end
  9444. end
  9445. frm = frm + 1
  9446. else
  9447. frmcon:disconnect()
  9448. end
  9449. end)
  9450. swait(5)
  9451. for i = 0, 2, 0.1 do
  9452. swait()
  9453. 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)
  9454. 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)
  9455. 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)
  9456. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  9457. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  9458. 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)
  9459. end
  9460. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  9461. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  9462. MagniDamage(root, 30, 65,90, 0, "Normal")
  9463. for i =1,20 do
  9464. 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)
  9465. end
  9466. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  9467. for i =1,20 do
  9468. 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)
  9469. end
  9470. swait(20)
  9471. attack = false
  9472. tr2.Enabled = true
  9473. tr1.Enabled = true
  9474. tr3.Enabled = true
  9475. tl1.Enabled = true
  9476. tl2.Enabled = true
  9477. tl3.Enabled = true
  9478. end
  9479. function FinalCalam()
  9480. attack = true
  9481. hum.WalkSpeed = 0
  9482. local orb = Instance.new("Part", char)
  9483. orb.Anchored = true
  9484. orb.BrickColor = MAINRUINCOLOR
  9485. orb.CanCollide = false
  9486. orb.FormFactor = 3
  9487. orb.Name = "Ring"
  9488. orb.Material = "Neon"
  9489. orb.Size = Vector3.new(1, 1, 1)
  9490. orb.Transparency = 0
  9491. orb.TopSurface = 0
  9492. orb.BottomSurface = 0
  9493. local orbm = Instance.new("SpecialMesh", orb)
  9494. orbm.MeshType = "Sphere"
  9495. orbm.Name = "SizeMesh"
  9496. orbm.Scale = vt(0,0,0)
  9497. local scaled = 0.1
  9498. local posid = 0
  9499. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  9500. for i = 0, 5, 0.1 do
  9501. swait()
  9502. scaled = scaled - 0.001
  9503. posid = posid - scaled
  9504. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  9505. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  9506. 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)
  9507. 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)
  9508. 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)
  9509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  9510. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  9511. 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)
  9512. end
  9513. swait(60)
  9514. for i =1,3 do
  9515. swait(30)
  9516. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  9517. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  9518. end
  9519. swait(30)
  9520. for i = 0, 2, 0.1 do
  9521. swait()
  9522. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  9523. 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)
  9524. 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)
  9525. 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)
  9526. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  9527. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  9528. 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)
  9529. end
  9530. swait(60)
  9531. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  9532. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  9533. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  9534. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  9535. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  9536. if v:FindFirstChild('Head') then
  9537. dmg(v)
  9538. end
  9539. end
  9540. for i = 1,20 do
  9541. 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)
  9542. for i = 0, 10 do
  9543. 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)
  9544. end
  9545. end
  9546. orb:Remove()
  9547. attack = false
  9548. hum.WalkSpeed = storehumanoidWS
  9549. end
  9550. function PureBomb()
  9551. attack = true
  9552.  
  9553. local orb = Instance.new("Part", char)
  9554. orb.Anchored = true
  9555. orb.BrickColor = BrickColor.new("Toothpaste")
  9556. orb.CanCollide = false
  9557. orb.FormFactor = 3
  9558. orb.Name = "Ring"
  9559. orb.Material = "Neon"
  9560. orb.Size = Vector3.new(1, 1, 1)
  9561. orb.Transparency = 0
  9562. orb.TopSurface = 0
  9563. orb.BottomSurface = 0
  9564. local orbm = Instance.new("SpecialMesh", orb)
  9565. orbm.MeshType = "Sphere"
  9566. orbm.Name = "SizeMesh"
  9567. orbm.Scale = vt(0,0,0)
  9568. local scaled = 0.1
  9569. local posid = 0
  9570. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  9571. for i = 0, 5, 0.1 do
  9572. swait()
  9573. scaled = scaled - 0.001
  9574. posid = posid - scaled
  9575. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  9576. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  9577. 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)
  9578. 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)
  9579. 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)
  9580. 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)
  9581. 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)
  9582. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  9583. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  9584. 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)
  9585. end
  9586. for i = 0, 2, 0.1 do
  9587. swait()
  9588. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  9589. 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)
  9590. 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)
  9591. 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)
  9592. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  9593. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  9594. 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)
  9595. end
  9596. coroutine.resume(coroutine.create(function()
  9597. orb.Anchored = false
  9598. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  9599. local a = Instance.new("Part",workspace)
  9600. a.Name = "Direction"
  9601. a.Anchored = true
  9602. a.BrickColor = bc("Bright red")
  9603. a.Material = "Neon"
  9604. a.Transparency = 1
  9605. a.CanCollide = false
  9606. local ray = Ray.new(
  9607. orb.CFrame.p, -- origin
  9608. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  9609. )
  9610. local ignore = orb
  9611. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  9612. a.BottomSurface = 10
  9613. a.TopSurface = 10
  9614. local distance = (orb.CFrame.p - position).magnitude
  9615. a.Size = Vector3.new(0.1, 0.1, 0.1)
  9616. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  9617. orb.CFrame = a.CFrame
  9618. a:Destroy()
  9619. local bv = Instance.new("BodyVelocity")
  9620. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9621. bv.velocity = orb.CFrame.lookVector*125
  9622. bv.Parent = orb
  9623. local hitted = false
  9624. game:GetService("Debris"):AddItem(orb, 15)
  9625. wait()
  9626. local hit =orb.Touched:connect(function(hit)
  9627. if hitted == false then
  9628. hitted = true
  9629. CameraEnshaking(10,2.5)
  9630. MagniDamage(orb, 65, 65,90, 0, "Normal")
  9631. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  9632. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  9633. for i = 0, 49 do
  9634. 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)
  9635. end
  9636. for i = 0, 9 do
  9637. 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)
  9638. 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)
  9639. end
  9640. orb.Anchored = true
  9641. orb.Transparency = 1
  9642. wait(8)
  9643. orb:Destroy()
  9644. end
  9645. end)
  9646. end))
  9647. for i = 0, 1, 0.1 do
  9648. swait()
  9649. 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)
  9650. 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)
  9651. 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)
  9652. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  9653. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  9654. 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)
  9655. end
  9656. attack = false
  9657. end
  9658.  
  9659. function ChaosGroundStrike()
  9660. attack = true
  9661. for i = 0, 2, 0.1 do
  9662. swait()
  9663. 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)
  9664. 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)
  9665. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  9666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  9667. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  9668. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  9669. end
  9670. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  9671. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  9672. CameraEnshaking(4,12)
  9673. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  9674. if v:FindFirstChild('Head') then
  9675. dmg(v)
  9676. end
  9677. end
  9678. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  9679. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  9680. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  9681. for i = 0, 2, 0.1 do
  9682. swait()
  9683. 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)
  9684. 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)
  9685. 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)
  9686. 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)
  9687. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  9688. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  9689. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  9690. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  9691. end
  9692. attack = false
  9693. end
  9694.  
  9695. function Starfall()
  9696. attack = true
  9697. hum.WalkSpeed = 0
  9698. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  9699. for i = 0, 5, 0.1 do
  9700. swait()
  9701. 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)
  9702. 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)
  9703. 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)
  9704. 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)
  9705. 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)
  9706. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  9707. 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)
  9708. 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)
  9709. end
  9710. local Overed = false
  9711. CameraEnshaking(2,20)
  9712. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  9713. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  9714. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  9715. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  9716. local orb = Instance.new("Part", char)
  9717. orb.Anchored = true
  9718. orb.BrickColor = BrickColor.new("Toothpaste")
  9719. orb.CanCollide = false
  9720. orb.FormFactor = 3
  9721. orb.Name = "Remenant"
  9722. orb.Material = "Neon"
  9723. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  9724. orb.Size = Vector3.new(1, 1, 1)
  9725. orb.Transparency = 1
  9726. orb.TopSurface = 0
  9727. orb.BottomSurface = 0
  9728. hum.WalkSpeed = storehumanoidWS
  9729. coroutine.resume(coroutine.create(function()
  9730. for i = 0, 9 do
  9731. swait(10)
  9732. local lb = Instance.new("Part")
  9733. lb.Color = MAINRUINCOLOR.Color
  9734. lb.CanCollide = false
  9735. lb.Material = "Neon"
  9736. lb.Anchored = true
  9737. lb.TopSurface = 0
  9738. lb.BottomSurface = 0
  9739. lb.Transparency = 0
  9740. lb.Size = vt(1,1,1)
  9741. 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)))
  9742. lb.Anchored = false
  9743. lb.Parent = char
  9744. local thingery = Instance.new("SpecialMesh",lb)
  9745. thingery.MeshType = "Sphere"
  9746. thingery.Scale = vt(20,20,20)
  9747. game:GetService("Debris"):AddItem(lb, 10)
  9748. local bv = Instance.new("BodyVelocity")
  9749. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9750. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  9751. bv.Parent = lb
  9752. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  9753. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  9754. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  9755. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  9756. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  9757. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  9758. local hitted = false
  9759. coroutine.resume(coroutine.create(function()
  9760. while true do
  9761. swait(1)
  9762. if lb.Parent ~= nil and hitted == false then
  9763. 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)
  9764. elseif lb.Parent == nil then
  9765. break
  9766. end
  9767. end
  9768. end))
  9769.  
  9770. game:GetService("Debris"):AddItem(a, 0.1)
  9771.  
  9772. coroutine.resume(coroutine.create(function()
  9773. swait(1)
  9774. lb.Touched:connect(function(hit)
  9775. if hitted == false then
  9776. hitted = true
  9777. lb.Transparency = 1
  9778. lb.Anchored = true
  9779. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  9780. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  9781. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  9782. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  9783. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  9784. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  9785. MagniDamage(lb, 45, 45,85, 0, "Normal")
  9786. CameraEnshaking(1,5)
  9787. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  9788. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  9789. for i = 0, 9 do
  9790. 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)
  9791. end
  9792. for i = 0, 49 do
  9793. swait()
  9794. MagniDamage(lb, 30, 2,4, 0, "Normal")
  9795. 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)
  9796. end
  9797. end
  9798. end)
  9799. end))
  9800. end
  9801. Overed = true
  9802. orb:Destroy()
  9803. end))
  9804.  
  9805. attack = false
  9806. end
  9807.  
  9808. function StarfallEX()
  9809. attack = true
  9810. hum.WalkSpeed = 0
  9811. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  9812. for i = 0, 5, 0.1 do
  9813. swait()
  9814. 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)
  9815. 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)
  9816. 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)
  9817. 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)
  9818. 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)
  9819. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  9820. 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)
  9821. 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)
  9822. end
  9823. local Overed = false
  9824. CameraEnshaking(2,20)
  9825. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  9826. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  9827. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  9828. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  9829. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  9830. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  9831. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  9832. local orb = Instance.new("Part", char)
  9833. orb.Anchored = true
  9834. orb.BrickColor = BrickColor.new("Toothpaste")
  9835. orb.CanCollide = false
  9836. orb.FormFactor = 3
  9837. orb.Name = "Remenant"
  9838. orb.Material = "Neon"
  9839. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  9840. orb.Size = Vector3.new(1, 1, 1)
  9841. orb.Transparency = 1
  9842. orb.TopSurface = 0
  9843. orb.BottomSurface = 0
  9844. hum.WalkSpeed = storehumanoidWS
  9845. coroutine.resume(coroutine.create(function()
  9846. for i = 0, 9 do
  9847. swait(10)
  9848. local lb = Instance.new("Part")
  9849. lb.Color = MAINRUINCOLOR.Color
  9850. lb.CanCollide = false
  9851. lb.Material = "Neon"
  9852. lb.Anchored = true
  9853. lb.TopSurface = 0
  9854. lb.BottomSurface = 0
  9855. lb.Transparency = 0
  9856. lb.Size = vt(1,1,1)
  9857. 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)))
  9858. lb.Anchored = false
  9859. lb.Parent = char
  9860. local thingery = Instance.new("SpecialMesh",lb)
  9861. thingery.MeshType = "Sphere"
  9862. thingery.Scale = vt(20,20,20)
  9863. game:GetService("Debris"):AddItem(lb, 10)
  9864. local bv = Instance.new("BodyVelocity")
  9865. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9866. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  9867. bv.Parent = lb
  9868. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  9869. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  9870. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  9871. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  9872. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  9873. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  9874. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  9875. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  9876. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  9877. local hitted = false
  9878. coroutine.resume(coroutine.create(function()
  9879. while true do
  9880. swait(1)
  9881. if lb.Parent ~= nil and hitted == false then
  9882. 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)
  9883. 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)
  9884. elseif lb.Parent == nil then
  9885. break
  9886. end
  9887. end
  9888. end))
  9889.  
  9890. game:GetService("Debris"):AddItem(a, 0.1)
  9891.  
  9892. coroutine.resume(coroutine.create(function()
  9893. swait(1)
  9894. lb.Touched:connect(function(hit)
  9895. if hitted == false then
  9896. hitted = true
  9897. lb.Transparency = 1
  9898. lb.Anchored = true
  9899. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  9900. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  9901. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  9902. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  9903. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  9904. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  9905. MagniDamage(lb, 45, 45,85, 0, "Normal")
  9906. CameraEnshaking(10,5)
  9907. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  9908. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  9909. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  9910. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  9911. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  9912. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  9913. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  9914. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  9915. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  9916. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  9917. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  9918. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  9919. for i = 0, 9 do
  9920. 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)
  9921. 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)
  9922. 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)
  9923. 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)
  9924. 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)
  9925. 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)
  9926. end
  9927. for i = 0, 49 do
  9928. swait()
  9929. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  9930. 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)
  9931. 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)
  9932. 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)
  9933. end
  9934. end
  9935. end)
  9936. end))
  9937. end
  9938. Overed = true
  9939. orb:Destroy()
  9940. end))
  9941.  
  9942. attack = false
  9943. end
  9944.  
  9945. function StarDivision()
  9946. attack = true
  9947. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  9948. for i = 0, 2, 0.1 do
  9949. swait()
  9950. 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)
  9951. 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)
  9952. 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)
  9953. 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)
  9954. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  9955. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  9956. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  9957. end
  9958. local orb = Instance.new("Part", char)
  9959. orb.BrickColor = MAINRUINCOLOR
  9960. orb.CanCollide = false
  9961. orb.FormFactor = 3
  9962. orb.Name = "Ring"
  9963. orb.Material = "Neon"
  9964. orb.Size = Vector3.new(1, 1, 1)
  9965. orb.Transparency = 0
  9966. orb.TopSurface = 0
  9967. orb.BottomSurface = 0
  9968. local orbm = Instance.new("SpecialMesh", orb)
  9969. orbm.MeshType = "Sphere"
  9970. orbm.Name = "SizeMesh"
  9971. orbm.Scale = vt(2,2,2)
  9972. local a = Instance.new("Part",workspace)
  9973. a.Name = "Direction"
  9974. a.Anchored = true
  9975. a.BrickColor = bc("Bright red")
  9976. a.Material = "Neon"
  9977. a.Transparency = 1
  9978. a.CanCollide = false
  9979. local ray = Ray.new(
  9980. sorb.CFrame.p, -- origin
  9981. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  9982. )
  9983. local ignore = sorb
  9984. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  9985. a.BottomSurface = 10
  9986. a.TopSurface = 10
  9987. local distance = (sorb.CFrame.p - position).magnitude
  9988. a.Size = Vector3.new(0.1, 0.1, 0.1)
  9989. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  9990. orb.CFrame = a.CFrame
  9991. a:Destroy()
  9992. local bv = Instance.new("BodyVelocity")
  9993. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9994. bv.velocity = orb.CFrame.lookVector*100
  9995. bv.Parent = orb
  9996. local hitted = false
  9997. game:GetService("Debris"):AddItem(orb, 10)
  9998. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  9999. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  10000. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  10001. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  10002. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  10003. coroutine.resume(coroutine.create(function()
  10004. while true do
  10005. swait(1)
  10006. if orb.Parent ~= nil and hitted == false then
  10007. 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)
  10008. elseif orb.Parent == nil then
  10009. break
  10010. end
  10011. end
  10012. end))
  10013. coroutine.resume(coroutine.create(function()
  10014. swait(1)
  10015. orb.Touched:connect(function(hit)
  10016. if hitted == false then
  10017. hitted = true
  10018. game:GetService("Debris"):AddItem(orb, 5)
  10019. orb.Transparency = 1
  10020. orb.Anchored = true
  10021. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  10022. elocacenter.Anchored = true
  10023. elocacenter.CFrame = orb.CFrame
  10024. elocacenter.Orientation = vt(0,0,0)
  10025. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  10026. eloca1.Anchored = true
  10027. eloca1.CFrame = elocacenter.CFrame
  10028. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  10029. eloca2.Anchored = true
  10030. eloca2.CFrame = elocacenter.CFrame
  10031. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  10032. eloca3.Anchored = true
  10033. eloca3.CFrame = elocacenter.CFrame
  10034. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  10035. eloca4.Anchored = true
  10036. eloca4.CFrame = elocacenter.CFrame
  10037. local lookavec = 0
  10038. local speeds = 0
  10039. CameraEnshaking(1,1)
  10040. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  10041. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  10042. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  10043. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  10044. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  10045. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  10046. for i = 0, 99 do
  10047. swait()
  10048. lookavec = lookavec + 1
  10049. speeds = speeds + 0.1
  10050. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  10051. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  10052. 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)
  10053.  
  10054. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  10055. 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)
  10056.  
  10057. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  10058. 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)
  10059.  
  10060. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  10061. 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)
  10062. end
  10063.  
  10064. for i = 0, 149 do
  10065. swait()
  10066. speeds = speeds + 0.1
  10067. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  10068. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  10069. 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)
  10070.  
  10071. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  10072. 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)
  10073.  
  10074. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  10075. 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)
  10076.  
  10077. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  10078. 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)
  10079. end
  10080. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  10081. if v:FindFirstChild('Head') then
  10082. dmg(v)
  10083. end
  10084. end
  10085. CameraEnshaking(7,30)
  10086. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  10087. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  10088. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  10089. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  10090. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  10091. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  10092. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  10093. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  10094. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  10095. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  10096. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  10097. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  10098. for i = 0, 24 do
  10099. 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)
  10100. 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)
  10101. 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)
  10102. 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)
  10103. end
  10104. coroutine.resume(coroutine.create(function()
  10105. for i = 0, 499 do
  10106. swait(1)
  10107. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  10108. 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)
  10109. end
  10110. elocacenter:Destroy()
  10111. eloca1:Destroy()
  10112. eloca2:Destroy()
  10113. eloca3:Destroy()
  10114. eloca4:Destroy()
  10115. end))
  10116. end
  10117. end)
  10118. end))
  10119. attack = false
  10120. end
  10121.  
  10122.  
  10123. function UniversalCollapse()
  10124. attack = true
  10125. local speedearn = 0
  10126. hum.WalkSpeed = 0
  10127. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  10128. for i = 0, 10, 0.1 do
  10129. swait()
  10130. speedearn = speedearn + 0.1
  10131. 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)
  10132. 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)
  10133. 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)
  10134. 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)
  10135. 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)
  10136. 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)
  10137. 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)
  10138. 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)
  10139. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  10140. 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)
  10141. 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)
  10142. end
  10143. CameraEnshaking(5,45)
  10144. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  10145. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  10146. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  10147. if v:FindFirstChild('Head') then
  10148. dmg(v)
  10149. end
  10150. end
  10151. hum.WalkSpeed = storehumanoidWS
  10152. attack = false
  10153. end
  10154. function ChaosBegone()
  10155. attack = true
  10156. local speedearn = 0
  10157. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  10158. for i = 0, 10, 0.1 do
  10159. swait()
  10160. speedearn = speedearn + 0.1
  10161. 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)
  10162. 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)
  10163. 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)
  10164. 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)
  10165. 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)
  10166. 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)
  10167. 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)
  10168. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  10169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  10170. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  10171. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  10172. end
  10173. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  10174. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  10175. CameraEnshaking(5,25)
  10176. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  10177. if v:FindFirstChild('Head') then
  10178. dmg(v)
  10179. end
  10180. end
  10181. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  10182. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  10183. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  10184. for i = 0, 3, 0.1 do
  10185. swait()
  10186. 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)
  10187. 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)
  10188. 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)
  10189. 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)
  10190. 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)
  10191. 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)
  10192. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  10193. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  10194. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  10195. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  10196. end
  10197. attack = false
  10198. end
  10199.  
  10200. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  10201. local orb = Instance.new("Part", char)
  10202. orb.Anchored = true
  10203. orb.BrickColor = color
  10204. orb.CanCollide = false
  10205. orb.FormFactor = 3
  10206. orb.Name = "Ring"
  10207. orb.Material = "Neon"
  10208. orb.Size = Vector3.new(1, 1, 1)
  10209. orb.Transparency = 0
  10210. orb.TopSurface = 0
  10211. orb.BottomSurface = 0
  10212. local orbm = Instance.new("SpecialMesh", orb)
  10213. orbm.MeshType = "Sphere"
  10214. orb.CFrame = positted
  10215. orbm.Name = "SizeMesh"
  10216. orbm.Scale = vt(1,1,1)
  10217. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  10218. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  10219. --[[for i = 0, 2 do
  10220. 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)
  10221. end]]--
  10222. coroutine.resume(coroutine.create(function()
  10223. wait(timer)
  10224. CameraEnshaking(3,ShakePower)
  10225. orb.Transparency = 1
  10226. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  10227. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  10228. --[[for i = 0, 4 do
  10229. 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)
  10230. end]]--
  10231. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  10232. wait(3)
  10233. orb:Destroy()
  10234. end))
  10235. end
  10236.  
  10237. function orb_spawn(positted,timer)
  10238. local randomcol = math.random(1,2)
  10239. local orb = Instance.new("Part", char)
  10240. orb.Anchored = true
  10241. if randomcol == 1 then
  10242. orb.BrickColor = BrickColor.new("White")
  10243. elseif randomcol == 2 then
  10244. orb.BrickColor = BrickColor.new("Really black")
  10245. end
  10246. orb.CanCollide = false
  10247. orb.FormFactor = 3
  10248. orb.Name = "Ring"
  10249. orb.Material = "Neon"
  10250. orb.Size = Vector3.new(1, 1, 1)
  10251. orb.Transparency = 0
  10252. orb.TopSurface = 0
  10253. orb.BottomSurface = 0
  10254. local orbm = Instance.new("SpecialMesh", orb)
  10255. orbm.MeshType = "Sphere"
  10256. orb.CFrame = positted
  10257. orbm.Name = "SizeMesh"
  10258. orbm.Scale = vt(1,1,1)
  10259. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  10260. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  10261. for i = 0, 2 do
  10262. 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)
  10263. end
  10264. coroutine.resume(coroutine.create(function()
  10265. wait(timer)
  10266. CameraEnshaking(3,2)
  10267. orb.Transparency = 1
  10268. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  10269. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  10270. for i = 0, 4 do
  10271. 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)
  10272. end
  10273. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  10274. wait(3)
  10275. orb:Destroy()
  10276. end))
  10277. end
  10278.  
  10279. function scattercorrupt()
  10280. attack = true
  10281. local rot = 0
  10282. local randomrotations = math.random(1,2)
  10283. local lookv = 2.5
  10284. local power = 5
  10285. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  10286. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  10287. for i = 0, 9 do
  10288. 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)
  10289. end
  10290. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  10291. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  10292. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  10293. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  10294. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  10295. local hite = Instance.new("Part", char)
  10296. hite.Anchored = true
  10297. hite.CanCollide = false
  10298. hite.FormFactor = 3
  10299. hite.Name = "Ring"
  10300. hite.Material = "Neon"
  10301. hite.Size = Vector3.new(1, 1, 1)
  10302. hite.Transparency = 1
  10303. hite.TopSurface = 0
  10304. hite.BottomSurface = 0
  10305. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  10306. local rem = Instance.new("Part", char)
  10307. rem.Anchored = true
  10308. rem.CanCollide = false
  10309. rem.FormFactor = 3
  10310. rem.Name = "Ring"
  10311. rem.Material = "Neon"
  10312. rem.Size = Vector3.new(1, 1, 1)
  10313. rem.Transparency = 1
  10314. rem.TopSurface = 0
  10315. rem.BottomSurface = 0
  10316. rem.CFrame = hite.CFrame
  10317. local rem2 = rem:Clone()
  10318. rem2.Parent = char
  10319. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  10320. local rem3 = rem:Clone()
  10321. rem3.Parent = char
  10322. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  10323. local rem4 = rem:Clone()
  10324. rem4.Parent = char
  10325. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  10326. hite:Destroy()
  10327. coroutine.resume(coroutine.create(function()
  10328. for i = 0, 24 do
  10329. swait(1)
  10330. if randomrotations == 1 then
  10331. rot = rot + 1
  10332. elseif randomrotations == 2 then
  10333. rot = rot - 1
  10334. end
  10335. power = power + 0.5
  10336. lookv = lookv + 7.5
  10337. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  10338. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  10339. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  10340. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  10341. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  10342. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  10343. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  10344. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  10345. end
  10346. end))
  10347. attack = false
  10348. end
  10349. function yinyangi()
  10350. attack = true
  10351. for i = 0, 2, 0.1 do
  10352. swait()
  10353. 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)
  10354. 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)
  10355. 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)
  10356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  10357. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  10358. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  10359. end
  10360. local bv = Instance.new("BodyVelocity")
  10361. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  10362. bv.velocity = root.CFrame.lookVector*175
  10363. bv.Parent = root
  10364. for Rotations = 0, 9 do
  10365. for i = 0, 1, 0.5 do
  10366. swait()
  10367. bv.velocity = root.CFrame.lookVector*175
  10368. 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)
  10369. 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)
  10370. 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)
  10371. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  10372. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  10373. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  10374. end
  10375. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  10376. for i = 0, 1, 0.5 do
  10377. swait()
  10378. bv.velocity = root.CFrame.lookVector*175
  10379. 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)
  10380. 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)
  10381. 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)
  10382. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  10383. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  10384. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  10385. end
  10386. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  10387. for i = 0, 1, 0.5 do
  10388. swait()
  10389. bv.velocity = root.CFrame.lookVector*175
  10390. 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)
  10391. 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)
  10392. 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)
  10393. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  10394. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  10395. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  10396. end
  10397. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  10398. for i = 0, 1, 0.5 do
  10399. swait()
  10400. bv.velocity = root.CFrame.lookVector*175
  10401. 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)
  10402. 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)
  10403. 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)
  10404. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  10405. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  10406. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  10407. end
  10408. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  10409. end
  10410. bv:Destroy()
  10411. attack = false
  10412. end
  10413.  
  10414. function Wip()
  10415. attack = true
  10416.  
  10417. local rngb = Instance.new("Part", char)
  10418. rngb.Anchored = true
  10419. rngb.BrickColor = origcolor
  10420. rngb.CanCollide = false
  10421. rngb.FormFactor = 3
  10422. rngb.Name = "Ring"
  10423. rngb.Material = "Neon"
  10424. rngb.Size = Vector3.new(1, 0.05, 1)
  10425. rngb.Transparency = 1
  10426. rngb.TopSurface = 0
  10427. rngb.BottomSurface = 0
  10428. local rngmb = Instance.new("SpecialMesh", rngb)
  10429. rngmb.MeshType = "Brick"
  10430. rngmb.Name = "SizeMesh"
  10431. rngmb.Scale = vt(0,1,0)
  10432.  
  10433. local orb = rngb:Clone()
  10434. orb.Parent = char
  10435. orb.Transparency = 0
  10436. orb.BrickColor = BrickColor.new("White")
  10437. orb.Size = vt(1,1,1)
  10438. local orbmish = orb.SizeMesh
  10439. orbmish.Scale = vt(0,0,0)
  10440. orbmish.MeshType = "Sphere"
  10441.  
  10442. local orbe = rngb:Clone()
  10443. orbe.Parent = char
  10444. orbe.Transparency = 0.5
  10445. orbe.BrickColor = BrickColor.new("New Yeller")
  10446. orbe.Size = vt(1,1,1)
  10447. local orbmish2 = orbe.SizeMesh
  10448. orbmish2.Scale = vt(0,0,0)
  10449. orbmish2.MeshType = "Sphere"
  10450. orbe.Color = Color3.new(r/255,g/255,b/255)
  10451.  
  10452. rngb:Destroy()
  10453. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  10454. local scaled = 1
  10455. for i = 0,5,0.1 do
  10456. swait()
  10457. scaled = scaled - 0.02
  10458. if rainbowmode == true then
  10459. orbe.Color = Color3.new(r/255,g/255,b/255)
  10460. end
  10461. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  10462. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  10463. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  10464. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  10465. 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)
  10466. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  10467. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  10468. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  10469. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  10470. 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)
  10471. 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)
  10472. RootPart.CFrame = FaceMouse()[1]
  10473. end]]--
  10474. for i = 0,5,0.1 do
  10475. swait()
  10476. if rainbowmode == true then
  10477. orbe.Color = Color3.new(r/255,g/255,b/255)
  10478. end
  10479. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  10480. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  10481. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  10482. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  10483. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  10484. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  10485. 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)
  10486. 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)
  10487. RootPart.CFrame = FaceMouse()[1]
  10488. end
  10489. orbe.Transparency = 1
  10490. orb.Transparency = 1
  10491. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  10492. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  10493. local a = Instance.new("Part",Character)
  10494. a.Name = "Direction"
  10495. a.Anchored = true
  10496. a.BrickColor = bc("White")
  10497. a.Material = "Neon"
  10498. a.Transparency = 0
  10499. a.Shape = "Cylinder"
  10500. a.CanCollide = false
  10501. local a2 = Instance.new("Part",Character)
  10502. a2.Name = "Direction"
  10503. a2.Anchored = true
  10504. a2.BrickColor = bc("New Yeller")
  10505. a2.Color = Color3.new(r/255,g/255,b/255)
  10506. a2.Material = "Neon"
  10507. a2.Transparency = 0.5
  10508. a2.Shape = "Cylinder"
  10509. a2.CanCollide = false
  10510. local ba = Instance.new("Part",Character)
  10511. ba.Name = "HitDirect"
  10512. ba.Anchored = true
  10513. ba.BrickColor = bc("Cool yellow")
  10514. ba.Material = "Neon"
  10515. ba.Transparency = 1
  10516. ba.CanCollide = false
  10517. local ray = Ray.new(
  10518. orb.CFrame.p, -- origin
  10519. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  10520. )
  10521. local ignore = Character
  10522. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10523. a.BottomSurface = 10
  10524. a.TopSurface = 10
  10525. a2.BottomSurface = 10
  10526. a2.TopSurface = 10
  10527. local distance = (orb.CFrame.p - position).magnitude
  10528. a.Size = Vector3.new(distance, 1, 1)
  10529. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10530. a2.Size = Vector3.new(distance, 1, 1)
  10531. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10532. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10533. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  10534. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  10535. game:GetService("Debris"):AddItem(a, 20)
  10536. game:GetService("Debris"):AddItem(a2, 20)
  10537. game:GetService("Debris"):AddItem(ba, 20)
  10538. local msh = Instance.new("SpecialMesh",a)
  10539. msh.MeshType = "Cylinder"
  10540. msh.Scale = vt(1,5*5,5*5)
  10541. local msh2 = Instance.new("SpecialMesh",a2)
  10542. msh2.MeshType = "Cylinder"
  10543. msh2.Scale = vt(1,6*5,6*5)
  10544.  
  10545. for i = 0,10,0.1 do
  10546. swait()
  10547. CameraEnshaking(1,5)
  10548. a2.Color = Color3.new(r/255,g/255,b/255)
  10549. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10550. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10551. ray = Ray.new(
  10552. orb.CFrame.p, -- origin
  10553. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  10554. )
  10555. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10556. distance = (orb.CFrame.p - position).magnitude
  10557. if typrot == 1 then
  10558. rotation = rotation + 2.5
  10559. elseif typrot == 2 then
  10560. rotation = rotation - 2.5
  10561. end
  10562. RootPart.CFrame = FaceMouse()[1]
  10563. a.Size = Vector3.new(distance, 1, 1)
  10564. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10565. a2.Size = Vector3.new(distance, 1, 1)
  10566. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10567. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10568. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  10569. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  10570. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  10571. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  10572. 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)
  10573. 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)
  10574. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  10575. end
  10576. a:Destroy()
  10577. a2:Destroy()
  10578. ba:Destroy()
  10579. orb:Destroy()
  10580. orbe:Destroy()
  10581. attack = false
  10582. end
  10583. function HolyBarrier()
  10584. attack = true
  10585. shielding = true
  10586. for i = 0, 2, 0.1 do
  10587. swait()
  10588. 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)
  10589. 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)
  10590. 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)
  10591. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  10592. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  10593. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  10594. end
  10595. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  10596. stash = Instance.new("Model",workspace)
  10597. local barrier = Instance.new("Part",stash)
  10598. barrier.Anchored = true
  10599. barrier.CanCollide = false
  10600. barrier.Size = Vector3.new(20,20,20)
  10601. barrier.CFrame = root.CFrame
  10602. barrier.Transparency = 0.6
  10603. barrier.BrickColor = MAINRUINCOLOR
  10604. barrier.Material = Enum.Material.Neon
  10605. barrier.Shape = Enum.PartType.Ball
  10606. barrier.CFrame = root.CFrame
  10607. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  10608. Torso.Anchored = true
  10609. for i=1,50 do
  10610. local p = Instance.new("Part",stash)
  10611. p.Anchored = true
  10612. p.Transparency = 1
  10613. p.Size = Vector3.new(11,11,11)
  10614. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  10615. end
  10616. repeat
  10617. swait(5)
  10618. 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)
  10619. until shielding == false
  10620. stash:Remove()
  10621. Torso.Anchored = false
  10622. shielding = false
  10623. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  10624. attack = false
  10625. end
  10626. function Judgement()
  10627. attack = true
  10628. judgement = true
  10629. hum.WalkSpeed = 0
  10630. local p = Instance.new("Part",root)
  10631. p.Anchored = true
  10632. p.CanCollide = false
  10633. p.BrickColor = MAINRUINCOLOR
  10634. p.Material = Enum.Material.Neon
  10635. p.Size = Vector3.new(1,1,1)
  10636. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  10637. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  10638. local m = Instance.new("SpecialMesh",p)
  10639. m.MeshType = "Cylinder"
  10640. m.Scale = Vector3.new(2000,2,2)
  10641. local targ = Instance.new("Part",root)
  10642. targ.Anchored = true
  10643. targ.Transparency = 1
  10644. targ.CanCollide = false
  10645. targ.Size = Vector3.new(1,1,1)
  10646. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  10647. local s = Instance.new("Sound",targ)
  10648. s.SoundId = "https://roblox.com/asset/?id=115327352"
  10649. s.Looped = true
  10650. s.Pitch = 1.2
  10651. s.Volume = 3
  10652. spawn(function()
  10653. swait(15)
  10654. s:Play()
  10655. end)
  10656. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  10657. for i = 1,15 do
  10658. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  10659. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  10660. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  10661. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  10662. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  10663. 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)
  10664. 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)
  10665. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  10666. 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)
  10667. m.Scale = m.Scale+Vector3.new(0,1,1)
  10668. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  10669. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  10670. swait()
  10671. end
  10672. 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)
  10673. repeat
  10674. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  10675. 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)
  10676. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  10677. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  10678. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  10679. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  10680. swait()
  10681. until judgement == false
  10682. for i =1,15 do
  10683. m.Scale = m.Scale-Vector3.new(1,1,1)
  10684. p.Transparency = i / 15
  10685. s.Pitch = s.Pitch - 0.4
  10686. swait()
  10687. end
  10688. p:Destroy()
  10689. hum.WalkSpeed = storehumanoidWS
  10690. attack = false
  10691. end
  10692.  
  10693. function UniversalSpark()
  10694. attack = true
  10695.  
  10696. local rngb = Instance.new("Part", char)
  10697. rngb.Anchored = true
  10698. rngb.BrickColor = origcolor
  10699. rngb.CanCollide = false
  10700. rngb.FormFactor = 3
  10701. rngb.Name = "Ring"
  10702. rngb.Material = "Neon"
  10703. rngb.Size = Vector3.new(1, 0.05, 1)
  10704. rngb.Transparency = 1
  10705. rngb.TopSurface = 0
  10706. rngb.BottomSurface = 0
  10707. local rngmb = Instance.new("SpecialMesh", rngb)
  10708. rngmb.MeshType = "Brick"
  10709. rngmb.Name = "SizeMesh"
  10710. rngmb.Scale = vt(0,1,0)
  10711.  
  10712. local orb = rngb:Clone()
  10713. orb.Parent = char
  10714. orb.Transparency = 0
  10715. orb.BrickColor = BrickColor.new("White")
  10716. orb.Size = vt(1,1,1)
  10717. local orbmish = orb.SizeMesh
  10718. orbmish.Scale = vt(0,0,0)
  10719. orbmish.MeshType = "Sphere"
  10720.  
  10721. local orbe = rngb:Clone()
  10722. orbe.Parent = char
  10723. orbe.Transparency = 0.5
  10724. orbe.BrickColor = BrickColor.new("New Yeller")
  10725. orbe.Size = vt(1,1,1)
  10726. local orbmish2 = orbe.SizeMesh
  10727. orbmish2.Scale = vt(0,0,0)
  10728. orbmish2.MeshType = "Sphere"
  10729. orbe.Color = Color3.new(r/255,g/255,b/255)
  10730.  
  10731. rngb:Destroy()
  10732. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  10733. local scaled = 1
  10734. for i = 0,5,0.1 do
  10735. swait()
  10736. scaled = scaled - 0.02
  10737. if rainbowmode == true then
  10738. orbe.Color = Color3.new(r/255,g/255,b/255)
  10739. end
  10740. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  10741. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  10742. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  10743. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  10744. 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)
  10745. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  10746. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  10747. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  10748. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  10749. 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)
  10750. 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)
  10751. RootPart.CFrame = FaceMouse()[1]
  10752. end]]--
  10753. for i = 0,5,0.1 do
  10754. swait()
  10755. if rainbowmode == true then
  10756. orbe.Color = Color3.new(r/255,g/255,b/255)
  10757. end
  10758. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  10759. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  10760. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  10761. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  10762. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  10763. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  10764. 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)
  10765. 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)
  10766. RootPart.CFrame = FaceMouse()[1]
  10767. end
  10768. orbe.Transparency = 1
  10769. orb.Transparency = 1
  10770. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  10771. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  10772. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  10773. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  10774.  
  10775. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  10776. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  10777. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  10778. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  10779. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  10780. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  10781. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  10782. local xd= Instance.new("Sound",char)
  10783. xd.SoundId = "rbxassetid://445796828"
  10784. xd.Pitch = 0.75
  10785. xd.Looped = true
  10786. xd.Volume = 1.25
  10787. xd:Play()
  10788. local a = Instance.new("Part",Character)
  10789. a.Name = "Direction"
  10790. a.Anchored = true
  10791. a.BrickColor = bc("Alder")
  10792. a.Color = MAINRUINCOLOR.Color
  10793. a.Material = "Neon"
  10794. a.Transparency = 0.5
  10795. a.Shape = "Cylinder"
  10796. a.CanCollide = false
  10797. local a2 = Instance.new("Part",Character)
  10798. a2.Name = "Direction"
  10799. a2.Anchored = true
  10800. a2.BrickColor = bc("New Yeller")
  10801. a2.Color = MAINRUINCOLOR.Color
  10802. a2.Material = "Neon"
  10803. a2.Transparency = 0.5
  10804. a2.Shape = "Cylinder"
  10805. a2.CanCollide = false
  10806. local ba = Instance.new("Part",Character)
  10807. ba.Name = "HitDirect"
  10808. ba.Anchored = true
  10809. ba.BrickColor = bc("Cool yellow")
  10810. ba.Material = "Neon"
  10811. ba.Transparency = 1
  10812. ba.CanCollide = false
  10813. local ray = Ray.new(
  10814. orb.CFrame.p, -- origin
  10815. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  10816. )
  10817. local ignore = Character
  10818. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10819. a.BottomSurface = 10
  10820. a.TopSurface = 10
  10821. a2.BottomSurface = 10
  10822. a2.TopSurface = 10
  10823. local distance = (orb.CFrame.p - position).magnitude
  10824. a.Size = Vector3.new(distance, 1, 1)
  10825. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10826. a2.Size = Vector3.new(distance, 1, 1)
  10827. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10828. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10829. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  10830. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  10831. game:GetService("Debris"):AddItem(a, 60)
  10832. game:GetService("Debris"):AddItem(a2, 60)
  10833. game:GetService("Debris"):AddItem(ba, 60)
  10834. local outerscale = 0
  10835. local msh = Instance.new("SpecialMesh",a)
  10836. msh.MeshType = "Cylinder"
  10837. msh.Scale = vt(1,0,0)
  10838. local msh2 = Instance.new("SpecialMesh",a2)
  10839. msh2.MeshType = "Cylinder"
  10840. msh2.Scale = vt(1,0,0)
  10841. for i = 0,2,0.1 do
  10842. swait()
  10843. CameraEnshaking(1,1)
  10844. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  10845. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  10846. outerscale = outerscale - 0.015
  10847. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10848. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10849. ray = Ray.new(
  10850. orb.CFrame.p, -- origin
  10851. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  10852. )
  10853. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10854. distance = (orb.CFrame.p - position).magnitude
  10855. if typrot == 1 then
  10856. rotation = rotation + 2.5
  10857. elseif typrot == 2 then
  10858. rotation = rotation - 2.5
  10859. end
  10860. RootPart.CFrame = FaceMouse()[1]
  10861. a.Size = Vector3.new(distance, 1, 1)
  10862. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10863. a2.Size = Vector3.new(distance, 1, 1)
  10864. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10865. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10866. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  10867. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  10868. 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)
  10869. 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)
  10870. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  10871. end
  10872. for z = 0, 2 do
  10873. for i = 0,4,0.1 do
  10874. swait()
  10875. CameraEnshaking(1,1)
  10876. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  10877. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  10878. outerscale = outerscale + 0.015
  10879. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10880. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10881. ray = Ray.new(
  10882. orb.CFrame.p, -- origin
  10883. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  10884. )
  10885. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10886. distance = (orb.CFrame.p - position).magnitude
  10887. if typrot == 1 then
  10888. rotation = rotation + 2.5
  10889. elseif typrot == 2 then
  10890. rotation = rotation - 2.5
  10891. end
  10892. RootPart.CFrame = FaceMouse()[1]
  10893. a.Size = Vector3.new(distance, 1, 1)
  10894. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10895. a2.Size = Vector3.new(distance, 1, 1)
  10896. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10897. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10898. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  10899. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  10900. 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)
  10901. 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)
  10902. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  10903. end
  10904. for i = 0,4,0.1 do
  10905. swait()
  10906. CameraEnshaking(1,1)
  10907. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  10908. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  10909. outerscale = outerscale - 0.015
  10910. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10911. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10912. ray = Ray.new(
  10913. orb.CFrame.p, -- origin
  10914. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  10915. )
  10916. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10917. distance = (orb.CFrame.p - position).magnitude
  10918. if typrot == 1 then
  10919. rotation = rotation + 2.5
  10920. elseif typrot == 2 then
  10921. rotation = rotation - 2.5
  10922. end
  10923. RootPart.CFrame = FaceMouse()[1]
  10924. a.Size = Vector3.new(distance, 1, 1)
  10925. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10926. a2.Size = Vector3.new(distance, 1, 1)
  10927. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10928. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10929. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  10930. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  10931. 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)
  10932. 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)
  10933. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  10934. end
  10935. end
  10936. for i = 0,4,0.1 do
  10937. swait()
  10938. CameraEnshaking(1,1)
  10939. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  10940. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  10941. xd.Volume = xd.Volume - 0.025
  10942. a.Transparency = a.Transparency + 0.025
  10943. a2.Transparency = a2.Transparency + 0.025
  10944. outerscale = outerscale - 0.015
  10945. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10946. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  10947. ray = Ray.new(
  10948. orb.CFrame.p, -- origin
  10949. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  10950. )
  10951. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10952. distance = (orb.CFrame.p - position).magnitude
  10953. if typrot == 1 then
  10954. rotation = rotation + 2.5
  10955. elseif typrot == 2 then
  10956. rotation = rotation - 2.5
  10957. end
  10958. RootPart.CFrame = FaceMouse()[1]
  10959. a.Size = Vector3.new(distance, 1, 1)
  10960. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10961. a2.Size = Vector3.new(distance, 1, 1)
  10962. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  10963. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10964. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  10965. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  10966. 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)
  10967. 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)
  10968. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  10969. end
  10970. xd:Destroy()
  10971. a:Destroy()
  10972. a2:Destroy()
  10973. ba:Destroy()
  10974. orb:Destroy()
  10975. orbe:Destroy()
  10976. attack = false
  10977. end
  10978.  
  10979.  
  10980. function resetmode()
  10981. rainbowmode = false
  10982. chaosmode = false
  10983. tl1.Enabled = false
  10984. tl2.Enabled = false
  10985. tl3.Enabled = false
  10986. ModeOfGlitch = 1
  10987. storehumanoidWS = 16
  10988. coroutine.resume(coroutine.create(function()
  10989. attack = true
  10990. hum.WalkSpeed = 0
  10991. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  10992. for i = 0,4,0.1 do
  10993. swait()
  10994. 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)
  10995. 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)
  10996. 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)
  10997. 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)
  10998. 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)
  10999. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  11000. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  11001. end
  11002. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  11003. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  11004. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  11005. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  11006. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  11007. CameraEnshaking(5,2.5)
  11008. MAINRUINCOLOR = BrickColor.new("Really red")
  11009. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  11010. for i = 0, 49 do
  11011. 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)
  11012. end
  11013. for i = 0,3,0.1 do
  11014. 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)
  11015. end
  11016. for i, v in pairs(mw2:GetChildren()) do
  11017. if v:IsA("Part") then
  11018. v.BrickColor = BrickColor.new("Really red")
  11019. v.Material = "Neon"
  11020. end
  11021. end
  11022. for i, v in pairs(mw1:GetChildren()) do
  11023. if v:IsA("Part") then
  11024. v.Transparency = 1
  11025. v.BrickColor = BrickColor.new("Really red")
  11026. v.Material = "Neon"
  11027. end
  11028. end
  11029. for i, v in pairs(m:GetChildren()) do
  11030. if v:IsA("Part") then
  11031. v.BrickColor = BrickColor.new("Really black")
  11032. v.Material = "Glass"
  11033. end
  11034. end
  11035. for i, v in pairs(m2:GetChildren()) do
  11036. if v:IsA("Part") then
  11037. v.BrickColor = BrickColor.new("Crimson")
  11038. v.Material = "Granite"
  11039. end
  11040. end
  11041. for i, v in pairs(m3:GetChildren()) do
  11042. if v:IsA("Part") then
  11043. v.BrickColor = BrickColor.new("Really red")
  11044. v.Material = "Neon"
  11045. end
  11046. end
  11047. for i, v in pairs(extrawingmod1:GetChildren()) do
  11048. if v:IsA("Part") then
  11049. v.Transparency = 1
  11050. v.BrickColor = BrickColor.new("White")
  11051. v.Material = "Neon"
  11052. end
  11053. end
  11054. for i, v in pairs(extrawingmod2:GetChildren()) do
  11055. if v:IsA("Part") then
  11056. v.Transparency = 1
  11057. v.BrickColor = BrickColor.new("White")
  11058. v.Material = "Neon"
  11059. end
  11060. end
  11061. for i = 0,2,0.1 do
  11062. swait()
  11063. 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)
  11064. 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)
  11065. 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)
  11066. 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)
  11067. 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)
  11068. 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)
  11069. end
  11070. hum.WalkSpeed = storehumanoidWS
  11071. attack = false
  11072. end))
  11073. newTheme("rbxassetid://614032233",48.6,1,0.3)
  11074. end
  11075.  
  11076. function attackone()
  11077. attack = true
  11078. for i = 0,1,0.1 do
  11079. swait()
  11080. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  11081. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  11082. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  11083. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  11084. 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)
  11085. 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)
  11086. end
  11087. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  11088.  
  11089. local hitb = Instance.new("Part", char)
  11090. hitb.Anchored = true
  11091. hitb.CanCollide = false
  11092. hitb.FormFactor = 3
  11093. hitb.Name = "Ring"
  11094. hitb.Material = "Neon"
  11095. hitb.Size = Vector3.new(1, 1, 1)
  11096. hitb.Transparency = 1
  11097. hitb.TopSurface = 0
  11098. hitb.BottomSurface = 0
  11099. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  11100. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  11101. hitb:Destroy()
  11102. for i = 0,1,0.1 do
  11103. swait()
  11104. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  11105. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  11106. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  11107. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  11108. 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)
  11109. 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)
  11110. end
  11111.  
  11112. attack = false
  11113. end
  11114.  
  11115. function attacktwo()
  11116. attack = true
  11117. for i = 0,1,0.1 do
  11118. swait()
  11119. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  11120. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  11121. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  11122. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  11123. 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)
  11124. 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)
  11125. end
  11126. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  11127. local hitb = Instance.new("Part", char)
  11128. hitb.Anchored = true
  11129. hitb.CanCollide = false
  11130. hitb.FormFactor = 3
  11131. hitb.Name = "Ring"
  11132. hitb.Material = "Neon"
  11133. hitb.Size = Vector3.new(1, 1, 1)
  11134. hitb.Transparency = 1
  11135. hitb.TopSurface = 0
  11136. hitb.BottomSurface = 0
  11137. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  11138. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  11139. hitb:Destroy()
  11140. for i = 0,1,0.1 do
  11141. swait()
  11142. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  11143. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  11144. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  11145. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  11146. 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)
  11147. 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)
  11148. end
  11149. attack = false
  11150. end
  11151.  
  11152. function attackthree()
  11153. attack = true
  11154. for i = 0,1,0.1 do
  11155. swait()
  11156. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  11157. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  11158. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  11159. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  11160. 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)
  11161. 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)
  11162. end
  11163. local distlook = 5
  11164. for i = 0, 4 do
  11165. swait(2)
  11166. CameraEnshaking(2,3)
  11167. local hite = Instance.new("Part", char)
  11168. hite.Anchored = true
  11169. hite.CanCollide = false
  11170. hite.FormFactor = 3
  11171. hite.Name = "Ring"
  11172. hite.Material = "Neon"
  11173. hite.Size = Vector3.new(1, 1, 1)
  11174. hite.Transparency = 1
  11175. hite.TopSurface = 0
  11176. hite.BottomSurface = 0
  11177. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  11178. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  11179. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  11180. MagniDamage(hite, 10, 15,35, 0, "Normal")
  11181. for i = 0, 2 do
  11182. 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)
  11183. 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)
  11184. 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)
  11185. end
  11186. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  11187. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  11188. game:GetService("Debris"):AddItem(hite, 5)
  11189. distlook = distlook + 10
  11190. end
  11191. attack = false
  11192. end
  11193.  
  11194. local ActiveGia = false
  11195. function THEHELLITSTHATBIG()
  11196. ActiveGia = true
  11197. attack = true
  11198. hum.WalkSpeed = 0
  11199. for i = 0,2,0.1 do
  11200. swait()
  11201. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  11202. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  11203. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  11204. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  11205. 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)
  11206. 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)
  11207. end
  11208. for i = 0,1,0.1 do
  11209. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  11210. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  11211. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  11212. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  11213. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  11214. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  11215. end
  11216. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  11217. secrleg.Transparency = 0.5
  11218. seclleg.Transparency = 0.5
  11219. secrarm.Transparency = 0.5
  11220. seclarm.Transparency = 0.5
  11221. seched.Transparency = 0.5
  11222. sectors.Transparency = 0.5
  11223. for i = 0,25,0.1 do
  11224. swait()
  11225. 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)
  11226. 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)
  11227. 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)
  11228. 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)
  11229. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  11230. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  11231. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  11232. end
  11233. --[[secrleg.Transparency = 1
  11234. seclleg.Transparency = 1
  11235. secrarm.Transparency = 1
  11236. seclarm.Transparency = 1
  11237. seched.Transparency = 1
  11238. sectors.Transparency = 1]]--
  11239. torsweld.Part0 = root
  11240. hum.WalkSpeed = storehumanoidWS
  11241. attack = false
  11242. end
  11243.  
  11244. function removelol()
  11245. ActiveGia = false
  11246. attack = true
  11247. hum.WalkSpeed = 0
  11248. for i = 0,2,0.1 do
  11249. swait()
  11250. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  11251. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  11252. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  11253. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  11254. 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)
  11255. 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)
  11256. end
  11257. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  11258. for i = 0,25,0.1 do
  11259. swait()
  11260. secrleg.Transparency = secrleg.Transparency + 0.00225
  11261. seclleg.Transparency = secrleg.Transparency
  11262. secrarm.Transparency = secrleg.Transparency
  11263. seclarm.Transparency = secrleg.Transparency
  11264. seched.Transparency = secrleg.Transparency
  11265. sectors.Transparency = secrleg.Transparency
  11266. 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)
  11267. 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)
  11268. 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)
  11269. 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)
  11270. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  11271. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  11272. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  11273. end
  11274. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  11275. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  11276. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  11277. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  11278. secrleg.Transparency = 1
  11279. seclleg.Transparency = 1
  11280. secrarm.Transparency = 1
  11281. seclarm.Transparency = 1
  11282. seched.Transparency = 1
  11283. sectors.Transparency = 1
  11284. torsweld.Part0 = root
  11285. hum.WalkSpeed = storehumanoidWS
  11286. attack = false
  11287. end
  11288.  
  11289. function FinalCalamity()
  11290. end
  11291.  
  11292. local attacktype = 1
  11293. mouse.Button1Down:connect(function()
  11294. if attack == false and attacktype == 1 then
  11295. attacktype = 2
  11296. attackone()
  11297. elseif attack == false and attacktype == 2 then
  11298. attacktype = 3
  11299. attacktwo()
  11300. elseif attack == false and attacktype == 3 then
  11301. attacktype = 1
  11302. attackthree()
  11303. elseif attack == false and attacktype == 4 then
  11304. attacktype = 1
  11305. --attackfour()
  11306. end
  11307. end)
  11308. mouse.KeyDown:connect(function(k)
  11309. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  11310. ModeOfGlitch = 2
  11311. storehumanoidWS = 16
  11312. hum.WalkSpeed = 16
  11313. rainbowmode = false
  11314. chaosmode = false
  11315. tl1.Enabled = false
  11316. tl2.Enabled = false
  11317. tl3.Enabled = false
  11318. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  11319. newTheme("rbxassetid://1539245059",0,1,0.3)
  11320. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  11321. for i, v in pairs(mw2:GetChildren()) do
  11322. if v:IsA("Part") then
  11323. v.BrickColor = MAINRUINCOLOR
  11324. v.Material = "Neon"
  11325. end
  11326. end
  11327. for i, v in pairs(mw1:GetChildren()) do
  11328. if v:IsA("Part") then
  11329. v.Transparency = 1
  11330. v.BrickColor = MAINRUINCOLOR
  11331. v.Material = "Neon"
  11332. end
  11333. end
  11334. for i, v in pairs(m:GetChildren()) do
  11335. if v:IsA("Part") then
  11336. v.BrickColor = BrickColor.new("White")
  11337. v.Material = "Ice"
  11338. end
  11339. end
  11340. for i, v in pairs(m2:GetChildren()) do
  11341. if v:IsA("Part") then
  11342. v.BrickColor = BrickColor.new("Pastel light blue")
  11343. v.Material = "Glass"
  11344. end
  11345. end
  11346. for i, v in pairs(m3:GetChildren()) do
  11347. if v:IsA("Part") then
  11348. v.BrickColor = BrickColor.new("Toothpaste")
  11349. v.Material = "Neon"
  11350. end
  11351. end
  11352. for i, v in pairs(extrawingmod1:GetChildren()) do
  11353. if v:IsA("Part") then
  11354. v.Transparency = 1
  11355. v.BrickColor = BrickColor.new("White")
  11356. v.Material = "Neon"
  11357. end
  11358. end
  11359. for i, v in pairs(extrawingmod2:GetChildren()) do
  11360. if v:IsA("Part") then
  11361. v.Transparency = 1
  11362. v.BrickColor = BrickColor.new("White")
  11363. v.Material = "Neon"
  11364. end
  11365. end
  11366. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  11367. resetmode()
  11368. end
  11369. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  11370. ModeOfGlitch = 3
  11371. storehumanoidWS = 16
  11372. hum.WalkSpeed = 16
  11373. rainbowmode = false
  11374. chaosmode = false
  11375. tl1.Enabled = false
  11376. tl2.Enabled = false
  11377. tl3.Enabled = false
  11378. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  11379. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  11380. MAINRUINCOLOR = BrickColor.new("Royal purple")
  11381. for i, v in pairs(mw2:GetChildren()) do
  11382. if v:IsA("Part") then
  11383. v.BrickColor = MAINRUINCOLOR
  11384. v.Material = "Neon"
  11385. end
  11386. end
  11387. for i, v in pairs(mw1:GetChildren()) do
  11388. if v:IsA("Part") then
  11389. v.Transparency = 1
  11390. v.BrickColor = MAINRUINCOLOR
  11391. v.Material = "Neon"
  11392. end
  11393. end
  11394. for i, v in pairs(m:GetChildren()) do
  11395. if v:IsA("Part") then
  11396. v.BrickColor = BrickColor.new("Black")
  11397. v.Material = "Ice"
  11398. end
  11399. end
  11400. for i, v in pairs(m2:GetChildren()) do
  11401. if v:IsA("Part") then
  11402. v.BrickColor = BrickColor.new("Dark indigo")
  11403. v.Material = "Glass"
  11404. end
  11405. end
  11406. for i, v in pairs(m3:GetChildren()) do
  11407. if v:IsA("Part") then
  11408. v.BrickColor = BrickColor.new("Royal purple")
  11409. v.Material = "Neon"
  11410. end
  11411. end
  11412. for i, v in pairs(extrawingmod1:GetChildren()) do
  11413. if v:IsA("Part") then
  11414. v.Transparency = 1
  11415. v.BrickColor = BrickColor.new("White")
  11416. v.Material = "Neon"
  11417. end
  11418. end
  11419. for i, v in pairs(extrawingmod2:GetChildren()) do
  11420. if v:IsA("Part") then
  11421. v.Transparency = 1
  11422. v.BrickColor = BrickColor.new("White")
  11423. v.Material = "Neon"
  11424. end
  11425. end
  11426. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  11427. resetmode()
  11428. end
  11429. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  11430. ModeOfGlitch = 4
  11431. storehumanoidWS = 16
  11432. hum.WalkSpeed = 16
  11433. rainbowmode = false
  11434. chaosmode = true
  11435. tl1.Enabled = true
  11436. tl2.Enabled = true
  11437. tl3.Enabled = true
  11438. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  11439. newTheme("rbxassetid://1369263130",0,1,1)
  11440. MAINRUINCOLOR = BrickColor.new("Black")
  11441. for i, v in pairs(mw2:GetChildren()) do
  11442. if v:IsA("Part") then
  11443. v.BrickColor = MAINRUINCOLOR
  11444. v.Material = "Neon"
  11445. end
  11446. end
  11447. for i, v in pairs(mw1:GetChildren()) do
  11448. if v:IsA("Part") then
  11449. v.Transparency = 0.75
  11450. v.BrickColor = BrickColor.random()
  11451. v.Material = "Neon"
  11452. end
  11453. end
  11454. for i, v in pairs(m:GetChildren()) do
  11455. if v:IsA("Part") then
  11456. v.BrickColor = BrickColor.new("Black")
  11457. v.Material = "Neon"
  11458. end
  11459. end
  11460. for i, v in pairs(m2:GetChildren()) do
  11461. if v:IsA("Part") then
  11462. v.BrickColor = BrickColor.random()
  11463. v.Material = "Neon"
  11464. end
  11465. end
  11466. for i, v in pairs(m3:GetChildren()) do
  11467. if v:IsA("Part") then
  11468. v.BrickColor = BrickColor.new("Black")
  11469. v.Material = "Neon"
  11470. end
  11471. end
  11472. for i, v in pairs(extrawingmod1:GetChildren()) do
  11473. if v:IsA("Part") then
  11474. v.Transparency = 1
  11475. v.BrickColor = BrickColor.new("White")
  11476. v.Material = "Neon"
  11477. end
  11478. end
  11479. for i, v in pairs(extrawingmod2:GetChildren()) do
  11480. if v:IsA("Part") then
  11481. v.Transparency = 1
  11482. v.BrickColor = BrickColor.new("White")
  11483. v.Material = "Neon"
  11484. end
  11485. end
  11486. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  11487. resetmode()
  11488. end
  11489. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  11490. ModeOfGlitch = 5
  11491. storehumanoidWS = 16
  11492. hum.WalkSpeed = 16
  11493. rainbowmode = false
  11494. chaosmode = false
  11495. tl1.Enabled = true
  11496. tl2.Enabled = true
  11497. tl3.Enabled = true
  11498. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  11499. newTheme("rbxassetid://661079869",0,1.02,1)
  11500. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  11501. for i, v in pairs(mw2:GetChildren()) do
  11502. if v:IsA("Part") then
  11503. v.BrickColor = MAINRUINCOLOR
  11504. v.Material = "Neon"
  11505. end
  11506. end
  11507. for i, v in pairs(mw1:GetChildren()) do
  11508. if v:IsA("Part") then
  11509. v.Transparency = 0
  11510. v.BrickColor = MAINRUINCOLOR
  11511. v.Material = "Neon"
  11512. end
  11513. end
  11514. for i, v in pairs(m:GetChildren()) do
  11515. if v:IsA("Part") then
  11516. v.BrickColor = BrickColor.new("Cool yellow")
  11517. v.Material = "Ice"
  11518. end
  11519. end
  11520. for i, v in pairs(m2:GetChildren()) do
  11521. if v:IsA("Part") then
  11522. v.BrickColor = BrickColor.new("Bright yellow")
  11523. v.Material = "Ice"
  11524. end
  11525. end
  11526. for i, v in pairs(m3:GetChildren()) do
  11527. if v:IsA("Part") then
  11528. v.BrickColor = BrickColor.new("Bright yellow")
  11529. v.Material = "Neon"
  11530. end
  11531. end
  11532. for i, v in pairs(extrawingmod1:GetChildren()) do
  11533. if v:IsA("Part") then
  11534. v.Transparency = 1
  11535. v.BrickColor = BrickColor.new("White")
  11536. v.Material = "Neon"
  11537. end
  11538. end
  11539. for i, v in pairs(extrawingmod2:GetChildren()) do
  11540. if v:IsA("Part") then
  11541. v.Transparency = 1
  11542. v.BrickColor = BrickColor.new("White")
  11543. v.Material = "Neon"
  11544. end
  11545. end
  11546. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  11547. resetmode()
  11548. end
  11549. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  11550. ModeOfGlitch = 6
  11551. storehumanoidWS = 75
  11552. hum.WalkSpeed = 75
  11553. rainbowmode = false
  11554. chaosmode = false
  11555. tl1.Enabled = true
  11556. tl2.Enabled = true
  11557. tl3.Enabled = true
  11558. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  11559. newTheme("rbxassetid://395351949",0,1,1)
  11560. MAINRUINCOLOR = BrickColor.new("White")
  11561. for i, v in pairs(mw2:GetChildren()) do
  11562. if v:IsA("Part") then
  11563. v.BrickColor = MAINRUINCOLOR
  11564. v.Material = "Neon"
  11565. end
  11566. end
  11567. for i, v in pairs(mw1:GetChildren()) do
  11568. if v:IsA("Part") then
  11569. v.Transparency = 0
  11570. v.BrickColor = MAINRUINCOLOR
  11571. v.Material = "Neon"
  11572. end
  11573. end
  11574. for i, v in pairs(m:GetChildren()) do
  11575. if v:IsA("Part") then
  11576. v.BrickColor = BrickColor.new("White")
  11577. v.Material = "Ice"
  11578. end
  11579. end
  11580. for i, v in pairs(m2:GetChildren()) do
  11581. if v:IsA("Part") then
  11582. v.BrickColor = BrickColor.new("Really black")
  11583. v.Material = "Ice"
  11584. end
  11585. end
  11586. for i, v in pairs(m3:GetChildren()) do
  11587. if v:IsA("Part") then
  11588. v.BrickColor = BrickColor.new("White")
  11589. v.Material = "Neon"
  11590. end
  11591. end
  11592. for i, v in pairs(extrawingmod1:GetChildren()) do
  11593. if v:IsA("Part") then
  11594. v.Transparency = 1
  11595. v.BrickColor = BrickColor.new("White")
  11596. v.Material = "Neon"
  11597. end
  11598. end
  11599. for i, v in pairs(extrawingmod2:GetChildren()) do
  11600. if v:IsA("Part") then
  11601. v.Transparency = 1
  11602. v.BrickColor = BrickColor.new("White")
  11603. v.Material = "Neon"
  11604. end
  11605. end
  11606. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  11607. resetmode()
  11608. end
  11609. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  11610. ModeOfGlitch = 6127843
  11611. storehumanoidWS = 50
  11612. hum.WalkSpeed = 50
  11613. rainbowmode = true
  11614. chaosmode = false
  11615. tl1.Enabled = true
  11616. tl2.Enabled = true
  11617. tl3.Enabled = true
  11618. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  11619. newTheme("rbxassetid://147930134",0,1,1)
  11620. MAINRUINCOLOR = BrickColor.new("White")
  11621. for i, v in pairs(mw2:GetChildren()) do
  11622. if v:IsA("Part") then
  11623. v.BrickColor = MAINRUINCOLOR
  11624. v.Material = "Neon"
  11625. end
  11626. end
  11627. for i, v in pairs(mw1:GetChildren()) do
  11628. if v:IsA("Part") then
  11629. v.Transparency = 0
  11630. v.BrickColor = MAINRUINCOLOR
  11631. v.Material = "Neon"
  11632. end
  11633. end
  11634. for i, v in pairs(m:GetChildren()) do
  11635. if v:IsA("Part") then
  11636. v.BrickColor = BrickColor.new("White")
  11637. v.Material = "Neon"
  11638. end
  11639. end
  11640. for i, v in pairs(m2:GetChildren()) do
  11641. if v:IsA("Part") then
  11642. v.BrickColor = BrickColor.new("White")
  11643. v.Material = "Neon"
  11644. end
  11645. end
  11646. for i, v in pairs(m3:GetChildren()) do
  11647. if v:IsA("Part") then
  11648. v.BrickColor = BrickColor.new("White")
  11649. v.Material = "Neon"
  11650. end
  11651. end
  11652. for i, v in pairs(extrawingmod1:GetChildren()) do
  11653. if v:IsA("Part") then
  11654. v.Transparency = 1
  11655. v.BrickColor = BrickColor.new("White")
  11656. v.Material = "Neon"
  11657. end
  11658. end
  11659. for i, v in pairs(extrawingmod2:GetChildren()) do
  11660. if v:IsA("Part") then
  11661. v.Transparency = 1
  11662. v.BrickColor = BrickColor.new("White")
  11663. v.Material = "Neon"
  11664. end
  11665. end
  11666. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  11667. resetmode()
  11668. end
  11669. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  11670. ModeOfGlitch = 1000000
  11671. storehumanoidWS = 100
  11672. hum.WalkSpeed = 100
  11673. rainbowmode = false
  11674. chaosmode = false
  11675. tl1.Enabled = true
  11676. tl2.Enabled = true
  11677. tl3.Enabled = true
  11678. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  11679. newTheme("rbxassetid://1359036559",0,1,1)
  11680. MAINRUINCOLOR = BrickColor.new("Bright violet")
  11681. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11682. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11683. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11684. for i, v in pairs(mw2:GetChildren()) do
  11685. if v:IsA("Part") then
  11686. v.BrickColor = MAINRUINCOLOR
  11687. v.Material = "Neon"
  11688. end
  11689. end
  11690. for i, v in pairs(mw1:GetChildren()) do
  11691. if v:IsA("Part") then
  11692. v.Transparency = 0
  11693. v.BrickColor = MAINRUINCOLOR
  11694. v.Material = "Neon"
  11695. end
  11696. end
  11697. for i, v in pairs(m:GetChildren()) do
  11698. if v:IsA("Part") then
  11699. v.Color = Color3.new(0.5,0,1)
  11700. v.Material = "Neon"
  11701. end
  11702. end
  11703. for i, v in pairs(m2:GetChildren()) do
  11704. if v:IsA("Part") then
  11705. v.Color = Color3.new(0.25,0,1)
  11706. v.Material = "Neon"
  11707. end
  11708. end
  11709. for i, v in pairs(m3:GetChildren()) do
  11710. if v:IsA("Part") then
  11711. v.Color = Color3.new(0.45,0,1)
  11712. v.Material = "Neon"
  11713. end
  11714. end
  11715. for i, v in pairs(extrawingmod1:GetChildren()) do
  11716. if v:IsA("Part") then
  11717. v.Transparency = 0.75
  11718. v.Color = Color3.new(0.25,0,1)
  11719. v.Material = "Neon"
  11720. end
  11721. end
  11722. for i, v in pairs(extrawingmod2:GetChildren()) do
  11723. if v:IsA("Part") then
  11724. v.Transparency = 0.75
  11725. v.Color = Color3.new(0.5,0,1)
  11726. v.Material = "Neon"
  11727. end
  11728. end
  11729. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  11730. resetmode()
  11731. end
  11732. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  11733. newThemeCust("rbxassetid://1504604335",0,1,1)
  11734. attack = true
  11735. hum.WalkSpeed = 0
  11736. MAINRUINCOLOR = BrickColor.new("Royal purple")
  11737. for i = 0, 24, 0.1 do
  11738. swait()
  11739. 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)
  11740. 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)
  11741. 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)
  11742. 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)
  11743. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  11744. 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)
  11745. 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)
  11746. end
  11747. CameraEnshaking(1,1)
  11748. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  11749. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  11750. wait(0.55)
  11751. CameraEnshaking(1,2)
  11752. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  11753. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  11754. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  11755. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  11756. wait(0.55)
  11757. CameraEnshaking(1,3)
  11758. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  11759. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  11760. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  11761. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  11762. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  11763. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  11764. wait(0.55)
  11765. CameraEnshaking(10,5)
  11766. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  11767. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  11768. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  11769. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  11770. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  11771. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  11772. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  11773. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  11774. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  11775. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  11776. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  11777. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  11778. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  11779. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  11780. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  11781. for i = 0, 49 do
  11782. 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)
  11783. 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)
  11784. 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)
  11785. 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)
  11786. end
  11787. ModeOfGlitch = 12345678987654321
  11788. storehumanoidWS = 200
  11789. hum.WalkSpeed = 200
  11790. rainbowmode = false
  11791. chaosmode = false
  11792. tl1.Enabled = true
  11793. tl2.Enabled = true
  11794. tl3.Enabled = true
  11795. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  11796. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11797. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11798. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11799. for i, v in pairs(mw2:GetChildren()) do
  11800. if v:IsA("Part") then
  11801. v.BrickColor = MAINRUINCOLOR
  11802. v.Material = "Neon"
  11803. end
  11804. end
  11805. for i, v in pairs(mw1:GetChildren()) do
  11806. if v:IsA("Part") then
  11807. v.Transparency = 0
  11808. v.BrickColor = MAINRUINCOLOR
  11809. v.Material = "Neon"
  11810. end
  11811. end
  11812. for i, v in pairs(m:GetChildren()) do
  11813. if v:IsA("Part") then
  11814. v.Color = Color3.new(0.5,0,1)
  11815. v.Material = "Neon"
  11816. end
  11817. end
  11818. for i, v in pairs(m2:GetChildren()) do
  11819. if v:IsA("Part") then
  11820. v.Color = Color3.new(0.5,0,1)
  11821. v.Material = "Neon"
  11822. end
  11823. end
  11824. for i, v in pairs(m3:GetChildren()) do
  11825. if v:IsA("Part") then
  11826. v.Color = Color3.new(0.5,0,1)
  11827. v.Material = "Neon"
  11828. end
  11829. end
  11830. for i, v in pairs(extrawingmod1:GetChildren()) do
  11831. if v:IsA("Part") then
  11832. v.Transparency = 0
  11833. v.Color = Color3.new(0.5,0,1)
  11834. v.Material = "Neon"
  11835. end
  11836. end
  11837. for i, v in pairs(extrawingmod2:GetChildren()) do
  11838. if v:IsA("Part") then
  11839. v.Transparency = 0
  11840. v.Color = Color3.new(0.5,0,1)
  11841. v.Material = "Neon"
  11842. end
  11843. attack = false
  11844. end
  11845. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  11846. resetmode()
  11847. end
  11848. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  11849. newThemeCust("rbxassetid://723652641",0,1,1)
  11850. attack = true
  11851. hum.WalkSpeed = 0
  11852. MAINRUINCOLOR = BrickColor.new("Crimson")
  11853. for i = 0, 24, 0.1 do
  11854. swait()
  11855. 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)
  11856. 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)
  11857. 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)
  11858. 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)
  11859. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  11860. 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)
  11861. 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)
  11862. end
  11863. CameraEnshaking(1,1)
  11864. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  11865. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  11866. wait(0.55)
  11867. CameraEnshaking(1,2)
  11868. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  11869. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  11870. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  11871. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  11872. wait(0.55)
  11873. CameraEnshaking(1,3)
  11874. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  11875. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  11876. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  11877. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  11878. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  11879. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  11880. wait(0.55)
  11881. CameraEnshaking(10,5)
  11882. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  11883. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  11884. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  11885. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  11886. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  11887. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  11888. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  11889. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  11890. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  11891. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  11892. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  11893. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  11894. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  11895. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  11896. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  11897. for i = 0, 49 do
  11898. 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)
  11899. 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)
  11900. 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)
  11901. 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)
  11902. end
  11903. ModeOfGlitch = 666
  11904. storehumanoidWS = 16
  11905. hum.WalkSpeed = 16
  11906. rainbowmode = false
  11907. chaosmode = false
  11908. tl1.Enabled = true
  11909. tl2.Enabled = true
  11910. tl3.Enabled = true
  11911. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  11912. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11913. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11914. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  11915. for i, v in pairs(mw2:GetChildren()) do
  11916. if v:IsA("Part") then
  11917. v.BrickColor = MAINRUINCOLOR
  11918. v.Material = "Neon"
  11919. end
  11920. end
  11921. for i, v in pairs(mw1:GetChildren()) do
  11922. if v:IsA("Part") then
  11923. v.Transparency = 0
  11924. v.BrickColor = MAINRUINCOLOR
  11925. v.Material = "Neon"
  11926. end
  11927. end
  11928. for i, v in pairs(m:GetChildren()) do
  11929. if v:IsA("Part") then
  11930. v.Color = Color3.new(1,0,0)
  11931. v.Material = "Neon"
  11932. end
  11933. end
  11934. for i, v in pairs(m2:GetChildren()) do
  11935. if v:IsA("Part") then
  11936. v.Color = Color3.new(1,0,0)
  11937. v.Material = "Neon"
  11938. end
  11939. end
  11940. for i, v in pairs(m3:GetChildren()) do
  11941. if v:IsA("Part") then
  11942. v.Color = Color3.new(1,0,0)
  11943. v.Material = "Neon"
  11944. end
  11945. end
  11946. for i, v in pairs(extrawingmod1:GetChildren()) do
  11947. if v:IsA("Part") then
  11948. v.Transparency = 0
  11949. v.Color = Color3.new(1,0,0)
  11950. v.Material = "Neon"
  11951. end
  11952. end
  11953. for i, v in pairs(extrawingmod2:GetChildren()) do
  11954. if v:IsA("Part") then
  11955. v.Transparency = 0
  11956. v.Color = Color3.new(1,0,0)
  11957. v.Material = "Neon"
  11958. end
  11959. attack = false
  11960. end
  11961. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  11962. resetmode()
  11963. end
  11964. if k == "l" and toggleTag == false then
  11965. toggleTag = true
  11966. text.TextTransparency = 0
  11967. text.TextStrokeTransparency = 0
  11968. elseif k == "l" and toggleTag == true then
  11969. toggleTag = false
  11970. text.TextTransparency = 1
  11971. text.TextStrokeTransparency = 1
  11972. end
  11973. if k == "z" and attack == false and ModeOfGlitch == 1 then
  11974. ExtinctiveHeartbreak()
  11975. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  11976. PureBomb()
  11977. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  11978. scattercorrupt()
  11979. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  11980. ChaosGroundStrike()
  11981. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  11982. Judgement()
  11983. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  11984. HolyBarrier()
  11985. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  11986. Starfall()
  11987. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  11988. yinyangi()
  11989. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  11990. MeteorStrike()
  11991. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  11992. Wip()
  11993. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  11994. StarfallEX()
  11995. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  11996. FinalCalam()
  11997. end
  11998. if k == "n" and attack == false then
  11999. Blink()
  12000. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  12001. StarDivision()
  12002. end
  12003. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  12004. UniversalCollapse()
  12005. end
  12006. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  12007. hum.WalkSpeed = 16 + 184
  12008. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  12009. hum.WalkSpeed = 200 - 184
  12010. end
  12011. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  12012. UniversalSpark()
  12013. end
  12014. if k == "z" and attack == false and ModeOfGlitch == 666 then
  12015. StarDivision()
  12016. end
  12017. if k == "x" and attack == false and ModeOfGlitch == 666 then
  12018. Starfall()
  12019. end
  12020. if k == "m" and attack == false and ModeOfGlitch == 4 then
  12021. ChaosBegone()
  12022. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  12023. THEHELLITSTHATBIG()
  12024. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  12025. removelol()
  12026. end
  12027. end)
  12028. mouse.KeyUp:connect(function(k)
  12029. if k == "f" and ModeOfGlitch == 5 then
  12030. shielding = false
  12031. end
  12032. if k == "z" and ModeOfGlitch == 5 then
  12033. judgement = false
  12034. end
  12035. end)
  12036. coroutine.resume(coroutine.create(function()
  12037. while true do
  12038. swait(2)
  12039. if rainbowmode == true or ModeOfGlitch == 6 then
  12040. if eff == true then
  12041. 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)
  12042. end
  12043. end
  12044. end
  12045. end))
  12046. coroutine.resume(coroutine.create(function()
  12047. while true do
  12048. swait(2)
  12049. if shielding == true then
  12050. end
  12051. end
  12052. end))
  12053.  
  12054.  
  12055. coroutine.resume(coroutine.create(function()
  12056. while true do
  12057. if ModeOfGlitch == 1000000 then
  12058. swait(0.5)
  12059. end
  12060. swait()
  12061. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  12062. 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)
  12063. end
  12064. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  12065. 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)
  12066. end
  12067. end
  12068. end))
  12069.  
  12070.  
  12071. coroutine.resume(coroutine.create(function()
  12072. while true do
  12073. swait(2)
  12074. if chaosmode == true then
  12075. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  12076. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  12077. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  12078. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  12079. for i, v in pairs(mw1:GetChildren()) do
  12080. if v:IsA("Part") then
  12081. v.Transparency = 0.75
  12082. v.BrickColor = BrickColor.random()
  12083. v.Material = "Neon"
  12084. end
  12085. end
  12086. for i, v in pairs(m2:GetChildren()) do
  12087. if v:IsA("Part") then
  12088. v.BrickColor = BrickColor.random()
  12089. v.Material = "Neon"
  12090. end
  12091. end
  12092. for i, v in pairs(secondchar:GetChildren()) do
  12093. if v:IsA("Part") then
  12094. v.BrickColor = BrickColor.random()
  12095. v.Material = "Neon"
  12096. end
  12097. end
  12098. end
  12099. end
  12100. end))
  12101. Humanoid.Name = "STARGLITCHER"
  12102. Humanoid.MaxHealth = math.huge
  12103. Humanoid.Health = math.huge
  12104. Instance.new("ForceField",char).Visible = false
  12105. Humanoid.Animator.Parent = nil
  12106. idleanim=.4
  12107. while true do
  12108. if rainbowmode == false then
  12109. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  12110. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  12111. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  12112. for i, v in pairs(secondchar:GetChildren()) do
  12113. if v:IsA("Part") then
  12114. v.BrickColor = MAINRUINCOLOR
  12115. v.Material = "Neon"
  12116. end
  12117. end
  12118. if chaosmode == false then
  12119. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  12120. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  12121. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  12122. for i, v in pairs(secondchar:GetChildren()) do
  12123. if v:IsA("Part") then
  12124. v.BrickColor = MAINRUINCOLOR
  12125. v.Material = "Neon"
  12126. end
  12127. end
  12128. end
  12129. end
  12130. if rainbowmode == true then
  12131. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  12132. MAINRUINCOLOR = BrickColor.new("White")
  12133. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  12134. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  12135. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  12136. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  12137. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  12138. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  12139. for i, v in pairs(m:GetChildren()) do
  12140. if v:IsA("Part") then
  12141. v.Color = Color3.new(r/255,g/255,b/255)
  12142. end
  12143. end
  12144. for i, v in pairs(m2:GetChildren()) do
  12145. if v:IsA("Part") then
  12146. v.Color = Color3.new(r/255,g/255,b/255)
  12147. end
  12148. end
  12149. for i, v in pairs(secondchar:GetChildren()) do
  12150. if v:IsA("Part") then
  12151. v.Color = Color3.new(r/255,g/255,b/255)
  12152. v.Material = "Neon"
  12153. end
  12154. end
  12155. for i, v in pairs(m3:GetChildren()) do
  12156. if v:IsA("Part") then
  12157. v.Color = Color3.new(r/255,g/255,b/255)
  12158. end
  12159. end
  12160. for i, v in pairs(mw1:GetChildren()) do
  12161. if v:IsA("Part") then
  12162. v.Color = Color3.new(r/255,g/255,b/255)
  12163. v.Material = "Neon"
  12164. end
  12165. end
  12166. for i, v in pairs(mw2:GetChildren()) do
  12167. if v:IsA("Part") then
  12168. v.Color = Color3.new(r/255,g/255,b/255)
  12169. v.Material = "Neon"
  12170. end
  12171. end
  12172. end
  12173. CameraManager()
  12174. swait()
  12175. 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)
  12176. 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)
  12177. 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)
  12178. 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)
  12179. 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)
  12180. 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)
  12181.  
  12182. if attack == false and ActiveGia == false then
  12183. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  12184. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  12185. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  12186. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  12187. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  12188. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  12189. elseif attack == false and ActiveGia == true then
  12190. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  12191. 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)
  12192. 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)
  12193. 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)
  12194. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  12195. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  12196. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  12197. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  12198. 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)
  12199. 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)
  12200. 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)
  12201. 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)
  12202. 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)
  12203. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  12204. end
  12205. end
  12206.  
  12207. 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)
  12208. 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)
  12209. 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)
  12210. 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)
  12211. 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)
  12212. 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)
  12213. sine = sine + change
  12214. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  12215. local velderp=RootPart.Velocity.y
  12216. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  12217. if equipped==true or equipped==false then
  12218. if attack==false then
  12219. idle=idle+1
  12220. else
  12221. idle=0
  12222. end
  12223. if idle>=500 then
  12224. if attack==false then
  12225. --Sheath()
  12226. end
  12227. end
  12228. if RootPart.Velocity.y > 1 and hitfloor==nil then
  12229. Anim="Jump"
  12230. if attack==false then
  12231. 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)
  12232. 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)
  12233. 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)
  12234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  12235. 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)
  12236. 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)
  12237. end
  12238. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  12239. Anim="Fall"
  12240. if attack==false then
  12241. 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)
  12242. 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)
  12243. 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)
  12244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  12245. 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)
  12246. 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)
  12247. end
  12248. elseif torvel<1 and hitfloor~=nil then
  12249. Anim="Idle"
  12250. if attack==false then
  12251. if ModeOfGlitch == 1 then
  12252. 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)
  12253. 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)
  12254. 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)
  12255. 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)
  12256. 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)
  12257. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  12258.  
  12259. elseif ModeOfGlitch == 666 then
  12260. 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)
  12261. 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)
  12262. 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)
  12263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  12264. 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)
  12265. 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)
  12266.  
  12267. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  12268. 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)
  12269. 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)
  12270. 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)
  12271. 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)
  12272. 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)
  12273. 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)
  12274.  
  12275. elseif ModeOfGlitch == 3 then
  12276. 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)
  12277. 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)
  12278. 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)
  12279. 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)
  12280. 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)
  12281. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  12282.  
  12283. elseif ModeOfGlitch == 4 then
  12284. 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)
  12285. 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)
  12286. 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)
  12287. 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)
  12288. 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)
  12289. 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)
  12290.  
  12291. elseif ModeOfGlitch == 5 then
  12292. 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)
  12293. 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)
  12294. 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)
  12295. 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)
  12296. 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)
  12297. 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)
  12298.  
  12299. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  12300. 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)
  12301. 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)
  12302. 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)
  12303. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  12304. 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)
  12305. 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)
  12306.  
  12307. elseif ModeOfGlitch == 12345678987654321 then
  12308. 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)
  12309. 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)
  12310. 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)
  12311. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  12312. 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)
  12313. 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)
  12314. end
  12315. end
  12316. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  12317. Anim="Walk"
  12318. if attack==false then
  12319. if ModeOfGlitch == 1 then
  12320. 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)
  12321. 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)
  12322. 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)
  12323. 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)
  12324. 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)
  12325. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  12326.  
  12327. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  12328. 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)
  12329. 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)
  12330. 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)
  12331. 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)
  12332. 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)
  12333. 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)
  12334.  
  12335. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  12336. 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)
  12337. 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)
  12338. 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)
  12339. 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)
  12340. 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)
  12341. 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)
  12342. end
  12343. end
  12344. elseif torvel>=22 and hitfloor~=nil then
  12345. Anim="Run"
  12346. if attack==false then
  12347. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  12348. 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)
  12349. 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)
  12350. 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)
  12351. 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)
  12352. 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)
  12353. 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)
  12354. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  12355. 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)
  12356. 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)
  12357. 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)
  12358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  12359. 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)
  12360. 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)
  12361. end
  12362. end
  12363. end
  12364. end
  12365. end.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  12366. 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)
  12367. end
  12368. end
  12369. end
  12370. end
  12371. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement