Advertisement
Guest User

Untitled

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