Advertisement
Jake_Dreemurr

Jake's glitcher

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