Advertisement
pitrioptixiop

fe starg

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