Advertisement
Goo345

GALAXY GLITCHER

Aug 1st, 2018
2,669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 223.46 KB | None | 0 0
  1. warn([[Galaxy Glitcher Loaded.
  2. The third glitcher, once as the core is now new.
  3.  
  4. Created by Tc
  5. ]])
  6.  
  7. ---------Wielder list as of OCs:---------
  8. -- ??? (Nothing such as this yet, but wields all the Glitchers. What you're asking it's the creator.)
  9. -- Void Emily (OC of mine, can lead to any modes and mainly leading to LOVE and HARMONY, she's obviously shy sometimes.)
  10. -- Lunaria Floodio (Second OC, can lead to any modes.)
  11. -- Gacharix (Third OC, can lead to any modes and mainly leading to AZURE X, very corrupted person.)
  12. -----------------------------------------
  13.  
  14. print([[Icons:
  15. ! = New
  16. ? = Spoilers
  17. * = Exclusivity
  18. C = Changes
  19.  
  20. ]])
  21. warn([[V 3.2 Update Log:
  22. C - Huge revamp of wings.
  23. C - Walk and running are now tiltable on where you go on a side.
  24. C - Huge slight changes on all of the mode's idles.
  25. C - Even more effect changes.
  26. !C* - Love mode has been added.
  27. !C* - Love mode's transformation added..
  28. !* - Love mode's taunt added... (why.. ;~;)
  29. C - Death effect has been improved.
  30. C - Binary's Z is imporvably changed
  31. ? - Nothing seems to be new yet..
  32. ? - Some modes will have moves sooner.
  33.  
  34. Commands for visualiser mode: play/, vol/, pitch/, skipto/, telltime/]])
  35. ---- IMPORTANT READING:
  36. ---- Sources and functions might be taken from others
  37. plr = game.Players.LocalPlayer
  38.  
  39. script.Parent = workspace.CurrentCamera
  40. plr.CharacterAdded:connect(function()
  41. script.Disabled = true
  42. script:destroy()
  43. end)
  44.  
  45. char = plr.Character
  46. hum = char.Humanoid
  47. local cam = game.Workspace.CurrentCamera
  48. local Controls = local RealPlayer = Player:WaitForChild("ControlScript")
  49. Camera = cam
  50. local CamInterrupt = false
  51. local TwoD = false
  52. local TargetInfo = {nil, nil}
  53. cam.CameraType = "Custom"
  54. t = char.Torso
  55. h = char.Head
  56. ra = char["Right Arm"]
  57. la = char["Left Arm"]
  58. rl = char["Right Leg"]
  59. ll = char["Left Leg"]
  60. tors = char.Torso
  61. lleg = char["Left Leg"]
  62. root = char.HumanoidRootPart
  63. hed = char.Head
  64. rleg = char["Right Leg"]
  65. rarm = char["Right Arm"]
  66. larm = char["Left Arm"]
  67. radian = math.rad
  68. random = math.random
  69. Vec3 = Vector3.new
  70. Inst = Instance.new
  71. cFrame = CFrame.new
  72. Euler = CFrame.fromEulerAnglesXYZ
  73. vt = Vector3.new
  74. bc = BrickColor.new
  75. br = BrickColor.random
  76. it = Instance.new
  77. cf = CFrame.new
  78.  
  79.  
  80. local Booleans = {
  81. CamFollow = true,
  82. GyroUse = true
  83. }
  84.  
  85. function lerp(object, newCFrame, alpha)
  86. return object:lerp(newCFrame, alpha)
  87. end
  88.  
  89. local Directer = Inst("BodyGyro", root)
  90. Directer.MaxTorque = Vec3(0, 0, 0)
  91. Directer.P = 600000
  92. local CPart = Inst("Part")
  93. CPart.Anchored = true
  94. CPart.CanCollide = false
  95. CPart.Locked = true
  96. CPart.Transparency = 1
  97.  
  98. local rainbowmode = false
  99. local chaosmode = false
  100. local duringend = false
  101. local ModeOfGlitch = 1
  102.  
  103. local kan = Instance.new("Sound",char)
  104. kan.Volume = 1.25
  105. kan.TimePosition = 0
  106. kan.PlaybackSpeed = 1
  107. kan.Pitch = 1.01
  108. kan.SoundId = "rbxassetid://435773595"
  109. kan.Name = "wreckeda"
  110. kan.Looped = true
  111. kan:Play()
  112.  
  113. local currentThemePlaying = kan.SoundId
  114. local currentPitch = kan.Pitch
  115. local currentVol = kan.Volume
  116. function newTheme(ID,timepos,pitch,vol)
  117. local kanz = kan
  118. --kanz:Stop()
  119. kanz.Volume = vol
  120. --kanz.TimePosition = timepos
  121. kanz.PlaybackSpeed = pitch
  122. kanz.Pitch = pitch
  123. kanz.SoundId = ID
  124. kanz.Name = "wrecked"
  125. kanz.Looped = true
  126. currentThemePlaying = kanz.SoundId
  127. currentVol = kanz.Volume
  128. currentPitch = kanz.Pitch
  129. --kanz:Play()
  130. --coroutine.resume(coroutine.create(function()
  131. --wait(0.05)
  132. --end))
  133. end
  134.  
  135.  
  136. function newThemeCust(ID,timepos,pitch,vol)
  137. local kanz = kan
  138. kanz:Stop()
  139. kanz.Volume = vol
  140. kanz.TimePosition = timepos
  141. kanz.PlaybackSpeed = pitch
  142. kanz.Pitch = pitch
  143. kanz.SoundId = ID
  144. kanz.Name = "wrecked"
  145. kanz.Looped = true
  146. currentThemePlaying = kanz.SoundId
  147. currentVol = kanz.Volume
  148. currentPitch = kanz.Pitch
  149. kanz:Play()
  150. coroutine.resume(coroutine.create(function()
  151. wait(0.05)
  152. end))
  153. end
  154.  
  155. local mutedtog = false
  156.  
  157. function CameraEnshaking(Length,Intensity)
  158. coroutine.resume(coroutine.create(function()
  159. local intensity = 1*Intensity
  160. local rotM = 0.01*Intensity
  161. for i = 0, Length, 0.1 do
  162. swait()
  163. intensity = intensity - 0.05*Intensity/Length
  164. rotM = rotM - 0.0005*Intensity/Length
  165. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  166. 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)
  167. end
  168. Humanoid.CameraOffset = Vec3(0, 0, 0)
  169. end))
  170. end
  171. CamShake=function(Part,Distan,Power,Times)
  172. local de=Part.Position
  173. for i,v in pairs(workspace:children()) do
  174. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  175. for _,c in pairs(v:children()) do
  176. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  177. local Noob=v.Humanoid
  178. if Noob~=nil then
  179. coroutine.resume(coroutine.create(function()
  180. FV = Instance.new("BoolValue", Noob)
  181. FV.Name = "CameraShake"
  182. for ShakeNum=1,Times do
  183. swait()
  184. local ef=Power
  185. if ef>=1 then
  186. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  187. else
  188. ef=Power*10
  189. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  190. end
  191. end
  192. Humanoid.CameraOffset = Vector3.new(0,0,0)
  193. FV:Destroy()
  194. end))
  195. CameraShake(Times, Power, Noob)
  196. end
  197. end
  198. end
  199. end
  200. end
  201. end
  202.  
  203. local toggleTag = true
  204. local bilguit = Instance.new("BillboardGui", hed)
  205. bilguit.Adornee = nil
  206. bilguit.Name = "ModeName"
  207. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  208. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  209. local modet = Instance.new("TextLabel", bilguit)
  210. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  211. modet.FontSize = "Size8"
  212. modet.TextScaled = true
  213. modet.TextTransparency = 0
  214. modet.BackgroundTransparency = 1
  215. modet.TextTransparency = 0
  216. modet.TextStrokeTransparency = 0
  217. modet.Font = "Code"
  218. modet.TextStrokeColor3 = Color3.new(0,0,0)
  219. modet.TextColor3 = Color3.new(1,1,1)
  220. modet.Text = "Enlightened"
  221.  
  222.  
  223. function chatfunc(text,color,typet,font,timeex)
  224. local chat = coroutine.wrap(function()
  225. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  226. Character:FindFirstChild("TalkingBillBoard"):destroy()
  227. end
  228. local naeeym2 = Instance.new("BillboardGui",Character)
  229. naeeym2.Size = UDim2.new(0,100,0,40)
  230. naeeym2.StudsOffset = Vector3.new(0,3,0)
  231. naeeym2.Adornee = Character.Head
  232. naeeym2.Name = "TalkingBillBoard"
  233. local tecks2 = Instance.new("TextLabel",naeeym2)
  234. tecks2.BackgroundTransparency = 1
  235. tecks2.BorderSizePixel = 0
  236. tecks2.Text = ""
  237. tecks2.Font = font
  238. tecks2.TextSize = 30
  239. tecks2.TextStrokeTransparency = 0
  240. tecks2.TextColor3 = color
  241. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  242. tecks2.Size = UDim2.new(1,0,0.5,0)
  243. local tecks3 = Instance.new("TextLabel",naeeym2)
  244. tecks3.BackgroundTransparency = 1
  245. tecks3.BorderSizePixel = 0
  246. tecks3.Text = ""
  247. tecks3.Font = font
  248. tecks3.TextSize = 30
  249. tecks3.TextStrokeTransparency = 0
  250. if typet == "Inverted" then
  251. tecks3.TextColor3 = Color3.new(0,0,0)
  252. tecks3.TextStrokeColor3 = color
  253. elseif typet == "Normal" then
  254. tecks3.TextColor3 = color
  255. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  256. end
  257. tecks3.Size = UDim2.new(1,0,0.5,0)
  258. coroutine.resume(coroutine.create(function()
  259. while true do
  260. swait(1)
  261. if chaosmode == true then
  262. tecks2.TextColor3 = BrickColor.random().Color
  263. tecks3.TextStrokeColor3 = BrickColor.random().Color
  264. end
  265. end
  266. end))
  267. modet.TextTransparency = modet.TextTransparency + 1
  268. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  269. for i = 0, 74*timeex do
  270. swait()
  271. modet.TextTransparency = 1
  272. modet.TextStrokeTransparency = 1
  273. tecks2.Text = text
  274. tecks3.Text = text
  275. end
  276. local randomrot = math.random(1,2)
  277. if randomrot == 1 then
  278. for i = 1, 50 do
  279. swait()
  280. tecks2.Text = text
  281. tecks3.Text = text
  282. modet.TextTransparency = modet.TextTransparency - .02
  283. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  284. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  285. tecks2.TextTransparency = tecks2.TextTransparency + .04
  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.Text = text
  293. tecks3.Text = text
  294. modet.TextTransparency = modet.TextTransparency - .02
  295. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  296. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  297. tecks2.TextTransparency = tecks2.TextTransparency + .04
  298. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  299. tecks3.TextTransparency = tecks2.TextTransparency + .04
  300. end
  301. end
  302. modet.TextTransparency = 0
  303. modet.TextStrokeTransparency = 0
  304. if toggleTag == false then
  305. modet.TextTransparency = 1
  306. modet.TextStrokeTransparency = 1
  307. end
  308. naeeym2:Destroy()
  309. end)
  310. chat()
  311. end
  312.  
  313.  
  314. local Create = LoadLibrary("RbxUtility").Create
  315.  
  316. CFuncs = {
  317. ["Part"] = {
  318. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  319. local Part = Create("Part"){
  320. Parent = Parent,
  321. Reflectance = Reflectance,
  322. Transparency = Transparency,
  323. CanCollide = false,
  324. Locked = true,
  325. BrickColor = BrickColor.new(tostring(BColor)),
  326. Name = Name,
  327. Size = Size,
  328. Material = Material,
  329. }
  330. RemoveOutlines(Part)
  331. return Part
  332. end;
  333. };
  334.  
  335. ["Mesh"] = {
  336. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  337. local Msh = Create(Mesh){
  338. Parent = Part,
  339. Offset = OffSet,
  340. Scale = Scale,
  341. }
  342. if Mesh == "SpecialMesh" then
  343. Msh.MeshType = MeshType
  344. Msh.MeshId = MeshId
  345. end
  346. return Msh
  347. end;
  348. };
  349.  
  350. ["Mesh"] = {
  351. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  352. local Msh = Create(Mesh){
  353. Parent = Part,
  354. Offset = OffSet,
  355. Scale = Scale,
  356. }
  357. if Mesh == "SpecialMesh" then
  358. Msh.MeshType = MeshType
  359. Msh.MeshId = MeshId
  360. end
  361. return Msh
  362. end;
  363. };
  364.  
  365. ["Weld"] = {
  366. Create = function(Parent, Part0, Part1, C0, C1)
  367. local Weld = Create("Weld"){
  368. Parent = Parent,
  369. Part0 = Part0,
  370. Part1 = Part1,
  371. C0 = C0,
  372. C1 = C1,
  373. }
  374. return Weld
  375. end;
  376. };
  377.  
  378. ["Sound"] = {
  379. Create = function(id, par, vol, pit)
  380. coroutine.resume(coroutine.create(function()
  381. local S = Create("Sound"){
  382. Volume = vol,
  383. Name = "EffectSoundo",
  384. Pitch = pit or 1,
  385. SoundId = id,
  386. Parent = par or workspace,
  387. }
  388. wait()
  389. S:play()
  390. game:GetService("Debris"):AddItem(S, 10)
  391. end))
  392. end;
  393. };
  394.  
  395. ["LongSound"] = {
  396. Create = function(id, par, vol, pit)
  397. coroutine.resume(coroutine.create(function()
  398. local S = Create("Sound"){
  399. Volume = vol,
  400. Pitch = pit or 1,
  401. SoundId = id,
  402. Parent = par or workspace,
  403. }
  404. wait()
  405. S:play()
  406. game:GetService("Debris"):AddItem(S, 60)
  407. end))
  408. end;
  409. };
  410.  
  411. ["ParticleEmitter"] = {
  412. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  413. local fp = Create("ParticleEmitter"){
  414. Parent = Parent,
  415. Color = ColorSequence.new(Color1, Color2),
  416. LightEmission = LightEmission,
  417. Size = Size,
  418. Texture = Texture,
  419. Transparency = Transparency,
  420. ZOffset = ZOffset,
  421. Acceleration = Accel,
  422. Drag = Drag,
  423. LockedToPart = LockedToPart,
  424. VelocityInheritance = VelocityInheritance,
  425. EmissionDirection = EmissionDirection,
  426. Enabled = Enabled,
  427. Lifetime = LifeTime,
  428. Rate = Rate,
  429. Rotation = Rotation,
  430. RotSpeed = RotSpeed,
  431. Speed = Speed,
  432. VelocitySpread = VelocitySpread,
  433. }
  434. return fp
  435. end;
  436. };
  437.  
  438. CreateTemplate = {
  439.  
  440. };
  441. }
  442.  
  443.  
  444.  
  445. New = function(Object, Parent, Name, Data)
  446. local Object = Instance.new(Object)
  447. for Index, Value in pairs(Data or {}) do
  448. Object[Index] = Value
  449. end
  450. Object.Parent = Parent
  451. Object.Name = Name
  452. return Object
  453. end
  454. local halocolor = BrickColor.new("Pastel light blue")
  455. local halocolor2 = BrickColor.new("Cool yellow")
  456. local starcolor = BrickColor.new("Bright yellow")
  457. local lunacolor = BrickColor.new("Navy blue")
  458. local lunacolor2 = BrickColor.new("Bright blue")
  459. local wepcolor = BrickColor.new("Really black")
  460. local maincolor = BrickColor.new("Really black")
  461. local m = Instance.new("Model",char)
  462. local m2 = Instance.new("Model",char)
  463. local m3 = Instance.new("Model",char)
  464. local mw1 = Instance.new("Model",char)
  465. local mw2 = Instance.new("Model",char)
  466.  
  467.  
  468. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  469. local gui = it(GuiType)
  470. gui.Parent = parent
  471. gui.Text = text
  472. gui.BackgroundTransparency = backtrans
  473. gui.BackgroundColor3 = backcol
  474. gui.SizeConstraint = "RelativeXY"
  475. gui.TextXAlignment = "Center"
  476. gui.TextYAlignment = "Center"
  477. gui.Position = pos
  478. gui.Size = size
  479. gui.Font = "SourceSans"
  480. gui.FontSize = "Size14"
  481. gui.TextWrapped = false
  482. gui.TextStrokeTransparency = 0
  483. gui.TextColor = BrickColor.new("White")
  484. return gui
  485. end
  486. ---- GUI set
  487. local basgui = it("GuiMain")
  488. basgui.Parent = plr.PlayerGui
  489. basgui.Name = "Killcounter GUI"
  490. local basframe = it("Frame")
  491. basframe.Parent = basgui
  492. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  493. basframe.BackgroundTransparency = 1
  494. basframe.BorderColor3 = Color3.new(17, 17, 17)
  495. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  496. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  497. local uhh = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, 0.45, 0), UDim2.new(1.5, 0, 0.55, 0))
  498. uhh.ZIndex = 2
  499. uhh.Font = "Bodoni"
  500. uhh.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
  501. uhh.TextColor3 = Color3.new(1,1,1)
  502. uhh.BackgroundTransparency = 0.25
  503. uhh.BorderSizePixel = 2
  504. uhh.BorderColor3 = Color3.new(0,0,0)
  505. uhh.TextScaled = true
  506. uhh.TextXAlignment = "Left"
  507. uhh.Text = "SWITCH MODE: 1-9"
  508. uhh.TextSize = 64
  509. local modeteller = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0, 0, -0.01, 0), UDim2.new(1, 0, 0.45, 0))
  510. modeteller.ZIndex = 2
  511. modeteller.Font = "Bodoni"
  512. modeteller.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
  513. modeteller.TextColor3 = Color3.new(1,1,1)
  514. modeteller.BackgroundTransparency = 0.25
  515. modeteller.BorderSizePixel = 2
  516. modeteller.BorderColor3 = Color3.new(0,0,0)
  517. modeteller.TextScaled = true
  518. modeteller.TextXAlignment = "Right"
  519. modeteller.Text = "MAYHEM"
  520. modeteller.TextSize = 64
  521.  
  522. local extrawingmod1 = Instance.new("Model",char)
  523. local extrawingmod2 = Instance.new("Model",char)
  524.  
  525. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  526. local p = Instance.new("Part")
  527. p.TopSurface = 0
  528. p.BottomSurface = 0
  529. p.Parent = parent
  530. p.Size = Vector3.new(0.1,0.1,0.1)
  531. p.Transparency = transparency
  532. p.Reflectance = reflectance
  533. p.CanCollide = false
  534. p.Locked = true
  535. p.BrickColor = brickcolor
  536. p.Material = material
  537. return p
  538. end
  539.  
  540. function CreateMesh(parent,meshtype,x1,y1,z1)
  541. local mesh = Instance.new("SpecialMesh",parent)
  542. mesh.MeshType = meshtype
  543. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  544. return mesh
  545. end
  546.  
  547. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  548. local mesh = Instance.new("SpecialMesh",parent)
  549. mesh.MeshType = "FileMesh"
  550. mesh.MeshId = meshid
  551. mesh.Scale = Vector3.new(x1,y1,z1)
  552. return mesh
  553. end
  554.  
  555.  
  556. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  557. local mesh = Instance.new("SpecialMesh",parent)
  558. mesh.MeshType = "FileMesh"
  559. mesh.MeshId = meshid
  560. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  561. mesh.Scale = Vector3.new(x1,y1,z1)
  562. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  563. return mesh
  564. end
  565.  
  566. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  567. local weld = Instance.new("Weld")
  568. weld.Parent = parent
  569. weld.Part0 = part0
  570. weld.Part1 = part1
  571. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  572. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  573. return weld
  574. end
  575.  
  576.  
  577. --------------
  578. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  579. 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))
  580. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  581. 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))
  582.  
  583. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  584. CreateMesh(handle,"Brick",0,0,0)
  585. 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))
  586. local valuaring = 10
  587.  
  588. local refec = Instance.new("ParticleEmitter",handlex)
  589. refec.Texture = "rbxassetid://284205403"
  590. refec.LightEmission = 0.95
  591. refec.Color = ColorSequence.new(BrickColor.new("White").Color)
  592. refec.Rate = 50
  593. refec.Lifetime = NumberRange.new(0.5)
  594. refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  595. refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  596. refec.Speed = NumberRange.new(0,2)
  597. refec.Drag = 5
  598. refec.LockedToPart = true
  599. refec.Rotation = NumberRange.new(-500,500)
  600. refec.VelocitySpread = 9000
  601. refec.RotSpeed = NumberRange.new(-500,500)
  602. local refec2 = refec:Clone()
  603. refec2.LightEmission = 0.75
  604. refec2.Texture = "rbxassetid://254287058"
  605. refec2.Parent = handlex
  606. refec2.Rate = 25
  607. refec2.Lifetime = NumberRange.new(0.75)
  608. refec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(0.15,1,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  609. refec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  610. refec2.Speed = NumberRange.new(0)
  611. local refec3 = refec:Clone()
  612. refec3.LightEmission = 0.75
  613. refec3.Texture = "rbxassetid://363275192"
  614. refec3.Parent = handlex
  615. refec3.Rate = 25
  616. refec3.Lifetime = NumberRange.new(1)
  617. refec3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0.1,0)})
  618. refec3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  619. refec3.Speed = NumberRange.new(0)
  620. refec3.RotSpeed = NumberRange.new(-50,50)
  621.  
  622. for i = 0, 35 do
  623. valuaring = valuaring + 10
  624. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  625. CreateMesh(rn,"Wedge",0.1,0.5,0.1)
  626. CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  627. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  628. CreateMesh(rn,"Wedge",0.1,0.5,0.1)
  629. CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  630. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  631. CreateMesh(rn,"Wedge",0.1,0.2,0.05)
  632. CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  633. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  634. CreateMesh(rn,"Wedge",0.1,0.2,0.05)
  635. CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  636. end
  637.  
  638.  
  639. local handle = CreateParta(m,1,1,"Neon",maincolor)
  640. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  641. 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))
  642.  
  643. --- Left wing.
  644.  
  645. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  646. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  647. 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))
  648.  
  649. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  650. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  651. 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))
  652. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  653. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  654. 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))
  655. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  656. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  657. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  658. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  659. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  660. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  661. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  662. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  663. CreateWeld(wed,lwing1,wed,0,0.75,-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(mw1,0,0,"Neon",halocolor)
  665. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  666. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  667. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  668. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  669. 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))
  670. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  671. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  672. 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))
  673. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  674. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  675. CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  676. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  677. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  678. CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  679.  
  680.  
  681. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  682. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  683. 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))
  684.  
  685. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  686. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  687. 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))
  688. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  689. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  690. 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))
  691. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  692. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  693. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  694. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  695. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  696. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  697. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  698. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  699. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  700. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  701. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  702. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  703. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  704. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  705. 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))
  706. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  707. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  708. 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))
  709. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  710. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  711. CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  712. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  713. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  714. CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  715.  
  716. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  717. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  718. 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))
  719.  
  720. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  721. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  722. 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))
  723. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  724. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  725. 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))
  726. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  727. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  728. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  729. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  730. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  731. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  732. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  733. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  734. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  735. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  736. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  737. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  738. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  739. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  740. 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))
  741. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  742. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  743. 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))
  744. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  745. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  746. CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  747. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  748. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  749. CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  750.  
  751. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  752. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  753. 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))
  754.  
  755. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  756. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  757. 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))
  758. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  759. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  760. 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))
  761. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  762. CreateMesh(wed,"Wedge",0.05,0.5,3)
  763. 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))
  764. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  765. CreateMesh(wed,"Wedge",0.05,3,0.5)
  766. 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))
  767.  
  768. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  769. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  770. 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))
  771.  
  772. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  773. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  774. 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))
  775. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  776. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  777. 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))
  778. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  779. CreateMesh(wed,"Wedge",0.05,0.5,3)
  780. 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))
  781. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  782. CreateMesh(wed,"Wedge",0.05,3,0.5)
  783. 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))
  784.  
  785. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  786. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  787. 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))
  788.  
  789. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  790. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  791. 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))
  792. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  793. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  794. 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))
  795. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  796. CreateMesh(wed,"Wedge",0.05,0.5,3)
  797. 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))
  798. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  799. CreateMesh(wed,"Wedge",0.05,3,0.5)
  800. 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))
  801.  
  802. -- Right wing.
  803.  
  804. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  805. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  806. 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))
  807.  
  808. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  809. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  810. 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))
  811. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  812. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  813. 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))
  814. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  815. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  816. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  817. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  818. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  819. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  820. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  821. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  822. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  823. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  824. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  825. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  826. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  827. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  828. 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))
  829. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  830. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  831. 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))
  832. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  833. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  834. CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  835. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  836. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  837. CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  838.  
  839. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  840. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  841. 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))
  842.  
  843. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  844. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  845. 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))
  846. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  847. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  848. 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))
  849. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  850. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  851. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  852. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  853. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  854. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  855. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  856. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  857. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  858. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  859. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  860. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  861. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  863. 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))
  864. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  866. 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))
  867. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  869. CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  870. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  872. CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  873.  
  874. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  875. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  876. 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))
  877.  
  878.  
  879. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  880. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  881. 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))
  882. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  883. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  884. 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))
  885. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  886. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  887. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  888. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  889. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  890. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  891. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  892. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  893. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  894. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  895. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  896. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  897. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  899. 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))
  900. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  902. 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))
  903. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  905. CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  906. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  908. CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909.  
  910.  
  911. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  912. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  913. 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))
  914.  
  915. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  916. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  917. 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))
  918. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  919. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  920. 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))
  921. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  922. CreateMesh(wed,"Wedge",0.05,0.5,3)
  923. 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))
  924. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  925. CreateMesh(wed,"Wedge",0.05,3,0.5)
  926. 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))
  927.  
  928. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  929. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  930. 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))
  931.  
  932. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  933. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  934. 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))
  935. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  936. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  937. 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))
  938. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  939. CreateMesh(wed,"Wedge",0.05,0.5,3)
  940. 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))
  941. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  942. CreateMesh(wed,"Wedge",0.05,3,0.5)
  943. 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))
  944.  
  945. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  946. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  947. 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))
  948.  
  949. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  951. 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))
  952. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  954. 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))
  955. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,3)
  957. 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))
  958. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,3,0.5)
  960. 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))
  961.  
  962.  
  963. ---- HERES THE RING
  964.  
  965.  
  966. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  967. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  968. 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))
  969. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  970. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  971. 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))
  972. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  973. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  974. 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))
  975.  
  976.  
  977. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  978. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  979. 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))
  980.  
  981. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  982. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  983. 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))
  984.  
  985.  
  986.  
  987. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  988. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  989. 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))
  990.  
  991. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  992. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  993. 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))
  994.  
  995. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  996. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  997. 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))
  998.  
  999. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1000. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1001. 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))
  1002. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1003. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1004. 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))
  1005.  
  1006. --- second ring
  1007.  
  1008. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1009. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1010. 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))
  1011. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1012. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1013. 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))
  1014. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1015. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1016. 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))
  1017.  
  1018. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1019. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1020. 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))
  1021.  
  1022. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1023. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1024. 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))
  1025.  
  1026.  
  1027.  
  1028. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1029. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1030. 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))
  1031.  
  1032. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1033. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1034. 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))
  1035.  
  1036. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1037. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1038. 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))
  1039.  
  1040. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1041. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1042. 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))
  1043. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1044. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1045. 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))]]--
  1046.  
  1047. ------------- Trails
  1048. local A0 = Instance.new("Attachment",lwing1)
  1049. A0.Position = Vector3.new(0,-0.7,0)
  1050. local A1 = Instance.new("Attachment",lwing1)
  1051. A1.Position = Vector3.new(0,-3.5,0)
  1052. tl1 = Instance.new('Trail',lwing1)
  1053. tl1.Attachment0 = A0
  1054. tl1.Attachment1 = A1
  1055. tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1056. tl1.LightEmission = 1
  1057. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1058. tl1.Color = ColorSequence.new(BrickColor.new('White').Color)
  1059. tl1.Lifetime = 0.6
  1060.  
  1061. local A0 = Instance.new("Attachment",lwing2)
  1062. A0.Position = Vector3.new(0,-0.7,0)
  1063. local A1 = Instance.new("Attachment",lwing2)
  1064. A1.Position = Vector3.new(0,-3.5,0)
  1065. tl2 = Instance.new('Trail',lwing2)
  1066. tl2.Attachment0 = A0
  1067. tl2.Attachment1 = A1
  1068. tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1069. tl2.LightEmission = 1
  1070. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1071. tl2.Color = ColorSequence.new(BrickColor.new('White').Color)
  1072. tl2.Lifetime = 0.6
  1073.  
  1074. local A0 = Instance.new("Attachment",lwing3)
  1075. A0.Position = Vector3.new(0,-0.7,0)
  1076. local A1 = Instance.new("Attachment",lwing3)
  1077. A1.Position = Vector3.new(0,-3.5,0)
  1078. tl3 = Instance.new('Trail',lwing3)
  1079. tl3.Attachment0 = A0
  1080. tl3.Attachment1 = A1
  1081. tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1082. tl3.LightEmission = 1
  1083. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1084. tl3.Color = ColorSequence.new(BrickColor.new('White').Color)
  1085. tl3.Lifetime = 0.6
  1086.  
  1087. local A0 = Instance.new("Attachment",rwing1)
  1088. A0.Position = Vector3.new(0,-0.7,0)
  1089. local A1 = Instance.new("Attachment",rwing1)
  1090. A1.Position = Vector3.new(0,-3.5,0)
  1091. tr1 = Instance.new('Trail',rwing1)
  1092. tr1.Attachment0 = A0
  1093. tr1.Attachment1 = A1
  1094. tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1095. tr1.LightEmission = 1
  1096. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1097. tr1.Color = ColorSequence.new(BrickColor.new('White').Color)
  1098. tr1.Lifetime = 0.6
  1099.  
  1100. local A0 = Instance.new("Attachment",rwing2)
  1101. A0.Position = Vector3.new(0,-0.7,0)
  1102. local A1 = Instance.new("Attachment",rwing2)
  1103. A1.Position = Vector3.new(0,-3.5,0)
  1104. tr2 = Instance.new('Trail',rwing2)
  1105. tr2.Attachment0 = A0
  1106. tr2.Attachment1 = A1
  1107. tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1108. tr2.LightEmission = 1
  1109. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1110. tr2.Color = ColorSequence.new(BrickColor.new('White').Color)
  1111. tr2.Lifetime = 0.6
  1112.  
  1113. local A0 = Instance.new("Attachment",rwing3)
  1114. A0.Position = Vector3.new(0,-0.7,0)
  1115. local A1 = Instance.new("Attachment",rwing3)
  1116. A1.Position = Vector3.new(0,-3.5,0)
  1117. tr3 = Instance.new('Trail',rwing3)
  1118. tr3.Attachment0 = A0
  1119. tr3.Attachment1 = A1
  1120. tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1121. tr3.LightEmission = 1
  1122. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1123. tr3.Color = ColorSequence.new(BrickColor.new('White').Color)
  1124. tr3.Lifetime = 0.6
  1125. --------------
  1126.  
  1127. for i, v in pairs(mw2:GetChildren()) do
  1128. if v:IsA("Part") then
  1129. v.BrickColor = BrickColor.new("White")
  1130. v.Material = "Neon"
  1131. end
  1132. end
  1133. for i, v in pairs(mw1:GetChildren()) do
  1134. if v:IsA("Part") then
  1135. v.Transparency = 0
  1136. v.BrickColor = BrickColor.new("White")
  1137. v.Material = "Neon"
  1138. end
  1139. end
  1140. for i, v in pairs(extrawingmod1:GetChildren()) do
  1141. if v:IsA("Part") then
  1142. v.Transparency = 1
  1143. v.BrickColor = BrickColor.new("White")
  1144. v.Material = "Neon"
  1145. end
  1146. end
  1147. for i, v in pairs(extrawingmod2:GetChildren()) do
  1148. if v:IsA("Part") then
  1149. v.Transparency = 1
  1150. v.BrickColor = BrickColor.new("White")
  1151. v.Material = "Neon"
  1152. end
  1153. end
  1154. local MAINRUINCOLOR = BrickColor.new("White")
  1155. ------
  1156.  
  1157.  
  1158. function RemoveOutlines(part)
  1159. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1160. end
  1161. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1162. local Part = Create("Part")({
  1163. Parent = Parent,
  1164. Reflectance = Reflectance,
  1165. Transparency = Transparency,
  1166. CanCollide = false,
  1167. Locked = true,
  1168. BrickColor = BrickColor.new(tostring(BColor)),
  1169. Name = Name,
  1170. Size = Size,
  1171. Material = Material
  1172. })
  1173. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1174. RemoveOutlines(Part)
  1175. return Part
  1176. end
  1177. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1178. local Msh = Create(Mesh)({
  1179. Parent = Part,
  1180. Offset = OffSet,
  1181. Scale = Scale
  1182. })
  1183. if Mesh == "SpecialMesh" then
  1184. Msh.MeshType = MeshType
  1185. Msh.MeshId = MeshId
  1186. end
  1187. return Msh
  1188. end
  1189. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1190. local Weld = Create("Weld")({
  1191. Parent = Parent,
  1192. Part0 = Part0,
  1193. Part1 = Part1,
  1194. C0 = C0,
  1195. C1 = C1
  1196. })
  1197. return Weld
  1198. end
  1199.  
  1200. Player=game:GetService("Players").LocalPlayer
  1201. Character=Player.Character
  1202. PlayerGui=Player.PlayerGui
  1203. Backpack=Player.Backpack
  1204. Torso=Character.Torso
  1205. Head=Character.Head
  1206. Humanoid=Character.Humanoid
  1207. m=Instance.new('Model',Character)
  1208. LeftArm=Character["Left Arm"]
  1209. LeftLeg=Character["Left Leg"]
  1210. RightArm=Character["Right Arm"]
  1211. RightLeg=Character["Right Leg"]
  1212. LS=Torso["Left Shoulder"]
  1213. LH=Torso["Left Hip"]
  1214. RS=Torso["Right Shoulder"]
  1215. RH=Torso["Right Hip"]
  1216. Face = Head.face
  1217. Neck=Torso.Neck
  1218. it=Instance.new
  1219. attacktype=1
  1220. vt=Vector3.new
  1221. cf=CFrame.new
  1222. euler=CFrame.fromEulerAnglesXYZ
  1223. angles=CFrame.Angles
  1224. cloaked=false
  1225. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1226. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1227. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1228. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1229. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1230. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1231. RootPart=Character.HumanoidRootPart
  1232. RootJoint=RootPart.RootJoint
  1233. RootCF=euler(-1.57,0,3.14)
  1234. attack = false
  1235. attackdebounce = false
  1236. deb=false
  1237. equipped=true
  1238. hand=false
  1239. MMouse=nil
  1240. combo=0
  1241. mana=0
  1242. trispeed=.2
  1243. attackmode='none'
  1244. local idle=0
  1245. local Anim="Idle"
  1246. local Effects={}
  1247. local gun=false
  1248. local shoot=false
  1249. local sine = 0
  1250. local change = 1
  1251. player=nil
  1252.  
  1253. function RecolorTextAndRename(name,col1,col2,font)
  1254. modet.TextStrokeColor3 = col2
  1255. modet.TextColor3 = col1
  1256. modet.Font = font
  1257. modet.Text = name
  1258. end
  1259. mouse=Player:GetMouse()
  1260. --save shoulders
  1261. RSH, LSH=nil, nil
  1262. --welds
  1263. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1264. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1265. LH=Torso["Left Hip"]
  1266. RH=Torso["Right Hip"]
  1267. TorsoColor=Torso.BrickColor
  1268. function NoOutline(Part)
  1269. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1270. end
  1271. player=Player
  1272. ch=Character
  1273. RSH=ch.Torso["Right Shoulder"]
  1274. LSH=ch.Torso["Left Shoulder"]
  1275. --
  1276. RSH.Parent=nil
  1277. LSH.Parent=nil
  1278. --
  1279. RW.Name="Right Shoulder"
  1280. RW.Part0=ch.Torso
  1281. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1282. RW.C1=cf(0, 0.5, 0)
  1283. RW.Part1=ch["Right Arm"]
  1284. RW.Parent=ch.Torso
  1285. --
  1286. LW.Name="Left Shoulder"
  1287. LW.Part0=ch.Torso
  1288. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1289. LW.C1=cf(0, 0.5, 0)
  1290. LW.Part1=ch["Left Arm"]
  1291. LW.Parent=ch.Torso
  1292.  
  1293. local Stats=Instance.new("BoolValue")
  1294. Stats.Name="Stats"
  1295. Stats.Parent=Character
  1296. local Atk=Instance.new("NumberValue")
  1297. Atk.Name="Damage"
  1298. Atk.Parent=Stats
  1299. Atk.Value=1
  1300. local Def=Instance.new("NumberValue")
  1301. Def.Name="Defense"
  1302. Def.Parent=Stats
  1303. Def.Value=1
  1304. local Speed=Instance.new("NumberValue")
  1305. Speed.Name="Speed"
  1306. Speed.Parent=Stats
  1307. Speed.Value=1
  1308. local Mvmt=Instance.new("NumberValue")
  1309. Mvmt.Name="Movement"
  1310. Mvmt.Parent=Stats
  1311. Mvmt.Value=1
  1312.  
  1313. local donum=0
  1314.  
  1315.  
  1316. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1317. local fp=it("Part")
  1318. fp.formFactor=formfactor
  1319. fp.Parent=parent
  1320. fp.Reflectance=reflectance
  1321. fp.Transparency=transparency
  1322. fp.CanCollide=false
  1323. fp.Locked=true
  1324. fp.BrickColor=brickcolor
  1325. fp.Name=name
  1326. fp.Size=size
  1327. fp.Position=Torso.Position
  1328. NoOutline(fp)
  1329. fp.Material="SmoothPlastic"
  1330. fp:BreakJoints()
  1331. return fp
  1332. end
  1333.  
  1334. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1335. local mesh=it(Mesh)
  1336. mesh.Parent=part
  1337. if Mesh=="SpecialMesh" then
  1338. mesh.MeshType=meshtype
  1339. if meshid~="nil" then
  1340. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1341. end
  1342. end
  1343. mesh.Offset=offset
  1344. mesh.Scale=scale
  1345. return mesh
  1346. end
  1347.  
  1348. function weld(parent,part0,part1,c0)
  1349. local weld=it("Weld")
  1350. weld.Parent=parent
  1351. weld.Part0=part0
  1352. weld.Part1=part1
  1353. weld.C0=c0
  1354. return weld
  1355. end
  1356.  
  1357. local Color1=Torso.BrickColor
  1358.  
  1359. local bodvel=Instance.new("BodyVelocity")
  1360. local bg=Instance.new("BodyGyro")
  1361.  
  1362. function swait(num)
  1363. if num==0 or num==nil then
  1364. game:service'RunService'.Stepped:wait(0)
  1365. else
  1366. for i=0,num do
  1367. game:service'RunService'.Stepped:wait(0)
  1368. end
  1369. end
  1370. end
  1371.  
  1372. -------- RAINBOW LEAVE IT TO ME
  1373. local r = 255
  1374. local g = 0
  1375. local b = 0
  1376. coroutine.resume(coroutine.create(function()
  1377. while wait() do
  1378. for i = 0, 254/5 do
  1379. swait()
  1380. g = g + 5
  1381. end
  1382. for i = 0, 254/5 do
  1383. swait()
  1384. r = r - 5
  1385. end
  1386. for i = 0, 254/5 do
  1387. swait()
  1388. b = b + 5
  1389. end
  1390. for i = 0, 254/5 do
  1391. swait()
  1392. g = g - 5
  1393. end
  1394. for i = 0, 254/5 do
  1395. swait()
  1396. r = r + 5
  1397. end
  1398. for i = 0, 254/5 do
  1399. swait()
  1400. b = b - 5
  1401. end
  1402. end
  1403. end))
  1404.  
  1405.  
  1406. so = function(id,par,vol,pit)
  1407. coroutine.resume(coroutine.create(function()
  1408. local sou = Instance.new("Sound",par or workspace)
  1409. sou.Volume=vol
  1410. sou.Pitch=pit or 1
  1411. sou.SoundId=id
  1412. swait()
  1413. sou:play()
  1414. game:GetService("Debris"):AddItem(sou,6)
  1415. end))
  1416. end
  1417.  
  1418. function clerp(a,b,t)
  1419. local qa = {QuaternionFromCFrame(a)}
  1420. local qb = {QuaternionFromCFrame(b)}
  1421. local ax, ay, az = a.x, a.y, a.z
  1422. local bx, by, bz = b.x, b.y, b.z
  1423. local _t = 1-t
  1424. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1425. end
  1426.  
  1427. function QuaternionFromCFrame(cf)
  1428. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1429. local trace = m00 + m11 + m22
  1430. if trace > 0 then
  1431. local s = math.sqrt(1 + trace)
  1432. local recip = 0.5/s
  1433. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1434. else
  1435. local i = 0
  1436. if m11 > m00 then
  1437. i = 1
  1438. end
  1439. if m22 > (i == 0 and m00 or m11) then
  1440. i = 2
  1441. end
  1442. if i == 0 then
  1443. local s = math.sqrt(m00-m11-m22+1)
  1444. local recip = 0.5/s
  1445. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1446. elseif i == 1 then
  1447. local s = math.sqrt(m11-m22-m00+1)
  1448. local recip = 0.5/s
  1449. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1450. elseif i == 2 then
  1451. local s = math.sqrt(m22-m00-m11+1)
  1452. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1453. end
  1454. end
  1455. end
  1456.  
  1457. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1458. local xs, ys, zs = x + x, y + y, z + z
  1459. local wx, wy, wz = w*xs, w*ys, w*zs
  1460. local xx = x*xs
  1461. local xy = x*ys
  1462. local xz = x*zs
  1463. local yy = y*ys
  1464. local yz = y*zs
  1465. local zz = z*zs
  1466. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1467. end
  1468.  
  1469. function QuaternionSlerp(a, b, t)
  1470. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1471. local startInterp, finishInterp;
  1472. if cosTheta >= 0.0001 then
  1473. if (1 - cosTheta) > 0.0001 then
  1474. local theta = math.acos(cosTheta)
  1475. local invSinTheta = 1/math.sin(theta)
  1476. startInterp = math.sin((1-t)*theta)*invSinTheta
  1477. finishInterp = math.sin(t*theta)*invSinTheta
  1478. else
  1479. startInterp = 1-t
  1480. finishInterp = t
  1481. end
  1482. else
  1483. if (1+cosTheta) > 0.0001 then
  1484. local theta = math.acos(-cosTheta)
  1485. local invSinTheta = 1/math.sin(theta)
  1486. startInterp = math.sin((t-1)*theta)*invSinTheta
  1487. finishInterp = math.sin(t*theta)*invSinTheta
  1488. else
  1489. startInterp = t-1
  1490. finishInterp = t
  1491. end
  1492. end
  1493. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1494. end
  1495.  
  1496. local function CFrameFromTopBack(at, top, back)
  1497. local right = top:Cross(back)
  1498. return CFrame.new(at.x, at.y, at.z,
  1499. right.x, top.x, back.x,
  1500. right.y, top.y, back.y,
  1501. right.z, top.z, back.z)
  1502. end
  1503.  
  1504. function Triangle(a, b, c)
  1505. local edg1 = (c-a):Dot((b-a).unit)
  1506. local edg2 = (a-b):Dot((c-b).unit)
  1507. local edg3 = (b-c):Dot((a-c).unit)
  1508. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1509. a, b, c = a, b, c
  1510. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1511. a, b, c = b, c, a
  1512. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1513. a, b, c = c, a, b
  1514. else
  1515. assert(false, "unreachable")
  1516. end
  1517.  
  1518. local len1 = (c-a):Dot((b-a).unit)
  1519. local len2 = (b-a).magnitude - len1
  1520. local width = (a + (b-a).unit*len1 - c).magnitude
  1521.  
  1522. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1523.  
  1524. local list = {}
  1525.  
  1526. if len1 > 0.01 then
  1527. local w1 = Instance.new('WedgePart', m)
  1528. game:GetService("Debris"):AddItem(w1,5)
  1529. w1.Material = "SmoothPlastic"
  1530. w1.FormFactor = 'Custom'
  1531. w1.BrickColor = BrickColor.new("Really red")
  1532. w1.Transparency = 0
  1533. w1.Reflectance = 0
  1534. w1.Material = "SmoothPlastic"
  1535. w1.CanCollide = false
  1536. local l1 = Instance.new("PointLight",w1)
  1537. l1.Color = Color3.new(170,0,0)
  1538. NoOutline(w1)
  1539. local sz = Vector3.new(0.2, width, len1)
  1540. w1.Size = sz
  1541. local sp = Instance.new("SpecialMesh",w1)
  1542. sp.MeshType = "Wedge"
  1543. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1544. w1:BreakJoints()
  1545. w1.Anchored = true
  1546. w1.Parent = workspace
  1547. w1.Transparency = 0.7
  1548. table.insert(Effects,{w1,"Disappear",.01})
  1549. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1550. table.insert(list,w1)
  1551. end
  1552.  
  1553. if len2 > 0.01 then
  1554. local w2 = Instance.new('WedgePart', m)
  1555. game:GetService("Debris"):AddItem(w2,5)
  1556. w2.Material = "SmoothPlastic"
  1557. w2.FormFactor = 'Custom'
  1558. w2.BrickColor = BrickColor.new("Really red")
  1559. w2.Transparency = 0
  1560. w2.Reflectance = 0
  1561. w2.Material = "SmoothPlastic"
  1562. w2.CanCollide = false
  1563. local l2 = Instance.new("PointLight",w2)
  1564. l2.Color = Color3.new(170,0,0)
  1565. NoOutline(w2)
  1566. local sz = Vector3.new(0.2, width, len2)
  1567. w2.Size = sz
  1568. local sp = Instance.new("SpecialMesh",w2)
  1569. sp.MeshType = "Wedge"
  1570. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1571. w2:BreakJoints()
  1572. w2.Anchored = true
  1573. w2.Parent = workspace
  1574. w2.Transparency = 0.7
  1575. table.insert(Effects,{w2,"Disappear",.01})
  1576. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1577. table.insert(list,w2)
  1578. end
  1579. return unpack(list)
  1580. end
  1581.  
  1582.  
  1583. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1584. if hit.Parent == nil then
  1585. return
  1586. end
  1587. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1588. for _, v in pairs(hit.Parent:children()) do
  1589. if v:IsA("Humanoid") then
  1590. h = v
  1591. end
  1592. end
  1593. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1594. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1595. return
  1596. end
  1597. local c = Create("ObjectValue")({
  1598. Name = "creator",
  1599. Value = game:service("Players").LocalPlayer,
  1600. Parent = h
  1601. })
  1602. game:GetService("Debris"):AddItem(c, 0.5)
  1603. if HitSound ~= nil and HitPitch ~= nil then
  1604. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1605. end
  1606. local Damage = math.random(minim, maxim)
  1607. local blocked = false
  1608. local block = hit.Parent:findFirstChild("Block")
  1609. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1610. blocked = true
  1611. block.Value = block.Value - 1
  1612. print(block.Value)
  1613. end
  1614. if blocked == false then
  1615. HitHealth = h.Health
  1616. h.Health = h.Health - Damage
  1617. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1618. print("gained kill")
  1619. end
  1620. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1621. else
  1622. h.Health = h.Health - Damage / 2
  1623. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1624. end
  1625. if Type == "Knockdown" then
  1626. local hum = hit.Parent.Humanoid
  1627. hum.PlatformStand = true
  1628. coroutine.resume(coroutine.create(function(HHumanoid)
  1629. swait(1)
  1630. HHumanoid.PlatformStand = false
  1631. end), hum)
  1632. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1633. local bodvol = Create("BodyVelocity")({
  1634. velocity = angle * knockback,
  1635. P = 5000,
  1636. maxForce = Vector3.new(8000, 8000, 8000),
  1637. Parent = hit
  1638. })
  1639. local rl = Create("BodyAngularVelocity")({
  1640. P = 3000,
  1641. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1642. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1643. Parent = hit
  1644. })
  1645. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1646. game:GetService("Debris"):AddItem(rl, 0.5)
  1647. elseif Type == "Normal" then
  1648. local vp = Create("BodyVelocity")({
  1649. P = 500,
  1650. maxForce = Vector3.new(math.huge, 0, math.huge),
  1651. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1652. })
  1653. if knockback > 0 then
  1654. vp.Parent = hit.Parent.Head
  1655. end
  1656. game:GetService("Debris"):AddItem(vp, 0.5)
  1657. elseif Type == "Up" then
  1658. local bodyVelocity = Create("BodyVelocity")({
  1659. velocity = Vector3.new(0, 20, 0),
  1660. P = 5000,
  1661. maxForce = Vector3.new(8000, 8000, 8000),
  1662. Parent = hit
  1663. })
  1664. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1665. local bodyVelocity = Create("BodyVelocity")({
  1666. velocity = Vector3.new(0, 20, 0),
  1667. P = 5000,
  1668. maxForce = Vector3.new(8000, 8000, 8000),
  1669. Parent = hit
  1670. })
  1671. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1672. elseif Type == "Leech" then
  1673. local hum = hit.Parent.Humanoid
  1674. if hum ~= nil then
  1675. for i = 0, 2 do
  1676. 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)
  1677. end
  1678. Humanoid.Health = Humanoid.Health + 10
  1679. end
  1680. elseif Type == "UpKnock" then
  1681. local hum = hit.Parent.Humanoid
  1682. hum.PlatformStand = true
  1683. if hum ~= nil then
  1684. hitr = true
  1685. end
  1686. coroutine.resume(coroutine.create(function(HHumanoid)
  1687. swait(5)
  1688. HHumanoid.PlatformStand = false
  1689. hitr = false
  1690. end), hum)
  1691. local bodyVelocity = Create("BodyVelocity")({
  1692. velocity = Vector3.new(0, 20, 0),
  1693. P = 5000,
  1694. maxForce = Vector3.new(8000, 8000, 8000),
  1695. Parent = hit
  1696. })
  1697. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1698. local bodyVelocity = Create("BodyVelocity")({
  1699. velocity = Vector3.new(0, 20, 0),
  1700. P = 5000,
  1701. maxForce = Vector3.new(8000, 8000, 8000),
  1702. Parent = hit
  1703. })
  1704. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1705. elseif Type == "Snare" then
  1706. local bp = Create("BodyPosition")({
  1707. P = 2000,
  1708. D = 100,
  1709. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1710. position = hit.Parent.Torso.Position,
  1711. Parent = hit.Parent.Torso
  1712. })
  1713. game:GetService("Debris"):AddItem(bp, 1)
  1714. elseif Type == "Slashnare" then
  1715. 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)
  1716. for i = 1, math.random(4, 5) do
  1717. 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)
  1718. end
  1719. local bp = Create("BodyPosition")({
  1720. P = 2000,
  1721. D = 100,
  1722. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1723. position = hit.Parent.Torso.Position,
  1724. Parent = hit.Parent.Torso
  1725. })
  1726. game:GetService("Debris"):AddItem(bp, 1)
  1727. elseif Type == "Spike" then
  1728. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1729. local bp = Create("BodyPosition")({
  1730. P = 2000,
  1731. D = 100,
  1732. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1733. position = hit.Parent.Torso.Position,
  1734. Parent = hit.Parent.Torso
  1735. })
  1736. game:GetService("Debris"):AddItem(bp, 1)
  1737. elseif Type == "Freeze" then
  1738. local BodPos = Create("BodyPosition")({
  1739. P = 50000,
  1740. D = 1000,
  1741. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1742. position = hit.Parent.Torso.Position,
  1743. Parent = hit.Parent.Torso
  1744. })
  1745. local BodGy = Create("BodyGyro")({
  1746. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1747. P = 20000,
  1748. Parent = hit.Parent.Torso,
  1749. cframe = hit.Parent.Torso.CFrame
  1750. })
  1751. hit.Parent.Torso.Anchored = true
  1752. coroutine.resume(coroutine.create(function(Part)
  1753. swait(1.5)
  1754. Part.Anchored = false
  1755. end), hit.Parent.Torso)
  1756. game:GetService("Debris"):AddItem(BodPos, 3)
  1757. game:GetService("Debris"):AddItem(BodGy, 3)
  1758. end
  1759. local debounce = Create("BoolValue")({
  1760. Name = "DebounceHit",
  1761. Parent = hit.Parent,
  1762. Value = true
  1763. })
  1764. game:GetService("Debris"):AddItem(debounce, Delay)
  1765. c = Instance.new("ObjectValue")
  1766. c.Name = "creator"
  1767. c.Value = Player
  1768. c.Parent = h
  1769. game:GetService("Debris"):AddItem(c, 0.5)
  1770. end
  1771. end
  1772. function ShowDamage(Pos, Text, Time, Color)
  1773. local Rate = 0.03333333333333333
  1774. local Pos = Pos or Vector3.new(0, 0, 0)
  1775. local Text = Text or ""
  1776. local Time = Time or 2
  1777. local Color = Color or Color3.new(1, 0, 1)
  1778. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1779. EffectPart.Anchored = true
  1780. local BillboardGui = Create("BillboardGui")({
  1781. Size = UDim2.new(3, 0, 3, 0),
  1782. Adornee = EffectPart,
  1783. Parent = EffectPart
  1784. })
  1785. local TextLabel = Create("TextLabel")({
  1786. BackgroundTransparency = 1,
  1787. Size = UDim2.new(1, 0, 1, 0),
  1788. Text = Text,
  1789. TextColor3 = Color,
  1790. TextScaled = true,
  1791. Font = Enum.Font.ArialBold,
  1792. Parent = BillboardGui
  1793. })
  1794. game.Debris:AddItem(EffectPart, Time + 0.1)
  1795. EffectPart.Parent = game:GetService("Workspace")
  1796. delay(0, function()
  1797. local Frames = Time / Rate
  1798. for Frame = 1, Frames do
  1799. wait(Rate)
  1800. local Percent = Frame / Frames
  1801. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1802. TextLabel.TextTransparency = Percent
  1803. end
  1804. if EffectPart and EffectPart.Parent then
  1805. EffectPart:Destroy()
  1806. end
  1807. end)
  1808. end
  1809. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1810. for _, c in pairs(workspace:children()) do
  1811. local hum = c:findFirstChildOfClass("Humanoid")
  1812. if hum ~= nil then
  1813. local head = c:findFirstChild("Head")
  1814. if head ~= nil then
  1815. local targ = head.Position - Part.Position
  1816. local mag = targ.magnitude
  1817. if magni >= mag and c.Name ~= Player.Name then
  1818. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1819. end
  1820. end
  1821. end
  1822. end
  1823. end
  1824.  
  1825. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1826. for _, c in pairs(workspace:children()) do
  1827. local hum = c:findFirstChild("Humanoid")
  1828. if hum ~= nil then
  1829. local head = c:findFirstChild("Torso")
  1830. if head ~= nil then
  1831. local targ = head.Position - Part.Position
  1832. local mag = targ.magnitude
  1833. if magni >= mag and c.Name ~= Player.Name then
  1834. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1835. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1836. end
  1837. end
  1838. end
  1839. end
  1840. end
  1841.  
  1842. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1843. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1844. end
  1845.  
  1846. local origcolor = BrickColor.new("Pastel light blue")
  1847. ---- This section of explosions.
  1848.  
  1849. ----
  1850.  
  1851.  
  1852. function ring(type,pos,scale,value)
  1853. local type = type
  1854. local rng = Instance.new("Part", char)
  1855. rng.Anchored = true
  1856. rng.BrickColor = origcolor
  1857. rng.CanCollide = false
  1858. rng.FormFactor = 3
  1859. rng.Name = "Ring"
  1860. rng.Size = Vector3.new(1, 1, 1)
  1861. rng.Transparency = 0
  1862. rng.TopSurface = 0
  1863. rng.BottomSurface = 0
  1864. rng.CFrame = pos
  1865. local rngm = Instance.new("SpecialMesh", rng)
  1866. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1867. rngm.Scale = scale
  1868. local scaler2 = 1
  1869. if type == "Add" then
  1870. scaler2 = 1*value
  1871. elseif type == "Divide" then
  1872. scaler2 = 1/value
  1873. end
  1874. coroutine.resume(coroutine.create(function()
  1875. for i = 0,10,0.1 do
  1876. swait()
  1877. if type == "Add" then
  1878. scaler2 = scaler2 - 0.01*value
  1879. elseif type == "Divide" then
  1880. scaler2 = scaler2 - 0.01/value
  1881. end
  1882. rng.Transparency = rng.Transparency + 0.01
  1883. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1884. end
  1885. rng:Destroy()
  1886. end))
  1887. end
  1888.  
  1889.  
  1890. function wave(type,pos,scale,value)
  1891. local type = type
  1892. local rng = Instance.new("Part", char)
  1893. rng.Anchored = true
  1894. rng.BrickColor = origcolor
  1895. rng.CanCollide = false
  1896. rng.FormFactor = 3
  1897. rng.Name = "Ring"
  1898. rng.Size = Vector3.new(1, 1, 1)
  1899. rng.Transparency = 0
  1900. rng.TopSurface = 0
  1901. rng.BottomSurface = 0
  1902. rng.CFrame = pos
  1903. local rngm = Instance.new("SpecialMesh", rng)
  1904. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1905. rngm.Scale = scale
  1906. local scaler2 = 1
  1907. if type == "Add" then
  1908. scaler2 = 1*value
  1909. elseif type == "Divide" then
  1910. scaler2 = 1/value
  1911. end
  1912. coroutine.resume(coroutine.create(function()
  1913. for i = 0,10,0.1 do
  1914. swait()
  1915. if type == "Add" then
  1916. scaler2 = scaler2 - 0.01*value
  1917. elseif type == "Divide" then
  1918. scaler2 = scaler2 - 0.01/value
  1919. end
  1920. rng.Transparency = rng.Transparency + 0.01
  1921. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  1922. end
  1923. rng:Destroy()
  1924. end))
  1925. end
  1926.  
  1927. function sphere(bonuspeed,type,pos,scale,value,color)
  1928. local type = type
  1929. local rng = Instance.new("Part", char)
  1930. rng.Anchored = true
  1931. if ModeOfGlitch ~= 9 then
  1932. rng.BrickColor = color
  1933. elseif ModeOfGlitch == 9 then
  1934. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1935. end
  1936. rng.CanCollide = false
  1937. rng.FormFactor = 3
  1938. rng.Name = "Ring"
  1939. rng.Material = "Neon"
  1940. rng.Size = Vector3.new(1, 1, 1)
  1941. rng.Transparency = 0
  1942. rng.TopSurface = 0
  1943. rng.BottomSurface = 0
  1944. rng.CFrame = pos
  1945. local rngm = Instance.new("SpecialMesh", rng)
  1946. rngm.MeshType = "Sphere"
  1947. rngm.Scale = scale
  1948. if rainbowmode == true then
  1949. rng.Color = Color3.new(r/255,g/255,b/255)
  1950. end
  1951. if ModeOfGlitch == 9 then
  1952. coroutine.resume(coroutine.create(function()
  1953. while true do
  1954. swait()
  1955. if rng.Parent ~= nil then
  1956. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1957. else
  1958. break
  1959. end
  1960. end
  1961. end))
  1962. end
  1963. local scaler2 = 1
  1964. if type == "Add" then
  1965. scaler2 = 1*value
  1966. elseif type == "Divide" then
  1967. scaler2 = 1/value
  1968. end
  1969. coroutine.resume(coroutine.create(function()
  1970. for i = 0,10/bonuspeed,0.1 do
  1971. swait()
  1972. if rainbowmode == true then
  1973. rng.Color = Color3.new(r/255,g/255,b/255)
  1974. end
  1975. if type == "Add" then
  1976. scaler2 = scaler2 - 0.01*value/bonuspeed
  1977. elseif type == "Divide" then
  1978. scaler2 = scaler2 - 0.01/value*bonuspeed
  1979. end
  1980. if chaosmode == true then
  1981. rng.BrickColor = BrickColor.random()
  1982. end
  1983. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1984. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1985. end
  1986. rng:Destroy()
  1987. end))
  1988. end
  1989.  
  1990. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  1991. local type = type
  1992. local rng = Instance.new("Part", char)
  1993. rng.Anchored = true
  1994. if ModeOfGlitch ~= 9 then
  1995. rng.BrickColor = color
  1996. elseif ModeOfGlitch == 9 then
  1997. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1998. end
  1999. rng.CanCollide = false
  2000. rng.FormFactor = 3
  2001. rng.Name = "Ring"
  2002. rng.Material = "Neon"
  2003. rng.Size = Vector3.new(1, 1, 1)
  2004. rng.Transparency = 0
  2005. rng.TopSurface = 0
  2006. rng.BottomSurface = 0
  2007. rng.CFrame = pos
  2008. local rngm = Instance.new("SpecialMesh", rng)
  2009. rngm.MeshType = "Sphere"
  2010. rngm.Scale = scale
  2011. local scaler2 = 1
  2012. local scaler2b = 1
  2013. local scaler2c = 1
  2014. if type == "Add" then
  2015. scaler2 = 1*value
  2016. scaler2b = 1*value2
  2017. scaler2c = 1*value3
  2018. elseif type == "Divide" then
  2019. scaler2 = 1/value
  2020. scaler2b = 1/value2
  2021. scaler2c = 1/value3
  2022. end
  2023. if ModeOfGlitch == 9 then
  2024. coroutine.resume(coroutine.create(function()
  2025. while true do
  2026. swait()
  2027. if rng.Parent ~= nil then
  2028. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2029. else
  2030. break
  2031. end
  2032. end
  2033. end))
  2034. end
  2035. coroutine.resume(coroutine.create(function()
  2036. for i = 0,10/bonuspeed,0.1 do
  2037. swait()
  2038. if type == "Add" then
  2039. scaler2 = scaler2 - 0.01*value/bonuspeed
  2040. scaler2b = scaler2b - 0.01*value/bonuspeed
  2041. scaler2c = scaler2c - 0.01*value/bonuspeed
  2042. elseif type == "Divide" then
  2043. scaler2 = scaler2 - 0.01/value*bonuspeed
  2044. scaler2b = scaler2b - 0.01/value*bonuspeed
  2045. scaler2c = scaler2c - 0.01/value*bonuspeed
  2046. end
  2047. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2048. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2049. end
  2050. rng:Destroy()
  2051. end))
  2052. end
  2053.  
  2054. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2055. local type = type
  2056. local rng = Instance.new("Part", char)
  2057. rng.Anchored = true
  2058. rng.BrickColor = color
  2059. rng.CanCollide = false
  2060. rng.FormFactor = 3
  2061. rng.Name = "Ring"
  2062. rng.Material = "Neon"
  2063. rng.Size = Vector3.new(1, 1, 1)
  2064. rng.Transparency = 0
  2065. rng.TopSurface = 0
  2066. rng.BottomSurface = 0
  2067. rng.CFrame = pos
  2068. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2069. local rngm = Instance.new("SpecialMesh", rng)
  2070. rngm.MeshType = "Brick"
  2071. rngm.Scale = vt(x1,y1,z1)
  2072. if rainbowmode == true then
  2073. rng.Color = Color3.new(r/255,g/255,b/255)
  2074. end
  2075. local scaler2 = 1
  2076. local speeder = FastSpeed/10
  2077. if type == "Add" then
  2078. scaler2 = 1*value
  2079. elseif type == "Divide" then
  2080. scaler2 = 1/value
  2081. end
  2082. coroutine.resume(coroutine.create(function()
  2083. for i = 0,10/bonuspeed,0.1 do
  2084. swait()
  2085. if rainbowmode == true then
  2086. rng.Color = Color3.new(r/255,g/255,b/255)
  2087. end
  2088. if type == "Add" then
  2089. scaler2 = scaler2 - 0.01*value/bonuspeed
  2090. elseif type == "Divide" then
  2091. scaler2 = scaler2 - 0.01/value*bonuspeed
  2092. end
  2093. if chaosmode == true then
  2094. rng.BrickColor = BrickColor.random()
  2095. end
  2096. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2097. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2098. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2099. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2100. end
  2101. rng:Destroy()
  2102. end))
  2103. end
  2104.  
  2105. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2106. local type = type
  2107. local rng = Instance.new("Part", char)
  2108. rng.Anchored = true
  2109. rng.BrickColor = color
  2110. rng.CanCollide = false
  2111. rng.FormFactor = 3
  2112. rng.Name = "Ring"
  2113. rng.Material = "Neon"
  2114. rng.Size = Vector3.new(1, 1, 1)
  2115. rng.Transparency = 0
  2116. rng.TopSurface = 0
  2117. rng.BottomSurface = 0
  2118. rng.CFrame = pos
  2119. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2120. local rngm = Instance.new("SpecialMesh", rng)
  2121. rngm.MeshType = "Brick"
  2122. rngm.Scale = vt(x1,y1,z1)
  2123. if rainbowmode == true then
  2124. rng.Color = Color3.new(r/255,g/255,b/255)
  2125. end
  2126. local scaler2 = 1
  2127. local speeder = FastSpeed/10
  2128. if type == "Add" then
  2129. scaler2 = 1*value
  2130. elseif type == "Divide" then
  2131. scaler2 = 1/value
  2132. end
  2133. coroutine.resume(coroutine.create(function()
  2134. for i = 0,10/bonuspeed,0.1 do
  2135. swait()
  2136. if rainbowmode == true then
  2137. rng.Color = Color3.new(r/255,g/255,b/255)
  2138. end
  2139. if type == "Add" then
  2140. scaler2 = scaler2 - 0.01*value/bonuspeed
  2141. elseif type == "Divide" then
  2142. scaler2 = scaler2 - 0.01/value*bonuspeed
  2143. end
  2144. if chaosmode == true then
  2145. rng.BrickColor = BrickColor.random()
  2146. end
  2147. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2148. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2149. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2150. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2151. end
  2152. rng:Destroy()
  2153. end))
  2154. end
  2155.  
  2156. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2157. local type = type
  2158. local rng = Instance.new("Part", char)
  2159. rng.Anchored = true
  2160. rng.BrickColor = color
  2161. rng.CanCollide = false
  2162. rng.FormFactor = 3
  2163. rng.Name = "Ring"
  2164. rng.Material = "Neon"
  2165. rng.Size = Vector3.new(1, 1, 1)
  2166. rng.Transparency = 0
  2167. rng.TopSurface = 0
  2168. rng.BottomSurface = 0
  2169. rng.CFrame = pos
  2170. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2171. local rngm = Instance.new("SpecialMesh", rng)
  2172. rngm.MeshType = "Brick"
  2173. rngm.Scale = vt(x1,y1,z1)
  2174. if rainbowmode == true then
  2175. rng.Color = Color3.new(r/255,g/255,b/255)
  2176. end
  2177. local scaler2 = 0
  2178. local speeder = FastSpeed/10
  2179. if type == "Add" then
  2180. scaler2 = 1*value
  2181. elseif type == "Divide" then
  2182. scaler2 = 1/value
  2183. end
  2184. coroutine.resume(coroutine.create(function()
  2185. for i = 0,10/bonuspeed,0.1 do
  2186. swait()
  2187. if rainbowmode == true then
  2188. rng.Color = Color3.new(r/255,g/255,b/255)
  2189. end
  2190. if type == "Add" then
  2191. scaler2 = scaler2 - 0.01*value/bonuspeed
  2192. elseif type == "Divide" then
  2193. scaler2 = scaler2 - 0.01/value*bonuspeed
  2194. end
  2195. if chaosmode == true then
  2196. rng.BrickColor = BrickColor.random()
  2197. end
  2198. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2199. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2200. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2201. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2202. end
  2203. rng:Destroy()
  2204. end))
  2205. end
  2206.  
  2207. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2208. local type = type
  2209. local rng = Instance.new("Part", char)
  2210. rng.Anchored = true
  2211. if ModeOfGlitch ~= 9 then
  2212. rng.BrickColor = color
  2213. elseif ModeOfGlitch == 9 then
  2214. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2215. end
  2216. rng.CanCollide = false
  2217. rng.FormFactor = 3
  2218. rng.Name = "Ring"
  2219. rng.Material = "Neon"
  2220. rng.Size = Vector3.new(1, 1, 1)
  2221. rng.Transparency = 0
  2222. rng.TopSurface = 0
  2223. rng.BottomSurface = 0
  2224. rng.CFrame = pos
  2225. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2226. local rngm = Instance.new("SpecialMesh", rng)
  2227. rngm.MeshType = "Sphere"
  2228. rngm.Scale = vt(x1,y1,z1)
  2229. if rainbowmode == true then
  2230. rng.Color = Color3.new(r/255,g/255,b/255)
  2231. end
  2232. if ModeOfGlitch == 9 then
  2233. coroutine.resume(coroutine.create(function()
  2234. while true do
  2235. swait()
  2236. if rng.Parent ~= nil then
  2237. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2238. else
  2239. break
  2240. end
  2241. end
  2242. end))
  2243. end
  2244. local scaler2 = 1
  2245. local speeder = FastSpeed
  2246. if type == "Add" then
  2247. scaler2 = 1*value
  2248. elseif type == "Divide" then
  2249. scaler2 = 1/value
  2250. end
  2251. coroutine.resume(coroutine.create(function()
  2252. for i = 0,10/bonuspeed,0.1 do
  2253. swait()
  2254. if rainbowmode == true then
  2255. rng.Color = Color3.new(r/255,g/255,b/255)
  2256. end
  2257. if type == "Add" then
  2258. scaler2 = scaler2 - 0.01*value/bonuspeed
  2259. elseif type == "Divide" then
  2260. scaler2 = scaler2 - 0.01/value*bonuspeed
  2261. end
  2262. if chaosmode == true then
  2263. rng.BrickColor = BrickColor.random()
  2264. end
  2265. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2266. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2267. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2268. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2269. end
  2270. rng:Destroy()
  2271. end))
  2272. end
  2273.  
  2274.  
  2275. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2276. local type = type
  2277. local rng = Instance.new("Part", char)
  2278. rng.Anchored = true
  2279. if ModeOfGlitch ~= 9 then
  2280. rng.BrickColor = color
  2281. elseif ModeOfGlitch == 9 then
  2282. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2283. end
  2284. rng.CanCollide = false
  2285. rng.FormFactor = 3
  2286. rng.Name = "Ring"
  2287. rng.Material = "Neon"
  2288. rng.Size = Vector3.new(1, 1, 1)
  2289. rng.Transparency = 1
  2290. rng.TopSurface = 0
  2291. rng.BottomSurface = 0
  2292. rng.CFrame = pos
  2293. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2294. local rngm = Instance.new("SpecialMesh", rng)
  2295. rngm.MeshType = "Sphere"
  2296. rngm.Scale = vt(x1,y1,z1)
  2297. if rainbowmode == true then
  2298. rng.Color = Color3.new(r/255,g/255,b/255)
  2299. end
  2300. if ModeOfGlitch == 9 then
  2301. coroutine.resume(coroutine.create(function()
  2302. while true do
  2303. swait()
  2304. if rng.Parent ~= nil then
  2305. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2306. else
  2307. break
  2308. end
  2309. end
  2310. end))
  2311. end
  2312. local scaler2 = 1
  2313. local speeder = FastSpeed
  2314. if type == "Add" then
  2315. scaler2 = 1*value
  2316. elseif type == "Divide" then
  2317. scaler2 = 1/value
  2318. end
  2319. coroutine.resume(coroutine.create(function()
  2320. for i = 0,10/bonuspeed,0.1 do
  2321. swait()
  2322. if rainbowmode == true then
  2323. rng.Color = Color3.new(r/255,g/255,b/255)
  2324. end
  2325. if type == "Add" then
  2326. scaler2 = scaler2 - 0.01*value/bonuspeed
  2327. elseif type == "Divide" then
  2328. scaler2 = scaler2 - 0.01/value*bonuspeed
  2329. end
  2330. if chaosmode == true then
  2331. rng.BrickColor = BrickColor.random()
  2332. end
  2333. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2334. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2335. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2336. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2337. end
  2338. rng:Destroy()
  2339. end))
  2340. end
  2341.  
  2342. function dmg(dude)
  2343. if dude.Name ~= Character then
  2344. local keptcolor = MAINRUINCOLOR
  2345. local bgf = Instance.new("BodyGyro",dude.Head)
  2346. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2347. --[[local val = Instance.new("BoolValue",dude)
  2348. val.Name = "IsHit"]]--
  2349. local ds = coroutine.wrap(function()
  2350. dude:WaitForChild("Head"):BreakJoints()
  2351. for i, v in pairs(dude:GetChildren()) do
  2352. if v:IsA("Part") or v:IsA("MeshPart") then
  2353. v.Name = "DEMINISHED"
  2354. end
  2355. end
  2356. wait(0.5)
  2357. targetted = nil
  2358. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2359. coroutine.resume(coroutine.create(function()
  2360. for i, v in pairs(dude:GetChildren()) do
  2361. if v:IsA("Accessory") then
  2362. v:Destroy()
  2363. end
  2364. if v:IsA("Humanoid") then
  2365. v:Destroy()
  2366. end
  2367. if v:IsA("CharacterMesh") then
  2368. v:Destroy()
  2369. end
  2370. if v:IsA("Model") then
  2371. v:Destroy()
  2372. end
  2373. if v:IsA("Part") or v:IsA("MeshPart") then
  2374. for x, o in pairs(v:GetChildren()) do
  2375. if o:IsA("Decal") then
  2376. o:Destroy()
  2377. end
  2378. end
  2379. coroutine.resume(coroutine.create(function()
  2380. v.Material = "Neon"
  2381. v.CanCollide = false
  2382. v.Anchored = false
  2383. local bld = Instance.new("ParticleEmitter",v)
  2384. bld.LightEmission = 0.75
  2385. bld.Texture = "rbxassetid://363275192" ---284205403
  2386. bld.Color = ColorSequence.new(keptcolor.Color)
  2387. bld.Rate = 500
  2388. bld.Lifetime = NumberRange.new(1)
  2389. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2390. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2391. bld.Speed = NumberRange.new(2,5)
  2392. bld.VelocitySpread = 50000
  2393. bld.Rotation = NumberRange.new(-500,500)
  2394. bld.RotSpeed = NumberRange.new(-500,500)
  2395. local sbs = Instance.new("BodyPosition", v)
  2396. sbs.P = 3000
  2397. sbs.D = 1000
  2398. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2399. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2400. v.Color = keptcolor.Color
  2401. coroutine.resume(coroutine.create(function()
  2402. for i = 0, 49 do
  2403. swait(1)
  2404. v:BreakJoints()
  2405. v.Transparency = v.Transparency + 0.02
  2406. end
  2407. v:BreakJoints()
  2408. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  2409. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  2410. bld.Speed = NumberRange.new(10,25)
  2411. bld.Drag = 5
  2412. bld.Acceleration = vt(0,2,0)
  2413. wait(0.5)
  2414. bld.Enabled = false
  2415. wait(8)
  2416. v:Destroy()
  2417. dude:Destroy()
  2418. end))
  2419. end))
  2420. end
  2421. end
  2422. end))
  2423. end)
  2424. ds()
  2425. end
  2426. end
  2427.  
  2428.  
  2429. function FindNearestHead(Position, Distance, SinglePlayer)
  2430. if SinglePlayer then
  2431. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2432. end
  2433. local List = {}
  2434. for i, v in pairs(workspace:GetChildren()) do
  2435. if v:IsA("Model") then
  2436. if v:findFirstChild("Head") then
  2437. if v ~= Character then
  2438. if (v.Head.Position - Position).magnitude <= Distance then
  2439. table.insert(List, v)
  2440. end
  2441. end
  2442. end
  2443. end
  2444. end
  2445. return List
  2446. end
  2447.  
  2448. function FaceMouse()
  2449. Cam = workspace.CurrentCamera
  2450. return {
  2451. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2452. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2453. }
  2454. end
  2455.  
  2456. function FaceMouse2()
  2457. Cam = workspace.CurrentCamera
  2458. return {
  2459. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2460. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2461. }
  2462. end
  2463.  
  2464. -- Functions are ready.
  2465. local storehumanoidWS = 16
  2466.  
  2467. function resetmode()
  2468. ModeOfGlitch = 1
  2469. storehumanoidWS = 16
  2470. hum.WalkSpeed = 16
  2471. rainbowmode = false
  2472. chaosmode = false
  2473. RecolorTextAndRename("Enlightened",Color3.new(1,1,1),Color3.new(0,0,0),"Code")
  2474. newTheme("rbxassetid://435773595",0,1.01,1.25)
  2475. MAINRUINCOLOR = BrickColor.new("White")
  2476. for i, v in pairs(mw2:GetChildren()) do
  2477. if v:IsA("Part") then
  2478. v.BrickColor = MAINRUINCOLOR
  2479. v.Material = "Neon"
  2480. end
  2481. end
  2482. refec.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2483. refec2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2484. refec3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2485. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2486. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2487. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2488. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2489. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2490. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2491. for i, v in pairs(mw1:GetChildren()) do
  2492. if v:IsA("Part") then
  2493. v.Transparency = 0
  2494. v.BrickColor = MAINRUINCOLOR
  2495. v.Material = "Neon"
  2496. end
  2497. end
  2498. for i, v in pairs(m:GetChildren()) do
  2499. if v:IsA("Part") then
  2500. v.BrickColor = BrickColor.new("White")
  2501. v.Material = "Ice"
  2502. end
  2503. end
  2504. for i, v in pairs(m2:GetChildren()) do
  2505. if v:IsA("Part") then
  2506. v.BrickColor = BrickColor.new("White")
  2507. v.Material = "Ice"
  2508. end
  2509. end
  2510. for i, v in pairs(m3:GetChildren()) do
  2511. if v:IsA("Part") then
  2512. v.BrickColor = BrickColor.new("White")
  2513. v.Material = "Neon"
  2514. end
  2515. end
  2516. for i, v in pairs(extrawingmod1:GetChildren()) do
  2517. if v:IsA("Part") then
  2518. v.Transparency = 1
  2519. v.BrickColor = BrickColor.new("White")
  2520. v.Material = "Neon"
  2521. end
  2522. end
  2523. for i, v in pairs(extrawingmod2:GetChildren()) do
  2524. if v:IsA("Part") then
  2525. v.Transparency = 1
  2526. v.BrickColor = BrickColor.new("White")
  2527. v.Material = "Neon"
  2528. end
  2529. end
  2530. end
  2531.  
  2532. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo)
  2533. for i, v in pairs(mw2:GetChildren()) do
  2534. if v:IsA("Part") then
  2535. v.BrickColor = one
  2536. v.Material = "Neon"
  2537. end
  2538. end
  2539. refec.Color = ColorSequence.new(one.Color)
  2540. refec2.Color = ColorSequence.new(one.Color)
  2541. refec3.Color = ColorSequence.new(one.Color)
  2542. tr1.Color = ColorSequence.new(one.Color)
  2543. tr2.Color = ColorSequence.new(one.Color)
  2544. tr3.Color = ColorSequence.new(one.Color)
  2545. for i, v in pairs(mw1:GetChildren()) do
  2546. if v:IsA("Part") then
  2547. v.Transparency = 0
  2548. v.BrickColor = two
  2549. v.Material = "Neon"
  2550. end
  2551. end
  2552. tl1.Color = ColorSequence.new(two.Color)
  2553. tl2.Color = ColorSequence.new(two.Color)
  2554. tl3.Color = ColorSequence.new(two.Color)
  2555. for i, v in pairs(m:GetChildren()) do
  2556. if v:IsA("Part") then
  2557. v.BrickColor = three
  2558. v.Material = "Ice"
  2559. end
  2560. end
  2561. for i, v in pairs(m2:GetChildren()) do
  2562. if v:IsA("Part") then
  2563. v.BrickColor = four
  2564. v.Material = "Ice"
  2565. end
  2566. end
  2567. for i, v in pairs(m3:GetChildren()) do
  2568. if v:IsA("Part") then
  2569. v.BrickColor = five
  2570. v.Material = "Neon"
  2571. end
  2572. end
  2573. for i, v in pairs(extrawingmod1:GetChildren()) do
  2574. if v:IsA("Part") then
  2575. v.Transparency = exonetran
  2576. v.BrickColor = exone
  2577. v.Material = "Neon"
  2578. end
  2579. end
  2580. for i, v in pairs(extrawingmod2:GetChildren()) do
  2581. if v:IsA("Part") then
  2582. v.Transparency = extwotran
  2583. v.BrickColor = extwo
  2584. v.Material = "Neon"
  2585. end
  2586. end
  2587. end
  2588.  
  2589. function attackone()
  2590. attack = true
  2591. local keptcolor = MAINRUINCOLOR
  2592. for i = 0,1,0.1 do
  2593. swait()
  2594. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  2595. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  2596. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  2597. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2598. 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(-15),math.rad(0),math.rad(0)),.3)
  2599. 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(0),math.rad(0)),.3)
  2600. end
  2601. local distlook = 5
  2602. coroutine.resume(coroutine.create(function()
  2603. for i = 0, 4 do
  2604. swait(2)
  2605. CameraEnshaking(2,3)
  2606. local hite = Instance.new("Part", char)
  2607. hite.Anchored = true
  2608. hite.CanCollide = false
  2609. hite.FormFactor = 3
  2610. hite.Name = "Ring"
  2611. hite.Material = "Neon"
  2612. hite.Size = Vector3.new(1, 1, 1)
  2613. hite.Transparency = 1
  2614. hite.TopSurface = 0
  2615. hite.BottomSurface = 0
  2616. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  2617. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  2618. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  2619. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  2620. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  2621. MagniDamage(hite, 9, 10,25, 0, "Normal")
  2622. for i = 0, 14 do
  2623. local rsiz = math.random(5,20)
  2624. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2625. end
  2626. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  2627. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  2628. game:GetService("Debris"):AddItem(hite, 5)
  2629. distlook = distlook + 10
  2630. end
  2631. end))
  2632. for i = 0,1,0.1 do
  2633. swait()
  2634. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  2635. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  2636. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  2637. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  2638. 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(-10)),.5)
  2639. 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(0),math.rad(-10)),.5)
  2640. end
  2641. attack = false
  2642. end
  2643.  
  2644. function attacktwo()
  2645. attack = true
  2646. for i = 0,1,0.1 do
  2647. swait()
  2648. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2649. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2650. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  2651. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  2652. 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(-1.5),math.rad(0),math.rad(10)),.3)
  2653. 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(0),math.rad(-10)),.3)
  2654. end
  2655. CameraEnshaking(3,4)
  2656. MagniDamage(root, 12, 15,30, 0, "Normal")
  2657. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2658. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2659. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2660. coroutine.resume(coroutine.create(function()
  2661. local eff = Instance.new("ParticleEmitter",root)
  2662. eff.Texture = "rbxassetid://363275192"
  2663. eff.LightEmission = 0.95
  2664. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2665. eff.Rate = 10000
  2666. eff.Lifetime = NumberRange.new(1)
  2667. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2668. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2669. eff.Speed = NumberRange.new(10,125)
  2670. eff.Drag = 5
  2671. eff.Rotation = NumberRange.new(-500,500)
  2672. eff.VelocitySpread = 9000
  2673. eff.RotSpeed = NumberRange.new(-50,50)
  2674. local eff2 = eff:Clone()
  2675. eff2.Parent = root
  2676. eff2.Texture = "rbxassetid://284205403"
  2677. eff2.Rate = 10000
  2678. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2679. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2680. eff2.Drag = 5
  2681. eff2.Speed = NumberRange.new(10,50)
  2682. eff2.Rotation = NumberRange.new(-500,500)
  2683. eff2.VelocitySpread = 9000
  2684. wait(0.25)
  2685. eff2.Enabled = false
  2686. eff.Enabled = false
  2687. wait(3)
  2688. eff2:Destroy()
  2689. eff:Destroy()
  2690. end))
  2691. for i = 0, 9 do
  2692. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
  2693. end
  2694. for i = 0, 24 do
  2695. local rsiz = math.random(5,20)
  2696. sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  2697. end
  2698. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  2699. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  2700. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  2701. for i = 0,2,0.1 do
  2702. swait()
  2703. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2704. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2705. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  2706. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  2707. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  2708. 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(0),math.rad(10)),.3)
  2709. end
  2710. attack = false
  2711. end
  2712.  
  2713. function attackthree()
  2714. attack = true
  2715. local keptcolor = MAINRUINCOLOR
  2716. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
  2717. for i = 0,1,0.1 do
  2718. swait()
  2719. sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
  2720. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  2721. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  2722. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
  2723. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
  2724. 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(-1.5),math.rad(0),math.rad(0)),.5)
  2725. 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(0),math.rad(0)),.5)
  2726. end
  2727. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
  2728. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
  2729. local angle = -25
  2730. coroutine.resume(coroutine.create(function()
  2731. for i = 0, 2 do
  2732. local orb = Instance.new("Part", char)
  2733. orb.BrickColor = MAINRUINCOLOR
  2734. orb.CanCollide = false
  2735. orb.FormFactor = 3
  2736. orb.Name = "Ring"
  2737. orb.Material = "Neon"
  2738. orb.Size = Vector3.new(1, 1, 1)
  2739. orb.Transparency = 0.5
  2740. orb.TopSurface = 0
  2741. orb.BottomSurface = 0
  2742. local orbm = Instance.new("SpecialMesh", orb)
  2743. orbm.MeshType = "Sphere"
  2744. orbm.Name = "SizeMesh"
  2745. orbm.Scale = vt(3,3,3)
  2746. orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
  2747. local bv = Instance.new("BodyVelocity")
  2748. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2749. bv.velocity = orb.CFrame.lookVector*100
  2750. bv.Parent = orb
  2751. game:GetService("Debris"):AddItem(orb, 10)
  2752. sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  2753. sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  2754. coroutine.resume(coroutine.create(function()
  2755. MagniDamage(orb, 6, 8,15, 0, "Normal")
  2756. for i = 0, 7 do
  2757. swait(2.5)
  2758. CameraEnshaking(1,2)
  2759. MagniDamage(orb, 6, 8,15, 0, "Normal")
  2760. CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
  2761. for i = 0, 4 do
  2762. local rsiz = math.random(5,10)
  2763. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
  2764. sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2765. end
  2766. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  2767. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  2768. end
  2769. orb.Transparency = 1
  2770. orb.Anchored = false
  2771. wait(10)
  2772. orb:Destroy()
  2773. end))
  2774. angle = angle + 25
  2775. end
  2776. end))
  2777. for i = 0,1,0.1 do
  2778. swait()
  2779. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2780. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2781. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  2782. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  2783. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  2784. 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(0),math.rad(10)),.3)
  2785. end
  2786. attack = false
  2787. end
  2788.  
  2789. ------------------------------------- Abilities ---------------------------------------------------------
  2790. function Fireball()
  2791. attack = true
  2792. hum.WalkSpeed = 0
  2793. local keptcolor = MAINRUINCOLOR
  2794. for i = 0,2,0.1 do
  2795. swait()
  2796. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  2797. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  2798. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3)
  2799. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3)
  2800. 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(-1.5),math.rad(0),math.rad(0)),.3)
  2801. 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(-1),math.rad(0),math.rad(0)),.3)
  2802. end
  2803. local orb = Instance.new("Part", char)
  2804. orb.BrickColor = keptcolor
  2805. orb.CanCollide = false
  2806. orb.FormFactor = 3
  2807. orb.Name = "Ring"
  2808. orb.Material = "Neon"
  2809. orb.Size = Vector3.new(1, 1, 1)
  2810. orb.Transparency = 0
  2811. orb.TopSurface = 0
  2812. orb.BottomSurface = 0
  2813. local orbm = Instance.new("SpecialMesh", orb)
  2814. orbm.MeshType = "Sphere"
  2815. orbm.Name = "SizeMesh"
  2816. orbm.Scale = vt(4,4,4)
  2817. orb.CFrame = root.CFrame + root.CFrame.lookVector*3
  2818. local eff = Instance.new("ParticleEmitter",orb)
  2819. eff.Texture = "rbxassetid://296874871"
  2820. eff.LightEmission = 0.95
  2821. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  2822. eff.Rate = 10000
  2823. eff.Lifetime = NumberRange.new(1.5)
  2824. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2825. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2826. eff.Speed = NumberRange.new(25)
  2827. eff.Drag = 5
  2828. eff.Rotation = NumberRange.new(-500,500)
  2829. eff.VelocitySpread = 9000
  2830. eff.RotSpeed = NumberRange.new(-500,500)
  2831. local a = Instance.new("Part",workspace)
  2832. a.Name = "Direction"
  2833. a.Anchored = true
  2834. a.BrickColor = bc("Bright red")
  2835. a.Material = "Neon"
  2836. a.Transparency = 1
  2837. a.CanCollide = false
  2838. local ray = Ray.new(
  2839. orb.CFrame.p, -- origin
  2840. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  2841. )
  2842. local ignore = orb
  2843. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2844. a.BottomSurface = 10
  2845. a.TopSurface = 10
  2846. local distance = (orb.CFrame.p - position).magnitude
  2847. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2848. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2849. orb.CFrame = a.CFrame
  2850. a:Destroy()
  2851. CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9)
  2852. local bv = Instance.new("BodyVelocity")
  2853. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2854. bv.velocity = orb.CFrame.lookVector*75
  2855. bv.Parent = orb
  2856. game:GetService("Debris"):AddItem(orb, 10)
  2857. local hitted = false
  2858. coroutine.resume(coroutine.create(function()
  2859. while true do
  2860. swait()
  2861. if orb.Parent ~= nil and hitted == false then
  2862. sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor)
  2863. elseif orb.Parent == nil and hitted == true then
  2864. break
  2865. end
  2866. end
  2867. end))
  2868. local hit =orb.Touched:connect(function(hit)
  2869. if hitted == false and hit.Parent ~= char then
  2870. hitted = true
  2871. eff.Enabled = false
  2872. CameraEnshaking(4,4)
  2873. CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7)
  2874. CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4)
  2875. MagniDamage(orb, 25, 20,30, 0, "Normal")
  2876. sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2877. sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2878. sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2879. for i = 0, 9 do
  2880. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1,1.5),-0.005,4,-0.005,keptcolor)
  2881. end
  2882. for i = 0, 49 do
  2883. local rsiz = math.random(10,30)
  2884. sphereMK(math.random(1,3),1,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2885. end
  2886. local eff = Instance.new("ParticleEmitter",orb)
  2887. eff.Texture = "rbxassetid://296874871"
  2888. eff.LightEmission = 0.95
  2889. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  2890. eff.Rate = 10000
  2891. eff.Lifetime = NumberRange.new(1.5)
  2892. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2893. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2894. eff.Speed = NumberRange.new(150)
  2895. eff.Drag = 5
  2896. eff.Rotation = NumberRange.new(-500,500)
  2897. eff.VelocitySpread = 9000
  2898. eff.RotSpeed = NumberRange.new(-500,500)
  2899. coroutine.resume(coroutine.create(function()
  2900. wait(0.25)
  2901. eff.Enabled = false
  2902. end))
  2903. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  2904. orb.Anchored = true
  2905. orb.Transparency = 1
  2906. coroutine.resume(coroutine.create(function()
  2907. if hfr ~= nil then
  2908. orb.Size = vt(50,1,50)
  2909. orb.Orientation = vt(0,0,0)
  2910. orb.CFrame = orb.CFrame*CFrame.new(0,-5,0)
  2911. orbm:Destroy()
  2912. local firef = eff:Clone()
  2913. firef.Parent = orb
  2914. firef.VelocitySpread = 50
  2915. firef.Rate = 500
  2916. firef.Drag = 3
  2917. firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2918. firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2919. firef.Speed = NumberRange.new(10,30)
  2920. for i = 0, 24 do
  2921. wait(0.25)
  2922. MagniDamage(orb, 25, 3,6, 0, "Normal")
  2923. end
  2924. firef.Enabled = false
  2925. end
  2926. end))
  2927. wait(10)
  2928. orb:Destroy()
  2929. end
  2930. end)
  2931. for i = 0,1,0.1 do
  2932. swait()
  2933. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5)
  2934. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  2935. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5)
  2936. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5)
  2937. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  2938. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  2939. end
  2940. hum.WalkSpeed = storehumanoidWS
  2941. attack = false
  2942. end
  2943.  
  2944. function BeamOfDeath()
  2945. attack = true
  2946. hum.WalkSpeed = 0
  2947. local keptcolor = MAINRUINCOLOR
  2948. local orb = Instance.new("Part", char)
  2949. orb.BrickColor = keptcolor
  2950. orb.CanCollide = false
  2951. orb.FormFactor = 3
  2952. orb.Name = "Ring"
  2953. orb.Material = "Neon"
  2954. orb.Size = Vector3.new(1, 1, 1)
  2955. orb.Transparency = 1
  2956. orb.TopSurface = 0
  2957. orb.BottomSurface = 0
  2958. local orbm = Instance.new("SpecialMesh", orb)
  2959. orbm.MeshType = "Sphere"
  2960. orbm.Name = "SizeMesh"
  2961. orbm.Scale = vt(22.5,10000,22.5)
  2962. orb.CFrame = mouse.Hit
  2963. orb.Anchored = true
  2964. orb.Orientation = vt(0,0,0)
  2965. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  2966. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  2967. coroutine.resume(coroutine.create(function()
  2968. coroutine.resume(coroutine.create(function()
  2969. for i = 0, 399 do
  2970. swait()
  2971. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  2972. orb.Transparency = orb.Transparency - 0.0025
  2973. end
  2974. end))
  2975. wait(9)
  2976. coroutine.resume(coroutine.create(function()
  2977. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  2978. if hfr ~= nil then
  2979. for i = 0, 49 do
  2980. local deb = Instance.new("Part", char)
  2981. deb.Anchored = true
  2982. deb.CanCollide = false
  2983. deb.FormFactor = 3
  2984. deb.Name = "Ring"
  2985. deb.Material = hitfloor.Material
  2986. deb.Color = hitfloor.Color
  2987. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  2988. deb.Transparency = 0
  2989. deb.TopSurface = 0
  2990. deb.BottomSurface = 0
  2991. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2992. local deb2 = Instance.new("Part", char)
  2993. deb2.CanCollide = false
  2994. deb2.FormFactor = 3
  2995. deb2.Name = "Ring"
  2996. deb2.Material = hitfloor.Material
  2997. deb2.Color = hitfloor.Color
  2998. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  2999. deb2.Transparency = 0
  3000. deb2.TopSurface = 0
  3001. deb2.BottomSurface = 0
  3002. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  3003. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3004. local eff = Instance.new("ParticleEmitter",deb)
  3005. eff.Texture = "rbxassetid://363275192"
  3006. eff.LightEmission = 0.95
  3007. eff.Color = ColorSequence.new(keptcolor.Color)
  3008. eff.Rate = 100
  3009. eff.Lifetime = NumberRange.new(1)
  3010. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  3011. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3012. eff.Speed = NumberRange.new(0,5)
  3013. eff.Rotation = NumberRange.new(-500,500)
  3014. eff.VelocitySpread = 9000
  3015. eff.RotSpeed = NumberRange.new(-10,10)
  3016. local at1 = Instance.new('Attachment',deb2)
  3017. at1.Position = vt(0,15,0)
  3018. local at2 = Instance.new('Attachment',deb2)
  3019. at2.Position = vt(0,-15,0)
  3020. local tl = Instance.new('Trail',deb2)
  3021. tl.Attachment0 = at1
  3022. tl.Attachment1 = at2
  3023. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3024. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  3025. tl.Lifetime = 1
  3026. game:GetService("Debris"):AddItem(deb,30)
  3027. game:GetService("Debris"):AddItem(deb2,30)
  3028. coroutine.resume(coroutine.create(function()
  3029. wait(15)
  3030. eff.Enabled = false
  3031. for i = 0, 49 do
  3032. swait()
  3033. deb.Transparency = deb.Transparency + 0.02
  3034. end
  3035. wait(1)
  3036. deb:Destroy()
  3037. end))
  3038. end
  3039. end
  3040. end))
  3041. for i = 0, 199 do
  3042. swait(1.5)
  3043. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  3044. if v:FindFirstChild('Head') then
  3045. dmg(v)
  3046. end
  3047. end
  3048. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  3049. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  3050. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  3051. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  3052. end
  3053. orb:Destroy()
  3054. end))
  3055. hum.WalkSpeed = storehumanoidWS
  3056. attack = false
  3057. end
  3058.  
  3059.  
  3060. function Beams()
  3061. attack = true
  3062. hum.WalkSpeed = 0
  3063. local keptcolor = MAINRUINCOLOR
  3064. coroutine.resume(coroutine.create(function()
  3065. for i = 0, 24 do
  3066. swait(5)
  3067. local orb = Instance.new("Part", char)
  3068. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  3069. orb.BrickColor = keptcolor
  3070. orb.CanCollide = false
  3071. orb.FormFactor = 3
  3072. orb.Name = "Ring"
  3073. orb.Material = "Neon"
  3074. orb.Size = Vector3.new(1, 1, 1)
  3075. orb.Transparency = 0
  3076. orb.TopSurface = 0
  3077. orb.BottomSurface = 0
  3078. orb.Anchored = true
  3079. local orbm = Instance.new("SpecialMesh", orb)
  3080. orbm.MeshType = "Sphere"
  3081. orbm.Name = "SizeMesh"
  3082. orbm.Scale = vt(1.25,1.25,1.25)
  3083. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  3084. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3085. coroutine.resume(coroutine.create(function()
  3086. wait(0.5)
  3087. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  3088. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3089. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3090. orb.Transparency = 1
  3091. local a = Instance.new("Part",char)
  3092. a.Name = "Direction"
  3093. a.Anchored = true
  3094. a.BrickColor = keptcolor
  3095. a.Material = "Neon"
  3096. a.Transparency = 0.25
  3097. a.Shape = "Cylinder"
  3098. local ht = Instance.new("Part",char)
  3099. ht.Name = "DirectionHit"
  3100. ht.Anchored = true
  3101. ht.BrickColor = keptcolor
  3102. ht.CanCollide = false
  3103. ht.Transparency = 1
  3104. ht.Size = vt(0.1,0.1,0.1)
  3105. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.2)
  3106. a.CanCollide = false
  3107. local ray = Ray.new(
  3108. orb.CFrame.p, -- origin
  3109. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3110. )
  3111. local ignore = char
  3112. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3113. a.BottomSurface = 10
  3114. a.TopSurface = 10
  3115. local distance = (orb.CFrame.p - position).magnitude
  3116. a.Size = Vector3.new(distance,1,1)
  3117. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3118. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3119. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  3120. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  3121. MagniDamage(ht, 9, 10,15, 0, "Normal")
  3122. coroutine.resume(coroutine.create(function()
  3123. local eff = Instance.new("ParticleEmitter",ht)
  3124. eff.Texture = "rbxassetid://284205403"
  3125. eff.LightEmission = 0.95
  3126. eff.Color = ColorSequence.new(keptcolor.Color)
  3127. eff.Rate = 500
  3128. eff.Lifetime = NumberRange.new(0.5)
  3129. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3130. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3131. eff.Speed = NumberRange.new(10,50)
  3132. eff.Drag = 5
  3133. eff.Rotation = NumberRange.new(-500,500)
  3134. eff.VelocitySpread = 9000
  3135. eff.RotSpeed = NumberRange.new(-500,500)
  3136. wait(0.25)
  3137. eff.Enabled = false
  3138. end))
  3139. for i = 0, 4 do
  3140. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor)
  3141. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  3142. local rsiz = math.random(10,30)
  3143. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3144. end
  3145. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3146. local msh = Instance.new("SpecialMesh",a)
  3147. msh.MeshType = "Cylinder"
  3148. msh.Scale = vt(1,1,1)
  3149. for i = 0, 49 do
  3150. swait()
  3151. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  3152. a.Transparency = a.Transparency + 0.02
  3153. end
  3154. orb:Destroy()
  3155. a:Destroy()
  3156. ht:Destroy()
  3157. end))
  3158. game:GetService("Debris"):AddItem(orb, 10)
  3159. end
  3160. end))
  3161. for i = 0,12,0.1 do
  3162. swait()
  3163. sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor)
  3164. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  3165. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  3166. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  3167. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  3168. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.3)
  3169. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.3)
  3170. end
  3171. hum.WalkSpeed = storehumanoidWS
  3172. attack = false
  3173. end
  3174.  
  3175. function smiter()
  3176. local targetted = nil
  3177. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3178. targetted = mouse.Target.Parent
  3179. end
  3180. if targetted ~= nil then
  3181. RootPart.CFrame = FaceMouse()[1]
  3182. attack = true
  3183. hum.WalkSpeed = 0
  3184. coroutine.resume(coroutine.create(function()
  3185. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  3186. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  3187. local vel = Instance.new("BodyPosition", targetted.Head)
  3188. vel.P = 12500
  3189. vel.D = 1000
  3190. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3191. vel.position = targetted.Head.CFrame.p
  3192. end))
  3193. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  3194. for i = 0,4,0.1 do
  3195. swait()
  3196. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.125,-0.01,MAINRUINCOLOR)
  3197. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3198. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3199. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3200. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3201. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2)
  3202. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2)
  3203. end
  3204. coroutine.resume(coroutine.create(function()
  3205. CameraEnshaking(6,5)
  3206. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  3207. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  3208. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  3209. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  3210. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3211. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3212. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3213. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3214. coroutine.resume(coroutine.create(function()
  3215. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3216. eff.Texture = "rbxassetid://363275192"
  3217. eff.LightEmission = 0.95
  3218. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3219. eff.Rate = 10000
  3220. eff.Lifetime = NumberRange.new(1.5)
  3221. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  3222. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3223. eff.Speed = NumberRange.new(25,150)
  3224. eff.Drag = 5
  3225. eff.Rotation = NumberRange.new(-500,500)
  3226. eff.VelocitySpread = 9000
  3227. eff.RotSpeed = NumberRange.new(-50,50)
  3228. local eff2 = eff:Clone()
  3229. eff2.Parent = targetted.Head
  3230. eff2.Texture = "rbxassetid://284205403"
  3231. eff2.Rate = 10000
  3232. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3233. eff2.Drag = 5
  3234. eff2.Rotation = NumberRange.new(-500,500)
  3235. eff2.VelocitySpread = 9000
  3236. wait(0.5)
  3237. eff2.Enabled = false
  3238. eff.Enabled = false
  3239. end))
  3240. for i = 0, 9 do
  3241. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  3242. end
  3243. for i = 0, 49 do
  3244. local rsiz = math.random(10,50)
  3245. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3246. end
  3247. game:GetService("Debris"):AddItem(vel,1)
  3248. dmg(targetted)
  3249. end))
  3250. for i = 0,1,0.1 do
  3251. swait()
  3252. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  3253. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  3254. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
  3255. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-50)), 0.5)
  3256. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  3257. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.5)
  3258. end
  3259. attack = false
  3260. hum.WalkSpeed = storehumanoidWS
  3261. end
  3262. end
  3263.  
  3264. function supsmiter()
  3265. local targetted = nil
  3266. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3267. targetted = mouse.Target.Parent
  3268. end
  3269. if targetted ~= nil then
  3270. RootPart.CFrame = FaceMouse()[1]
  3271. attack = true
  3272. hum.WalkSpeed = 0
  3273. coroutine.resume(coroutine.create(function()
  3274. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  3275. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  3276. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.2,0.2,0.2,MAINRUINCOLOR)
  3277. local vel = Instance.new("BodyPosition", targetted.Head)
  3278. vel.P = 12500
  3279. vel.D = 1000
  3280. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3281. vel.position = targetted.Head.CFrame.p
  3282. end))
  3283. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb2, 2.5, 0.25)
  3284. for i = 0,14,0.1 do
  3285. swait()
  3286. rsiz = math.random(5,15)
  3287. sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  3288. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1.5,1.5),-0.01,0.15,-0.01,MAINRUINCOLOR)
  3289. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3290. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3291. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3292. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3293. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3294. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3295. end
  3296. coroutine.resume(coroutine.create(function()
  3297. CameraEnshaking(6,5)
  3298. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  3299. MagniDamage(targetted.Head, 9, 18000,30000, 0, "Normal")
  3300. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 5.5, 0.8)
  3301. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 5.25, 0.8)
  3302. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 4, 0.8)
  3303. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3304. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3305. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3306. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3307. coroutine.resume(coroutine.create(function()
  3308. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3309. eff.Texture = "rbxassetid://363275192"
  3310. eff.LightEmission = 0.95
  3311. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3312. eff.Rate = 10000
  3313. eff.Lifetime = NumberRange.new(1.5)
  3314. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  3315. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3316. eff.Speed = NumberRange.new(25,150)
  3317. eff.Drag = 5
  3318. eff.Rotation = NumberRange.new(-500,500)
  3319. eff.VelocitySpread = 9000
  3320. eff.RotSpeed = NumberRange.new(-50,50)
  3321. local eff2 = eff:Clone()
  3322. eff2.Parent = targetted.Head
  3323. eff2.Texture = "rbxassetid://284205403"
  3324. eff2.Rate = 10000
  3325. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3326. eff2.Drag = 5
  3327. eff2.Rotation = NumberRange.new(-500,500)
  3328. eff2.VelocitySpread = 9000
  3329. wait(0.5)
  3330. eff2.Enabled = false
  3331. eff.Enabled = false
  3332. end))
  3333. for i = 0, 9 do
  3334. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  3335. end
  3336. for i = 0, 49 do
  3337. local rsiz = math.random(10,50)
  3338. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3339. end
  3340. wait(0.75)
  3341. CameraEnshaking(6,6)
  3342. MagniDamage(targetted.Head, 20, 25,40, 0, "Normal")
  3343. MagniDamage(targetted.Head, 12, 18000,30000, 0, "Normal")
  3344. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.7)
  3345. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.7)
  3346. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.7)
  3347. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
  3348. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
  3349. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
  3350. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
  3351. coroutine.resume(coroutine.create(function()
  3352. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3353. eff.Texture = "rbxassetid://363275192"
  3354. eff.LightEmission = 0.95
  3355. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3356. eff.Rate = 10000
  3357. eff.Lifetime = NumberRange.new(1.5)
  3358. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,35,0),NumberSequenceKeypoint.new(1,0,0)})
  3359. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3360. eff.Speed = NumberRange.new(25,250)
  3361. eff.Drag = 5
  3362. eff.Rotation = NumberRange.new(-500,500)
  3363. eff.VelocitySpread = 9000
  3364. eff.RotSpeed = NumberRange.new(-50,50)
  3365. local eff2 = eff:Clone()
  3366. eff2.Parent = targetted.Head
  3367. eff2.Texture = "rbxassetid://284205403"
  3368. eff2.Rate = 10000
  3369. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3370. eff2.Drag = 5
  3371. eff2.Rotation = NumberRange.new(-500,500)
  3372. eff2.VelocitySpread = 9000
  3373. wait(0.5)
  3374. eff2.Enabled = false
  3375. eff.Enabled = false
  3376. end))
  3377. for i = 0, 9 do
  3378. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,4.5,-0.02,MAINRUINCOLOR)
  3379. end
  3380. for i = 0, 49 do
  3381. local rsiz = math.random(15,55)
  3382. sphereMK(math.random(1,4),1.5,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3383. end
  3384. wait(0.75)
  3385. CameraEnshaking(6,7)
  3386. MagniDamage(targetted.Head, 23, 40,80, 0, "Normal")
  3387. MagniDamage(targetted.Head, 15, 18000,30000, 0, "Normal")
  3388. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 7.5, 0.6)
  3389. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 7.25, 0.6)
  3390. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 6, 0.6)
  3391. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
  3392. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
  3393. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
  3394. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
  3395. coroutine.resume(coroutine.create(function()
  3396. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3397. eff.Texture = "rbxassetid://363275192"
  3398. eff.LightEmission = 0.95
  3399. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3400. eff.Rate = 10000
  3401. eff.Lifetime = NumberRange.new(1.5)
  3402. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  3403. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3404. eff.Speed = NumberRange.new(50,450)
  3405. eff.Drag = 5
  3406. eff.Rotation = NumberRange.new(-500,500)
  3407. eff.VelocitySpread = 9000
  3408. eff.RotSpeed = NumberRange.new(-50,50)
  3409. local eff2 = eff:Clone()
  3410. eff2.Parent = targetted.Head
  3411. eff2.Texture = "rbxassetid://284205403"
  3412. eff2.Rate = 10000
  3413. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3414. eff2.Drag = 5
  3415. eff2.Rotation = NumberRange.new(-500,500)
  3416. eff2.VelocitySpread = 9000
  3417. wait(0.5)
  3418. eff2.Enabled = false
  3419. eff.Enabled = false
  3420. end))
  3421. for i = 0, 9 do
  3422. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,6,-0.02,MAINRUINCOLOR)
  3423. end
  3424. for i = 0, 49 do
  3425. local rsiz = math.random(20,60)
  3426. sphereMK(math.random(1,4),2,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3427. end
  3428. dmg(targetted)
  3429. game:GetService("Debris"):AddItem(vel,1)
  3430. end))
  3431. for i = 0,7,0.1 do
  3432. swait()
  3433. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  3434. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  3435. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
  3436. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-60)), 0.5)
  3437. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.5)
  3438. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.5)
  3439. end
  3440. attack = false
  3441. hum.WalkSpeed = storehumanoidWS
  3442. end
  3443. end
  3444.  
  3445. function BinaryBLINK()
  3446. for i = 0, 9 do
  3447. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  3448. end
  3449. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3450. coroutine.resume(coroutine.create(function()
  3451. local eff = Instance.new("ParticleEmitter",root)
  3452. eff.Texture = "rbxassetid://1175838406"
  3453. eff.LightEmission = 0.95
  3454. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3455. eff.Rate = 10000
  3456. eff.Lifetime = NumberRange.new(1)
  3457. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  3458. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3459. eff.Speed = NumberRange.new(30,160)
  3460. eff.Drag = 5
  3461. eff.Rotation = NumberRange.new(-500,500)
  3462. eff.VelocitySpread = 100000
  3463. wait(0.25)
  3464. eff.Enabled = false
  3465. wait(4)
  3466. eff:Destroy()
  3467. end))
  3468. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3469. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3470. CameraEnshaking(2,10)
  3471. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do
  3472. if v:FindFirstChild('Head') then
  3473. dmg(v)
  3474. end
  3475. end
  3476. for i = 0, 9 do
  3477. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  3478. end
  3479. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3480. end
  3481.  
  3482. function BinaryE()
  3483. local posit = -2
  3484. attack = true
  3485. hum.WalkSpeed = 5
  3486. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  3487. for i = 0,2,0.1 do
  3488. swait()
  3489. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3490. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  3491. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  3492. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  3493. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  3494. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  3495. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3496. end
  3497. for i = 0, 2 do
  3498. CameraEnshaking(1,2)
  3499. local hite = Instance.new("Part", char)
  3500. hite.Anchored = true
  3501. hite.CanCollide = false
  3502. hite.FormFactor = 3
  3503. hite.Name = "Ring"
  3504. hite.Material = "Neon"
  3505. hite.Size = Vector3.new(1, 1, 1)
  3506. hite.Transparency = 1
  3507. hite.TopSurface = 0
  3508. hite.BottomSurface = 0
  3509. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  3510. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  3511. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  3512. coroutine.resume(coroutine.create(function()
  3513. local eff = Instance.new("ParticleEmitter",hite)
  3514. eff.Texture = "rbxassetid://1175838406"
  3515. eff.LightEmission = 0.95
  3516. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3517. eff.Rate = 1000
  3518. eff.Lifetime = NumberRange.new(1)
  3519. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3520. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3521. eff.Speed = NumberRange.new(10,50)
  3522. eff.Drag = 5
  3523. eff.Rotation = NumberRange.new(-500,500)
  3524. eff.VelocitySpread = 100000
  3525. wait(0.25)
  3526. eff.Enabled = false
  3527. end))
  3528. coroutine.resume(coroutine.create(function()
  3529. for i = 0, 1 do
  3530. swait()
  3531. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3532. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3533. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3534. end
  3535. end))
  3536. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
  3537. MagniDamage(hite, 3, 30,40, 0, "Normal")
  3538. game:GetService("Debris"):AddItem(hite, 5)
  3539. posit = posit + 2
  3540. end
  3541. for i = 0,1,0.1 do
  3542. swait()
  3543. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3544. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  3545. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  3546. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  3547. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  3548. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  3549. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3550. end
  3551. for i = 0,1,0.1 do
  3552. swait()
  3553. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3554. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,0)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  3555. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  3556. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  3557. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  3558. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5)
  3559. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5)
  3560. end
  3561. posit = -6
  3562. for i = 0, 6 do
  3563. CameraEnshaking(1,3)
  3564. local hite = Instance.new("Part", char)
  3565. hite.Anchored = true
  3566. hite.CanCollide = false
  3567. hite.FormFactor = 3
  3568. hite.Name = "Ring"
  3569. hite.Material = "Neon"
  3570. hite.Size = Vector3.new(1, 1, 1)
  3571. hite.Transparency = 1
  3572. hite.TopSurface = 0
  3573. hite.BottomSurface = 0
  3574. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  3575. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  3576. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  3577. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
  3578. coroutine.resume(coroutine.create(function()
  3579. local eff = Instance.new("ParticleEmitter",hite)
  3580. eff.Texture = "rbxassetid://1175838406"
  3581. eff.LightEmission = 0.95
  3582. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3583. eff.Rate = 1000
  3584. eff.Lifetime = NumberRange.new(1)
  3585. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3586. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3587. eff.Speed = NumberRange.new(20,70)
  3588. eff.Drag = 5
  3589. eff.Rotation = NumberRange.new(-500,500)
  3590. eff.VelocitySpread = 100000
  3591. wait(0.25)
  3592. eff.Enabled = false
  3593. end))
  3594. coroutine.resume(coroutine.create(function()
  3595. for i = 0, 2 do
  3596. swait()
  3597. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3598. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3599. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3600. end
  3601. end))
  3602. MagniDamage(hite, 5, 40,70, 0, "Normal")
  3603. game:GetService("Debris"):AddItem(hite, 5)
  3604. posit = posit + 2
  3605. end
  3606. for i = 0,1,0.1 do
  3607. swait()
  3608. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3609. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  3610. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  3611. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  3612. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  3613. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5)
  3614. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5)
  3615. end
  3616. hum.WalkSpeed = storehumanoidWS
  3617. attack = false
  3618. end
  3619.  
  3620. function AZUREFINALE()
  3621. attack = true
  3622. duringend = true
  3623. hum.WalkSpeed = 0
  3624. CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
  3625. CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
  3626. local hite = Instance.new("Part", char)
  3627. hite.Anchored = true
  3628. hite.CanCollide = false
  3629. hite.FormFactor = 3
  3630. hite.Name = "Ring"
  3631. hite.Material = "Neon"
  3632. hite.Size = Vector3.new(1, 1, 1)
  3633. hite.Transparency = 0
  3634. hite.TopSurface = 0
  3635. hite.BottomSurface = 0
  3636. hite.BrickColor = MAINRUINCOLOR
  3637. local orbm = Instance.new("SpecialMesh", hite)
  3638. orbm.MeshType = "Sphere"
  3639. orbm.Name = "SizeMesh"
  3640. orbm.Scale = vt(0,0,0)
  3641. hite.CFrame = root.CFrame*CFrame.new(0,200,0)
  3642. for i = 0,70,0.1 do
  3643. swait()
  3644. orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
  3645. rsiz = math.random(10,45)
  3646. kan.Volume = kan.Volume + 0.01
  3647. kan.Pitch = kan.Pitch - 0.00135
  3648. sphereMK(math.random(1,4),2.5,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/2,rsiz/2,rsiz/2,0,MAINRUINCOLOR,-300)
  3649. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,1.5,10),-0.01,10,-0.01,MAINRUINCOLOR)
  3650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3651. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3652. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3653. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3654. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3655. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3656. end
  3657. kan.Pitch = 0.1
  3658. hite.Transparency = 1
  3659. for i = 0,2 do
  3660. CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
  3661. end
  3662. CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
  3663. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),-5,-5,-5,MAINRUINCOLOR)
  3664. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),2,2,2,MAINRUINCOLOR)
  3665. sphere2(2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),3,3,3,MAINRUINCOLOR)
  3666. coroutine.resume(coroutine.create(function()
  3667. local eff = Instance.new("ParticleEmitter",hite)
  3668. eff.Texture = "rbxassetid://284205403"
  3669. eff.LightEmission = 0.95
  3670. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3671. eff.Rate = 10000
  3672. eff.Lifetime = NumberRange.new(5)
  3673. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
  3674. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3675. eff.Speed = NumberRange.new(600,1250)
  3676. eff.Drag = 5
  3677. eff.Rotation = NumberRange.new(-500,500)
  3678. eff.VelocitySpread = 9000
  3679. eff.RotSpeed = NumberRange.new(-500,500)
  3680. wait(1)
  3681. eff.Enabled = false
  3682. end))
  3683. for i = 0,5,0.1 do
  3684. swait()
  3685. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3686. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3687. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3688. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3689. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3690. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3691. end
  3692. local adsc = 0
  3693. local radiatezone = 0
  3694. for i = 0,20,0.1 do
  3695. swait()
  3696. adsc = adsc + 0.025
  3697. radiatezone = radiatezone + 1.25
  3698. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3699. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3700. if v:FindFirstChild('Head') then
  3701. dmg(v)
  3702. end
  3703. end
  3704. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3705. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3706. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3707. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3708. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3709. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3710. end
  3711. for i = 0,2 do
  3712. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
  3713. end
  3714. for i = 0,40,0.1 do
  3715. swait()
  3716. adsc = adsc + 0.05
  3717. radiatezone = radiatezone + 2.5
  3718. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3719. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3720. if v:FindFirstChild('Head') then
  3721. dmg(v)
  3722. end
  3723. end
  3724. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3725. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3726. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3727. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3728. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3729. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3730. end
  3731. for i = 0,4 do
  3732. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
  3733. CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
  3734. end
  3735. for i = 0,80,0.1 do
  3736. swait()
  3737. adsc = adsc + 0.075
  3738. radiatezone = radiatezone + 3.75
  3739. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3740. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3741. if v:FindFirstChild('Head') then
  3742. dmg(v)
  3743. end
  3744. end
  3745. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3746. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3747. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3748. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3749. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3750. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3751. end
  3752. hite:Destroy()
  3753. duringend = false
  3754. hum.WalkSpeed = storehumanoidWS
  3755. attack = false
  3756. end
  3757.  
  3758. function GalacticalBeams()
  3759. attack = true
  3760. local keptcolor = MAINRUINCOLOR
  3761. coroutine.resume(coroutine.create(function()
  3762. for i = 0, 0 do
  3763. swait(10)
  3764. local orb = Instance.new("Part", char)
  3765. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  3766. orb.BrickColor = keptcolor
  3767. orb.CanCollide = false
  3768. orb.FormFactor = 3
  3769. orb.Name = "Ring"
  3770. orb.Material = "Neon"
  3771. orb.Size = Vector3.new(1, 1, 1)
  3772. orb.Transparency = 1
  3773. orb.TopSurface = 0
  3774. orb.BottomSurface = 0
  3775. orb.Anchored = true
  3776. local orbm = Instance.new("SpecialMesh", orb)
  3777. orbm.MeshType = "Sphere"
  3778. orbm.Name = "SizeMesh"
  3779. orbm.Scale = vt(1.25,1.25,1.25)
  3780. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  3781. coroutine.resume(coroutine.create(function()
  3782. orb.Transparency = 1
  3783. local a = Instance.new("Part",char)
  3784. a.Name = "Direction"
  3785. a.Anchored = true
  3786. a.BrickColor = keptcolor
  3787. a.Material = "Neon"
  3788. a.Transparency = 1
  3789. a.Shape = "Cylinder"
  3790. local x = Instance.new("Part",char)
  3791. x.Name = "Direction"
  3792. x.Anchored = true
  3793. x.BrickColor = keptcolor
  3794. x.Material = "Neon"
  3795. x.Transparency = 1
  3796. x.Shape = "Cylinder"
  3797. local ht = Instance.new("Part",char)
  3798. ht.Name = "DirectionHit"
  3799. ht.Anchored = true
  3800. ht.BrickColor = keptcolor
  3801. ht.CanCollide = false
  3802. ht.Transparency = 1
  3803. ht.Size = vt(0.1,0.1,0.1)
  3804. a.CanCollide = false
  3805. local ray = Ray.new(
  3806. orb.CFrame.p, -- origin
  3807. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  3808. )
  3809. local ignore = char
  3810. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3811. a.BottomSurface = 10
  3812. a.TopSurface = 10
  3813. local distance = (orb.CFrame.p - position).magnitude
  3814. a.Size = Vector3.new(distance,1,1)
  3815. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3816. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3817. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3818. local poste = 0
  3819. local rotation = 0
  3820. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  3821. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  3822. CameraEnshaking(2,2)
  3823. for i = 0, 49 do
  3824. swait()
  3825. rotation = rotation + 5
  3826. poste = poste + 1
  3827. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3828. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3829. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3830. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3831. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3832. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3833. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3834. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3835. end
  3836. local A1 = Instance.new("Attachment",x)
  3837. local A2 = Instance.new("Attachment",ht)
  3838. local Beem = Instance.new("Beam",ht)
  3839. Beem.Attachment0 = A1
  3840. Beem.Attachment1 = A2
  3841. Beem.LightEmission = 1
  3842. Beem.FaceCamera = true
  3843. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  3844. Beem.Width0 = 125
  3845. Beem.Width1 = 125
  3846. Beem.Texture = "rbxassetid://1134824633"
  3847. Beem.TextureMode = "Wrap"
  3848. Beem.TextureLength = 200
  3849. Beem.TextureSpeed = 1.5
  3850. Beem.Color = ColorSequence.new(keptcolor.Color)
  3851. CameraEnshaking(3,6)
  3852. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  3853. a.Transparency = 0.25
  3854. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  3855. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  3856. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3857. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3858. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  3859. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  3860. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  3861. local eff = Instance.new("ParticleEmitter",ht)
  3862. eff.Texture = "rbxassetid://284205403"
  3863. eff.LightEmission = 0.95
  3864. eff.Color = ColorSequence.new(keptcolor.Color)
  3865. eff.Rate = 500
  3866. eff.Lifetime = NumberRange.new(1)
  3867. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3868. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3869. eff.Speed = NumberRange.new(80,500)
  3870. eff.Drag = 5
  3871. eff.Rotation = NumberRange.new(-500,500)
  3872. eff.VelocitySpread = 9000
  3873. eff.RotSpeed = NumberRange.new(-500,500)
  3874. for i = 0, 24 do
  3875. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  3876. local rsiz = math.random(10,50)
  3877. sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3878. end
  3879. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3880. local msh = Instance.new("SpecialMesh",a)
  3881. msh.MeshType = "Cylinder"
  3882. msh.Scale = vt(1,15,15)
  3883. for i = 0, 49 do
  3884. swait()
  3885. CameraEnshaking(1,4)
  3886. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  3887. rotation = rotation + 5
  3888. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3889. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  3890. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  3891. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3892. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3893. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3894. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3895. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3896. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3897. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3898. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3899. for i = 0, 2 do
  3900. local rsiz = math.random(50,250)
  3901. sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3902. end
  3903. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  3904. end
  3905. eff.Enabled = false
  3906. local visibility = 0
  3907. for i = 0, 49 do
  3908. swait()
  3909. visibility = visibility + 0.02
  3910. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  3911. rotation = rotation + 5
  3912. poste = poste - 1
  3913. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3914. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3915. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3916. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3917. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3918. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3919. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3920. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3921. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  3922. a.Transparency = a.Transparency + 0.02
  3923. end
  3924. wait(1)
  3925. orb:Destroy()
  3926. a:Destroy()
  3927. ht:Destroy()
  3928. end))
  3929. game:GetService("Debris"):AddItem(orb, 10)
  3930. end
  3931. end))
  3932. hum.WalkSpeed = storehumanoidWS
  3933. attack = false
  3934. end
  3935.  
  3936.  
  3937. function WarpedDash()
  3938. attack = true
  3939. hum.WalkSpeed = 0
  3940. hum.JumpPower = 0
  3941. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  3942. local poste = 3
  3943. local rotation = 0
  3944. local rate = 0
  3945. for i = 0, 124 do
  3946. swait()
  3947. rotation = rotation + rate
  3948. poste = poste + 0.1
  3949. rate = rate + 0.1
  3950. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  3951. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  3952. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3953. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3954. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3955. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3956. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  3957. 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)),.5)
  3958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  3959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  3960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  3961. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  3962. end
  3963. CameraEnshaking(3,7)
  3964. local loc = Instance.new("Part", char)
  3965. loc.BrickColor = MAINRUINCOLOR
  3966. loc.CanCollide = false
  3967. loc.FormFactor = 3
  3968. loc.Name = "Ring"
  3969. loc.Material = "Neon"
  3970. loc.Size = Vector3.new(1, 1, 1)
  3971. loc.Transparency = 1
  3972. loc.TopSurface = 0
  3973. loc.BottomSurface = 0
  3974. loc.Anchored = true
  3975. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  3976. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  3977. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  3978. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  3979. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  3980. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3981. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3982. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3983. coroutine.resume(coroutine.create(function()
  3984. local eff = Instance.new("ParticleEmitter",loc)
  3985. eff.Texture = "rbxassetid://363275192"
  3986. eff.LightEmission = 0.95
  3987. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3988. eff.Rate = 10000
  3989. eff.Lifetime = NumberRange.new(1)
  3990. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  3991. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3992. eff.Speed = NumberRange.new(100,500)
  3993. eff.Drag = 5
  3994. eff.Rotation = NumberRange.new(-500,500)
  3995. eff.VelocitySpread = 9000
  3996. eff.RotSpeed = NumberRange.new(-50,50)
  3997. wait(0.5)
  3998. eff.Enabled = false
  3999. end))
  4000. for i = 0, 49 do
  4001. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  4002. end
  4003. for i = 0, 9 do
  4004. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  4005. end
  4006. game:GetService("Debris"):AddItem(loc, 5)
  4007. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  4008. hum.WalkSpeed = storehumanoidWS
  4009. hum.JumpPower = 50
  4010. attack = false
  4011. end
  4012.  
  4013. ------------------------------------
  4014. function harmonytaunty()
  4015. attack = true
  4016. hum.WalkSpeed = 0
  4017. CFuncs["Sound"].Create("rbxassetid://430312221", tors, 1.25, 1.15)
  4018. for i = 0,7,0.1 do
  4019. swait()
  4020. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-20 + 6 * math.cos(sine / 34))),.2)
  4021. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(10 - 4 * math.cos(sine / 47))),.2)
  4022. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(-2 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-2 + 4 * math.cos(sine / 62))),.2)
  4023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 - 3 * math.cos(sine / 28)),math.rad(12 - 3 * math.cos(sine / 79)),math.rad(2 - 4 * math.cos(sine / 62))),.2)
  4024. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.01 * math.cos(sine / 28),-0.1)*angles(math.rad(34 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-13 - 3 * math.cos(sine / 28))),.2)
  4025. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(80 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(10 + 5 * math.cos(sine / 30))),.2)
  4026. end
  4027. hum.WalkSpeed = storehumanoidWS
  4028. attack = false
  4029. end
  4030.  
  4031. function vistaunty()
  4032. attack = true
  4033. hum.WalkSpeed = 0
  4034. local rd = math.random(1,5)
  4035. if rd == 1 then
  4036. chatfunc("You're familiar with this, arent you?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4037. elseif rd == 2 then
  4038. chatfunc("Dance to the beat. If you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4039. elseif rd == 3 then
  4040. chatfunc("I'm just bored. Don't mess with me.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4041. elseif rd == 4 then
  4042. chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4043. elseif rd == 5 then
  4044. chatfunc("Ehh, not really into something right now.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4045. end
  4046. for i = 0, 8, 0.1 do
  4047. swait()
  4048. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  4049. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  4050. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
  4051. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
  4052. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
  4053. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  4054. end
  4055. hum.WalkSpeed = storehumanoidWS
  4056. attack = false
  4057. end
  4058.  
  4059. function shytaunty()
  4060. attack = true
  4061. hum.WalkSpeed = 0
  4062. CFuncs["Sound"].Create("rbxassetid://543623779", tors, 0.35, 1)
  4063. local blush = Instance.new("Decal",hed)
  4064. blush.Texture = "rbxassetid://898404027"
  4065. blush.Face = "Front"
  4066. for i = 0, 13, 0.1 do
  4067. swait()
  4068. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  4069. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  4070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  4071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
  4072. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
  4073. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
  4074. end
  4075. coroutine.resume(coroutine.create(function()
  4076. for i = 0, 49 do
  4077. swait()
  4078. blush.Transparency = blush.Transparency + 0.02
  4079. end
  4080. blush:Destroy()
  4081. end))
  4082. hum.WalkSpeed = storehumanoidWS
  4083. attack = false
  4084. end
  4085. ------------------------------------ Mode Ascendances
  4086. function UnknownA()
  4087. hum.WalkSpeed = 0
  4088. attack = true
  4089. local keptcolor = MAINRUINCOLOR
  4090. local locat = Instance.new("Part", char)
  4091. locat.CanCollide = false
  4092. locat.FormFactor = 3
  4093. locat.Name = "Ring"
  4094. locat.Material = "Neon"
  4095. locat.Size = Vector3.new(1, 1, 1)
  4096. locat.Transparency = 1
  4097. locat.TopSurface = 0
  4098. locat.BottomSurface = 0
  4099. locat.Anchored = true
  4100. locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
  4101. local poste = 0
  4102. local rotation = 0
  4103. local upperpos = 0
  4104. local rate = 0
  4105. local x = locat
  4106. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1)
  4107. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1)
  4108. sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  4109. sphere2(6,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  4110. sphere2(4,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  4111. sphere2(2,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  4112. CameraEnshaking(2,5)
  4113. for i = 0, 49 do
  4114. swait()
  4115. rotation = rotation + 5
  4116. poste = poste + 1
  4117. sphere2(math.random(4,6),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.05,math.random(25,100)/25,-0.05,keptcolor)
  4118. sphere2(8,"Add",tors.CFrame,vt(poste/1.5,poste/1.5,poste/1.5),0.01,0.01,0.01,keptcolor)
  4119. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4120. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4121. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4122. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4123. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4124. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4125. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4126. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4127. 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)),.5)
  4128. 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)),.5)
  4129. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5)
  4130. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5)
  4131. 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))),.5)
  4132. 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))),.5)
  4133. end
  4134. for i = 0, 49 do
  4135. swait()
  4136. rotation = rotation + 5
  4137. sphere2(math.random(4,6),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.05,math.random(25,100)/25,-0.05,keptcolor)
  4138. sphere2(8,"Add",tors.CFrame,vt(poste/1.5,poste/1.5,poste/1.5),0.01,0.01,0.01,keptcolor)
  4139. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4140. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4141. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4142. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4143. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4144. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4145. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4146. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4147. 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)),.5)
  4148. 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)),.5)
  4149. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5)
  4150. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5)
  4151. 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))),.5)
  4152. 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))),.5)
  4153. end
  4154. ModeOfGlitch = 6000000000
  4155. storehumanoidWS = 300
  4156. hum.WalkSpeed = 300
  4157. rainbowmode = false
  4158. chaosmode = false
  4159. RecolorTextAndRename("HARMONY",BrickColor.new("Toothpaste").Color,BrickColor.new("Cool yellow").Color,"Highway")
  4160. newThemeCust("rbxassetid://170020261",0,1.005,1.5)
  4161. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  4162. keptcolor = MAINRUINCOLOR
  4163. RecolorThing(MAINRUINCOLOR,BrickColor.new("Cool yellow"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4164. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
  4165. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75)
  4166. sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(15,0,15),5,0,5,BrickColor.new("Cool yellow"))
  4167. sphere2(2,"Add",x.CFrame*CFrame.new(0,0,0),vt(15,0,15),5,0,5,keptcolor)
  4168. sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("White"))
  4169. sphere2(2,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Cool yellow"))
  4170. sphere2(4,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,keptcolor)
  4171. attack = false
  4172. hum.WalkSpeed = storehumanoidWS
  4173. for i = 0, 49 do
  4174. local rsiz = math.random(150,450)
  4175. sphere2(math.random(1,4),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Cool yellow"))
  4176. sphere2(math.random(1,2),"Add",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*CFrame.new(math.random(-350,350),math.random(-350,350),math.random(-350,350)),vt(1,1,1),-0.01,math.random(50,250)/10,-0.01,BrickColor.new("Cool yellow"))
  4177. sphereMK(math.random(1,2),math.random(2,4),"Add",x.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("White"),0)
  4178. end
  4179. coroutine.resume(coroutine.create(function()
  4180. local eff = Instance.new("ParticleEmitter",x)
  4181. eff.Texture = "rbxassetid://284205403"
  4182. eff.LightEmission = 0.95
  4183. eff.Color = ColorSequence.new(BrickColor.new("Cool yellow").Color)
  4184. eff.Rate = 50000
  4185. eff.Lifetime = NumberRange.new(2.5)
  4186. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4187. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4188. eff.Speed = NumberRange.new(250,1000)
  4189. eff.Drag = 5
  4190. eff.Rotation = NumberRange.new(-500,500)
  4191. eff.VelocitySpread = 9000
  4192. eff.RotSpeed = NumberRange.new(-500,500)
  4193. wait(0.5)
  4194. eff.Enabled = false
  4195. end))
  4196. --[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do
  4197. if v:FindFirstChild('Head') then
  4198. dmg(v)
  4199. end
  4200. end]]--
  4201. sphere2(3,"Add",tors.CFrame,vt(1,1,1),10,10,10,keptcolor)
  4202. sphere2(2,"Add",tors.CFrame,vt(1,1,1),10,10,10,BrickColor.new("Cool yellow"))
  4203. sphere2(1,"Add",tors.CFrame,vt(1,1,1),10,10,10,BrickColor.new("White"))
  4204. CameraEnshaking(8,10)
  4205. for i = 0, 99 do
  4206. swait()
  4207. rotation = rotation + 5
  4208. poste = poste + 1
  4209. upperpos = upperpos + rate
  4210. rate = rate + 0.1
  4211. sphere2(math.random(1,2),"Add",x.CFrame*CFrame.new(math.random(-350,350),0,math.random(-350,350)),vt(5,1,5),-0.05,math.random(50,250)/50,-0.05,keptcolor)
  4212. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow"))
  4213. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow"))
  4214. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow"))
  4215. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow"))
  4216. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor)
  4217. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor)
  4218. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor)
  4219. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor)
  4220. end
  4221. x:Destroy()
  4222. end
  4223.  
  4224. function loveydovey()
  4225. attack = true
  4226. local keptcolor = MAINRUINCOLOR
  4227. hum.WalkSpeed = 0
  4228. for i = 0, 5, 0.1 do
  4229. swait()
  4230. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1)
  4231. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0)),.1)
  4232. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4233. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1)
  4234. RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1)
  4235. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1)
  4236. end
  4237. CameraEnshaking(4,9)
  4238. sphere2(2,"Add",root.CFrame,vt(5,5,5),0.5,0.5,0.5,keptcolor)
  4239. sphere2(2,"Add",root.CFrame,vt(5,5,5),0.75,0.75,0.75,keptcolor)
  4240. sphere2(3,"Add",root.CFrame,vt(5,5,5),1,1,1,keptcolor)
  4241. sphere2(3,"Add",root.CFrame,vt(5,5,5),1.25,1.25,1.25,keptcolor)
  4242. sphere2(1,"Add",root.CFrame,vt(5,10000,5),0.5,0.5,0.5,keptcolor)
  4243. sphere2(2,"Add",root.CFrame,vt(5,10000,5),0.6,0.6,0.6,keptcolor)
  4244. CFuncs["Sound"].Create("rbxassetid://763717897", char, 0.75, 1.25)
  4245. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 0.75, 1)
  4246. coroutine.resume(coroutine.create(function()
  4247. local eff = Instance.new("ParticleEmitter",root)
  4248. eff.Texture = "rbxassetid://363275192"
  4249. eff.LightEmission = 0.95
  4250. eff.Color = ColorSequence.new(keptcolor.Color)
  4251. eff.Rate = 10000
  4252. eff.Lifetime = NumberRange.new(1)
  4253. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  4254. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4255. eff.Speed = NumberRange.new(50,200)
  4256. eff.Drag = 5
  4257. eff.Rotation = NumberRange.new(-500,500)
  4258. eff.VelocitySpread = 9000
  4259. eff.RotSpeed = NumberRange.new(-50,50)
  4260. wait(0.5)
  4261. eff.Enabled = false
  4262. wait(5)
  4263. eff:Destroy()
  4264. end))
  4265. for i = 0, 49 do
  4266. local rsiz = math.random(70,90)
  4267. sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.005,math.random(25,100)/25,-0.005,MAINRUINCOLOR)
  4268. end
  4269. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  4270. CFuncs["Sound"].Create("rbxassetid://543623779", root, 1.5,1)
  4271. newTheme("rbxassetid://736003449",0,1,2)
  4272. ModeOfGlitch = 9600000000
  4273. MAINRUINCOLOR = BrickColor.new("Hot pink")
  4274. for i = 0, 1, 0.2 do
  4275. swait()
  4276. RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
  4277. LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
  4278. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
  4279. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8)
  4280. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8)
  4281. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8)
  4282. end
  4283. for i = 0, 9, 0.1 do
  4284. swait()
  4285. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1)
  4286. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0)),.1)
  4287. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1)
  4289. RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1)
  4290. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1)
  4291. end
  4292. CameraEnshaking(2,11)
  4293. sphere2(2,"Add",root.CFrame,vt(5,5,5),0.75,0.75,0.75,BrickColor.new("Pink"))
  4294. sphere2(2,"Add",root.CFrame,vt(5,5,5),1,1,1,BrickColor.new("Pink"))
  4295. sphere2(3,"Add",root.CFrame,vt(5,5,5),1.25,1.25,1.25,MAINRUINCOLOR)
  4296. sphere2(3,"Add",root.CFrame,vt(5,5,5),1.5,1.5,1.5,MAINRUINCOLOR)
  4297. sphere2(1,"Add",root.CFrame,vt(5,10000,5),0.5,0.5,0.5,BrickColor.new("Pink"))
  4298. sphere2(2,"Add",root.CFrame,vt(5,10000,5),1,1,1,MAINRUINCOLOR)
  4299. CFuncs["Sound"].Create("rbxassetid://763717897", char, 1, 1.125)
  4300. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 0.75)
  4301. for i = 0, 49 do
  4302. local rsiz = math.random(70,90)
  4303. sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.005,math.random(50,200)/25,-0.005,MAINRUINCOLOR)
  4304. sphereMK(math.random(1,2),math.random(1,3),"Add",root.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Pink"),0)
  4305. end
  4306. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  4307. for i = 0, 1, 0.2 do
  4308. swait()
  4309. RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
  4310. LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
  4311. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
  4312. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8)
  4313. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8)
  4314. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8)
  4315. end
  4316. for i = 0, 1, 0.1 do
  4317. swait()
  4318. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1)
  4319. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0)),.1)
  4320. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4321. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1)
  4322. RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1)
  4323. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1)
  4324. end
  4325. CameraEnshaking(9,14)
  4326. sphere2(4,"Add",root.CFrame,vt(5,5,5),1,1,1,BrickColor.new("Pink"))
  4327. sphere2(4,"Add",root.CFrame,vt(5,5,5),2,2,2,BrickColor.new("Pink"))
  4328. sphere2(9,"Add",root.CFrame,vt(5,5,5),3,3,3,MAINRUINCOLOR)
  4329. sphere2(9,"Add",root.CFrame,vt(5,5,5),4,4,4,MAINRUINCOLOR)
  4330. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  4331. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
  4332. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4333. sphere2(1,"Add",root.CFrame,vt(5,5,5),2,2,2,BrickColor.new("Pink"))
  4334. sphere2(1,"Add",root.CFrame,vt(5,5,5),3,3,3,BrickColor.new("Pink"))
  4335. sphere2(1,"Add",root.CFrame,vt(5,5,5),4,4,4,BrickColor.new("Pink"))
  4336. sphere2(1,"Add",root.CFrame,vt(5,10000,5),2.5,2.5,2.5,BrickColor.new("Pink"))
  4337. sphere2(2,"Add",root.CFrame,vt(5,10000,5),3.5,3.5,3.5,MAINRUINCOLOR)
  4338. sphere2(1,"Add",root.CFrame,vt(5,5,5),8,8,8,BrickColor.new("Pink"))
  4339. sphere2(2,"Add",root.CFrame,vt(5,5,5),14,14,14,MAINRUINCOLOR)
  4340. sphere2(3,"Add",root.CFrame,vt(5,5,5),20,20,20,MAINRUINCOLOR)
  4341. for i = 0, 99 do
  4342. local rsiz = math.random(150,450)
  4343. sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Pink"))
  4344. sphere2(math.random(1,2),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*CFrame.new(math.random(-350,350),math.random(-350,350),math.random(-350,350)),vt(1,1,1),-0.01,math.random(50,250)/10,-0.01,MAINRUINCOLOR)
  4345. sphereMK(math.random(1,2),math.random(4,6),"Add",root.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Pink"),0)
  4346. end
  4347. coroutine.resume(coroutine.create(function()
  4348. local eff = Instance.new("ParticleEmitter",root)
  4349. eff.Texture = "rbxassetid://749327003"
  4350. eff.LightEmission = 1
  4351. eff.Color = ColorSequence.new(BrickColor.new("Pink").Color)
  4352. eff.Rate = 50000
  4353. eff.Lifetime = NumberRange.new(5)
  4354. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,60,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4355. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4356. eff.Speed = NumberRange.new(250,1000)
  4357. eff.Drag = 5
  4358. eff.Rotation = NumberRange.new(-50,50)
  4359. eff.VelocitySpread = 9000
  4360. eff.RotSpeed = NumberRange.new(-50,50)
  4361. wait(0.5)
  4362. eff.Enabled = false
  4363. wait(5)
  4364. eff:Destroy()
  4365. end))
  4366. storehumanoidWS = 20
  4367. rainbowmode = false
  4368. chaosmode = false
  4369. RecolorTextAndRename("LOVE",BrickColor.new("Pink").Color,BrickColor.new("Hot pink").Color,"Cartoon")
  4370. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4371. for i = 0, 10, 0.1 do
  4372. swait()
  4373. sphere2(math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-350,350),0,math.random(-350,350)),vt(5,1,5),-0.05,math.random(50,250)/50,-0.05,MAINRUINCOLOR)
  4374. RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
  4375. LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
  4376. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
  4377. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(0),math.rad(0)),.8)
  4378. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8)
  4379. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8)
  4380. end
  4381. hum.WalkSpeed = 20
  4382. attack = false
  4383. end
  4384. -------------------------------------
  4385.  
  4386. Humanoid.Animator.Parent = nil
  4387.  
  4388. -------------------------------------
  4389.  
  4390. local attacktype = 1
  4391. mouse.Button1Down:connect(function()
  4392. if attack == false and attacktype == 1 then
  4393. attacktype = 2
  4394. attackone()
  4395. elseif attack == false and attacktype == 2 then
  4396. attacktype = 3
  4397. attacktwo()
  4398. elseif attack == false and attacktype == 3 then
  4399. attacktype = 1
  4400. attackthree()
  4401. elseif attack == false and attacktype == 4 then
  4402. attacktype = 1
  4403. --attackfour()
  4404. end
  4405. end)
  4406.  
  4407. local OVMID = 1702473314
  4408. local OVMPIT = 1
  4409. local OVMVOL = 1
  4410. mouse.KeyDown:connect(function(k)
  4411. if k == "1" and attack == false and ModeOfGlitch ~= 1 then
  4412. resetmode()
  4413. end
  4414. if k == "2" and attack == false and ModeOfGlitch ~= 2 then
  4415. ModeOfGlitch = 2
  4416. storehumanoidWS = 16
  4417. hum.WalkSpeed = 16
  4418. rainbowmode = false
  4419. chaosmode = false
  4420. RecolorTextAndRename("Azure",Color3.new(0,0,0),BrickColor.new("Bright violet").Color,"Code")
  4421. newTheme("rbxassetid://1003121377",0,1.02,1.25)
  4422. MAINRUINCOLOR = BrickColor.new("Bright violet")
  4423. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4424. end
  4425. if k == "3" and attack == false and ModeOfGlitch ~= 3 then
  4426. ModeOfGlitch = 3
  4427. storehumanoidWS = 16
  4428. hum.WalkSpeed = 16
  4429. rainbowmode = false
  4430. chaosmode = false
  4431. RecolorTextAndRename("BINARY",Color3.new(0,0,0),Color3.new(0,1,0),"SciFi")
  4432. newTheme("rbxassetid://949709585",0,1.01,1.25)
  4433. MAINRUINCOLOR = BrickColor.new("Lime green")
  4434. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4435. end
  4436. if k == "4" and attack == false and ModeOfGlitch ~= 4 then
  4437. ModeOfGlitch = 4
  4438. storehumanoidWS = 16
  4439. hum.WalkSpeed = 16
  4440. rainbowmode = false
  4441. chaosmode = false
  4442. RecolorTextAndRename("Luna",Color3.new(0,0,0.25),BrickColor.new("Bright yellow").Color,"SourceSansBold")
  4443. newTheme("rbxassetid://1449911189",0,1.02,1.25)
  4444. MAINRUINCOLOR = BrickColor.new("Navy blue")
  4445. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4446. end
  4447. if k == "5" and attack == false and ModeOfGlitch ~= 5 then
  4448. ModeOfGlitch = 5
  4449. storehumanoidWS = 16
  4450. hum.WalkSpeed = 16
  4451. rainbowmode = false
  4452. chaosmode = false
  4453. RecolorTextAndRename("Blaze",Color3.new(1,0.5,0),Color3.new(1,1,0),"Fantasy")
  4454. newTheme("rbxassetid://933674871",0,1.01,1.25)
  4455. MAINRUINCOLOR = BrickColor.new("Deep orange")
  4456. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4457. end
  4458. if k == "6" and attack == false and ModeOfGlitch ~= 6 then
  4459. ModeOfGlitch = 6
  4460. storehumanoidWS = 100
  4461. hum.WalkSpeed = 100
  4462. rainbowmode = false
  4463. chaosmode = false
  4464. RecolorTextAndRename("GALACTIC",Color3.new(0,0,0.5),Color3.new(0.75,1,1),"Fantasy")
  4465. newTheme("rbxassetid://258688195",0,1,1.25)
  4466. MAINRUINCOLOR = BrickColor.new("Pastel light blue")
  4467. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4468. end
  4469. if k == "7" and attack == false and ModeOfGlitch ~= 7 then
  4470. ModeOfGlitch = 7
  4471. storehumanoidWS = 175
  4472. hum.WalkSpeed = 175
  4473. rainbowmode = false
  4474. chaosmode = false
  4475. RecolorTextAndRename("HYPERSPEED",BrickColor.new("Cyan").Color,BrickColor.new("Toothpaste").Color,"Arcade")
  4476. newTheme("rbxassetid://265293315",0,1.01,1.25)
  4477. MAINRUINCOLOR = BrickColor.new("Cyan")
  4478. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4479. end
  4480. if k == "8" and attack == false and ModeOfGlitch ~= 8 then
  4481. ModeOfGlitch = 8
  4482. storehumanoidWS = 100
  4483. hum.WalkSpeed = 100
  4484. rainbowmode = false
  4485. chaosmode = false
  4486. RecolorTextAndRename("CHAOTIC",BrickColor.new("Really red").Color,BrickColor.new("Bright red").Color,"Antique")
  4487. newTheme("rbxassetid://1230880483",0,1.01,1.65)
  4488. MAINRUINCOLOR = BrickColor.new("Really red")
  4489. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4490. end
  4491. if k == "9" and attack == false and ModeOfGlitch ~= 9 then
  4492. ModeOfGlitch = 9
  4493. storehumanoidWS = 135
  4494. hum.WalkSpeed = 135
  4495. rainbowmode = false
  4496. chaosmode = false
  4497. RecolorTextAndRename("Visualiser",BrickColor.new("Medium stone grey").Color,BrickColor.new("Black").Color,"Arcade")
  4498. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4499. MAINRUINCOLOR = BrickColor.new("Medium stone grey")
  4500. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4501. end
  4502. if k == "0" and attack == false and ModeOfGlitch ~= 10 then
  4503. ModeOfGlitch = 10
  4504. storehumanoidWS = 12
  4505. hum.WalkSpeed = 12
  4506. rainbowmode = false
  4507. chaosmode = false
  4508. RecolorTextAndRename("Lucid Dream",BrickColor.new("Navy blue").Color,BrickColor.new("Black").Color,"Garamond")
  4509. newTheme("rbxassetid://892260150",0,1.01,1.65)
  4510. MAINRUINCOLOR = BrickColor.new("Black")
  4511. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4512. end
  4513. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 2000000000 then
  4514. ModeOfGlitch = 2000000000
  4515. storehumanoidWS = 200
  4516. hum.WalkSpeed = 200
  4517. rainbowmode = false
  4518. chaosmode = false
  4519. RecolorTextAndRename("AZURE X",BrickColor.new("Dark indigo").Color,BrickColor.new("Magenta").Color,"Antique")
  4520. newThemeCust("rbxassetid://949706199",2.9,1.02,1.5)
  4521. MAINRUINCOLOR = BrickColor.new("Magenta")
  4522. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4523. end
  4524. if k == "u" and attack == false and ModeOfGlitch ~= 9600000000 then
  4525. loveydovey()
  4526. end
  4527. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 6000000000 then
  4528. UnknownA()
  4529. end
  4530. if k == "t" and ModeOfGlitch == 6000000000 and attack == false then
  4531. harmonytaunty()
  4532. elseif k == "t" and ModeOfGlitch == 9 and attack == false then
  4533. vistaunty()
  4534. elseif k == "t" and ModeOfGlitch == 9600000000 and attack == false then
  4535. shytaunty()
  4536. end
  4537. if k == "z" and ModeOfGlitch == 1 and attack == false then
  4538. Beams()
  4539. elseif k == "z" and ModeOfGlitch == 2 and attack == false then
  4540. smiter()
  4541. elseif k == "z" and ModeOfGlitch == 2000000000 and attack == false then
  4542. supsmiter()
  4543. elseif k == "z" and ModeOfGlitch == 3 and attack == false then
  4544. BinaryE()
  4545. elseif k == "z" and ModeOfGlitch == 4 and attack == false then
  4546. elseif k == "z" and ModeOfGlitch == 5 and attack == false then
  4547. Fireball()
  4548. elseif k == "z" and ModeOfGlitch == 6 and attack == false then
  4549. GalacticalBeams()
  4550. elseif k == "z" and ModeOfGlitch == 7 and attack == false then
  4551. WarpedDash()
  4552. elseif k == "z" and ModeOfGlitch == 8 and attack == false then
  4553. BeamOfDeath()
  4554. elseif k == "z" and ModeOfGlitch == 9 and attack == false then
  4555. end
  4556. if k == "x" and ModeOfGlitch == 3 and attack == false then
  4557. BinaryBLINK()
  4558. end
  4559. if k == "v" and ModeOfGlitch == 2000000000 and attack == false then
  4560. AZUREFINALE()
  4561. end
  4562. if k == "l" and mutedtog == false then
  4563. mutedtog = true
  4564. kan.Volume = 0
  4565. elseif k == "l" and mutedtog == true then
  4566. mutedtog = false
  4567. kan.Volume = 1.25
  4568. end
  4569. if k == "p" and toggleTag == false then
  4570. toggleTag = true
  4571. modet.TextTransparency = 0
  4572. modet.TextStrokeTransparency = 0
  4573. elseif k == "p" and toggleTag == true then
  4574. toggleTag = false
  4575. modet.TextTransparency = 1
  4576. modet.TextStrokeTransparency = 1
  4577. end
  4578. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4579. end
  4580. end)
  4581.  
  4582. plr.Chatted:connect(function(message)
  4583. if ModeOfGlitch == 9 then
  4584. if message:sub(1,5) == "play/" then
  4585. OVMID = message:sub(6)
  4586. newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4587. elseif message:sub(1,6) == "pitch/" then
  4588. OVMPIT = message:sub(7)
  4589. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4590. elseif message:sub(1,4) == "vol/" then
  4591. OVMVOL = message:sub(5)
  4592. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4593. elseif message:sub(1,7) == "skipto/" then
  4594. chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4595. newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL)
  4596. elseif message:sub(1,9) == "telltime/" then
  4597. chatfunc("Current time pos: "..math.floor(kan.TimePosition).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4598. end
  4599. end
  4600. end)
  4601. local rotperm = 0
  4602. coroutine.resume(coroutine.create(function()
  4603. while true do
  4604. swait()
  4605. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 then
  4606. swait(0.5)
  4607. sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,MAINRUINCOLOR,0)
  4608. elseif ModeOfGlitch == 5 then
  4609. swait(0.5)
  4610. local rsiz = math.random(1,3)
  4611. sphereMK(math.random(3,6),math.random(-25,25)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  4612. sphereMK(math.random(6,9),math.random(-10,10)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-5,5)/50,math.random(-5,5)/50,math.random(-5,5)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/3,rsiz/3,rsiz/3,0,MAINRUINCOLOR,0)
  4613. elseif ModeOfGlitch == 9600000000 then
  4614. swait(0.25)
  4615. sphereMK(5,math.random(-14,-8)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
  4616. elseif ModeOfGlitch == 6000000000 then
  4617. coroutine.resume(coroutine.create(function()
  4618. swait(5)
  4619. sphereMK(10,math.random(15,45)/45,"Add",root.CFrame*CFrame.new(math.random(-50,50),-40,math.random(-50,50))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,60,-0.01,MAINRUINCOLOR,0)
  4620. end))
  4621. swait(1)
  4622. rotperm = rotperm + 12
  4623. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,MAINRUINCOLOR)
  4624. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,BrickColor.new("Cool yellow"))
  4625. elseif ModeOfGlitch == 9 and kan.PlaybackLoudness >= 50 then
  4626. swait(25 - kan.PlaybackLoudness/80)
  4627. sphere2(4,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.25,0,0.25,MAINRUINCOLOR)
  4628. if kan.PlaybackLoudness >= 300 then
  4629. CameraEnshaking(1,3)
  4630. for i = 0, 4 do
  4631. sphereMK(5,math.random(15,35)/150,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,20,-0.01,MAINRUINCOLOR,0)
  4632. end
  4633. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.5,0,0.5,MAINRUINCOLOR)
  4634. end
  4635. local notsp = Instance.new("Part", char)
  4636. notsp.CanCollide = false
  4637. notsp.FormFactor = 3
  4638. notsp.Name = "Ring"
  4639. notsp.Material = "Neon"
  4640. notsp.Size = Vector3.new(10, 1, 10)
  4641. if kan.PlaybackLoudness >= 300 then
  4642. notsp.Size = Vector3.new(25, 1, 25)
  4643. end
  4644. notsp.Transparency = 1
  4645. notsp.TopSurface = 0
  4646. notsp.BottomSurface = 0
  4647. notsp.Anchored = true
  4648. notsp.CFrame = root.CFrame*CFrame.new(0,-3,0)
  4649. coroutine.resume(coroutine.create(function()
  4650. local eff = Instance.new("ParticleEmitter",notsp)
  4651. eff.Texture = "rbxassetid://288898235"
  4652. eff.LightEmission = 0.5
  4653. eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
  4654. eff.Rate = 300
  4655. eff.Lifetime = NumberRange.new(1)
  4656. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,0,0)})
  4657. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4658. eff.Speed = NumberRange.new(20,40)
  4659. eff.Acceleration = vt(0,-75,0)
  4660. eff.Drag = 1
  4661. eff.Rotation = NumberRange.new(-10,10)
  4662. eff.VelocitySpread = 20
  4663. eff.RotSpeed = NumberRange.new(-1,1)
  4664. coroutine.resume(coroutine.create(function()
  4665. while true do
  4666. swait()
  4667. if eff.Parent ~= nil then
  4668. if ModeOfGlitch == 9 then
  4669. eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
  4670. elseif ModeOfGlitch ~= 9 then
  4671. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4672. end
  4673. else
  4674. break
  4675. end
  4676. end
  4677. end))
  4678. wait(0.1)
  4679. eff.Enabled = false
  4680. end))
  4681. game:GetService("Debris"):AddItem(notsp, 5)
  4682. end
  4683. end
  4684. end))
  4685.  
  4686.  
  4687. Humanoid.Name = "GGLITCHER"
  4688. Humanoid.MaxHealth = math.huge
  4689. Humanoid.Health = math.huge
  4690. Instance.new("ForceField",char).Visible = false
  4691.  
  4692. idleanim=.4
  4693. while true do
  4694. Humanoid.MaxHealth = math.huge
  4695. Humanoid.Health = math.huge
  4696. if mutedtog == false and duringend == false then
  4697. kan.Volume = currentVol
  4698. elseif mutedtog == true and duringend == false then
  4699. kan.Volume = 0
  4700. end
  4701. if duringend == false then
  4702. kan.PlaybackSpeed = currentPitch
  4703. kan.Pitch = currentPitch
  4704. end
  4705. kan.SoundId = currentThemePlaying
  4706. kan.Looped = true
  4707. kan.Parent = char
  4708. kan:Resume()
  4709.  
  4710. modeteller.Text = string.upper(modet.Text)
  4711. modeteller.TextColor3 = MAINRUINCOLOR.Color
  4712.  
  4713. swait()
  4714. handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3)
  4715.  
  4716. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 42)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 5 * math.cos(sine / 56))),.3)
  4717. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(130 + 5 * math.cos(sine / 56))),.3)
  4718. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 48)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(50 + 5 * math.cos(sine / 56))),.3)
  4719. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 46)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 5 * math.cos(sine / 56))),.3)
  4720. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-130 - 5 * math.cos(sine / 56))),.3)
  4721. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 40)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-50 - 5 * math.cos(sine / 56))),.3)
  4722. --------------- Visualiser Zone
  4723. if ModeOfGlitch == 9 then
  4724. modet.TextColor3 = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4725. for i, v in pairs(mw2:GetChildren()) do
  4726. if v:IsA("Part") then
  4727. v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4728. v.Material = "Neon"
  4729. end
  4730. end
  4731. for i, v in pairs(mw1:GetChildren()) do
  4732. if v:IsA("Part") then
  4733. v.Transparency = 0
  4734. v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4735. v.Material = "Neon"
  4736. end
  4737. end
  4738. end
  4739. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  4740. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  4741. ---------------
  4742. sine = sine + change
  4743. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4744. local velderp=RootPart.Velocity.y
  4745. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4746. if equipped==true or equipped==false then
  4747. if attack==false then
  4748. idle=idle+1
  4749. else
  4750. idle=0
  4751. end
  4752. if idle>=500 then
  4753. if attack==false then
  4754. --Sheath()
  4755. end
  4756. end
  4757. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4758. Anim="Jump"
  4759. if attack==false then
  4760. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  4761. 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)
  4762. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  4763. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  4764. 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)
  4765. 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)
  4766. end
  4767. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4768. Anim="Fall"
  4769. if attack==false then
  4770. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  4771. 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)
  4772. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  4773. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  4774. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  4775. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  4776. end
  4777. elseif torvel<1 and hitfloor~=nil then
  4778. Anim="Idle"
  4779. if attack==false then
  4780. if ModeOfGlitch == 1 then
  4781. 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(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4782. 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(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4783. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1)
  4784. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  4785. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1)
  4786. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1)
  4787. elseif ModeOfGlitch == 2 then
  4788. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4789. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4790. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1)
  4791. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1)
  4792. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1)
  4793. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1)
  4794. elseif ModeOfGlitch == 10 then
  4795. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  4796. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  4797. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * RHCF * angles(math.rad(-4.5), math.rad(0), math.rad(0)), 0.15)
  4798. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * LHCF * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.15)
  4799. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
  4800. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4 + 0.05 * math.cos(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  4801. elseif ModeOfGlitch == 3 then
  4802. 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(-5 - 2 * math.cos(sine / 34))),.1)
  4803. 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(-1.5),math.rad(20 - 2 * math.cos(sine / 72)),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4804. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 72))),.1)
  4805. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 + 4 * math.cos(sine / 55)),math.rad(20 - 2 * math.cos(sine / 72))),.1)
  4806. RW.C0=clerp(RW.C0,cf(1.15,0.5 + 0.1 * math.cos(sine / 28),0.25)*angles(math.rad(-22 + 2 * math.cos(sine / 38)),math.rad(0),math.rad(-15 - 2 * math.cos(sine / 41))),.1)
  4807. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 - 6 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 46)),math.rad(-20 + 5 * math.cos(sine / 34))),.1)
  4808. elseif ModeOfGlitch == 4 then
  4809. 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(-5),math.rad(0 - 3 * math.cos(sine / 34))),.1)
  4810. 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(-1.5),math.rad(0),math.rad(10 + 3 * math.cos(sine / 34))),.1)
  4811. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(25)),.1)
  4812. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 2 * math.cos(sine / 57)),math.rad(-25)),.1)
  4813. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 5 * math.cos(sine / 34)),math.rad(0),math.rad(21 + 6 * math.cos(sine / 28))),.1)
  4814. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-5 + 5 * math.cos(sine / 43)),math.rad(10 - 5 * math.cos(sine / 27)),math.rad(-5 - 3 * math.cos(sine / 36))),.1)
  4815. elseif ModeOfGlitch == 5 then
  4816. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4817. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4818. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 4 * math.cos(sine / 50)),math.rad(-18)),.1)
  4819. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1)
  4820. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sine / 34)),math.rad(0 - 2 * math.cos(sine / 45)),math.rad(-80 + 5 * math.cos(sine / 28))),.1)
  4821. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(7 + 3 * math.cos(sine / 49)),math.rad(12 + 2 * math.cos(sine / 52)),math.rad(-16 - 6 * math.cos(sine / 39))),.1)
  4822. elseif ModeOfGlitch == 6 then
  4823. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1)
  4824. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(5 + 2 * math.cos(sine / 34))),.1)
  4825. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 53))),.1)
  4826. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1)
  4827. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1)
  4828. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1)
  4829. elseif ModeOfGlitch == 7 then
  4830. 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(1),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  4831. 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(5),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4832. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.01 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4833. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 1 * math.cos(sine / 71)),math.rad(0)),.1)
  4834. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(4 - 4 * math.cos(sine / 28)),math.rad(-8),math.rad(10 - 5 * math.cos(sine / 34))),.1)
  4835. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(5),math.rad(5),math.rad(5)),.1)
  4836. elseif ModeOfGlitch == 8 then
  4837. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  4838. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  4839. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  4840. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  4841. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
  4842. LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
  4843. elseif ModeOfGlitch == 9 then
  4844. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  4845. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  4846. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(30)),.4)
  4847. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-30)),.4)
  4848. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(40 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(28 - 2 * math.cos(sine / 38))),.4)
  4849. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  4850. elseif ModeOfGlitch == 2000000000 then
  4851. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  4852. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 3 * math.cos(sine / 34))),.1)
  4853. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(2 + 3 * math.cos(sine / 34)),math.rad(0),math.rad(34 - 3 * math.cos(sine / 54))),.1)
  4854. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 4 * math.cos(sine / 28)),math.rad(0 - 1 * math.cos(sine / 44)),math.rad(-34 + 3 * math.cos(sine / 54))),.1)
  4855. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(12 + 5 * math.cos(sine / 62)),math.rad(30 + 5 * math.cos(sine / 48)),math.rad(19 + 6 * math.cos(sine / 36))),.1)
  4856. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 65)),math.rad(6 + 3 * math.cos(sine / 57)),math.rad(-20 - 7 * math.cos(sine / 36))),.1)
  4857. elseif ModeOfGlitch == 6000000000 then
  4858. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-15 + 6 * math.cos(sine / 34))),.1)
  4859. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(7.5 - 4 * math.cos(sine / 47))),.1)
  4860. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-1 + 4 * math.cos(sine / 62))),.1)
  4861. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(5 - 6 * math.cos(sine / 79)),math.rad(1 - 4 * math.cos(sine / 62))),.1)
  4862. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(38 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-95 - 3 * math.cos(sine / 28))),.1)
  4863. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(45 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(80 + 5 * math.cos(sine / 30))),.1)
  4864. elseif ModeOfGlitch == 9600000000 then
  4865. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  4866. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  4867. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  4868. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5 - 2.5 * math.cos(sine / 28)),math.rad(10 + 5 * math.cos(sine / 62)),math.rad(17 + 5 * math.cos(sine / 59))),.1)
  4869. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1)
  4870. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1)
  4871. end
  4872. end
  4873. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4874. Anim="Walk"
  4875. if attack==false then
  4876. if ModeOfGlitch == 10 then
  4877. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(4-2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(5 * math.cos(sine / 7))), 0.15)
  4878. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  4879. RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 5 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4880. LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 5 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4881. RW.C0 = clerp(RW.C0, cf(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
  4882. LW.C0 = clerp(LW.C0, cf(-1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  4883. elseif ModeOfGlitch ~= 9600000000 then
  4884. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  4885. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  4886. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  4887. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  4888. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  4889. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  4890. elseif ModeOfGlitch == 9600000000 then
  4891. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1)
  4892. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1)
  4893. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.1,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(15 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
  4894. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15 + 3 * math.cos(sine / 4)),math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0 - hed.RotVelocity.Y*2.5 + 10 * math.cos(sine / 8))),.1)
  4895. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 80 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  4896. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 80 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  4897. end
  4898. end
  4899. elseif torvel>=22 and hitfloor~=nil then
  4900. Anim="Run"
  4901. if attack==false then
  4902. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 2000000000 and ModeOfGlitch ~= 6000000000 then
  4903. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  4904. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  4905. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1)
  4906. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1)
  4907. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1)
  4908. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1)
  4909. if ModeOfGlitch == 7 then
  4910. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  4911. sphereMK(3,0,"Add",root.CFrame*CFrame.new(0,0,8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,5,20,-0.0075,MAINRUINCOLOR,0)
  4912. end
  4913. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 or ModeOfGlitch == 6000000000 then
  4914. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  4915. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  4916. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  4917. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  4918. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  4919. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  4920. end
  4921. end
  4922. end
  4923. end
  4924. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement