Advertisement
Goo345

Spectrum Glitcher

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