Advertisement
memberhero

Galaxy Glitcher Less Laggy FE Script

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