Advertisement
AssortedBrunoz

Untitled

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