Advertisement
Sheckles

Omega's Star Glitcher

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