Advertisement
Guest User

StarGlichter

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