Advertisement
Diamond_Nicholas

edit 2

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