Advertisement
memberhero

Galaxy Glitcher Filtering Enabled

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