Advertisement
Goo345

Untitled

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