Advertisement
REX_THE_LEAKER

Galaxy Glitcher Edit FE

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