Advertisement
bruh9191

Untitled

Feb 19th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 246.95 KB | None | 0 0
  1. -- FE template created by MintyLatios (V3rm) aka mikel11114 (ROBLOX)
  2. local username = "tommy73738"
  3.  
  4. if(script:FindFirstChild'Owner')then
  5. repeat wait() until script.Owner.Value
  6. end
  7. function GetPlr(user)
  8. for _,v in next, game:service'Players':players() do
  9. if(v.Name==user)then
  10. return v
  11. end
  12. end
  13. return nil
  14. end
  15.  
  16. local Player = (script:FindFirstChild'Owner' and script:FindFirstChild'Owner'.Value or GetPlr(username))
  17. pcall(game.Destroy,script:FindFirstChild'Owner')
  18. FakeMouse.Parent = Player.Character;
  19. script.FakeMouse:Destroy()
  20. do
  21. local GUID = {}
  22. do
  23. GUID.IDs = {};
  24. function GUID:new(len)
  25. local id;
  26. if(not len)then
  27. id = (tostring(function() end))
  28. id = id:gsub("function: ","")
  29. else
  30. local function genID(len)
  31. local newID = ""
  32. for i = 1,len do
  33. newID = newID..string.char(math.random(48,90))
  34. end
  35. return newID
  36. end
  37. repeat id = genID(len) until not GUID.IDs[id]
  38. local oid = id;
  39. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  40. GUID.IDs[oid]=true;
  41. end
  42. return id
  43. end
  44. end
  45.  
  46. local AHB = Instance.new("BindableEvent")
  47.  
  48. local FPS = 30
  49.  
  50. local TimeFrame = 0
  51.  
  52. local LastFrame = tick()
  53. local Frame = 1/FPS
  54.  
  55. game:service'RunService'.Heartbeat:connect(function(s,p)
  56. TimeFrame = TimeFrame + s
  57. if(TimeFrame >= Frame)then
  58. for i = 1,math.floor(TimeFrame/Frame) do
  59. AHB:Fire()
  60. end
  61. LastFrame=tick()
  62. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  63. end
  64. end)
  65.  
  66.  
  67. function swait(dur)
  68. if(dur == 0 or typeof(dur) ~= 'number')then
  69. AHB.Event:wait()
  70. else
  71. for i = 1, dur*FPS do
  72. AHB.Event:wait()
  73. end
  74. end
  75. end
  76.  
  77. local oPlayer = Player
  78. local Player = oPlayer
  79.  
  80. local loudnesses={}
  81. script.Parent = Player.Character
  82. local CoAS = {Actions={}}
  83. local Event = Instance.new("RemoteEvent")
  84. Event.Name = "UserInputEvent"
  85. Event.Parent = Player.Character
  86. local Func = Instance.new("RemoteFunction")
  87. Func.Name = "GetClientProperty"
  88. Func.Parent = Player.Character
  89. local fakeEvent = function()
  90. local t = {_fakeEvent=true,Waited={},Connected={}}
  91. t.Connect = function(self,f)
  92. local ft={}
  93. ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
  94. ft.Disconnect=ft.disconnect
  95.  
  96. ft.Func=function(...)
  97. for id,_ in next, t.Waited do
  98. t.Waited[id] = true
  99. end
  100. return f(...)
  101. end;
  102.  
  103. table.insert(self.Connected,ft)
  104. return ft;
  105. end
  106. t.connect = t.Connect
  107. t.Wait = function()
  108. local guid = GUID:new(25)
  109. local waitingId = guid:Get()
  110. t.Waited[waitingId]=false
  111. repeat swait() until t.Waited[waitingId]==true
  112. t.Waited[waitingId]=nil;
  113. guid:Trash()
  114. end
  115. t.wait = t.Wait
  116. return t
  117. end
  118. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  119. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  120. local Run = {RenderStepped=fakeEvent()}
  121.  
  122. function CoAS:BindAction(name,fun,touch,...)
  123. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  124. end
  125. function CoAS:UnbindAction(name)
  126. CoAS.Actions[name] = nil
  127. end
  128. local function te(self,ev,...)
  129. local t = self[ev]
  130. if t and t._fakeEvent and t.Connected then
  131. for i,v in next, t.Connected do
  132. if(v.Func and not v.Disconnected)then
  133. v.Func(...)
  134. else
  135. t.Connected[i]=nil
  136. end
  137. end
  138. end
  139. end
  140. m.TrigEvent = te
  141. UsIS.TrigEvent = te
  142. Run.TrigEvent = te
  143. Event.OnServerEvent:Connect(function(plr,io)
  144. if plr~=Player then return end
  145. --[[table.foreach(io,print)
  146. print'---']]
  147. if io.Mouse then
  148. m.Target = io.Target
  149. m.Hit = io.Hit
  150. elseif io.KeyEvent then
  151. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  152. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  153. if io.UserInputState == Enum.UserInputState.Begin then
  154. m:TrigEvent("Button1Down")
  155. else
  156. m:TrigEvent("Button1Up")
  157. end
  158. end
  159. if(not io.KeyEvent and not io.Mouse)then
  160.  
  161. for n,t in pairs(CoAS.Actions) do
  162. for _,k in pairs(t.Keys) do
  163. if k==io.KeyCode then
  164. t.Function(t.Name,io.UserInputState,io)
  165. end
  166. end
  167. end
  168. if io.UserInputState == Enum.UserInputState.Begin then
  169. UsIS:TrigEvent("InputBegan",io,false)
  170. else
  171. UsIS:TrigEvent("InputEnded",io,false)
  172. end
  173. end
  174. end)
  175.  
  176. Func.OnServerInvoke = function(plr,inst,play)
  177. if plr~=Player then return end
  178. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  179. loudnesses[inst]=play
  180. end
  181. end
  182.  
  183. function GetClientProperty(inst,prop)
  184. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  185. return loudnesses[inst]
  186. elseif(prop == 'PlaybackLoudness')then
  187. return Func:InvokeClient(Player,'RegSound',inst)
  188. end
  189. return Func:InvokeClient(Player,inst,prop)
  190. end
  191. local oldGame = game;
  192. function GetFakePlayer()
  193. local oldPlayer = Player;
  194. local fakePlayer = newproxy(true)
  195. getmetatable(fakePlayer).__index = function(s,i)
  196. if(i == 'GetMouse')then
  197. return function() return m; end
  198. end
  199. return Player[i]
  200. end
  201. getmetatable(fakePlayer).__newindex = function(s,i,v)
  202. Player[i]=v
  203. end
  204. getmetatable(fakePlayer).__call=function(self,...)
  205. if(self == fakePlayer)then self = Player end
  206. local wh = {...}
  207. local name = table.remove(wh,1)
  208. for i,v in next, wh do
  209. wh[i]=v
  210. end
  211. if(name == 'GetMouse')then
  212. return m;
  213. end
  214. return self(name,unpack(wh))
  215. end
  216. getmetatable(fakePlayer).__namecall=function(self,...)
  217. if(self == fakePlayer)then self = Player end
  218. local tuple={...}
  219. local name = table.remove(tuple,#tuple)
  220.  
  221. if(name == 'GetMouse')then
  222. return m;
  223. else
  224. return self[name](self,unpack(tuple))
  225. end
  226. end
  227.  
  228. return fakePlayer
  229. end
  230. local oll = LoadLibrary;
  231. function LoadLibrary(libtard)
  232. local libtarddestroyed=oll(libtard)
  233. if(libtard=='RbxUtility')then
  234. local library={Create=function(obj)
  235. local inst = Instance.new(obj)
  236. return function(props)
  237. for prop,valu in next, props do
  238. inst[prop]=valu
  239. end
  240. return inst
  241. end
  242. end}
  243. setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
  244.  
  245. return library
  246. else
  247. return libtarddestroyed
  248. end
  249. end
  250. fakePlayer = GetFakePlayer()
  251. local function GetService(s,i)
  252. local service = s:GetService(i)
  253. if(i == 'Players')then
  254. local oldService = service;
  255. local fakeService = newproxy(true)
  256. getmetatable(fakeService).__index = function(s,i)
  257. if(s == fakeService)then s=oldService end
  258. if(i == 'LocalPlayer' or i == 'localPlayer')then
  259. return fakePlayer
  260. elseif(i == 'oPlayer')then
  261. return oPlayer
  262. else
  263. return s[i]
  264. end
  265. end
  266. getmetatable(fakeService).__newindex = function(s,i,v)
  267. if(s == fakeService)then s=oldService end
  268. s[i]=v
  269. end
  270. getmetatable(fakeService).__call=function(self,...)
  271. if(self == fakeService)then self = oldService end
  272. local wh = {...}
  273. local name = table.remove(wh,1)
  274. for i,v in next, wh do
  275. wh[i]=v
  276. end
  277. return self(name,unpack(wh))
  278. end
  279. getmetatable(fakeService).__namecall=function(self,...)
  280. if(self == fakeService)then self = oldService end
  281. local tuple={...}
  282. local name = table.remove(tuple,#tuple)
  283.  
  284. return self[name](self,unpack(tuple))
  285. end
  286. getmetatable(fakeService).__metatable = 'gay'
  287. return fakeService
  288. elseif(i == 'RunService')then
  289. local oldService = service;
  290. local fakeService = newproxy(true)
  291. getmetatable(fakeService).__index = function(s,i)
  292. if(s == fakeService)then s=oldService end
  293. return Run[i] or s[i]
  294. end
  295. getmetatable(fakeService).__newindex = function(s,i,v)
  296. if(s == fakeService)then s=oldService end
  297. s[i]=v
  298. end
  299. getmetatable(fakeService).__call=function(self,...)
  300. if(self == fakeService)then self = oldService end
  301. local wh = {...}
  302. local name = table.remove(wh,1)
  303. for i,v in next, wh do
  304. wh[i]=v
  305. end
  306. return self(name,unpack(wh))
  307. end
  308. getmetatable(fakeService).__namecall=function(self,...)
  309. if(self == fakeService)then self = oldService end
  310. local tuple={...}
  311. local name = table.remove(tuple,#tuple)
  312.  
  313. return self[name](self,unpack(tuple))
  314. end
  315. getmetatable(fakeService).__metatable = 'gay'
  316. return fakeService
  317. elseif(i == 'UserInputService')then
  318. return UsIS
  319. elseif(i == 'ContextActionService')then
  320. return CoAS;
  321. else
  322. return service
  323. end
  324. end
  325.  
  326. local new = Instance.new;
  327. Instance = {}
  328. Instance.new = function(inst,obje)
  329. local lp = GetService(oldGame,'Players').localPlayer
  330. local instance = new(inst)
  331. if(inst=='ObjectValue')then
  332. local fake = newproxy(true)
  333. getmetatable(fake).__index=function(self,index)
  334. if(self==fake)then self=instance end
  335. return self[index]
  336. end
  337. getmetatable(fake).__newindex=function(self,index,value)
  338. if(self==fake)then self=instance end
  339. if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then
  340. self[index]=oPlayer
  341. else
  342. self[index]=value
  343. end
  344. end
  345. getmetatable(fake).__call=function(self,...)
  346. if(self == fake)then self = instance end
  347. local wh = {...}
  348. local name = table.remove(wh,1)
  349. for i,v in next, wh do
  350. if(v == fake)then v = instance end
  351. wh[i]=v
  352. end
  353. return self(name,unpack(wh))
  354. end
  355. getmetatable(fake). __namecall=function(self,...)
  356. if(self == fake)then self = instance end
  357. local tuple={...}
  358. local name = table.remove(tuple,#tuple)
  359. return self[name](self,unpack(tuple))
  360. end
  361. return fake
  362. else
  363. instance.Parent = obje
  364. return instance;
  365. end
  366.  
  367. end
  368. local serviceFunctions={
  369. service=true,
  370. GetService=true,
  371. }
  372. local fakeGame = newproxy(true)
  373. getmetatable(fakeGame).__index = function(s,i)
  374. if(s == fakeGame)then s=oldGame end
  375. local serv = GetService(oldGame,i)
  376. if serviceFunctions[i] then
  377. return GetService
  378. elseif(serv)then
  379. return serv
  380. else
  381. return s[i]
  382. end
  383. end
  384. getmetatable(fakeGame).__newindex = function(s,i,v)
  385. if(s == fakeGame)then s=oldGame end
  386. s[i]=v
  387. end
  388. getmetatable(fakeGame).__call=function(self,...)
  389. if(self == fakeGame)then self = oldGame end
  390. local wh = {...}
  391. local name = table.remove(wh,1)
  392. for i,v in next, wh do
  393. if(v == fakeGame)then v = oldGame end
  394. wh[i]=v
  395. end
  396. if serviceFunctions[name] then
  397. return GetService(self,unpack(wh))
  398. else
  399. return self(name,unpack(wh))
  400. end
  401. end
  402. getmetatable(fakeGame). __namecall=function(self,...)
  403. if(self == fakeGame)then self = oldGame end
  404. local tuple={...}
  405. local name = table.remove(tuple,#tuple)
  406.  
  407. local funcToCall=self[name]
  408.  
  409. if serviceFunctions[name] then
  410. return GetService(self,unpack(tuple))
  411. else
  412. return self[name](self,unpack(tuple))
  413. end
  414. end
  415. getmetatable(fakeGame).__metatable = 'gay'
  416.  
  417. coroutine.wrap(function()
  418. while true do
  419. Run:TrigEvent('RenderStepped')
  420. swait()
  421. end
  422. end)()
  423. game=fakeGame
  424. UserInputService,ContextActionService = UsIS,CoAS
  425. end
  426.  
  427.  
  428.  
  429.  
  430. --[[local egui = script:WaitForChild'ETHGUI':Clone();
  431. egui.Parent=game:GetService("Players").LocalPlayer:FindFirstChildOfClass'PlayerGui'
  432.  
  433. local main = egui:WaitForChild'Main'
  434. local info = main:WaitForChild'InfoBG':WaitForChild'Info':WaitForChild'Text'
  435. local use = main:WaitForChild'Play':WaitForChild'Button'
  436. info.Text=[[
  437. Credit to Lunnekoo for StarGlitcher.
  438.  
  439. CASSIDY, THE ETHEREAL GLITCHER.
  440. PROTECTOR OF SOULS.
  441.  
  442. DEVELOPERS:
  443. mikel (SpectrumEeveez) -- LEAD DEV / OWNER
  444. wanTH092 (Filano) -- LEAD DEV / CO-OWNER
  445. KrYn0MoRe(AlmightyToast) -- CORE DEV (rip toasty he'll be missed)
  446. DerpzDeNugget_YT -- Associated Dev
  447. KillerzTH -- Associated Dev
  448. Nebula_Zorua(aka mikel11114) -- SEMI-MAIN DEV
  449. Salvo_Starly(aka Blazey) -- GUI/SEMI-MAIN DEV
  450. UnfairGaming1(Very) -- Associated Dev
  451. RoStrap Devs -- Ripple effect
  452.  
  453. CHANGELOGS:
  454. KEEP THE CHANGELOGS OF PAST 3 UPDATES.
  455. + : ADDED FEATURE
  456. - : REMOVED FEATURE
  457. * : CHANGE
  458. # : FIXES
  459. / : NOTES
  460. --------------------------
  461. mikel11114:
  462. * New Antecedent wings
  463.  
  464. / Check if your camshake is too shakey now or not.
  465. --------------------------
  466. SALVO_STARLY:
  467. + Added new boss chatfunc. Press H to show.
  468. * Make delaying time longer on showdamage.
  469. # Fixed RecolorThing(pcall)
  470. --------------------------
  471. mikel11114:
  472. * Updated EQUILIBRIUM's idle a bit
  473. * Updated the camshake.
  474. * Updated wings. Same base, just slightly different.
  475. - Removed COMMOTIAUS's X.
  476. * Removed un-needed code and coroutines
  477. * Nerfed Cursed Slash
  478.  
  479. / Check if your camshake is too shakey now or not.
  480.  
  481.  
  482.  
  483. local clickedButton=false;
  484. local hovering=false
  485.  
  486. if(game:service'RunService':IsClient())then
  487. local libraries={}
  488.  
  489. for _,v in next, script:WaitForChild'Libraries':children() do
  490. shared[v.Name:lower()]=v;
  491. end
  492.  
  493. local pseudo=require(shared.pseudoinstance)
  494. local rippl=pseudo.new'Rippler'
  495. rippl.RippleTransparency = 0.3
  496. rippl.Parent = use
  497. main:TweenPosition(UDim2.new(.165,0,.288,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,2)
  498.  
  499. use.InputBegan:connect(function(io)
  500. if(io.UserInputType==Enum.UserInputType.MouseButton1)then
  501. rippl:Down(io.Position.X,io.Position.Y)
  502. elseif(io.UserInputType==Enum.UserInputType.MouseMovement)then
  503. hovering=true
  504. use.Size=UDim2.new(1,0,1,0)
  505. use.Position=UDim2.new(0,0,0,0)
  506. use.BackgroundColor3 = Color3.fromRGB(0,200,0)
  507. end
  508. end)
  509.  
  510. use.InputEnded:connect(function(io)
  511. rippl:Up()
  512. if(io.UserInputType==Enum.UserInputType.MouseButton1 and hovering)then clickedButton=true end
  513. if(io.UserInputType==Enum.UserInputType.MouseMovement)then
  514. hovering=false
  515. use.Size=UDim2.new(.973,0,1,0)
  516. use.Position=UDim2.new(0.027,0,0,0)
  517. use.BackgroundColor3 = Color3.fromRGB(0,255,0)
  518. end
  519. end)
  520.  
  521. repeat
  522. wait()
  523. pcall(function() main.Title.Rotation=math.rad(45*math.sin(time()*2)) end)
  524. local hue = (time()%360)*30
  525. if(hue/360 >= 1)then
  526. hue = hue - math.floor(hue/360)*360
  527. end
  528. pcall(function() main.Title.TextColor3 = Color3.fromHSV(hue/360,1,1) end)
  529. until clickedButton
  530. main:TweenPosition(UDim2.new(1,0,.288,0),Enum.EasingDirection.In,Enum.EasingStyle.Back,1,true,function()
  531. egui:destroy()
  532. end)
  533. else
  534. local rem = Instance.new("RemoteEvent")
  535. rem.Name = "Clickie"
  536. rem.OnServerEvent:connect(function(plr)
  537. if(plr.Name==game:service'Players'.localPlayer.Name)then
  538. print'fired'
  539. clickedButton=true
  540. rem:destroy()
  541. game:service'Debris':AddItem(egui,3)
  542. end
  543. end)
  544. script:WaitForChild'Libraries'.Parent = egui
  545. rem.Parent=egui
  546. egui:WaitForChild'EthGUICode'.Disabled=false
  547. repeat wait() print(clickedButton) until clickedButton
  548. end]]
  549.  
  550.  
  551.  
  552. NewInstance = function(instance,parent,properties)
  553. local inst = Instance.new(instance)
  554. inst.Parent = parent
  555. if(properties)then
  556. for i,v in next, properties do
  557. pcall(function() inst[i] = v end)
  558. end
  559. end
  560. return inst;
  561. end
  562. -- Script --
  563.  
  564. plr = game:GetService("Players").LocalPlayer
  565. Player = plr
  566. char = plr.Character
  567. hum = char.Humanoid
  568. mouse = plr:GetMouse()
  569. local cam = game.Workspace.CurrentCamera
  570. Camera = cam
  571. local CamInterrupt = false
  572. local TwoD = false
  573. local TargetInfo = {nil, nil}
  574. cam.CameraType = "Custom"
  575. t = char.Torso
  576. h = char.Head
  577. ra = char["Right Arm"]
  578. la = char["Left Arm"]
  579. rl = char["Right Leg"]
  580. ll = char["Left Leg"]
  581. tors = char.Torso
  582. lleg = char["Left Leg"]
  583. root = char.HumanoidRootPart
  584. hed = char.Head
  585. rleg = char["Right Leg"]
  586. rarm = char["Right Arm"]
  587. larm = char["Left Arm"]
  588. radian = math.rad
  589. random = math.random
  590. Vec3 = Vector3.new
  591. Inst = Instance.new
  592. cFrame = CFrame.new
  593. Euler = CFrame.fromEulerAnglesXYZ
  594. vt = Vector3.new
  595. bc = BrickColor.new
  596. br = BrickColor.random
  597. it = Instance.new
  598. cf = CFrame.new
  599. local Player_Size = 0
  600. cam = game.Workspace.CurrentCamera
  601. CF = CFrame.new
  602. angles = CFrame.Angles
  603. attack = false
  604. Euler = CFrame.fromEulerAnglesXYZ
  605. Rad = math.rad
  606. IT = Instance.new
  607. BrickC = BrickColor.new
  608. Cos = math.cos
  609. Acos = math.acos
  610. Sin = math.sin
  611. Asin = math.asin
  612. Abs = math.abs
  613. Mrandom = math.random
  614. Floor = math.floor
  615. IT = Instance.new
  616. CF = CFrame.new
  617. VT = Vector3.new
  618. RAD = math.rad
  619. C3 = Color3.new
  620. UD2 = UDim2.new
  621. BRICKC = BrickColor.new
  622. ANGLES = CFrame.Angles
  623. EULER = CFrame.fromEulerAnglesXYZ
  624. COS = math.cos
  625. ACOS = math.acos
  626. SIN = math.sin
  627. ASIN = math.asin
  628. ABS = math.abs
  629. MRANDOM = math.random
  630. FLOOR = math.floor
  631. local SINE = 0
  632. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  633. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  634. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  635. local ModeOfGlitch = 1
  636. CF = CFrame.new
  637. local hed = char.Head
  638. local root = char.HumanoidRootPart
  639. local rootj = root.RootJoint
  640. local tors = char.Torso
  641. Player_Size = 1
  642. Cos = math.cos
  643. Sin = math.sin
  644. Rad = math.rad
  645. CF = CFrame.new
  646. local DoDamage = true
  647. local FlyingTypes = false
  648. local visWings={0,0,0,0,0,0}
  649.  
  650. local Booleans = {
  651. CamFollow = true,
  652. GyroUse = true
  653. }
  654.  
  655. function lerp(object, newCFrame, alpha)
  656. return object:lerp(newCFrame, alpha)
  657. end
  658.  
  659. local Directer = Inst("BodyGyro", root)
  660. Directer.MaxTorque = Vec3(0, 0, 0)
  661. Directer.P = 600000
  662. local CPart = Inst("Part")
  663. CPart.Anchored = true
  664. CPart.CanCollide = false
  665. CPart.Locked = true
  666. CPart.Transparency = 1
  667.  
  668.  
  669.  
  670. local CRAZED = false
  671. local rainbowmode = false
  672. local chaosmode = false
  673. local Error = false
  674. local unstablemode = false
  675. local MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  676. local SECONDRUINCOLOR = BrickColor.new("Pastel blue-green")
  677.  
  678. local cp="2071274388"
  679. local kan = Instance.new("Sound",Torso)
  680. kan.Volume = 1.25
  681. kan.TimePosition = 0
  682. kan.PlaybackSpeed = 1
  683. kan.Pitch = 1
  684. kan.SoundId = "rbxassetid://2071274388"
  685. kan.Name = "wrecked"
  686. kan.Looped = true
  687. kan:Play()
  688.  
  689. local currentThemePlaying = kan.SoundId
  690. local currentPitch = kan.Pitch
  691. local currentVol = kan.Volume
  692. function newTheme(ID,timepos,pitch,vol)
  693. local kanz = kan
  694. --kanz:Stop()
  695. kanz.Volume = vol
  696. --kanz.TimePosition = timepos
  697. kanz.PlaybackSpeed = pitch
  698. kanz.Pitch = pitch
  699. kanz.SoundId = ID
  700. kanz.Name = "wrecked"
  701. kanz.Looped = true
  702. currentThemePlaying = kanz.SoundId
  703. currentVol = kanz.Volume
  704. currentPitch = kanz.Pitch
  705. end
  706.  
  707.  
  708. function newThemeCust(ID,timepos,pitch,vol)
  709. local kanz = kan
  710. kanz:Stop()
  711. kanz.Volume = vol
  712. kanz.TimePosition = timepos
  713. kanz.PlaybackSpeed = pitch
  714. kanz.Pitch = pitch
  715. kanz.SoundId = ID
  716. kanz.Name = "wrecked"
  717. kanz.Looped = true
  718. currentThemePlaying = kanz.SoundId
  719. currentVol = kanz.Volume
  720. currentPitch = kanz.Pitch
  721. kanz:Play()
  722. end
  723.  
  724. local mutedtog = false
  725.  
  726. ArtificialHB = Instance.new("BindableEvent", script)
  727. ArtificialHB.Name = "ArtificialHB"
  728.  
  729. script:WaitForChild("ArtificialHB")
  730. Frame_Speed = 1 / 60
  731. frame = Frame_Speed
  732. tf = 0
  733. allowframeloss = false
  734. tossremainder = false
  735. lastframe = tick()
  736. script.ArtificialHB:Fire()
  737.  
  738. game:GetService("RunService").Heartbeat:connect(function(s, p)
  739. tf = tf + s
  740. if tf >= frame then
  741. if allowframeloss then
  742. script.ArtificialHB:Fire()
  743. lastframe = tick()
  744. else
  745. for i = 1, math.floor(tf / frame) do
  746. script.ArtificialHB:Fire()
  747. end
  748. lastframe = tick()
  749. end
  750. if tossremainder then
  751. tf = 0
  752. else
  753. tf = tf - frame * math.floor(tf / frame)
  754. end
  755. end
  756. end)
  757.  
  758. ------------------
  759. function swait(num)
  760. if num == 0 or num == nil then
  761. ArtificialHB.Event:wait()
  762. else
  763. for i = 1, num do
  764. ArtificialHB.Event:wait()
  765. end
  766. end
  767. end
  768.  
  769. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  770.  
  771. --// Require stuff \\--
  772. FXFolder=script.Effects
  773. function CamShake(who,data)
  774. coroutine.wrap(function()
  775. if(FXFolder:FindFirstChild'CamShake')then
  776. local cam = FXFolder.CamShake:Clone()
  777. cam:WaitForChild'intensity'.Value = data.Intensity or 5
  778. cam:WaitForChild'duration'.Value = data.Duration or 5
  779. cam:WaitForChild'speed'.Value = data.Speed or 10;
  780. if(data.Origin)then NewInstance((typeof(data.Origin) == 'Instance' and "ObjectValue" or typeof(data.Origin) == 'Vector3' and 'Vector3Value' or typeof(data.Origin)=='CFrame' and 'CFrameValue'),cam,{Name='origin',Value=data.Origin}) end
  781. cam:WaitForChild'rot'.Value = data.Rotation or Vector3.new(1,1,5)
  782. cam:WaitForChild'pos'.Value = data.Position or Vector3.new(.5,.5,.5)
  783. cam:WaitForChild'startdist'.Value = data.DropDist or 25;
  784. cam:WaitForChild'enddist'.Value = data.IneffectiveDist or 150;
  785.  
  786. cam.Parent = who
  787. wait()
  788. cam.Disabled = false
  789. end
  790. end)()
  791. end
  792.  
  793. function CamShakeAll(data)
  794. for _,v in next, game:service'Players':players() do
  795. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,data)
  796. end
  797. end
  798.  
  799.  
  800. local toggleTag = true
  801. local bilguit = Instance.new("BillboardGui", hed)
  802. bilguit.Adornee = nil
  803. bilguit.Name = "ModeName"
  804. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  805. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  806. local modet = Instance.new("TextLabel", bilguit)
  807. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  808. modet.FontSize = "Size8"
  809. modet.TextScaled = true
  810. modet.TextTransparency = 0
  811. modet.BackgroundTransparency = 1
  812. modet.TextTransparency = 0
  813. modet.TextStrokeTransparency = 0
  814. modet.Font = "Antique"
  815. modet.TextStrokeColor3 = Color3.new(1,0,0)
  816. modet.TextColor3 = Color3.new(0.25,0,0)
  817. modet.Text = "COMMOTIAUS"
  818.  
  819.  
  820. function chatfunc(text,color,typet,font,timeex)
  821. local chat = coroutine.wrap(function()
  822. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  823. Character:FindFirstChild("TalkingBillBoard"):destroy()
  824. end
  825. local naeeym2 = Instance.new("BillboardGui",Character)
  826. naeeym2.Size = UDim2.new(0,100,0,40)
  827. naeeym2.StudsOffset = Vector3.new(0,3,0)
  828. naeeym2.Adornee = Character.Head
  829. naeeym2.Name = "TalkingBillBoard"
  830. local tecks2 = Instance.new("TextLabel",naeeym2)
  831. tecks2.BackgroundTransparency = 1
  832. tecks2.BorderSizePixel = 0
  833. tecks2.Text = ""
  834. tecks2.Font = font
  835. tecks2.TextSize = 30
  836. tecks2.TextStrokeTransparency = 0
  837. tecks2.TextColor3 = color
  838. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  839. tecks2.Size = UDim2.new(1,0,0.5,0)
  840. local tecks3 = Instance.new("TextLabel",naeeym2)
  841. tecks3.BackgroundTransparency = 1
  842. tecks3.BorderSizePixel = 0
  843. tecks3.Text = ""
  844. tecks3.Font = font
  845. tecks3.TextSize = 30
  846. tecks3.TextStrokeTransparency = 0
  847. if typet == "Inverted" then
  848. tecks3.TextColor3 = Color3.new(0,0,0)
  849. tecks3.TextStrokeColor3 = color
  850. elseif typet == "Normal" then
  851. tecks3.TextColor3 = color
  852. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  853. end
  854. tecks3.Size = UDim2.new(1,0,0.5,0)
  855. modet.TextTransparency = modet.TextTransparency + 1
  856. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  857. for i = 0, 74*timeex do
  858. swait()
  859. modet.TextTransparency = 1
  860. modet.TextStrokeTransparency = 1
  861. tecks2.Text = text
  862. tecks3.Text = text
  863. end
  864. local randomrot = math.random(1,2)
  865. if randomrot == 1 then
  866. for i = 1, 50 do
  867. swait()
  868. tecks2.Text = text
  869. tecks3.Text = text
  870. modet.TextTransparency = modet.TextTransparency - .02
  871. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  872. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  873. tecks2.TextTransparency = tecks2.TextTransparency + .04
  874. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  875. tecks3.TextTransparency = tecks2.TextTransparency + .04
  876. end
  877. elseif randomrot == 2 then
  878. for i = 1, 50 do
  879. swait()
  880. tecks2.Text = text
  881. tecks3.Text = text
  882. modet.TextTransparency = modet.TextTransparency - .02
  883. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  884. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  885. tecks2.TextTransparency = tecks2.TextTransparency + .04
  886. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  887. tecks3.TextTransparency = tecks2.TextTransparency + .04
  888. end
  889. end
  890. modet.TextTransparency = 0
  891. modet.TextStrokeTransparency = 0
  892. if toggleTag == false then
  893. modet.TextTransparency = 1
  894. modet.TextStrokeTransparency = 1
  895. end
  896. naeeym2:Destroy()
  897. end)
  898. chat()
  899. end
  900.  
  901. local rai = {"USER","User","USer","USEr","uSER","usER","useR","uSer","usEr","useR","PlAyEr","666"}
  902.  
  903. function bosschatfunc(text,color,watval)
  904. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  905. coroutine.resume(coroutine.create(function()
  906. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  907. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  908. end
  909. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  910. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  911. scrg.Name = "Dialog"
  912. local txtlb = Instance.new("TextLabel",scrg)
  913. txtlb.Text = ""
  914. txtlb.Font = "Arcade"
  915. txtlb.TextColor3 = Color3.new(0,0,0)
  916. txtlb.TextStrokeTransparency = 0
  917. txtlb.BackgroundTransparency = 0.75
  918. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  919. txtlb.TextStrokeColor3 = color
  920. txtlb.TextScaled = true
  921. txtlb.Size = UDim2.new(1,0,0.25,0)
  922. txtlb.TextXAlignment = "Left"
  923. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  924. local txtlb2 = Instance.new("TextLabel",scrg)
  925. txtlb2.Text = modet.Text.." USER:"
  926. txtlb2.Font = "Arcade"
  927. txtlb2.TextColor3 = Color3.new(0,0,0)
  928. txtlb2.TextStrokeTransparency = 0
  929. txtlb2.BackgroundTransparency = 1
  930. txtlb2.TextStrokeColor3 = color
  931. txtlb2.TextSize = 40
  932. txtlb2.Size = UDim2.new(1,0,0.25,0)
  933. txtlb2.TextXAlignment = "Left"
  934. txtlb2.Position = UDim2.new(0,0,1,0)
  935. local fvalen = 0.55
  936. local fval = -0.49
  937. local flol = 1.75
  938. local flil = 1.6
  939. for i = 0, 9 do
  940. swait()
  941. fval = fval + 0.05
  942. flol = flol - 0.1
  943. flil = flil - 0.1
  944. txtlb.Text = ""
  945. txtlb.Position = UDim2.new(0,0,flol,0)
  946. txtlb2.Position = UDim2.new(0,0,flil,0)
  947. end
  948. txtlb.Text = text
  949. wait(watval)
  950. local valinc = 0
  951. for i = 0, 99 do
  952. swait()
  953. valinc = valinc + 0.0001
  954. flol = flol + valinc
  955. flil = flil + valinc
  956. txtlb.Rotation = txtlb.Rotation + valinc*20
  957. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  958. txtlb.Position = UDim2.new(0,0,flol,0)
  959. txtlb2.Position = UDim2.new(0,0,flil,0)
  960. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  961. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  962. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  963. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  964. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  965. end
  966. scrg:Destroy()
  967. end))
  968. end
  969. end
  970.  
  971. --[[
  972. function CamShake(who,data)
  973. coroutine.wrap(function()
  974. if(FXFolder:FindFirstChild'CamShake')then
  975. local cam = FXFolder.CamShake:Clone()
  976. cam:WaitForChild'intensity'.Value = data.Intensity or 5
  977. cam:WaitForChild'duration'.Value = data.Duration or 5
  978. cam:WaitForChild'speed'.Value = data.Speed or 10;
  979. if(data.Origin)then NewInstance((typeof(data.Origin) == 'Instance' and "ObjectValue" or typeof(data.Origin) == 'Vector3' and 'Vector3Value' or typeof(data.Origin)=='CFrame' and 'CFrameValue'),cam,{Name='origin',Value=data.Origin}) end
  980. cam:WaitForChild'rot'.Value = data.Rotation or Vector3.new(1,1,5)
  981. cam:WaitForChild'pos'.Value = data.Position or Vector3.new(.5,.5,.5)
  982. cam:WaitForChild'startdist'.Value = data.DropDist or 25;
  983. cam:WaitForChild'enddist'.Value = data.IneffectiveDist or 150;
  984.  
  985. cam.Parent = who
  986. wait()
  987. cam.Disabled = false
  988. end
  989. end)()
  990. end
  991.  
  992. function CamShakeAll(data)
  993. for _,v in next, game:service'Players':players() do
  994. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,data)
  995. end
  996. end
  997. --]]
  998. function newbosschatfunc(text,color1,color2,delay)
  999. for _,v in next, game:service'Players':players() do
  1000. coroutine.wrap(function()
  1001. if(FXFolder:FindFirstChild'BossChat' and v.Character)then
  1002. local cha = FXFolder.BossChat:Clone()
  1003. cha.Color1.Value=color1
  1004. cha.Color2.Value=color2
  1005. cha.Text.Value=text
  1006. cha.Ghghghghgh.Value=delay
  1007. cha.Mode.Value=ModeOfGlitch
  1008. cha.ModeName.Value=modet.Text
  1009. cha.Music.Value=kan
  1010. cha.Parent=v.Character
  1011. wait()
  1012. cha.Disabled = false
  1013. game:service'Debris':AddItem(cha,(delay/60)*4)
  1014. end
  1015. end)()
  1016. end
  1017. end
  1018. local Create = LoadLibrary("RbxUtility").Create
  1019.  
  1020. CFuncs = {
  1021. ["Part"] = {
  1022. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1023. local Part = Create("Part"){
  1024. Parent = Parent,
  1025. Reflectance = Reflectance,
  1026. Transparency = Transparency,
  1027. CanCollide = false,
  1028. Locked = true,
  1029. BrickColor = BrickColor.new(tostring(BColor)),
  1030. Name = Name,
  1031. Size = Size,
  1032. Material = Material,
  1033. }
  1034. RemoveOutlines(Part)
  1035. return Part
  1036. end;
  1037. };
  1038.  
  1039. ["Mesh"] = {
  1040. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1041. local Msh = Create(Mesh){
  1042. Parent = Part,
  1043. Offset = OffSet,
  1044. Scale = Scale,
  1045. }
  1046. if Mesh == "SpecialMesh" then
  1047. Msh.MeshType = MeshType
  1048. Msh.MeshId = MeshId
  1049. end
  1050. return Msh
  1051. end;
  1052. };
  1053.  
  1054. ["Mesh"] = {
  1055. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1056. local Msh = Create(Mesh){
  1057. Parent = Part,
  1058. Offset = OffSet,
  1059. Scale = Scale,
  1060. }
  1061. if Mesh == "SpecialMesh" then
  1062. Msh.MeshType = MeshType
  1063. Msh.MeshId = MeshId
  1064. end
  1065. return Msh
  1066. end;
  1067. };
  1068.  
  1069. ["Weld"] = {
  1070. Create = function(Parent, Part0, Part1, C0, C1)
  1071. local Weld = Create("Weld"){
  1072. Parent = Parent,
  1073. Part0 = Part0,
  1074. Part1 = Part1,
  1075. C0 = C0,
  1076. C1 = C1,
  1077. }
  1078. return Weld
  1079. end;
  1080. };
  1081.  
  1082. ["Sound"] = {
  1083. Create = function(id, par, vol, pit)
  1084. local S = Create("Sound"){
  1085. Volume = vol,
  1086. Name = "EffectSoundo",
  1087. Pitch = pit or 1,
  1088. SoundId = id,
  1089. Parent = par or workspace,
  1090. }
  1091. S:play()
  1092. game:GetService("Debris"):AddItem(S, 10)
  1093. end;
  1094. };
  1095.  
  1096. ["TimeSound"] = {
  1097. Create = function(id, par, vol, pit, timepos)
  1098. local S = Create("Sound"){
  1099. Volume = vol,
  1100. Name = "EffectSoundo",
  1101. Pitch = pit or 1,
  1102. SoundId = id,
  1103. TimePosition = timepos,
  1104. Parent = par or workspace,
  1105. }
  1106. wait()
  1107. S:play()
  1108. game:GetService("Debris"):AddItem(S, 10)
  1109. end;
  1110. };
  1111. ["EchoSound"] = {
  1112. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  1113. local Sas = Create("Sound"){
  1114. Volume = vol,
  1115. Name = "EffectSoundo",
  1116. Pitch = pit or 1,
  1117. SoundId = id,
  1118. TimePosition = timepos,
  1119. Parent = par or workspace,
  1120. }
  1121. local E = Create("EchoSoundEffect"){
  1122. Delay = echodelay,
  1123. Name = "Echo",
  1124. Feedback = fedb,
  1125. DryLevel = dryl,
  1126. Parent = Sas,
  1127. }
  1128. wait()
  1129. Sas:play()
  1130. game:GetService("Debris"):AddItem(Sas, delays)
  1131. end;
  1132. };
  1133.  
  1134. ["LongSound"] = {
  1135. Create = function(id, par, vol, pit)
  1136. local S = Create("Sound"){
  1137. Volume = vol,
  1138. Pitch = pit or 1,
  1139. SoundId = id,
  1140. Parent = par or workspace,
  1141. }
  1142. wait()
  1143. S:play()
  1144. game:GetService("Debris"):AddItem(S, 60)
  1145. end;
  1146. };
  1147.  
  1148. ["ParticleEmitter"] = {
  1149. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1150. local fp = Create("ParticleEmitter"){
  1151. Parent = Parent,
  1152. Color = ColorSequence.new(Color1, Color2),
  1153. LightEmission = LightEmission,
  1154. Size = Size,
  1155. Texture = Texture,
  1156. Transparency = Transparency,
  1157. ZOffset = ZOffset,
  1158. Acceleration = Accel,
  1159. Drag = Drag,
  1160. LockedToPart = LockedToPart,
  1161. VelocityInheritance = VelocityInheritance,
  1162. EmissionDirection = EmissionDirection,
  1163. Enabled = Enabled,
  1164. Lifetime = LifeTime,
  1165. Rate = Rate,
  1166. Rotation = Rotation,
  1167. RotSpeed = RotSpeed,
  1168. Speed = Speed,
  1169. VelocitySpread = VelocitySpread,
  1170. }
  1171. return fp
  1172. end;
  1173. };
  1174.  
  1175. CreateTemplate = {
  1176.  
  1177. };
  1178. }
  1179.  
  1180.  
  1181.  
  1182. New = function(Object, Parent, Name, Data)
  1183. local Object = Instance.new(Object)
  1184. for Index, Value in pairs(Data or {}) do
  1185. Object[Index] = Value
  1186. end
  1187. Object.Parent = Parent
  1188. Object.Name = Name
  1189. return Object
  1190. end
  1191. local halocolor = BrickColor.new("Pastel light blue")
  1192. local halocolor2 = BrickColor.new("Cool yellow")
  1193. local starcolor = BrickColor.new("Bright yellow")
  1194. local lunacolor = BrickColor.new("Navy blue")
  1195. local lunacolor2 = BrickColor.new("Bright blue")
  1196. local wepcolor = BrickColor.new("Really black")
  1197. local maincolor = BrickColor.new("Really black")
  1198. local m = Instance.new("Model",char)
  1199. local m2 = Instance.new("Model",char)
  1200. local m3 = Instance.new("Model",char)
  1201. local mw1 = Instance.new("Model",char)
  1202. local mw2 = Instance.new("Model",char)
  1203. local mwN = Instance.new("Model",char)
  1204. local mwY = Instance.new("Model",char)
  1205.  
  1206. local est = {"error","Errors","eRror","erRor","errOr","erroR","ERror","ErRor","ErrOr","ErroR","eRRor","eRrOr","eRroR","erROr","erRoR","errOR","ERROR"}
  1207.  
  1208.  
  1209.  
  1210. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  1211. local gui = it(GuiType)
  1212. gui.Parent = parent
  1213. gui.Text = text
  1214. gui.BackgroundTransparency = backtrans
  1215. gui.BackgroundColor3 = backcol
  1216. gui.SizeConstraint = "RelativeXY"
  1217. gui.TextXAlignment = "Center"
  1218. gui.TextYAlignment = "Center"
  1219. gui.Position = pos
  1220. gui.Size = size
  1221. gui.Font = "SourceSans"
  1222. gui.FontSize = "Size14"
  1223. gui.TextWrapped = false
  1224. gui.TextStrokeTransparency = 0
  1225. gui.TextColor = BrickColor.new("White")
  1226. return gui
  1227. end
  1228. --------------------------- GUI STUFF
  1229. local basgui = it("GuiMain")
  1230. basgui.Parent = plr.PlayerGui
  1231. basgui.Name = "VISgui"
  1232. local fullscreenz = it("Frame")
  1233. fullscreenz.Parent = basgui
  1234. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  1235. fullscreenz.BackgroundTransparency = .5
  1236. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  1237. fullscreenz.AnchorPoint=Vector2.new(1,.5)
  1238. fullscreenz.Size = UDim2.new(.2, 0, 1.2, 0)
  1239. fullscreenz.Position = UDim2.new(1.01, 0, .5, 0)
  1240. fullscreenz.BorderSizePixel=12
  1241. fullscreenz.ZIndex=2
  1242. local fullscreenz2 = it("Frame")
  1243. fullscreenz2.Parent = fullscreenz
  1244. fullscreenz2.BackgroundTransparency = 1
  1245. fullscreenz2.AnchorPoint=Vector2.new(.5,.5)
  1246. fullscreenz2.Size = UDim2.new(1, 0, 1, 0)
  1247. fullscreenz2.Position = UDim2.new(.5, 0, .5, 0)
  1248. fullscreenz2.ClipsDescendants=true
  1249.  
  1250. local hh1 = it("Frame")
  1251. hh1.Parent = fullscreenz
  1252. hh1.BackgroundColor3 = Color3.new(255, 255, 255)
  1253. hh1.BackgroundTransparency = .5
  1254. hh1.BorderColor3 = Color3.new(17, 17, 17)
  1255. hh1.AnchorPoint=Vector2.new(.5,.5)
  1256. hh1.Size = UDim2.new(.04, 0, 1.2, 0)
  1257. hh1.Position = UDim2.new(-.1, 0, .5, 0)
  1258. hh1.BorderSizePixel=0
  1259. hh1.ZIndex=4
  1260.  
  1261.  
  1262. local hh2 = it("Frame")
  1263. hh2.Parent = fullscreenz
  1264. hh2.BackgroundColor3 = Color3.new(255, 255, 255)
  1265. hh2.BackgroundTransparency = .5
  1266. hh2.BorderColor3 = Color3.new(17, 17, 17)
  1267. hh2.AnchorPoint=Vector2.new(.5,.5)
  1268. hh2.Size = UDim2.new(.025, 0, 1.2, 0)
  1269. hh2.Position = UDim2.new(-.14, 0, .5, 0)
  1270. hh2.BorderSizePixel=0
  1271. hh2.ZIndex=4
  1272.  
  1273.  
  1274. local hh3 = it("Frame")
  1275. hh3.Parent = fullscreenz
  1276. hh3.BackgroundColor3 = Color3.new(255, 255, 255)
  1277. hh3.BackgroundTransparency = .5
  1278. hh3.BorderColor3 = Color3.new(17, 17, 17)
  1279. hh3.AnchorPoint=Vector2.new(.5,.5)
  1280. hh3.Size = UDim2.new(.01, 0, 1.2, 0)
  1281. hh3.Position = UDim2.new(-.16, 0, .5, 0)
  1282. hh3.BorderSizePixel=0
  1283. hh3.ZIndex=4
  1284.  
  1285.  
  1286. local vis1 = it("Frame")
  1287. vis1.Parent = fullscreenz2
  1288. vis1.BackgroundColor3 = Color3.new(255, 255, 255)
  1289. vis1.BackgroundTransparency = .5
  1290. vis1.BorderColor3 = Color3.new(17, 17, 17)
  1291. vis1.AnchorPoint=Vector2.new(.5,1)
  1292. vis1.Size = UDim2.new(.1, 0, 1, 0)
  1293. vis1.Position = UDim2.new(.93, 0, 1, 0)
  1294. vis1.BorderSizePixel=0
  1295. vis1.ZIndex=2
  1296. local vis2=vis1:Clone()
  1297. vis2.Parent = fullscreenz2
  1298. vis2.Size = UDim2.new(.07, 0, 1, 0)
  1299. vis2.Position = UDim2.new(.81, 0, 1, 0)
  1300.  
  1301. local vis3=vis1:Clone()
  1302. vis3.Parent = fullscreenz2
  1303. vis3.Size = UDim2.new(.045, 0, 1, 0)
  1304. vis3.Position = UDim2.new(.74, 0, 1, 0)
  1305.  
  1306. local vis4=vis1:Clone()
  1307. vis4.Parent = fullscreenz2
  1308. vis4.Size = UDim2.new(.03, 0, 1, 0)
  1309. vis4.Position = UDim2.new(.69, 0, 1, 0)
  1310.  
  1311. local vis5=vis1:Clone()
  1312. vis5.Parent = fullscreenz2
  1313. vis5.Size = UDim2.new(.012, 0, 1, 0)
  1314. vis5.Position = UDim2.new(.65, 0, 1, 0)
  1315.  
  1316. --fullscreenz
  1317. local nedf = it("TextLabel",fullscreenz)
  1318. nedf.AnchorPoint=Vector2.new(1,1)
  1319. nedf.Font = "Arcade"
  1320. nedf.BackgroundTransparency = 1
  1321. nedf.BorderSizePixel = 0.65
  1322. nedf.Size = UDim2.new(1,0,.2,0)
  1323. nedf.Position = UDim2.new(.9,0,0.95,0)
  1324. nedf.TextColor3 = Color3.new(0,0,0)
  1325. nedf.TextStrokeColor3 = Color3.new(0,0,0)
  1326. nedf.TextScaled = true
  1327. nedf.TextStrokeTransparency = 0
  1328. nedf.Text = "ETHEREAL GLITCHER"
  1329. nedf.TextSize = 24
  1330. nedf.ZIndex=101
  1331.  
  1332.  
  1333. function ggg()
  1334. local afa = it("ImageLabel",fullscreenz2)
  1335. afa.BackgroundTransparency = 1
  1336. afa.BorderSizePixel = 0
  1337. afa.AnchorPoint=Vector2.new(.5,.5)
  1338. afa.Parent = fullscreenz2
  1339. afa.ImageTransparency = 0
  1340. afa.Size = UDim2.new(0,40,0,40)
  1341. local mfmf=math.random(10,90)/100
  1342. afa.Position = UDim2.new(mfmf,0,1.2,0)
  1343. afa.ImageColor3 = MAINRUINCOLOR.Color
  1344. afa.Image = "rbxassetid://2710333451"
  1345. afa.Rotation=math.random(-360,360)
  1346. afa.ZIndex=3
  1347. coroutine.resume(coroutine.create(function(g)
  1348. local kokha=math.random(30,200)/30
  1349. local hh1=math.random(-100,100)/50
  1350. local hh2=math.random(100,400)/22
  1351. for i=0,1.1,kokha/100 do
  1352. swait()
  1353. g.Position = g.Position+UDim2.new(0,hh1,0,-hh2)
  1354. g.ImageTransparency=i
  1355. g.Rotation=g.Rotation+3
  1356. end
  1357. g:Remove()
  1358. end),afa)
  1359. end
  1360.  
  1361. local hhahaha=false
  1362. function nice(teext,h1,h2)
  1363. local ned = it("TextLabel",fullscreenz)
  1364. ned.AnchorPoint=Vector2.new(1,1)
  1365. ned.Font = "Arcade"
  1366. ned.BackgroundTransparency = 1
  1367. ned.BorderSizePixel = 0.65
  1368. ned.Size = UDim2.new(2.2,0,.2,0)
  1369. ned.Position = UDim2.new(1.4,0,0.85,0)
  1370. ned.TextColor3 = h1
  1371. ned.TextStrokeColor3 = h2
  1372. ned.TextScaled = true
  1373. ned.TextStrokeTransparency = 0
  1374. ned.Text = teext
  1375. ned.TextSize = 24
  1376. ned.Rotation = 90
  1377. ned.TextXAlignment = "Right"
  1378. ned.TextYAlignment = "Bottom"
  1379. ned.ZIndex=100
  1380. hhahaha=false
  1381. coroutine.resume(coroutine.create(function()
  1382. swait(3)
  1383. hhahaha=true
  1384. ned:TweenPosition(UDim2.new(1.4-.02* math.sin(SINE/41),0,0.55+.03* math.cos(SINE/42),0), "Out", "Quad", 1,true)
  1385. for i=1.1,0,-.02 do
  1386. swait()
  1387. ned.TextTransparency=i
  1388. ned.TextStrokeTransparency = i
  1389. ned:TweenPosition(UDim2.new(1.4-.02* math.sin(SINE/41),0,0.55+.03* math.cos(SINE/42),0), "Out", "Quad", 1,true)
  1390. if hhahaha==false then
  1391. break
  1392. end
  1393. end
  1394.  
  1395. local hai=0
  1396. local hai2=1
  1397. repeat
  1398. swait()
  1399. ned:TweenPosition(UDim2.new(1.4-.02* math.sin(SINE/41),0,0.55+.03* math.cos(SINE/42),0), "Out", "Quad", 1,true)
  1400. if ModeOfGlitch == 5 then
  1401. ned.TextColor3=Color3.new(math.random(0,255)/255,0,0)
  1402. end
  1403. until hhahaha==false
  1404. ned:TweenPosition(UDim2.new(1.4,0,0.1,0), "In", "Quart", 1,true)
  1405. for i=0,1.1,.02 do
  1406. swait()
  1407. ned.ZIndex=100-100*i
  1408. ned.TextTransparency=i
  1409. ned.TextStrokeTransparency = i
  1410. end
  1411. ned:Remove()
  1412. end))
  1413. end
  1414.  
  1415. local hhahaha2=true
  1416. function nice2(h1,h2)
  1417. local ned = it("TextLabel",fullscreenz)
  1418. ned.AnchorPoint=Vector2.new(1,1)
  1419. ned.Font = "Arcade"
  1420. ned.BackgroundTransparency = 1
  1421. ned.BorderSizePixel = 0.65
  1422. ned.Size = UDim2.new(2.2,0,.1,0)
  1423. ned.Position = UDim2.new(1.9,0,0.88,0)
  1424. ned.TextColor3 = h1
  1425. ned.TextStrokeColor3 = h2
  1426. ned.TextScaled = true
  1427. ned.TextStrokeTransparency = 0
  1428. --ned.Text = teext
  1429. ned.TextSize = 24
  1430. ned.Rotation = 90
  1431. ned.TextXAlignment = "Right"
  1432. ned.TextYAlignment = "Bottom"
  1433. ned.ZIndex=100
  1434. hhahaha2=false
  1435. coroutine.resume(coroutine.create(function()
  1436. swait(3)
  1437. hhahaha2=true
  1438. ned:TweenPosition(UDim2.new(1.9-.02* math.cos(SINE/41),0,0.48+.03* math.sin(SINE/42),0), "Out", "Quad", 1,true)
  1439. for i=1.1,0,-.02 do
  1440. swait()
  1441. ned.TextTransparency=i
  1442. ned.TextStrokeTransparency = i
  1443. ned:TweenPosition(UDim2.new(1.9-.02* math.cos(SINE/41),0,0.48+.03* math.sin(SINE/42),0), "Out", "Quad", 1,true)
  1444. local mps=game:GetService("MarketplaceService"):GetProductInfo(cp, Enum.InfoType.Asset)
  1445. ned.Text=(mps.Name)
  1446. if hhahaha2==false then
  1447. break
  1448. end
  1449. end
  1450.  
  1451. local lastnam=ned.Text
  1452. local hai=0
  1453. local hai2=1
  1454. local lastMode = ModeOfGlitch
  1455. repeat
  1456. ned:TweenPosition(UDim2.new(1.9-.02* math.cos(SINE/41),0,0.48+.03* math.sin(SINE/42),0), "Out", "Quad", 1,true)
  1457. pcall(function() local mps=game:GetService("MarketplaceService"):GetProductInfo(cp, Enum.InfoType.Asset)
  1458. ned.Text=(mps.Name) end)
  1459. if ModeOfGlitch == 5 then
  1460. ned.TextColor3=Color3.new(math.random(0,255)/255,0,0)
  1461. end
  1462.  
  1463. swait()
  1464. lastnam=ned.Text
  1465. until hhahaha2==false
  1466. ned:TweenPosition(UDim2.new(1.9,0,0.08,0), "In", "Quart", 1,true)
  1467. for i=0,1.1,.02 do
  1468. swait()
  1469. ned.Text=lastnam
  1470. ned.ZIndex=100-100*i
  1471. ned.TextTransparency=i
  1472. ned.TextStrokeTransparency = i
  1473. end
  1474. ned:Remove()
  1475. end))
  1476. end
  1477.  
  1478. local extrawingmod1 = Instance.new("Model",char)
  1479. local extrawingmod2 = Instance.new("Model",char)
  1480.  
  1481. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  1482. local p = Instance.new("Part")
  1483. p.TopSurface = 0
  1484. p.BottomSurface = 0
  1485. p.Parent = parent
  1486. p.Size = Vector3.new(0.1,0.1,0.1)
  1487. p.Transparency = transparency
  1488. p.Reflectance = reflectance
  1489. p.CanCollide = false
  1490. p.Locked = true
  1491. p.BrickColor = brickcolor
  1492. p.Material = material
  1493. return p
  1494. end
  1495.  
  1496. function CreateMesh(parent,meshtype,x1,y1,z1)
  1497. local mesh = Instance.new("SpecialMesh",parent)
  1498. mesh.MeshType = meshtype
  1499. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1500. return mesh
  1501. end
  1502.  
  1503. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  1504. local mesh = Instance.new("SpecialMesh",parent)
  1505. mesh.MeshType = "FileMesh"
  1506. mesh.MeshId = meshid
  1507. mesh.Scale = Vector3.new(x1,y1,z1)
  1508. return mesh
  1509. end
  1510.  
  1511.  
  1512. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1513. local mesh = Instance.new("SpecialMesh",parent)
  1514. mesh.MeshType = "FileMesh"
  1515. mesh.MeshId = meshid
  1516. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1517. mesh.Scale = Vector3.new(x1,y1,z1)
  1518. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1519. return mesh
  1520. end
  1521.  
  1522. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1523. local weld = Instance.new("Weld")
  1524. weld.Parent = parent
  1525. weld.Part0 = part0
  1526. weld.Part1 = part1
  1527. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1528. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1529. return weld
  1530. end
  1531.  
  1532.  
  1533. --------------
  1534. -------------- ground effect
  1535. local cen = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1536. CreateWeld(cen,root,cen,0,3,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1537. local effar = Instance.new("ParticleEmitter",cen)
  1538. effar.Texture = "rbxassetid://2344870656"
  1539. effar.LightEmission = 1
  1540. effar.Color = ColorSequence.new(Color3.new(1,0,0))
  1541. effar.Rate = 50
  1542. effar.Enabled = false
  1543. effar.EmissionDirection = "Front"
  1544. effar.Lifetime = NumberRange.new(1)
  1545. effar.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,15,0),NumberSequenceKeypoint.new(1,40,0)})
  1546. effar.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  1547. effar.Speed = NumberRange.new(80,90)
  1548. effar.Acceleration = Vector3.new(0,10,0)
  1549. effar.Drag = 5
  1550. effar.Rotation = NumberRange.new(-500,500)
  1551. effar.SpreadAngle = Vector2.new(0,900)
  1552. effar.RotSpeed = NumberRange.new(-500,500)
  1553.  
  1554. ----
  1555. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1556. 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))
  1557. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1558. 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))
  1559.  
  1560. local handlex = CreateParta(mwN,1,1,"Neon",maincolor)
  1561. CreateMesh(handle,"Brick",0,0,0)
  1562. 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))
  1563. local valuaring = 10
  1564. for i = 0, 49 do
  1565. valuaring = valuaring + 10
  1566. rn = CreateParta(mwY,0,0,"Neon",MAINRUINCOLOR)
  1567. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  1568. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1569. end
  1570.  
  1571. local refec = Instance.new("ParticleEmitter",handlex)
  1572. refec.Texture = "rbxassetid://249270319"
  1573. refec.LightEmission = 0.95
  1574. refec.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  1575. refec.Rate = 50
  1576. refec.Lifetime = NumberRange.new(0.5)
  1577. refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  1578. refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  1579. refec.Speed = NumberRange.new(0,2)
  1580. refec.Drag = 5
  1581. refec.LockedToPart = true
  1582. refec.Rotation = NumberRange.new(-500,500)
  1583. refec.VelocitySpread = 9000
  1584. refec.RotSpeed = NumberRange.new(-500,500)
  1585.  
  1586. local handle = CreateParta(m,1,1,"Neon",MAINRUINCOLOR)
  1587. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1588. 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))
  1589.  
  1590. --"rbxassetid://31727915"
  1591. --Sword
  1592.  
  1593. local sword = script.BloodCurse.BloodCurse:WaitForChild'hitbox'
  1594. for i,v in pairs(script.BloodCurse.BloodCurse:GetChildren()) do
  1595. v.Anchored = false
  1596. end
  1597. w1 = Instance.new("Weld")
  1598. w1.Parent = ra
  1599. w1.Part0 = ra
  1600. w1.Part1 = sword
  1601. w1.C0 = ra.CFrame:Inverse()
  1602. w1.C1 = sword.CFrame:Inverse()
  1603. w1.C0 = CFrame.new(0,-0.4,-3)*CFrame.Angles(RAD(0),RAD(90),RAD(0))*CFrame.Angles(RAD(00-0.05*math.cos(0+1 / 32)),RAD(0-0.05*math.cos(0+1 / 32)),RAD(00-0.05*math.cos(0+1 / 32)))
  1604.  
  1605. --Sword2
  1606.  
  1607. local cursedsword = script.CursedSword.CursedSword:WaitForChild'hitbox'
  1608. for i,v in pairs(script.CursedSword.CursedSword:GetChildren()) do
  1609. v.Anchored = false
  1610. end
  1611. w2 = Instance.new("Weld")
  1612. w2.Parent = ra
  1613. w2.Part0 = ra
  1614. w2.Part1 = sword
  1615. w2.C0 = ra.CFrame:Inverse()
  1616. w2.C1 = sword.CFrame:Inverse()
  1617. w2.C0 = CFrame.new(0,-0.4,-3)*CFrame.Angles(RAD(0),RAD(90),RAD(0))*CFrame.Angles(RAD(0),RAD(0),RAD(0))
  1618.  
  1619. --- Left wing.
  1620.  
  1621.  
  1622.  
  1623. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1624. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1625. local lwing1weld = CreateWeld(lwing1,handle,lwing1,1.5,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1626.  
  1627. local ae4 = script.E:Clone()
  1628. ae4.Parent = mw1
  1629. ae4.Color = MAINRUINCOLOR.Color
  1630. ae4.Anchored = false
  1631. CreateWeld(ae4,lwing1,ae4,0,0,-1.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1632.  
  1633. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1634. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1635. local lwing2weld = CreateWeld(lwing2,handle,lwing2,3,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1636.  
  1637. local ae5 = script.E:Clone()
  1638. ae5.Parent = mw1
  1639. ae5.Color = MAINRUINCOLOR.Color
  1640. ae5.Anchored = false
  1641. CreateWeld(ae5,lwing2,ae5,0,0,-1.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1642.  
  1643. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1644. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1645. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.5,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1646.  
  1647. local ae6 = script.E:Clone()
  1648. ae6.Parent = mw1
  1649. ae6.Color = MAINRUINCOLOR.Color
  1650. ae6.Anchored = false
  1651. CreateWeld(ae6,lwing3,ae6,0,0,-1.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1652.  
  1653. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1654. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1655. 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))
  1656.  
  1657. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1658. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1659. CreateWeld(wed,lwing4,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1660. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1661. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1662. CreateWeld(wed,lwing4,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1663. A0 = Instance.new('Attachment',wed)
  1664. A0.Position = vt(0,0.25*2,0.25*2)
  1665. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1666. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1667. CreateWeld(wed,lwing4,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1668. A1 = Instance.new('Attachment',wed)
  1669. A1.Position = vt(0,-0.25*2,-2*2)
  1670. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1671. CreateMesh(wed,"Wedge",0.0*25,3*2,0.5*2)
  1672. CreateWeld(wed,lwing4,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1673.  
  1674. tl4 = Instance.new('Trail',wed)
  1675. tl4.Attachment0 = A1
  1676. tl4.Attachment1 = A0
  1677. tl4.Texture = "rbxassetid://2108945559"
  1678. tl4.LightEmission = 1
  1679. tl4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1680. tl4.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1681. tl4.Lifetime = 0.6
  1682. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1683. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1684. 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))
  1685.  
  1686. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1687. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1688. CreateWeld(wed,lwing5,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1689. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1690. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1691. CreateWeld(wed,lwing5,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1692. A0 = Instance.new('Attachment',wed)
  1693. A0.Position = vt(0,0.25*2,0.25*2)
  1694. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1695. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1696. CreateWeld(wed,lwing5,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1697. A1 = Instance.new('Attachment',wed)
  1698. A1.Position = vt(0,-0.25*2,-2*2)
  1699. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1700. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1701. CreateWeld(wed,lwing5,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1702.  
  1703. tl5 = Instance.new('Trail',wed)
  1704. tl5.Attachment0 = A1
  1705. tl5.Attachment1 = A0
  1706. tl5.Texture = "rbxassetid://2108945559"
  1707. tl5.LightEmission = 1
  1708. tl5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1709. tl5.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1710. tl5.Lifetime = 0.6
  1711. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1712. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1713. 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))
  1714.  
  1715. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1716. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1717. CreateWeld(wed,lwing6,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1718. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1719. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1720. CreateWeld(wed,lwing6,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1721. A0 = Instance.new('Attachment',wed)
  1722. A0.Position = vt(0,0.25*2,0.25*2)
  1723. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1724. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1725. CreateWeld(wed,lwing6,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1726. A1 = Instance.new('Attachment',wed)
  1727. A1.Position = vt(0,-0.25*2,-2*2)
  1728. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1729. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1730. CreateWeld(wed,lwing6,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1731. tl6 = Instance.new('Trail',wed)
  1732. tl6.Attachment0 = A1
  1733. tl6.Attachment1 = A0
  1734. tl6.Texture = "rbxassetid://2108945559"
  1735. tl6.LightEmission = 1
  1736. tl6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1737. tl6.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1738. tl6.Lifetime = 0.6
  1739.  
  1740.  
  1741. tl4.Enabled = false
  1742. tl5.Enabled = false
  1743. tl6.Enabled = false
  1744. -- Right wing.
  1745.  
  1746. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1747. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1748. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-1.5,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1749.  
  1750. local ae1 = script.E:Clone()
  1751. ae1.Parent = mw2
  1752. ae1.Transparency = 1
  1753. ae1.Anchored = false
  1754. CreateWeld(ae1,rwing1,ae1,0,0,-1.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1755.  
  1756. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1757. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1758. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-3,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1759.  
  1760. local ae2 = script.E:Clone()
  1761. ae2.Parent = mw2
  1762. ae2.Transparency = 1
  1763. ae2.Anchored = false
  1764. CreateWeld(ae2,rwing2,ae2,0,0,-1.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1765.  
  1766. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1767. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1768. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.5,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1769.  
  1770. local ae3 = script.E:Clone()
  1771. ae3.Parent = mw2
  1772. ae3.Transparency = 1
  1773. ae3.Anchored = false
  1774. CreateWeld(ae3,rwing3,ae3,0,0,-1.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1775.  
  1776.  
  1777. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1778. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1779. 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))
  1780.  
  1781. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1782. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1783. CreateWeld(wed,rwing4,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1784. A0 = Instance.new('Attachment',wed)
  1785. A0.Position = vt(0,0.25*2,0.25*2)
  1786. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1787. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1788. CreateWeld(wed,rwing4,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1789. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1790. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1791. CreateWeld(wed,rwing4,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1792. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1793. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1794. CreateWeld(wed,rwing4,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1795. A1 = Instance.new('Attachment',wed)
  1796. A1.Position = vt(0,2,0.25)
  1797.  
  1798. tr4 = Instance.new('Trail',wed)
  1799. tr4.Attachment0 = A1
  1800. tr4.Attachment1 = A0
  1801. tr4.Texture = "rbxassetid://2108945559"
  1802. tr4.LightEmission = 1
  1803. tr4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1804. tr4.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1805. tr4.Lifetime = 0.6
  1806.  
  1807. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1808. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1809. 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))
  1810.  
  1811. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1812. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1813. CreateWeld(wed,rwing5,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1814. A0 = Instance.new('Attachment',wed)
  1815. A0.Position = vt(0,0.25*2,0.25*2)
  1816. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1817. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1818. CreateWeld(wed,rwing5,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1819. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1820. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1821. CreateWeld(wed,rwing5,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1822. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1823. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1824. CreateWeld(wed,rwing5,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1825. A1 = Instance.new('Attachment',wed)
  1826. A1.Position = vt(0,2,0.25)
  1827.  
  1828. tr5 = Instance.new('Trail',wed)
  1829. tr5.Attachment0 = A1
  1830. tr5.Attachment1 = A0
  1831. tr5.Texture = "rbxassetid://2108945559"
  1832. tr5.LightEmission = 1
  1833. tr5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1834. tr5.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1835. tr5.Lifetime = 0.6
  1836.  
  1837. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1838. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1839. 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))
  1840.  
  1841. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1842. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1843. CreateWeld(wed,rwing6,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1844. A0 = Instance.new('Attachment',wed)
  1845. A0.Position = vt(0,0.25*2,0.25*2)
  1846. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1847. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1848. CreateWeld(wed,rwing6,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1849. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1850. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1851. CreateWeld(wed,rwing6,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1852. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1853. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1854. CreateWeld(wed,rwing6,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1855. A1 = Instance.new('Attachment',wed)
  1856. A1.Position = vt(0,2,0.25)
  1857.  
  1858. tr6 = Instance.new('Trail',wed)
  1859. tr6.Attachment0 = A1
  1860. tr6.Attachment1 = A0
  1861. tr6.Texture = "rbxassetid://2108945559"
  1862. tr6.LightEmission = 1
  1863. tr6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1864. tr6.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1865. tr6.Lifetime = 0.6
  1866.  
  1867. ae4.Trail.Enabled=false
  1868. ae5.Trail.Enabled=false
  1869. ae6.Trail.Enabled=false
  1870. tr4.Enabled = false
  1871. tr5.Enabled = false
  1872. tr6.Enabled = false
  1873. ---- HERES THE RING
  1874.  
  1875.  
  1876. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1877. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1878. 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))
  1879. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1880. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1881. 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))
  1882. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1883. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1884. 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))
  1885.  
  1886.  
  1887. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1888. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1889. 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))
  1890.  
  1891. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1892. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1893. 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))
  1894.  
  1895.  
  1896.  
  1897. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1898. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1899. 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))
  1900.  
  1901. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1902. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1903. 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))
  1904.  
  1905. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1906. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1907. 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))
  1908.  
  1909. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1910. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1911. 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))
  1912. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1913. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1914. 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))
  1915.  
  1916. --- second ring
  1917.  
  1918. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1919. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1920. 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))
  1921. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1922. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1923. 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))
  1924. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1925. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1926. 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))
  1927.  
  1928. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1929. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1930. 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))
  1931.  
  1932. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1933. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1934. 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))
  1935.  
  1936.  
  1937.  
  1938. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1939. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1940. 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))
  1941.  
  1942. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1943. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1944. 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))
  1945.  
  1946. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1947. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1948. 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))
  1949.  
  1950. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1951. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1952. 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))
  1953. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1954. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1955. 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))]]--
  1956.  
  1957.  
  1958.  
  1959. for i, v in pairs(m:GetChildren()) do
  1960. if v:IsA("Part") then
  1961. v.BrickColor = BrickColor.new("Really black")
  1962. v.Material = "Glass"
  1963. end
  1964. end
  1965. for i, v in pairs(m2:GetChildren()) do
  1966. if v:IsA("Part") then
  1967. v.BrickColor = BrickColor.new("Crimson")
  1968. v.Material = "Granite"
  1969. end
  1970. end
  1971. for i, v in pairs(m3:GetChildren()) do
  1972. if v:IsA("Part") then
  1973. v.BrickColor = MAINRUINCOLOR
  1974. v.Material = "Neon"
  1975. end
  1976. end
  1977. for i, v in pairs(mw2:GetChildren()) do
  1978. if v:IsA("Part") then
  1979. v.BrickColor = MAINRUINCOLOR
  1980. v.Material = "Neon"
  1981. end
  1982. end
  1983. for i, v in pairs(mw1:GetChildren()) do
  1984. if v:IsA("Part") then
  1985. v.Transparency = 1
  1986. v.BrickColor = MAINRUINCOLOR
  1987. v.Material = "Neon"
  1988. end
  1989. end
  1990. for i, v in pairs(extrawingmod1:GetChildren()) do
  1991. if v:IsA("Part") then
  1992. v.Transparency = 1
  1993. v.BrickColor = BrickColor.new("White")
  1994. v.Material = "Neon"
  1995. end
  1996. end
  1997. for i, v in pairs(extrawingmod2:GetChildren()) do
  1998. if v:IsA("Part") then
  1999. v.Transparency = 1
  2000. v.BrickColor = BrickColor.new("White")
  2001. v.Material = "Neon"
  2002. end
  2003. end
  2004. ------
  2005.  
  2006.  
  2007. function RemoveOutlines(part)
  2008. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2009. end
  2010. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2011. local Part = Create("Part")({
  2012. Parent = Parent,
  2013. Reflectance = Reflectance,
  2014. Transparency = Transparency,
  2015. CanCollide = false,
  2016. Locked = true,
  2017. BrickColor = BrickColor.new(tostring(BColor)),
  2018. Name = Name,
  2019. Size = Size,
  2020. Material = Material
  2021. })
  2022. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2023. RemoveOutlines(Part)
  2024. return Part
  2025. end
  2026. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2027. local Msh = Create(Mesh)({
  2028. Parent = Part,
  2029. Offset = OffSet,
  2030. Scale = Scale
  2031. })
  2032. if Mesh == "SpecialMesh" then
  2033. Msh.MeshType = MeshType
  2034. Msh.MeshId = MeshId
  2035. end
  2036. return Msh
  2037. end
  2038. function CreateWeld(Parent, Part0, Part1, C0, C1)
  2039. local Weld = Create("Weld")({
  2040. Parent = Parent,
  2041. Part0 = Part0,
  2042. Part1 = Part1,
  2043. C0 = C0,
  2044. C1 = C1
  2045. })
  2046. return Weld
  2047. end
  2048.  
  2049. Character=Player.Character
  2050. PlayerGui=Player.PlayerGui
  2051. Backpack=Player.Backpack
  2052. Torso=Character.Torso
  2053. Head=Character.Head
  2054. Humanoid=Character.Humanoid
  2055. m=Instance.new('Model',Character)
  2056. LeftArm=Character["Left Arm"]
  2057. LeftLeg=Character["Left Leg"]
  2058. RightArm=Character["Right Arm"]
  2059. RightLeg=Character["Right Leg"]
  2060. LS=Torso["Left Shoulder"]
  2061. LH=Torso["Left Hip"]
  2062. RS=Torso["Right Shoulder"]
  2063. RH=Torso["Right Hip"]
  2064. Face = Head.face
  2065. Neck=Torso.Neck
  2066. it=Instance.new
  2067. attacktype=1
  2068. vt=Vector3.new
  2069. cf=CFrame.new
  2070. euler=CFrame.fromEulerAnglesXYZ
  2071. angles=CFrame.Angles
  2072. cloaked=false
  2073. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2074. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2075. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  2076. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  2077. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  2078. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  2079. RootPart=Character.HumanoidRootPart
  2080. RootJoint=RootPart.RootJoint
  2081. RootCF=euler(-1.57,0,3.14)
  2082. attack = false
  2083. attackdebounce = false
  2084. deb=false
  2085. equipped=true
  2086. hand=false
  2087. MMouse=nil
  2088. combo=0
  2089. mana=0
  2090. trispeed=.2
  2091. attackmode='none'
  2092. local idle=0
  2093. local Anim="Idle"
  2094. local Effects={}
  2095. local gun=false
  2096. local shoot=false
  2097. local sine = 0
  2098. local change = 1
  2099.  
  2100.  
  2101. function RecolorTextAndRename(name,col1,col2,font)
  2102. modet.TextStrokeColor3 = col2
  2103. modet.TextColor3 = col1
  2104. modet.Font = font
  2105. modet.Text = name
  2106. --[[ned.Text = name
  2107. ned.TextColor3 = col1
  2108. ned.TextStrokeColor3 = col2]]
  2109. nice(name,col1,col2)
  2110. nice2(col1,col2)
  2111. end
  2112.  
  2113. local disably = false
  2114.  
  2115. local r = 255
  2116. local g = 0
  2117. local b = 0
  2118.  
  2119.  
  2120. LW=Torso["Left Shoulder"]
  2121. LH=Torso["Left Hip"]
  2122. RW=Torso["Right Shoulder"]
  2123. RH=Torso["Right Hip"]
  2124.  
  2125. --save shoulders
  2126. --[[RSH, LSH=nil, nil
  2127. --welds
  2128. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2129. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2130. LH=Torso["Left Hip"]
  2131. RH=Torso["Right Hip"]
  2132. TorsoColor=Torso.BrickColor
  2133. function NoOutline(Part)
  2134. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2135. end
  2136. ch=Character
  2137. RSH=ch.Torso["Right Shoulder"]
  2138. LSH=ch.Torso["Left Shoulder"]
  2139. --
  2140. RSH.Parent=nil
  2141. LSH.Parent=nil ]]--
  2142. --
  2143. RW.Name="Right Shoulder"
  2144. RW.Part0=char.Torso
  2145. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2146. RW.C1=cf(0, 0.5, 0)
  2147. RW.Part1=char["Right Arm"]
  2148. RW.Parent=char.Torso
  2149. --
  2150. LW.Name="Left Shoulder"
  2151. LW.Part0=char.Torso
  2152. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2153. LW.C1=cf(0, 0.5, 0)
  2154. LW.Part1=char["Left Arm"]
  2155. LW.Parent=char.Torso
  2156.  
  2157. local Stats=Instance.new("BoolValue")
  2158. Stats.Name="Stats"
  2159. Stats.Parent=Character
  2160. local Atk=Instance.new("NumberValue")
  2161. Atk.Name="Damage"
  2162. Atk.Parent=Stats
  2163. Atk.Value=1
  2164. local Def=Instance.new("NumberValue")
  2165. Def.Name="Defense"
  2166. Def.Parent=Stats
  2167. Def.Value=1
  2168. local Speed=Instance.new("NumberValue")
  2169. Speed.Name="Speed"
  2170. Speed.Parent=Stats
  2171. Speed.Value=1
  2172. local Mvmt=Instance.new("NumberValue")
  2173. Mvmt.Name="Movement"
  2174. Mvmt.Parent=Stats
  2175. Mvmt.Value=1
  2176.  
  2177. local donum=0
  2178.  
  2179.  
  2180. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  2181. local fp=it("Part")
  2182. fp.formFactor=formfactor
  2183. fp.Parent=parent
  2184. fp.Reflectance=reflectance
  2185. fp.Transparency=transparency
  2186. fp.CanCollide=false
  2187. fp.Locked=true
  2188. fp.BrickColor=brickcolor
  2189. fp.Name=name
  2190. fp.Size=size
  2191. fp.Position=Torso.Position
  2192. NoOutline(fp)
  2193. fp.Material="SmoothPlastic"
  2194. fp:BreakJoints()
  2195. return fp
  2196. end
  2197.  
  2198. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2199. local mesh=it(Mesh)
  2200. mesh.Parent=part
  2201. if Mesh=="SpecialMesh" then
  2202. mesh.MeshType=meshtype
  2203. if meshid~="nil" then
  2204. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  2205. end
  2206. end
  2207. mesh.Offset=offset
  2208. mesh.Scale=scale
  2209. return mesh
  2210. end
  2211.  
  2212. function weld(parent,part0,part1,c0)
  2213. local weld=it("Weld")
  2214. weld.Parent=parent
  2215. weld.Part0=part0
  2216. weld.Part1=part1
  2217. weld.C0=c0
  2218. return weld
  2219. end
  2220.  
  2221. local Color1=Torso.BrickColor
  2222.  
  2223. local bodvel=Instance.new("BodyVelocity")
  2224. local bg=Instance.new("BodyGyro")
  2225.  
  2226. --------- SazEreno's Artificial HB --------------
  2227.  
  2228. -------- RAINBOW LEAVE IT TO ME
  2229.  
  2230.  
  2231. so = function(id,par,vol,pit)
  2232. local sou = Instance.new("Sound",par or workspace)
  2233. sou.Volume=vol
  2234. sou.Pitch=pit or 1
  2235. sou.SoundId=id
  2236. swait()
  2237. sou:play()
  2238. game:GetService("Debris"):AddItem(sou,6)
  2239. end
  2240.  
  2241. function clerp(a,b,t)
  2242. local qa = {QuaternionFromCFrame(a)}
  2243. local qb = {QuaternionFromCFrame(b)}
  2244. local ax, ay, az = a.x, a.y, a.z
  2245. local bx, by, bz = b.x, b.y, b.z
  2246. local _t = 1-t
  2247. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2248. end
  2249.  
  2250. function aclerp(startCF,endCF,alpha)
  2251. return startCF:lerp(endCF, alpha)
  2252. end
  2253.  
  2254. function QuaternionFromCFrame(cf)
  2255. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2256. local trace = m00 + m11 + m22
  2257. if trace > 0 then
  2258. local s = math.sqrt(1 + trace)
  2259. local recip = 0.5/s
  2260. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2261. else
  2262. local i = 0
  2263. if m11 > m00 then
  2264. i = 1
  2265. end
  2266. if m22 > (i == 0 and m00 or m11) then
  2267. i = 2
  2268. end
  2269. if i == 0 then
  2270. local s = math.sqrt(m00-m11-m22+1)
  2271. local recip = 0.5/s
  2272. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2273. elseif i == 1 then
  2274. local s = math.sqrt(m11-m22-m00+1)
  2275. local recip = 0.5/s
  2276. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2277. elseif i == 2 then
  2278. local s = math.sqrt(m22-m00-m11+1)
  2279. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2280. end
  2281. end
  2282. end
  2283.  
  2284. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2285. local xs, ys, zs = x + x, y + y, z + z
  2286. local wx, wy, wz = w*xs, w*ys, w*zs
  2287. local xx = x*xs
  2288. local xy = x*ys
  2289. local xz = x*zs
  2290. local yy = y*ys
  2291. local yz = y*zs
  2292. local zz = z*zs
  2293. 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))
  2294. end
  2295.  
  2296. function QuaternionSlerp(a, b, t)
  2297. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2298. local startInterp, finishInterp;
  2299. if cosTheta >= 0.0001 then
  2300. if (1 - cosTheta) > 0.0001 then
  2301. local theta = math.acos(cosTheta)
  2302. local invSinTheta = 1/math.sin(theta)
  2303. startInterp = math.sin((1-t)*theta)*invSinTheta
  2304. finishInterp = math.sin(t*theta)*invSinTheta
  2305. else
  2306. startInterp = 1-t
  2307. finishInterp = t
  2308. end
  2309. else
  2310. if (1+cosTheta) > 0.0001 then
  2311. local theta = math.acos(-cosTheta)
  2312. local invSinTheta = 1/math.sin(theta)
  2313. startInterp = math.sin((t-1)*theta)*invSinTheta
  2314. finishInterp = math.sin(t*theta)*invSinTheta
  2315. else
  2316. startInterp = t-1
  2317. finishInterp = t
  2318. end
  2319. end
  2320. 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
  2321. end
  2322.  
  2323. local function CFrameFromTopBack(at, top, back)
  2324. local right = top:Cross(back)
  2325. return CFrame.new(at.x, at.y, at.z,
  2326. right.x, top.x, back.x,
  2327. right.y, top.y, back.y,
  2328. right.z, top.z, back.z)
  2329. end
  2330.  
  2331. function Triangle(a, b, c)
  2332. local edg1 = (c-a):Dot((b-a).unit)
  2333. local edg2 = (a-b):Dot((c-b).unit)
  2334. local edg3 = (b-c):Dot((a-c).unit)
  2335. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2336. a, b, c = a, b, c
  2337. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2338. a, b, c = b, c, a
  2339. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2340. a, b, c = c, a, b
  2341. else
  2342. assert(false, "unreachable")
  2343. end
  2344.  
  2345. local len1 = (c-a):Dot((b-a).unit)
  2346. local len2 = (b-a).magnitude - len1
  2347. local width = (a + (b-a).unit*len1 - c).magnitude
  2348.  
  2349. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2350.  
  2351. local list = {}
  2352.  
  2353. if len1 > 0.01 then
  2354. local w1 = Instance.new('WedgePart', m)
  2355. game:GetService("Debris"):AddItem(w1,5)
  2356. w1.Material = "SmoothPlastic"
  2357. w1.FormFactor = 'Custom'
  2358. w1.BrickColor = MAINRUINCOLOR
  2359. w1.Transparency = 0
  2360. w1.Reflectance = 0
  2361. w1.Material = "SmoothPlastic"
  2362. w1.CanCollide = false
  2363. local l1 = Instance.new("PointLight",w1)
  2364. l1.Color = Color3.new(170,0,0)
  2365. NoOutline(w1)
  2366. local sz = Vector3.new(0.2, width, len1)
  2367. w1.Size = sz
  2368. local sp = Instance.new("SpecialMesh",w1)
  2369. sp.MeshType = "Wedge"
  2370. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2371. w1:BreakJoints()
  2372. w1.Anchored = true
  2373. w1.Parent = workspace
  2374. w1.Transparency = 0.7
  2375. table.insert(Effects,{w1,"Disappear",.01})
  2376. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2377. table.insert(list,w1)
  2378. end
  2379.  
  2380. if len2 > 0.01 then
  2381. local w2 = Instance.new('WedgePart', m)
  2382. game:GetService("Debris"):AddItem(w2,5)
  2383. w2.Material = "SmoothPlastic"
  2384. w2.FormFactor = 'Custom'
  2385. w2.BrickColor = MAINRUINCOLOR
  2386. w2.Transparency = 0
  2387. w2.Reflectance = 0
  2388. w2.Material = "SmoothPlastic"
  2389. w2.CanCollide = false
  2390. local l2 = Instance.new("PointLight",w2)
  2391. l2.Color = Color3.new(170,0,0)
  2392. NoOutline(w2)
  2393. local sz = Vector3.new(0.2, width, len2)
  2394. w2.Size = sz
  2395. local sp = Instance.new("SpecialMesh",w2)
  2396. sp.MeshType = "Wedge"
  2397. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2398. w2:BreakJoints()
  2399. w2.Anchored = true
  2400. w2.Parent = workspace
  2401. w2.Transparency = 0.7
  2402. table.insert(Effects,{w2,"Disappear",.01})
  2403. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2404. table.insert(list,w2)
  2405. end
  2406. return unpack(list)
  2407. end
  2408.  
  2409.  
  2410. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2411. if DoDamage == true then
  2412. if hit.Parent == nil then
  2413. return
  2414. end
  2415. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  2416. for _, v in pairs(hit.Parent:children()) do
  2417. if v:IsA("Humanoid") then
  2418. h = v
  2419. end
  2420. end
  2421. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  2422. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2423. return
  2424. end
  2425. local c = Create("ObjectValue")({
  2426. Name = "creator",
  2427. Value = game:GetService("Players").LocalPlayer,
  2428. Parent = h
  2429. })
  2430. game:GetService("Debris"):AddItem(c, 0.5)
  2431. if HitSound ~= nil and HitPitch ~= nil then
  2432. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2433. end
  2434. local Damage = math.random(minim, maxim)
  2435. local blocked = false
  2436. local block = hit.Parent:findFirstChild("Block")
  2437. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2438. blocked = true
  2439. block.Value = block.Value - 1
  2440. print(block.Value)
  2441. end
  2442. if blocked == false then
  2443. local HitHealth = h.Health
  2444. h.MaxHealth = 100
  2445. h.Health = h.Health - Damage
  2446. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  2447. --print("gained kill")
  2448. dmg(h.Parent)
  2449. end
  2450. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), Damage, .03, Part.BrickColor.Color)
  2451. else
  2452. h.Health = h.Health - Damage / 2
  2453. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), Damage, .03, Part.BrickColor.Color)
  2454. end
  2455. if Type == "Knockdown" then
  2456. local hum = hit.Parent.Humanoid
  2457. hum.PlatformStand = true
  2458. coroutine.resume(coroutine.create(function(HHumanoid)
  2459. swait(1)
  2460. HHumanoid.PlatformStand = false
  2461. end), hum)
  2462. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2463. local bodvol = Create("BodyVelocity")({
  2464. velocity = angle * knockback,
  2465. P = 5000,
  2466. maxForce = Vector3.new(8000, 8000, 8000),
  2467. Parent = hit
  2468. })
  2469. local rl = Create("BodyAngularVelocity")({
  2470. P = 3000,
  2471. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2472. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2473. Parent = hit
  2474. })
  2475. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2476. game:GetService("Debris"):AddItem(rl, 0.5)
  2477. elseif Type == "Normal" then
  2478. local vp = Create("BodyVelocity")({
  2479. P = 500,
  2480. maxForce = Vector3.new(math.huge, 0, math.huge),
  2481. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2482. })
  2483. if knockback > 0 then
  2484. vp.Parent = hit.Parent.Head
  2485. end
  2486. game:GetService("Debris"):AddItem(vp, 0.5)
  2487. elseif Type == "Up" then
  2488. local bodyVelocity = Create("BodyVelocity")({
  2489. velocity = Vector3.new(0, 20, 0),
  2490. P = 5000,
  2491. maxForce = Vector3.new(8000, 8000, 8000),
  2492. Parent = hit
  2493. })
  2494. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2495. local bodyVelocity = Create("BodyVelocity")({
  2496. velocity = Vector3.new(0, 20, 0),
  2497. P = 5000,
  2498. maxForce = Vector3.new(8000, 8000, 8000),
  2499. Parent = hit
  2500. })
  2501. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2502. elseif Type == "Leech" then
  2503. local hum = hit.Parent.Humanoid
  2504. if hum ~= nil then
  2505. for i = 0, 2 do
  2506. 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)
  2507. end
  2508. Humanoid.Health = Humanoid.Health + 10
  2509. end
  2510. elseif Type == "UpKnock" then
  2511. local hum = hit.Parent.Humanoid
  2512. hum.PlatformStand = true
  2513. if hum ~= nil then
  2514. hitr = true
  2515. end
  2516. coroutine.resume(coroutine.create(function(HHumanoid)
  2517. swait(5)
  2518. HHumanoid.PlatformStand = false
  2519. hitr = false
  2520. end), hum)
  2521. local bodyVelocity = Create("BodyVelocity")({
  2522. velocity = Vector3.new(0, 20, 0),
  2523. P = 5000,
  2524. maxForce = Vector3.new(8000, 8000, 8000),
  2525. Parent = hit
  2526. })
  2527. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2528. local bodyVelocity = Create("BodyVelocity")({
  2529. velocity = Vector3.new(0, 20, 0),
  2530. P = 5000,
  2531. maxForce = Vector3.new(8000, 8000, 8000),
  2532. Parent = hit
  2533. })
  2534. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2535. elseif Type == "Snare" then
  2536. local bp = Create("BodyPosition")({
  2537. P = 2000,
  2538. D = 100,
  2539. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2540. position = hit.Parent.Torso.Position,
  2541. Parent = hit.Parent.Torso
  2542. })
  2543. game:GetService("Debris"):AddItem(bp, 1)
  2544. elseif Type == "Slashnare" then
  2545. 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)
  2546. for i = 1, math.random(4, 5) do
  2547. 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)
  2548. end
  2549. local bp = Create("BodyPosition")({
  2550. P = 2000,
  2551. D = 100,
  2552. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2553. position = hit.Parent.Torso.Position,
  2554. Parent = hit.Parent.Torso
  2555. })
  2556. game:GetService("Debris"):AddItem(bp, 1)
  2557. elseif Type == "Spike" then
  2558. -- CreateBigIceSword(hit.Parent.Torso.CFrame)
  2559. local bp = Create("BodyPosition")({
  2560. P = 2000,
  2561. D = 100,
  2562. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2563. position = hit.Parent.Torso.Position,
  2564. Parent = hit.Parent.Torso
  2565. })
  2566. game:GetService("Debris"):AddItem(bp, 1)
  2567. elseif Type == "Freeze" then
  2568. local BodPos = Create("BodyPosition")({
  2569. P = 50000,
  2570. D = 1000,
  2571. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2572. position = hit.Parent.Torso.Position,
  2573. Parent = hit.Parent.Torso
  2574. })
  2575. local BodGy = Create("BodyGyro")({
  2576. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2577. P = 20000,
  2578. Parent = hit.Parent.Torso,
  2579. cframe = hit.Parent.Torso.CFrame
  2580. })
  2581. hit.Parent.Torso.Anchored = true
  2582. coroutine.resume(coroutine.create(function(Part)
  2583. swait(1.5)
  2584. Part.Anchored = false
  2585. end), hit.Parent.Torso)
  2586. game:GetService("Debris"):AddItem(BodPos, 3)
  2587. game:GetService("Debris"):AddItem(BodGy, 3)
  2588. end
  2589. local debounce = Create("BoolValue")({
  2590. Name = "DebounceHit",
  2591. Parent = hit.Parent,
  2592. Value = true
  2593. })
  2594. game:GetService("Debris"):AddItem(debounce, Delay)
  2595. c = Instance.new("ObjectValue")
  2596. c.Name = "creator"
  2597. c.Value = Player
  2598. c.Parent = h
  2599. game:GetService("Debris"):AddItem(c, 0.5)
  2600. end
  2601. elseif DoDamage == false then
  2602. print("Damage is disabled")
  2603. end
  2604.  
  2605. end
  2606. function ShowDamage(Pos, Text, Time, Color)
  2607. coroutine.resume(coroutine.create(function()
  2608. local Rate = 0.03333333333333333
  2609. local Pos = Pos or Vector3.new(0, 0, 0)
  2610. local Text = Text or ""
  2611. local Color = Color or Color3.new(1, 0, 1)
  2612. local EffectPart = CreatePart(Character, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2613. EffectPart.Anchored = true
  2614. EffectPart.CFrame = CFrame.new(Pos)
  2615. local BillboardGui = Create("BillboardGui")({
  2616. Size = UDim2.new(6, 0, 6, 0),
  2617. Adornee = EffectPart,
  2618. Parent = EffectPart,
  2619. AlwaysOnTop=true,
  2620. Active=true
  2621. })
  2622. local TextLabel = Create("TextLabel")({
  2623. BackgroundTransparency = 1,
  2624. AnchorPoint=Vector2.new(.5,.5),
  2625. Position = UDim2.new(.5, 0, .5, 0),
  2626. Size = UDim2.new(1, 0, 1, 0),
  2627. Text = Text,
  2628. TextColor3 = MAINRUINCOLOR.Color,
  2629. TextStrokeColor3 = SECONDRUINCOLOR.Color,
  2630. TextStrokeTransparency=0,
  2631. TextScaled = true,
  2632. Font = Enum.Font.Bodoni,
  2633. Parent = BillboardGui,
  2634. ZIndex=4,
  2635. })
  2636.  
  2637. local aaa=math.random(-360,360)
  2638. local bbb=math.random(-360,360)
  2639.  
  2640. local F1 = Create("Frame")({
  2641. AnchorPoint=Vector2.new(.5,.5),
  2642. Position = UDim2.new(.5, 0, .5, 0),
  2643. Size = UDim2.new(.4,0,.4,0),
  2644. BackgroundColor3 =MAINRUINCOLOR.Color,
  2645. BorderColor3 =SECONDRUINCOLOR.Color,
  2646. BorderSizePixel=4,
  2647. Parent = BillboardGui,
  2648. Rotation=aaa
  2649. })
  2650. local F2 = Create("Frame")({
  2651. AnchorPoint=Vector2.new(.5,.5),
  2652. Position = UDim2.new(.5, 0, .5, 0),
  2653. Size = UDim2.new(.4,0,.4,0),
  2654. BackgroundColor3 =MAINRUINCOLOR.Color,
  2655. BorderColor3 =SECONDRUINCOLOR.Color,
  2656. BorderSizePixel=4,
  2657. Parent = BillboardGui,
  2658. Rotation=-aaa
  2659. })
  2660. local F3 = Create("Frame")({
  2661. AnchorPoint=Vector2.new(.5,.5),
  2662. Position = UDim2.new(.5, 0, .5, 0),
  2663. Size = UDim2.new(.2,0,.2,0),
  2664. BackgroundColor3 =MAINRUINCOLOR.Color,
  2665. BorderColor3 =SECONDRUINCOLOR.Color,
  2666. BorderSizePixel=4,
  2667. Parent = BillboardGui,
  2668. ZIndex=2,
  2669. Rotation=bbb
  2670. })
  2671. local F4 = Create("Frame")({
  2672. AnchorPoint=Vector2.new(.5,.5),
  2673. Position = UDim2.new(.5, 0, .5, 0),
  2674. Size = UDim2.new(.2,0,.2,0),
  2675. BackgroundColor3 =MAINRUINCOLOR.Color,
  2676. BorderColor3 =SECONDRUINCOLOR.Color,
  2677. BorderSizePixel=4,
  2678. Parent = BillboardGui,
  2679. ZIndex=2,
  2680. Rotation=-bbb
  2681. })
  2682.  
  2683. --[[delay(0, function() -- no thank
  2684. local Frames = Time / Rate
  2685. for Frame = 1, Frames do
  2686. wait(Rate)
  2687. local Percent = Frame / Frames
  2688. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2689. TextLabel.TextTransparency = Percent
  2690. end
  2691. if EffectPart and EffectPart.Parent then
  2692. EffectPart:Destroy()
  2693. end
  2694. end)]]
  2695. local ha=EffectPart
  2696. local oring=ha.CFrame*CFrame.new(0,3.4,0)
  2697. F1:TweenPosition(UDim2.new(.2,0,.5,0), "Out", "Quint", 1,true)
  2698. F2:TweenPosition(UDim2.new(.8,0,.5,0), "Out", "Quint", 1,true)
  2699. F3:TweenPosition(UDim2.new(-.1,0,.5,0), "Out", "Quint", 1.5,true)
  2700. F4:TweenPosition(UDim2.new(1.1,0,.5,0), "Out", "Quint", 1.5,true)
  2701. for aaa=0,1.1,Time do
  2702. swait()
  2703. ha.CFrame=clerp(ha.CFrame,oring,.1)
  2704. F1.BackgroundTransparency=0+1*aaa
  2705. F2.BackgroundTransparency=0+1*aaa
  2706. F3.BackgroundTransparency=0+.5*aaa
  2707. F4.BackgroundTransparency=0+.5*aaa
  2708. F1.Rotation=F1.Rotation+math.random(5,10)
  2709. F2.Rotation=F2.Rotation-math.random(5,10)
  2710. F3.Rotation=F3.Rotation+math.random(3,6)
  2711. F4.Rotation=F4.Rotation-math.random(3,6)
  2712. end
  2713. for aaa=0,1,.1 do
  2714. swait()
  2715. TextLabel.TextTransparency=aaa
  2716. TextLabel.TextStrokeTransparency=aaa
  2717. F3.BackgroundTransparency=.5+.5*aaa
  2718. F4.BackgroundTransparency=.5+.5*aaa
  2719. F3.Rotation=F3.Rotation+math.random(3,6)
  2720. F4.Rotation=F4.Rotation-math.random(3,6)
  2721. end
  2722. --ha:Remove()
  2723. end))
  2724. end
  2725. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2726. for _, c in pairs(workspace:children()) do
  2727. local hum = c:findFirstChildOfClass("Humanoid")
  2728. if hum ~= nil then
  2729. local head = c:findFirstChild("Head")
  2730. if head ~= nil then
  2731. local targ = head.Position - Part.Position
  2732. local mag = targ.magnitude
  2733. if magni >= mag and c.Name ~= Player.Name then
  2734. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2735. end
  2736. end
  2737. end
  2738. end
  2739. end
  2740.  
  2741. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2742. for _, c in pairs(workspace:children()) do
  2743. local hum = c:findFirstChild("Humanoid")
  2744. if hum ~= nil then
  2745. local head = c:findFirstChild("Torso")
  2746. if head ~= nil then
  2747. local targ = head.Position - Part.Position
  2748. local mag = targ.magnitude
  2749. if magni >= mag and c.Name ~= Player.Name then
  2750. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2751. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2752. end
  2753. end
  2754. end
  2755. end
  2756. end
  2757.  
  2758. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2759. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2760. end
  2761.  
  2762. function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
  2763. local type = type
  2764. local rng = Instance.new("Part", char)
  2765. rng.Anchored = true
  2766. rng.BrickColor = color
  2767. rng.CanCollide = false
  2768. rng.FormFactor = 3
  2769. rng.Name = "Ring"
  2770. rng.Material = "Neon"
  2771. rng.Size = Vector3.new(1, 1, 1)
  2772. rng.Transparency = 0
  2773. if typeoftrans == "In" then
  2774. rng.Transparency = 1
  2775. end
  2776. rng.TopSurface = 0
  2777. rng.BottomSurface = 0
  2778. rng.CFrame = pos
  2779. local rngm = Instance.new("SpecialMesh", rng)
  2780. rngm.MeshType = "FileMesh"
  2781. rngm.MeshId = "rbxassetid://20329976"
  2782. rngm.Scale = scale
  2783. local scaler2 = 1
  2784. local scaler2b = 1
  2785. if type == "Add" then
  2786. scaler2 = 1*value
  2787. scaler2b = 1*value2
  2788. elseif type == "Divide" then
  2789. scaler2 = 1/value
  2790. scaler2b = 1/value2
  2791. end
  2792. local randomrot = math.random(1,2)
  2793. coroutine.resume(coroutine.create(function()
  2794. for i = 0,10/bonuspeed,0.1 do
  2795. swait()
  2796. if type == "Add" then
  2797. scaler2 = scaler2 - 0.01*value/bonuspeed
  2798. scaler2b = scaler2b - 0.01*value/bonuspeed
  2799. elseif type == "Divide" then
  2800. scaler2 = scaler2 - 0.01/value*bonuspeed
  2801. scaler2b = scaler2b - 0.01/value*bonuspeed
  2802. end
  2803. if randomrot == 1 then
  2804. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
  2805. elseif randomrot == 2 then
  2806. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
  2807. end
  2808. if typeoftrans == "Out" then
  2809. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2810. elseif typeoftrans == "In" then
  2811. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2812. end
  2813. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
  2814. end
  2815. rng:Destroy()
  2816. end))
  2817. end
  2818.  
  2819. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2820. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2821. prt.Anchored=true
  2822. prt.CFrame=cframe*cf(x,y,z)
  2823. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2824. game:GetService("Debris"):AddItem(prt,5)
  2825. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2826. local num=math.random()
  2827. local num2=math.random(-3,2)+math.random()
  2828. local numm=0
  2829. for i=0,1,delay*2 do
  2830. swait()
  2831. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2832. Part.Transparency=i
  2833. numm=numm+0.01
  2834. end
  2835. Part.Parent=nil
  2836. Mesh.Parent=nil
  2837. end),prt,msh,x,y,z)
  2838. end
  2839.  
  2840. function dmgstart(dmg,what)
  2841. hitcon = what.Touched:connect(function(hit)
  2842. local hum = hit.Parent:FindFirstChild("Humanoid")
  2843. if hum and not hum:IsDescendantOf(Character) then
  2844. hum:TakeDamage(dmg)
  2845. end
  2846. end)
  2847. end
  2848.  
  2849. function dmgstop()
  2850. hitcon:disconnect()
  2851. end
  2852.  
  2853. function Cloak()
  2854. Face.Parent=nil
  2855. cloaked=true
  2856. coroutine.wrap(function()
  2857. for i = 0, 1, .05 do
  2858. for _,v in next, Character:GetDescendants() do
  2859. if(v:IsA'BasePart' and v ~= RootPart)then
  2860. v.Transparency=i>v.Transparency and i or v.Transparency
  2861. end
  2862. end
  2863. swait()
  2864. end
  2865. end)()
  2866. end
  2867.  
  2868. function UnCloak()
  2869. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2870. Face.Parent=Head
  2871. cloaked=false
  2872. coroutine.wrap(function()
  2873. for i = 1, 0, -.05 do
  2874. for _,v in next, Character:GetDescendants() do
  2875. if(v:IsA'BasePart' and v ~= RootPart)then
  2876. v.Transparency=i
  2877. end
  2878. end
  2879. swait()
  2880. end
  2881. end)()
  2882. end
  2883.  
  2884. local origcolor = BrickColor.new("Pastel light blue")
  2885. ---- This section of explosions.
  2886.  
  2887. ----
  2888.  
  2889.  
  2890. function ring(type,pos,scale,value)
  2891. local type = type
  2892. local rng = Instance.new("Part", char)
  2893. rng.Anchored = true
  2894. rng.BrickColor = origcolor
  2895. rng.CanCollide = false
  2896. rng.FormFactor = 3
  2897. rng.Name = "Ring"
  2898. rng.Size = Vector3.new(1, 1, 1)
  2899. rng.Transparency = 0
  2900. rng.TopSurface = 0
  2901. rng.BottomSurface = 0
  2902. rng.CFrame = pos
  2903. local rngm = Instance.new("SpecialMesh", rng)
  2904. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2905. rngm.Scale = scale
  2906. local scaler2 = 1
  2907. if type == "Add" then
  2908. scaler2 = 1*value
  2909. elseif type == "Divide" then
  2910. scaler2 = 1/value
  2911. end
  2912. coroutine.resume(coroutine.create(function()
  2913. for i = 0,10,0.1 do
  2914. swait()
  2915. if type == "Add" then
  2916. scaler2 = scaler2 - 0.01*value
  2917. elseif type == "Divide" then
  2918. scaler2 = scaler2 - 0.01/value
  2919. end
  2920. rng.Transparency = rng.Transparency + 0.01
  2921. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2922. end
  2923. rng:Destroy()
  2924. end))
  2925. end
  2926.  
  2927.  
  2928. function wave(type,pos,scale,value)
  2929. local type = type
  2930. local rng = Instance.new("Part", char)
  2931. rng.Anchored = true
  2932. rng.BrickColor = origcolor
  2933. rng.CanCollide = false
  2934. rng.FormFactor = 3
  2935. rng.Name = "Ring"
  2936. rng.Size = Vector3.new(1, 1, 1)
  2937. rng.Transparency = 0
  2938. rng.TopSurface = 0
  2939. rng.BottomSurface = 0
  2940. rng.CFrame = pos
  2941. local rngm = Instance.new("SpecialMesh", rng)
  2942. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2943. rngm.Scale = scale
  2944. local scaler2 = 1
  2945. if type == "Add" then
  2946. scaler2 = 1*value
  2947. elseif type == "Divide" then
  2948. scaler2 = 1/value
  2949. end
  2950. coroutine.resume(coroutine.create(function()
  2951. for i = 0,10,0.1 do
  2952. swait()
  2953. if type == "Add" then
  2954. scaler2 = scaler2 - 0.01*value
  2955. elseif type == "Divide" then
  2956. scaler2 = scaler2 - 0.01/value
  2957. end
  2958. rng.Transparency = rng.Transparency + 0.01
  2959. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2960. end
  2961. rng:Destroy()
  2962. end))
  2963. end
  2964.  
  2965. function wind(type,pos,scale,value,speed)
  2966. local type = type
  2967. local rng = Instance.new("Part", char)
  2968. rng.Anchored = true
  2969. rng.BrickColor = origcolor
  2970. rng.CanCollide = false
  2971. rng.FormFactor = 3
  2972. rng.Name = "Ring"
  2973. rng.Size = Vector3.new(1, 1, 1)
  2974. rng.Transparency = 0
  2975. rng.TopSurface = 0
  2976. rng.BottomSurface = 0
  2977. rng.CFrame = pos
  2978. local rngm = Instance.new("SpecialMesh", rng)
  2979. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2980. rngm.Scale = scale
  2981. local scaler2 = 1
  2982. if type == "Add" then
  2983. scaler2 = 1*value
  2984. elseif type == "Divide" then
  2985. scaler2 = 1/value
  2986. end
  2987. coroutine.resume(coroutine.create(function()
  2988. for i = 0,10,0.1 do
  2989. swait()
  2990. if type == "Add" then
  2991. scaler2 = scaler2 - 0.01*value
  2992. elseif type == "Divide" then
  2993. scaler2 = scaler2 - 0.01/value
  2994. end
  2995. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2996. rng.Transparency = rng.Transparency + 0.01
  2997. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2998. end
  2999. rng:Destroy()
  3000. end))
  3001. end
  3002.  
  3003. function groundwind(type,pos,scale,value,speed)
  3004. local type = type
  3005. local rng = Instance.new("Part", char)
  3006. rng.Anchored = true
  3007. rng.BrickColor = origcolor
  3008. rng.CanCollide = false
  3009. rng.FormFactor = 3
  3010. rng.Name = "Ring"
  3011. rng.Size = Vector3.new(1, 1, 1)
  3012. rng.Transparency = 0
  3013. rng.TopSurface = 0
  3014. rng.BottomSurface = 0
  3015. rng.CFrame = pos
  3016. local rngm = Instance.new("SpecialMesh", rng)
  3017. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3018. rngm.Scale = scale
  3019. local scaler2 = 1
  3020. if type == "Add" then
  3021. scaler2 = 1*value
  3022. elseif type == "Divide" then
  3023. scaler2 = 1/value
  3024. end
  3025. coroutine.resume(coroutine.create(function()
  3026. for i = 0,10,0.1 do
  3027. swait()
  3028. if type == "Add" then
  3029. scaler2 = scaler2 - 0.01*value
  3030. elseif type == "Divide" then
  3031. scaler2 = scaler2 - 0.01/value
  3032. end
  3033. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  3034. rng.Transparency = rng.Transparency + 0.01
  3035. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  3036. end
  3037. rng:Destroy()
  3038. end))
  3039. end
  3040.  
  3041. function CameraManager()
  3042. if TwoD and not CamInterrupt then
  3043. if Humanoid.Health > 0 then
  3044. Camera.CameraSubject = Humanoid
  3045. Camera.CameraType = "Scriptable"
  3046. Humanoid.AutoRotate = false
  3047. if Booleans.GyroUse then
  3048. Directer.MaxTorque = Vec3(0, huge, 0)
  3049. else
  3050. Directer.MaxTorque = Vec3(0, 0, 0)
  3051. end
  3052. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  3053. if Booleans.CamFollow then
  3054. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  3055. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  3056. else
  3057. CPart.Position = RootPart.Position
  3058. end
  3059. else
  3060. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  3061. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  3062. end
  3063. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  3064. else
  3065. Camera.CameraSubject = Humanoid
  3066. Camera.CameraType = "Custom"
  3067. Controller.Disabled = false
  3068. end
  3069. end
  3070. end
  3071.  
  3072. function ring(type,pos,scale,value)
  3073. local type = type
  3074. local rng = Instance.new("Part", char)
  3075. rng.Anchored = true
  3076. rng.BrickColor = origcolor
  3077. rng.CanCollide = false
  3078. rng.FormFactor = 3
  3079. rng.Name = "Ring"
  3080. rng.Size = Vector3.new(1, 1, 1)
  3081. rng.Transparency = 0
  3082. rng.TopSurface = 0
  3083. rng.BottomSurface = 0
  3084. rng.CFrame = pos
  3085. local rngm = Instance.new("SpecialMesh", rng)
  3086. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3087. rngm.Scale = scale
  3088. local scaler2 = 1
  3089. if type == "Add" then
  3090. scaler2 = 1*value
  3091. elseif type == "Divide" then
  3092. scaler2 = 1/value
  3093. end
  3094. coroutine.resume(coroutine.create(function()
  3095. for i = 0,10,0.1 do
  3096. swait()
  3097. if type == "Add" then
  3098. scaler2 = scaler2 - 0.01*value
  3099. elseif type == "Divide" then
  3100. scaler2 = scaler2 - 0.01/value
  3101. end
  3102. rng.Transparency = rng.Transparency + 0.01
  3103. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3104. end
  3105. rng:Destroy()
  3106. end))
  3107. end
  3108.  
  3109.  
  3110. function wave(type,pos,scale,value)
  3111. local type = type
  3112. local rng = Instance.new("Part", char)
  3113. rng.Anchored = true
  3114. rng.BrickColor = origcolor
  3115. rng.CanCollide = false
  3116. rng.FormFactor = 3
  3117. rng.Name = "Ring"
  3118. rng.Size = Vector3.new(1, 1, 1)
  3119. rng.Transparency = 0
  3120. rng.TopSurface = 0
  3121. rng.BottomSurface = 0
  3122. rng.CFrame = pos
  3123. local rngm = Instance.new("SpecialMesh", rng)
  3124. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3125. rngm.Scale = scale
  3126. local scaler2 = 1
  3127. if type == "Add" then
  3128. scaler2 = 1*value
  3129. elseif type == "Divide" then
  3130. scaler2 = 1/value
  3131. end
  3132. coroutine.resume(coroutine.create(function()
  3133. for i = 0,10,0.1 do
  3134. swait()
  3135. if type == "Add" then
  3136. scaler2 = scaler2 - 0.01*value
  3137. elseif type == "Divide" then
  3138. scaler2 = scaler2 - 0.01/value
  3139. end
  3140. rng.Transparency = rng.Transparency + 0.01
  3141. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3142. end
  3143. rng:Destroy()
  3144. end))
  3145. end
  3146.  
  3147. function sphere(bonuspeed,type,pos,scale,value,color)
  3148. local type = type
  3149. local rng = Instance.new("Part", char)
  3150. rng.Anchored = true
  3151. rng.BrickColor = color
  3152. rng.CanCollide = false
  3153. rng.FormFactor = 3
  3154. rng.Name = "Ring"
  3155. rng.Material = "Neon"
  3156. rng.Size = Vector3.new(1, 1, 1)
  3157. rng.Transparency = 0
  3158. rng.TopSurface = 0
  3159. rng.BottomSurface = 0
  3160. rng.CFrame = pos
  3161. local rngm = Instance.new("SpecialMesh", rng)
  3162. rngm.MeshType = "Sphere"
  3163. rngm.Scale = scale
  3164. if rainbowmode == true then
  3165. rng.Color = Color3.new(r/255,g/255,b/255)
  3166. end
  3167. local scaler2 = 1
  3168. if type == "Add" then
  3169. scaler2 = 1*value
  3170. elseif type == "Divide" then
  3171. scaler2 = 1/value
  3172. end
  3173. coroutine.resume(coroutine.create(function()
  3174. for i = 0,10/bonuspeed,0.1 do
  3175. swait()
  3176. if rainbowmode == true then
  3177. rng.Color = Color3.new(r/255,g/255,b/255)
  3178. end
  3179. if type == "Add" then
  3180. scaler2 = scaler2 - 0.01*value/bonuspeed
  3181. elseif type == "Divide" then
  3182. scaler2 = scaler2 - 0.01/value*bonuspeed
  3183. end
  3184. if chaosmode == true then
  3185. rng.BrickColor = BrickColor.random()
  3186. end
  3187. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3188. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3189. end
  3190. rng:Destroy()
  3191. end))
  3192. end
  3193.  
  3194. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  3195. local type = type
  3196. local rng = Instance.new("Part", char)
  3197. rng.Anchored = true
  3198. rng.BrickColor = color
  3199. rng.CanCollide = false
  3200. rng.FormFactor = 3
  3201. rng.Name = "Ring"
  3202. rng.Material = "Neon"
  3203. rng.Size = Vector3.new(1, 1, 1)
  3204. rng.Transparency = 0
  3205. rng.TopSurface = 0
  3206. rng.BottomSurface = 0
  3207. rng.CFrame = pos
  3208. local rngm = Instance.new("SpecialMesh", rng)
  3209. rngm.MeshType = "Sphere"
  3210. rngm.Scale = scale
  3211. local scaler2 = 1
  3212. local scaler2b = 1
  3213. local scaler2c = 1
  3214. if type == "Add" then
  3215. scaler2 = 1*value
  3216. scaler2b = 1*value2
  3217. scaler2c = 1*value3
  3218. elseif type == "Divide" then
  3219. scaler2 = 1/value
  3220. scaler2b = 1/value2
  3221. scaler2c = 1/value3
  3222. end
  3223. coroutine.resume(coroutine.create(function()
  3224. for i = 0,10/bonuspeed,0.1 do
  3225. swait()
  3226. if type == "Add" then
  3227. scaler2 = scaler2 - 0.01*value/bonuspeed
  3228. scaler2b = scaler2b - 0.01*value/bonuspeed
  3229. scaler2c = scaler2c - 0.01*value/bonuspeed
  3230. elseif type == "Divide" then
  3231. scaler2 = scaler2 - 0.01/value*bonuspeed
  3232. scaler2b = scaler2b - 0.01/value*bonuspeed
  3233. scaler2c = scaler2c - 0.01/value*bonuspeed
  3234. end
  3235. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3236. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3237. end
  3238. rng:Destroy()
  3239. end))
  3240. end
  3241.  
  3242.  
  3243. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  3244. local type = type
  3245. local rotenable = rotatingop
  3246. local rng = Instance.new("Part", char)
  3247. rng.Anchored = true
  3248. rng.BrickColor = color
  3249. rng.CanCollide = false
  3250. rng.FormFactor = 3
  3251. rng.Name = "Ring"
  3252. rng.Material = "Neon"
  3253. rng.Size = Vector3.new(1, 1, 1)
  3254. rng.Transparency = 0
  3255. if typeoftrans == "In" then
  3256. rng.Transparency = 1
  3257. end
  3258. rng.TopSurface = 0
  3259. rng.BottomSurface = 0
  3260. rng.CFrame = pos
  3261. local rngm = Instance.new("SpecialMesh", rng)
  3262. rngm.MeshType = "FileMesh"
  3263. if typeofshape == "Normal" then
  3264. rngm.MeshId = "rbxassetid://662586858"
  3265. elseif typeofshape == "Round" then
  3266. rngm.MeshId = "rbxassetid://662585058"
  3267. end
  3268. rngm.Scale = scale
  3269. local scaler2 = 1/10
  3270. if type == "Add" then
  3271. scaler2 = 1*value/10
  3272. elseif type == "Divide" then
  3273. scaler2 = 1/value/10
  3274. end
  3275. local randomrot = math.random(1,2)
  3276. coroutine.resume(coroutine.create(function()
  3277. for i = 0,10/bonuspeed,0.1 do
  3278. swait()
  3279. if type == "Add" then
  3280. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3281. elseif type == "Divide" then
  3282. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3283. end
  3284. if rotenable == true then
  3285. if randomrot == 1 then
  3286. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3287. elseif randomrot == 2 then
  3288. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3289. end
  3290. end
  3291. if typeoftrans == "Out" then
  3292. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3293. elseif typeoftrans == "In" then
  3294. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3295. end
  3296. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3297. end
  3298. rng:Destroy()
  3299. end))
  3300. end
  3301.  
  3302. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3303. local type = type
  3304. local rng = Instance.new("Part", char)
  3305. rng.Anchored = true
  3306. rng.BrickColor = color
  3307. rng.CanCollide = false
  3308. rng.FormFactor = 3
  3309. rng.Name = "Ring"
  3310. rng.Material = "Neon"
  3311. rng.Size = Vector3.new(1, 1, 1)
  3312. rng.Transparency = 0
  3313. rng.TopSurface = 0
  3314. rng.BottomSurface = 0
  3315. rng.CFrame = pos
  3316. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3317. local rngm = Instance.new("SpecialMesh", rng)
  3318. rngm.MeshType = "Brick"
  3319. rngm.Scale = vt(x1,y1,z1)
  3320. if rainbowmode == true then
  3321. rng.Color = Color3.new(r/255,g/255,b/255)
  3322. end
  3323. local scaler2 = 1
  3324. local speeder = FastSpeed/10
  3325. if type == "Add" then
  3326. scaler2 = 1*value
  3327. elseif type == "Divide" then
  3328. scaler2 = 1/value
  3329. end
  3330. coroutine.resume(coroutine.create(function()
  3331. for i = 0,10/bonuspeed,0.1 do
  3332. swait()
  3333. if rainbowmode == true then
  3334. rng.Color = Color3.new(r/255,g/255,b/255)
  3335. end
  3336. if type == "Add" then
  3337. scaler2 = scaler2 - 0.01*value/bonuspeed
  3338. elseif type == "Divide" then
  3339. scaler2 = scaler2 - 0.01/value*bonuspeed
  3340. end
  3341. if chaosmode == true then
  3342. rng.BrickColor = BrickColor.random()
  3343. end
  3344. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3345. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3346. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3347. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3348. end
  3349. rng:Destroy()
  3350. end))
  3351. end
  3352.  
  3353. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3354. local type = type
  3355. local rng = Instance.new("Part", char)
  3356. rng.Anchored = true
  3357. rng.BrickColor = color
  3358. rng.CanCollide = false
  3359. rng.FormFactor = 3
  3360. rng.Name = "Ring"
  3361. if ModeOfGlitch ~= 666666 then
  3362. rng.Material = "Neon"
  3363. elseif ModeOfGlitch == 666666 then
  3364. rng.Material = "Glass"
  3365. end
  3366. rng.Size = Vector3.new(1, 1, 1)
  3367. rng.Transparency = 0
  3368. rng.TopSurface = 0
  3369. rng.BottomSurface = 0
  3370. rng.CFrame = pos
  3371. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3372. local rngm = Instance.new("SpecialMesh", rng)
  3373. rngm.MeshType = "Brick"
  3374. rngm.Scale = vt(x1,y1,z1)
  3375. if rainbowmode == true then
  3376. rng.Color = Color3.new(r/255,g/255,b/255)
  3377. end
  3378. local scaler2 = 1
  3379. local speeder = FastSpeed/10
  3380. if type == "Add" then
  3381. scaler2 = 1*value
  3382. elseif type == "Divide" then
  3383. scaler2 = 1/value
  3384. end
  3385. coroutine.resume(coroutine.create(function()
  3386. for i = 0,10/bonuspeed,0.1 do
  3387. swait()
  3388. if rainbowmode == true then
  3389. rng.Color = Color3.new(r/255,g/255,b/255)
  3390. end
  3391. if type == "Add" then
  3392. scaler2 = scaler2 - 0.01*value/bonuspeed
  3393. elseif type == "Divide" then
  3394. scaler2 = scaler2 - 0.01/value*bonuspeed
  3395. end
  3396. if chaosmode == true then
  3397. rng.BrickColor = BrickColor.random()
  3398. end
  3399. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3400. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3401. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3402. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3403. end
  3404. rng:Destroy()
  3405. end))
  3406. end
  3407.  
  3408. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3409. local type = type
  3410. local rng = Instance.new("Part", char)
  3411. rng.Anchored = true
  3412. rng.BrickColor = color
  3413. rng.CanCollide = false
  3414. rng.FormFactor = 3
  3415. rng.Name = "Ring"
  3416. rng.Material = "Neon"
  3417. rng.Size = Vector3.new(1, 1, 1)
  3418. rng.Transparency = 0
  3419. rng.TopSurface = 0
  3420. rng.BottomSurface = 0
  3421. rng.CFrame = pos
  3422. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3423. local rngm = Instance.new("SpecialMesh", rng)
  3424. rngm.MeshType = "Brick"
  3425. rngm.Scale = vt(x1,y1,z1)
  3426. if rainbowmode == true then
  3427. rng.Color = Color3.new(r/255,g/255,b/255)
  3428. end
  3429. local scaler2 = 0
  3430. local speeder = FastSpeed/10
  3431. if type == "Add" then
  3432. scaler2 = 1*value
  3433. elseif type == "Divide" then
  3434. scaler2 = 1/value
  3435. end
  3436. coroutine.resume(coroutine.create(function()
  3437. for i = 0,10/bonuspeed,0.1 do
  3438. swait()
  3439. if rainbowmode == true then
  3440. rng.Color = Color3.new(r/255,g/255,b/255)
  3441. end
  3442. if type == "Add" then
  3443. scaler2 = scaler2 - 0.01*value/bonuspeed
  3444. elseif type == "Divide" then
  3445. scaler2 = scaler2 - 0.01/value*bonuspeed
  3446. end
  3447. if chaosmode == true then
  3448. rng.BrickColor = BrickColor.random()
  3449. end
  3450. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3451. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3452. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3453. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3454. end
  3455. rng:Destroy()
  3456. end))
  3457. end
  3458.  
  3459. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3460. local type = type
  3461. local rng = Instance.new("Part", char)
  3462. rng.Anchored = true
  3463. rng.BrickColor = color
  3464. rng.Color = color3
  3465. rng.CanCollide = false
  3466. rng.FormFactor = 3
  3467. rng.Name = "Ring"
  3468. rng.Material = "Neon"
  3469. rng.Size = Vector3.new(1, 1, 1)
  3470. rng.Transparency = 0
  3471. rng.TopSurface = 0
  3472. rng.BottomSurface = 0
  3473. rng.CFrame = pos
  3474. local rngm = Instance.new("SpecialMesh", rng)
  3475. rngm.MeshType = "Brick"
  3476. rngm.Scale = scale
  3477. local scaler2 = 1
  3478. local scaler2b = 1
  3479. local scaler2c = 1
  3480. if type == "Add" then
  3481. scaler2 = 1*value
  3482. scaler2b = 1*value2
  3483. scaler2c = 1*value3
  3484. elseif type == "Divide" then
  3485. scaler2 = 1/value
  3486. scaler2b = 1/value2
  3487. scaler2c = 1/value3
  3488. end
  3489. coroutine.resume(coroutine.create(function()
  3490. for i = 0,10/bonuspeed,0.1 do
  3491. swait()
  3492. if type == "Add" then
  3493. scaler2 = scaler2 - 0.01*value/bonuspeed
  3494. scaler2b = scaler2b - 0.01*value/bonuspeed
  3495. scaler2c = scaler2c - 0.01*value/bonuspeed
  3496. elseif type == "Divide" then
  3497. scaler2 = scaler2 - 0.01/value*bonuspeed
  3498. scaler2b = scaler2b - 0.01/value*bonuspeed
  3499. scaler2c = scaler2c - 0.01/value*bonuspeed
  3500. end
  3501. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3502. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3503. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3504. end
  3505. rng:Destroy()
  3506. end))
  3507. end
  3508.  
  3509. function block2(bonuspeed,aaa,type,pos,scale,value,value2,value3,color,color3)
  3510. local type = type
  3511. local rng = Instance.new("Part", char)
  3512. rng.Anchored = true
  3513. rng.BrickColor = color
  3514. rng.Color = color3
  3515. rng.CanCollide = false
  3516. rng.FormFactor = 3
  3517. rng.Name = "Ring"
  3518. rng.Material = "Neon"
  3519. rng.Size = Vector3.new(1, 1, 1)
  3520. rng.Transparency = 0
  3521. rng.TopSurface = 0
  3522. rng.BottomSurface = 0
  3523. rng.CFrame = pos
  3524. local rngm = Instance.new("SpecialMesh", rng)
  3525. rngm.MeshType = "Brick"
  3526. rngm.Scale = scale
  3527. local scaler2 = 1
  3528. local scaler2b = 1
  3529. local scaler2c = 1
  3530. if type == "Add" then
  3531. scaler2 = 1*value
  3532. scaler2b = 1*value2
  3533. scaler2c = 1*value3
  3534. elseif type == "Divide" then
  3535. scaler2 = 1/value
  3536. scaler2b = 1/value2
  3537. scaler2c = 1/value3
  3538. end
  3539. coroutine.resume(coroutine.create(function()
  3540. for i = 0,10/bonuspeed,aaa do
  3541. swait()
  3542. if type == "Add" then
  3543. scaler2 = scaler2 - 0.01*value/bonuspeed
  3544. scaler2b = scaler2b - 0.01*value/bonuspeed
  3545. scaler2c = scaler2c - 0.01*value/bonuspeed
  3546. elseif type == "Divide" then
  3547. scaler2 = scaler2 - 0.01/value*bonuspeed
  3548. scaler2b = scaler2b - 0.01/value*bonuspeed
  3549. scaler2c = scaler2c - 0.01/value*bonuspeed
  3550. end
  3551. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3552. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3553. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3554. end
  3555. rng:Destroy()
  3556. end))
  3557. end
  3558.  
  3559. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3560. local type = type
  3561. local rng = Instance.new("Part", char)
  3562. rng.Anchored = true
  3563. rng.BrickColor = color
  3564. rng.CanCollide = false
  3565. rng.FormFactor = 3
  3566. rng.Name = "Ring"
  3567. rng.Material = "Neon"
  3568. rng.Size = Vector3.new(1, 1, 1)
  3569. rng.Transparency = 0
  3570. rng.TopSurface = 0
  3571. rng.BottomSurface = 0
  3572. rng.CFrame = pos
  3573. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3574. local rngm = Instance.new("SpecialMesh", rng)
  3575. rngm.MeshType = "Sphere"
  3576. rngm.Scale = vt(x1,y1,z1)
  3577. if rainbowmode == true then
  3578. rng.Color = Color3.new(r/255,g/255,b/255)
  3579. end
  3580. local scaler2 = 1
  3581. local speeder = FastSpeed
  3582. if type == "Add" then
  3583. scaler2 = 1*value
  3584. elseif type == "Divide" then
  3585. scaler2 = 1/value
  3586. end
  3587. coroutine.resume(coroutine.create(function()
  3588. for i = 0,10/bonuspeed,0.1 do
  3589. swait()
  3590. if rainbowmode == true then
  3591. rng.Color = Color3.new(r/255,g/255,b/255)
  3592. end
  3593. if type == "Add" then
  3594. scaler2 = scaler2 - 0.01*value/bonuspeed
  3595. elseif type == "Divide" then
  3596. scaler2 = scaler2 - 0.01/value*bonuspeed
  3597. end
  3598. if chaosmode == true then
  3599. rng.BrickColor = BrickColor.random()
  3600. end
  3601. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3602. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3603. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3604. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3605. end
  3606. rng:Destroy()
  3607. end))
  3608. end
  3609.  
  3610.  
  3611. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3612. local type = type
  3613. local rng = Instance.new("Part", char)
  3614. rng.Anchored = true
  3615. rng.BrickColor = color
  3616. rng.CanCollide = false
  3617. rng.FormFactor = 3
  3618. rng.Name = "Ring"
  3619. rng.Material = "Neon"
  3620. rng.Size = Vector3.new(1, 1, 1)
  3621. rng.Transparency = 1
  3622. rng.TopSurface = 0
  3623. rng.BottomSurface = 0
  3624. rng.CFrame = pos
  3625. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3626. local rngm = Instance.new("SpecialMesh", rng)
  3627. rngm.MeshType = "Sphere"
  3628. rngm.Scale = vt(x1,y1,z1)
  3629. if rainbowmode == true then
  3630. rng.Color = Color3.new(r/255,g/255,b/255)
  3631. end
  3632.  
  3633. local scaler2 = 1
  3634. local speeder = FastSpeed
  3635. if type == "Add" then
  3636. scaler2 = 1*value
  3637. elseif type == "Divide" then
  3638. scaler2 = 1/value
  3639. end
  3640. coroutine.resume(coroutine.create(function()
  3641. for i = 0,10/bonuspeed,0.1 do
  3642. swait()
  3643. if rainbowmode == true then
  3644. rng.Color = Color3.new(r/255,g/255,b/255)
  3645. end
  3646. if type == "Add" then
  3647. scaler2 = scaler2 - 0.01*value/bonuspeed
  3648. elseif type == "Divide" then
  3649. scaler2 = scaler2 - 0.01/value*bonuspeed
  3650. end
  3651. if chaosmode == true then
  3652. rng.BrickColor = BrickColor.random()
  3653. end
  3654. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3655. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3656. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3657. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3658. end
  3659. rng:Destroy()
  3660. end))
  3661. end
  3662.  
  3663. function dmg(dude)
  3664. if dude.Name ~= Character then
  3665. local keptcolor = MAINRUINCOLOR
  3666. local bgf = Instance.new("BodyGyro",dude.Head)
  3667. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3668. --[[local val = Instance.new("BoolValue",dude)
  3669. val.Name = "IsHit"]]--
  3670. local ds = coroutine.wrap(function()
  3671. dude:WaitForChild("Head"):BreakJoints()
  3672. for i, v in pairs(dude:GetChildren()) do
  3673. if v:IsA("Part") or v:IsA("BasePart") then
  3674. v.Name = "DEMINISHED"
  3675. end
  3676. end
  3677. wait(0.5)
  3678. targetted = nil
  3679. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3680. coroutine.resume(coroutine.create(function()
  3681. for i, v in pairs(dude:GetChildren()) do
  3682. if v:IsA("Accessory") then
  3683. v:Destroy()
  3684. end
  3685. if v:IsA("Humanoid") then
  3686. v:Destroy()
  3687. end
  3688. if v:IsA("CharacterMesh") then
  3689. v:Destroy()
  3690. end
  3691. if v:IsA("Model") then
  3692. v:Destroy()
  3693. end
  3694. if v:IsA("Part") or v:IsA("BasePart") then
  3695. for x, o in pairs(v:GetChildren()) do
  3696. if o:IsA("Decal") then
  3697. o:Destroy()
  3698. end
  3699. end
  3700. coroutine.resume(coroutine.create(function()
  3701. v.Material = "Neon"
  3702. v.CanCollide = false
  3703. v.Anchored = false
  3704. local bld = Instance.new("ParticleEmitter",v)
  3705. bld.LightEmission = 0.75
  3706. bld.Texture = "rbxassetid://363275192" ---284205403
  3707. bld.Color = ColorSequence.new(keptcolor.Color)
  3708. bld.Rate = 500
  3709. bld.Lifetime = NumberRange.new(1)
  3710. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3711. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3712. bld.Speed = NumberRange.new(2,5)
  3713. bld.VelocitySpread = 50000
  3714. bld.Rotation = NumberRange.new(-500,500)
  3715. bld.RotSpeed = NumberRange.new(-500,500)
  3716. local sbs = Instance.new("BodyPosition", v)
  3717. sbs.P = 3000
  3718. sbs.D = 1000
  3719. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3720. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3721. v.Color = keptcolor.Color
  3722. coroutine.resume(coroutine.create(function()
  3723. for i = 0, 49 do
  3724. swait(1)
  3725. v:BreakJoints()
  3726. v.Transparency = v.Transparency + 0.02
  3727. end
  3728. v:BreakJoints()
  3729. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3730. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3731. bld.Speed = NumberRange.new(10,25)
  3732. bld.Drag = 5
  3733. bld.Acceleration = vt(0,2,0)
  3734. wait(0.5)
  3735. bld.Enabled = false
  3736. wait(8)
  3737. v:Destroy()
  3738. dude:Destroy()
  3739. end))
  3740. end))
  3741. end
  3742. end
  3743. end))
  3744. end)
  3745. ds()
  3746. end
  3747. end
  3748.  
  3749.  
  3750. function FindNearestHead(Position, Distance, SinglePlayer)
  3751. if SinglePlayer then
  3752. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3753. end
  3754. local List = {}
  3755. for i, v in pairs(workspace:GetChildren()) do
  3756. if v:IsA("Model") then
  3757. if v:findFirstChild("Head") then
  3758. if v ~= Character then
  3759. if (v.Head.Position - Position).magnitude <= Distance then
  3760. table.insert(List, v)
  3761. end
  3762. end
  3763. end
  3764. end
  3765. end
  3766. return List
  3767. end
  3768.  
  3769. function FaceMouse()
  3770. Cam = workspace.CurrentCamera
  3771. return {
  3772. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3773. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3774. }
  3775. end
  3776.  
  3777. function FaceMouse2()
  3778. Cam = workspace.CurrentCamera
  3779. return {
  3780. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3781. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3782. }
  3783. end
  3784.  
  3785.  
  3786. -- Functions are ready.
  3787. local storehumanoidWS = 16
  3788.  
  3789. function createBGCircle(size,parent,color)
  3790. local bgui = Instance.new("BillboardGui",parent)
  3791. bgui.Size = UDim2.new(size, 0, size, 0)
  3792. local imgc = Instance.new("ImageLabel",bgui)
  3793. imgc.BackgroundTransparency = 1
  3794. imgc.ImageTransparency = 0
  3795. imgc.Size = UDim2.new(1,0,1,0)
  3796. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  3797. imgc.ImageColor3 = color
  3798. return bgui,imgc
  3799. end
  3800.  
  3801. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  3802. local bgui,imgc = createBGCircle(size,guipar,color)
  3803. bgui.AlwaysOnTop = true
  3804. imgc.Image = "rbxassetid://" ..img
  3805. local rrot = math.random(1,2)
  3806. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  3807. coroutine.resume(coroutine.create(function()
  3808. for i = 0, 24*delay do
  3809. swait()
  3810. if rotationenabled == true then
  3811. if rrot == 1 then
  3812. imgc.Rotation = imgc.Rotation + rotsp
  3813. elseif rrot == 2 then
  3814. imgc.Rotation = imgc.Rotation - rotsp
  3815. end
  3816. end
  3817. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  3818. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  3819. end
  3820. bgui:Destroy()
  3821. end))
  3822. end
  3823.  
  3824.  
  3825.  
  3826. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled,sectrailenabled,mainenabled)
  3827. for i, v in pairs(mwY:GetChildren()) do
  3828. if v:IsA("Part") then
  3829. v.Color = (typeof(one) == 'Color3' and one or one.Color)
  3830. v.Material = "Neon"
  3831. end
  3832. end
  3833. for i, v in pairs(mw2:GetDescendants()) do
  3834. if v:IsA("Part") or v:IsA("BasePart") then
  3835. v.Color = (typeof(one) == 'Color3' and one or one.Color)
  3836. v.Material = "Neon"
  3837. if mainenabled == true then
  3838. v.Transparency = 0
  3839. elseif mainenabled == false then
  3840. v.Transparency = 1
  3841. end
  3842. elseif v:IsA("Trail") or v:IsA("ParticleEmitter") then
  3843. v.Color = ColorSequence.new((typeof(one) == 'Color3' and one or one.Color))
  3844. if mainenabled == true then
  3845. v.Enabled = true
  3846. elseif mainenabled == false then
  3847. v.Enabled = false
  3848. end
  3849. end
  3850. end
  3851. for i, v in pairs(mw1:GetDescendants()) do
  3852. if v:IsA("Part") or v:IsA("BasePart") then
  3853. v.Color = (typeof(two) == 'Color3' and two or two.Color)
  3854. v.Material = "Neon"
  3855. if secondaryenabled == true then
  3856. v.Transparency = 0
  3857. elseif secondaryenabled == false then
  3858. v.Transparency = 1
  3859. end
  3860. elseif v:IsA("Trail") or v:IsA("ParticleEmitter") then
  3861. v.Color = ColorSequence.new((typeof(two) == 'Color3' and two or two.Color))
  3862. if secondaryenabled == true then
  3863. v.Enabled = true
  3864. elseif secondaryenabled == false then
  3865. v.Enabled = false
  3866. end
  3867. end
  3868. end
  3869. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  3870. symbolizeBlink(root,0,2092248396,(typeof(one) == 'Color3' and one or one.Color),5,3,1,847061203,root,true,10,1)
  3871. symbolizeBlink(root,0,2092248396,(typeof(one) == 'Color3' and one or one.Color),4,0,0,0,root,true,-5,1)
  3872. refec.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3873. for i, v in pairs(m:GetChildren()) do
  3874. if v:IsA("Part") then
  3875. v.BrickColor = three
  3876. v.Material = "Ice"
  3877. end
  3878. end
  3879. for i, v in pairs(m2:GetChildren()) do
  3880. if v:IsA("Part") then
  3881. v.BrickColor = four
  3882. v.Material = "Ice"
  3883. end
  3884. end
  3885. for i, v in pairs(m3:GetChildren()) do
  3886. if v:IsA("Part") then
  3887. v.BrickColor = five
  3888. v.Material = "Neon"
  3889. end
  3890. end
  3891. for i, v in pairs(extrawingmod1:GetChildren()) do
  3892. if v:IsA("Part") then
  3893. v.Transparency = exonetran
  3894. v.BrickColor = exone
  3895. v.Material = "Neon"
  3896. end
  3897. end
  3898. if sectrailenabled == true then
  3899. tl4.Enabled = true
  3900. tl5.Enabled = true
  3901. tl6.Enabled = true
  3902. tr4.Enabled = true
  3903. tr5.Enabled = true
  3904. tr6.Enabled = true
  3905. tl4.Color = ColorSequence.new(exone.Color)
  3906. tl5.Color = ColorSequence.new(exone.Color)
  3907. tl6.Color = ColorSequence.new(exone.Color)
  3908. tr4.Color = ColorSequence.new(extwo.Color)
  3909. tr5.Color = ColorSequence.new(extwo.Color)
  3910. tr6.Color = ColorSequence.new(extwo.Color)
  3911. elseif sectrailenabled == false then
  3912. tl4.Enabled = false
  3913. tl5.Enabled = false
  3914. tl6.Enabled = false
  3915. tr4.Enabled = false
  3916. tr5.Enabled = false
  3917. tr6.Enabled = false
  3918. end
  3919. for i, v in pairs(extrawingmod2:GetChildren()) do
  3920. if v:IsA("Part") then
  3921. v.Transparency = extwotran
  3922. v.BrickColor = extwo
  3923. v.Material = "Neon"
  3924. end
  3925. end
  3926. end
  3927.  
  3928. function attacktwo()
  3929. attack = true
  3930. hum.WalkSpeed = 2
  3931. local keptcolor = MAINRUINCOLOR
  3932. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  3933. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  3934. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  3935. for i = 0, 14 do
  3936. PixelBlock(1,math.random(1,3),"Add",rarm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,SECONDRUINCOLOR,0)
  3937. end
  3938. for i = 0,1,0.1 do
  3939. swait()
  3940. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3941. RH.C0=clerp(RH.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(-5)),.3)
  3942. 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(30),math.rad(0)),.3)
  3943. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  3944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  3945. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  3946. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  3947. end
  3948. for i = 0, 1 do
  3949. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  3950. for i = 0,1,0.6 do
  3951. swait()
  3952. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3953. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  3954. RH.C0=clerp(RH.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(-5)),.6)
  3955. 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(30),math.rad(0)),.6)
  3956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3957. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  3958. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  3959. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  3960. end
  3961. for i = 0,1,0.6 do
  3962. swait()
  3963. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3964. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  3965. RH.C0=clerp(RH.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(-5)),.6)
  3966. 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(30),math.rad(0)),.6)
  3967. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  3968. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  3969. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  3970. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  3971. end
  3972. for i = 0,1,0.6 do
  3973. swait()
  3974. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3975. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  3976. RH.C0=clerp(RH.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(-5)),.6)
  3977. 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(30),math.rad(0)),.6)
  3978. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  3979. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  3980. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  3981. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  3982. end
  3983. for i = 0,1,0.6 do
  3984. swait()
  3985. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3986. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  3987. RH.C0=clerp(RH.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(-5)),.6)
  3988. 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(30),math.rad(0)),.6)
  3989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  3990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  3991. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  3992. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  3993. end
  3994. local rot = 0
  3995. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  3996. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  3997. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  3998. CreateMesh(dis,"Sphere",10,1,10)
  3999. local at1 = Instance.new("Attachment",dis)
  4000. at1.Position = vt(-5,0,0)
  4001. local at2 = Instance.new("Attachment",dis)
  4002. at2.Position = vt(5,0,0)
  4003. local trl = Instance.new('Trail',wed)
  4004. trl.Attachment0 = at1
  4005. trl.Attachment1 = at2
  4006. trl.Texture = "rbxassetid://1049219073"
  4007. trl.LightEmission = 1
  4008. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4009. trl.Color = ColorSequence.new(dis.Color)
  4010. trl.Lifetime = 0.6
  4011. local a = Instance.new("Part",workspace)
  4012. a.Name = "Direction"
  4013. a.Anchored = true
  4014. a.BrickColor = bc("Bright red")
  4015. a.Material = "Neon"
  4016. a.Transparency = 1
  4017. a.CanCollide = false
  4018. local ray = Ray.new(
  4019. dis.CFrame.p, -- origin
  4020. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  4021. )
  4022. local ignore = dis
  4023. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4024. a.BottomSurface = 10
  4025. a.TopSurface = 10
  4026. local distance = (dis.CFrame.p - position).magnitude
  4027. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4028. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  4029. dis.CFrame = a.CFrame
  4030. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4031. a:Destroy()
  4032. local bv = Instance.new("BodyVelocity")
  4033. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4034. bv.velocity = dis.CFrame.lookVector*250
  4035. bv.Parent = dis
  4036. game:GetService("Debris"):AddItem(dis, 5)
  4037. local hitted = false
  4038. coroutine.resume(coroutine.create(function()
  4039. dis.Touched:connect(function(hit)
  4040. if hitted == false and hit.Parent ~= char then
  4041. hitted = true
  4042. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  4043. CamShakeAll({
  4044. Duration=0.4; -- Lasts for .1 seconds
  4045. Intensity=3; -- Intensity of 5
  4046. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4047. Rotation=Vector3.new(2,2,6); -- What axises the shake effects and how much (rotation)
  4048. DropDist=60; -- Camera dist from origin when the shake starts to gradually get weaker
  4049. IneffectiveDist=80; -- Camera dist from origin when the shake goes away
  4050. Origin=dis.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4051. })
  4052. MagniDamage(dis, 30, 13,36, 0, "Normal")
  4053. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  4054. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,SECONDRUINCOLOR,SECONDRUINCOLOR.Color)
  4055. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,SECONDRUINCOLOR,SECONDRUINCOLOR.Color)
  4056. local eff = Instance.new("ParticleEmitter",dis)
  4057. eff.Texture = "rbxassetid://2344870656"
  4058. eff.LightEmission = 1
  4059. eff.Color = ColorSequence.new(dis.Color)
  4060. eff.Rate = 10000000
  4061. eff.Enabled = true
  4062. eff.EmissionDirection = "Front"
  4063. eff.Lifetime = NumberRange.new(1)
  4064. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,20,0),NumberSequenceKeypoint.new(0.8,40,0),NumberSequenceKeypoint.new(1,60,0)})
  4065. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4066. eff.Speed = NumberRange.new(150)
  4067. eff.Drag = 5
  4068. eff.Rotation = NumberRange.new(-500,500)
  4069. eff.SpreadAngle = Vector2.new(0,900)
  4070. eff.RotSpeed = NumberRange.new(-500,500)
  4071. delay(0.2, function() eff.Enabled = false end)
  4072. coroutine.resume(coroutine.create(function()
  4073. for i = 0, 9 do
  4074. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  4075. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4076. local at1 = Instance.new("Attachment",disr)
  4077. at1.Position = vt(-5,0,0)
  4078. local at2 = Instance.new("Attachment",disr)
  4079. at2.Position = vt(5,0,0)
  4080. local trl = Instance.new('Trail',disr)
  4081. trl.Attachment0 = at1
  4082. trl.FaceCamera = true
  4083. trl.Attachment1 = at2
  4084. trl.Texture = "rbxassetid://2342682798"
  4085. trl.LightEmission = 1
  4086. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4087. trl.Color = ColorSequence.new(SECONDRUINCOLOR.Color)
  4088. trl.Lifetime = 0.5
  4089. local bv = Instance.new("BodyVelocity")
  4090. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4091. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  4092. bv.Parent = disr
  4093. local val = 0
  4094. coroutine.resume(coroutine.create(function()
  4095. swait(30)
  4096. for i = 0, 9 do
  4097. swait()
  4098. val = val + 0.1
  4099. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  4100. end
  4101. game:GetService("Debris"):AddItem(disr, 3)
  4102. end))
  4103. end
  4104. local eff = Instance.new("ParticleEmitter",dis)
  4105. eff.Texture = "rbxassetid://2273224484"
  4106. eff.LightEmission = 1
  4107. eff.Color = ColorSequence.new(keptcolor.Color)
  4108. eff.Rate = 500000
  4109. eff.Lifetime = NumberRange.new(0.5,2)
  4110. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4111. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4112. eff.Speed = NumberRange.new(20,250)
  4113. eff.Drag = 5
  4114. eff.Rotation = NumberRange.new(-500,500)
  4115. eff.VelocitySpread = 9000
  4116. eff.RotSpeed = NumberRange.new(-50,50)
  4117. wait(0.25)
  4118. eff.Enabled = false
  4119. end))
  4120. for i = 0, 9 do
  4121. slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,SECONDRUINCOLOR)
  4122. end
  4123. for i = 0, 19 do
  4124. PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,keptcolor,0)
  4125. end
  4126. dis.Anchored = true
  4127. dis.Transparency = 1
  4128. wait(8)
  4129. dis:Destroy()
  4130. end
  4131. end)
  4132. end))
  4133. rot = rot - 15
  4134. end
  4135. for i = 0,2,0.1 do
  4136. swait()
  4137. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  4138. 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(5)),.3)
  4139. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  4140. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  4141. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  4142. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  4143. end
  4144. attack = false
  4145. hum.WalkSpeed = storehumanoidWS
  4146. end
  4147.  
  4148. function attackone()
  4149. attack = true
  4150. symbolizeBlink(sorb,0,2109052855,MAINRUINCOLOR.Color,1.5,5,0.9,1614005837,sorb,true,10,1)
  4151. symbolizeBlink(sorb,0,2109052855,SECONDRUINCOLOR.Color,1.6,5,1,1923591005,sorb,true,10,1)
  4152. symbolizeBlink(sorb,0,2092248396,MAINRUINCOLOR.Color,3,0,0,0,sorb,true,10,1.25)
  4153. symbolizeBlink(sorb,0,2344870656,SECONDRUINCOLOR.Color,10,0,0,0,sorb,true,10,1.5)
  4154. for i = 0,1,0.1 do
  4155. swait()
  4156. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  4157. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  4158. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  4159. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4160. 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)
  4161. 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)
  4162. end
  4163. coroutine.resume(coroutine.create(function()
  4164. local hite = Instance.new("Part", char)
  4165. hite.Anchored = true
  4166. hite.CanCollide = false
  4167. hite.FormFactor = 3
  4168. hite.Name = "Ring"
  4169. hite.Material = "Neon"
  4170. hite.Size = Vector3.new(1, 1, 1)
  4171. hite.Transparency = 1
  4172. hite.TopSurface = 0
  4173. hite.BottomSurface = 0
  4174. local eff = Instance.new("ParticleEmitter",hite)
  4175. eff.Texture = "rbxassetid://2273224484"
  4176. eff.LightEmission = 1
  4177. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4178. eff.Rate = 90000000
  4179. eff.Lifetime = NumberRange.new(0.5,2)
  4180. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4181. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4182. eff.Speed = NumberRange.new(20,90)
  4183. eff.Drag = 5
  4184. eff.Rotation = NumberRange.new(-500,500)
  4185. eff.VelocitySpread = 9000
  4186. eff.RotSpeed = NumberRange.new(-50,50)
  4187. local distlook = 12.5
  4188. for i = 0, 4 do
  4189. swait(4)
  4190. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  4191. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,SECONDRUINCOLOR)
  4192. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  4193. CamShakeAll({
  4194. Duration=0.25; -- Lasts for .1 seconds
  4195. Intensity=1.75; -- Intensity of 5
  4196. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4197. Rotation=Vector3.new(2,2,6); -- What axises the shake effects and how much (rotation)
  4198. DropDist=35; -- Camera dist from origin when the shake starts to gradually get weaker
  4199. IneffectiveDist=65; -- Camera dist from origin when the shake goes away
  4200. Origin=hite.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4201. })
  4202. MagniDamage(hite, 11.5, 10,25, 0, "Normal")
  4203. for i = 0, 21 do
  4204. sphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  4205. sphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,SECONDRUINCOLOR,0)
  4206. end
  4207. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 3, 1)
  4208. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 0.6)
  4209. game:GetService("Debris"):AddItem(hite, 5)
  4210. distlook = distlook + 15
  4211. end
  4212. wait(0.5)
  4213. eff.Enabled = false
  4214. wait(3.1)
  4215. eff:Destroy()
  4216. end))
  4217. for i = 0,2,0.1 do
  4218. swait()
  4219. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  4220. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  4221. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  4222. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  4223. 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)
  4224. 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)
  4225. end
  4226. attack = false
  4227. end
  4228.  
  4229. function attackthree()
  4230. attack = true
  4231. hum.WalkSpeed = 5
  4232. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.5)
  4233. for i = 0,3.5,0.1 do
  4234. swait()
  4235. sphereMK(2.5,-4.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,SECONDRUINCOLOR,200)
  4236. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  4237. 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(30)),.2)
  4238. 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(0),math.rad(-30)),.2)
  4239. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  4240. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  4241. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  4242. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  4243. end
  4244. for i = 0, 24 do
  4245. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,MAINRUINCOLOR)
  4246. end
  4247. CamShakeAll({
  4248. Duration=1; -- Lasts for .1 seconds
  4249. Intensity=2; -- Intensity of 5
  4250. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4251. Rotation=Vector3.new(2,2,6); -- What axises the shake effects and how much (rotation)
  4252. DropDist=50; -- Camera dist from origin when the shake starts to gradually get weaker
  4253. IneffectiveDist=120; -- Camera dist from origin when the shake goes away
  4254. Origin=root.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4255. })
  4256. MagniDamage(root,50,20,45,0,"Normal")
  4257. coroutine.resume(coroutine.create(function()
  4258. for i = 0, 46 do
  4259. swait()
  4260. sphere2(2,"Add",tors.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,7,-0.01,MAINRUINCOLOR)
  4261. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,SECONDRUINCOLOR)
  4262. end
  4263. end))
  4264. CFuncs["Sound"].Create("rbxassetid://206082327", root, 5,1)
  4265. CFuncs["Sound"].Create("rbxassetid://847061203", root, 6,1)
  4266. CFuncs["Sound"].Create("rbxassetid://239000203", root, 5,1)
  4267. CFuncs["Sound"].Create("rbxassetid://579687077", root, 5,0.75)
  4268. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7,1)
  4269. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  4270. CFuncs["Sound"].Create("rbxassetid://782353443", root, 4.5, 1)
  4271. for i = 0,3,0.1 do
  4272. swait()
  4273. 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(-30)),.5)
  4274. 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(0),math.rad(30)),.5)
  4275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  4276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  4277. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  4278. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  4279. end
  4280. hum.WalkSpeed = storehumanoidWS
  4281. attack = false
  4282. end
  4283.  
  4284. local blush = Instance.new("Decal",hed)
  4285. blush.Texture = "rbxassetid://898404027"
  4286. blush.Face = "Front"
  4287. blush.Parent = nil
  4288. blush.Transparency = 1
  4289. ----------------------------------- Abilities
  4290.  
  4291. function ExtinctiveHeartbreak()
  4292. local targetted = nil
  4293. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4294. targetted = mouse.Target.Parent
  4295. end
  4296. if targetted ~= nil then
  4297. attack = true
  4298. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  4299. for i = 0, 9 do
  4300. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  4301. end
  4302. for i = 0, 24 do
  4303. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  4304. end
  4305. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4306. local originalpos = root.CFrame
  4307. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  4308. for i = 0, 9 do
  4309. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  4310. end
  4311. for i = 0, 24 do
  4312. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  4313. end
  4314. hum.WalkSpeed = 0
  4315. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4316. local radm = math.random(1,3)
  4317. if radm == 1 then
  4318. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  4319. elseif radm == 2 then
  4320. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  4321. elseif radm == 3 then
  4322. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  4323. end
  4324. for i = 0,2,0.1 do
  4325. swait()
  4326. 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),math.rad(0)),.4)
  4327. 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(0),math.rad(0)),.4)
  4328. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  4329. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  4330. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  4331. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  4332. end
  4333. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  4334. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  4335. for i = 0,2,0.1 do
  4336. swait()
  4337. coroutine.resume(coroutine.create(function()
  4338. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  4339. for i,v in pairs(targetted:GetChildren()) do
  4340. if v:IsA("Part") or v:IsA("BasePart") then
  4341. v.Velocity = vt(0,0,0)
  4342. end
  4343. end
  4344. end))
  4345. 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(0)),.8)
  4346. 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(10),math.rad(0)),.8)
  4347. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  4348. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  4349. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  4350. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  4351. end
  4352. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  4353. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  4354. for i = 0, 1 do
  4355. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  4356. end
  4357. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  4358. chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  4359. for i = 0,4,0.1 do
  4360. swait()
  4361. coroutine.resume(coroutine.create(function()
  4362. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  4363. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4364. local at1 = Instance.new("Attachment",dis)
  4365. at1.Position = vt(-25000,0,0)
  4366. local at2 = Instance.new("Attachment",dis)
  4367. at2.Position = vt(25000,0,0)
  4368. local trl = Instance.new('Trail',dis)
  4369. trl.Attachment0 = at1
  4370. trl.FaceCamera = true
  4371. trl.Attachment1 = at2
  4372. trl.Texture = "rbxassetid://1049219073"
  4373. trl.LightEmission = 1
  4374. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4375. trl.Color = ColorSequence.new(SECONDRUINCOLOR.Color)
  4376. trl.Lifetime = 5
  4377. local bv = Instance.new("BodyVelocity")
  4378. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4379. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  4380. bv.Parent = dis
  4381. game:GetService("Debris"):AddItem(dis, 5)
  4382. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  4383. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  4384. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  4385. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  4386. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  4387. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  4388. sphere2(5,"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(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  4389. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  4390. for i = 0, 2 do
  4391. slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,SECONDRUINCOLOR)
  4392. end
  4393. symbolizeBlink(targetted.Head,0,2092248396,MAINRUINCOLOR.Color,math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  4394. for i,v in pairs(targetted:GetChildren()) do
  4395. if v:IsA("Part") or v:IsA("BasePart") then
  4396. v.Velocity = vt(0,0,0)
  4397. end
  4398. end
  4399. end))
  4400. CamShakeAll({
  4401. Duration=.1; -- Lasts for .1 seconds
  4402. Intensity=5; -- Intensity of 5
  4403. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4404. Rotation=Vector3.new(2,2,6); -- What axises the shake effects and how much (rotation)
  4405. DropDist=200; -- Camera dist from origin when the shake starts to gradually get weaker
  4406. IneffectiveDist=300; -- Camera dist from origin when the shake goes away
  4407. Origin=sorb.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4408. })
  4409. 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(0)),.8)
  4410. 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(10),math.rad(0)),.8)
  4411. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  4412. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  4413. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
  4414. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  4415. end
  4416. for i = 0, 49 do
  4417. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  4418. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4419. local at1 = Instance.new("Attachment",dis)
  4420. at1.Position = vt(-50000,0,0)
  4421. local at2 = Instance.new("Attachment",dis)
  4422. at2.Position = vt(50000,0,0)
  4423. local trl = Instance.new('Trail',dis)
  4424. trl.Attachment0 = at1
  4425. trl.FaceCamera = true
  4426. trl.Attachment1 = at2
  4427. trl.Texture = "rbxassetid://1049219073"
  4428. trl.LightEmission = 1
  4429. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4430. trl.Color = ColorSequence.new(SECONDRUINCOLOR.Color)
  4431. trl.Lifetime = 5
  4432. local bv = Instance.new("BodyVelocity")
  4433. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4434. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  4435. bv.Parent = dis
  4436. game:GetService("Debris"):AddItem(dis, 5)
  4437. end
  4438. for i = 0, 49 do
  4439. sphere2(math.random(10,75)/10,"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(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  4440. slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,MAINRUINCOLOR)
  4441. end
  4442. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  4443. for i = 0, 1 do
  4444. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  4445. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  4446. end
  4447. for i = 0, 4 do
  4448. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  4449. end
  4450. symbolizeBlink(targetted.Head,0,2109052855,MAINRUINCOLOR.Color,30,0,0,0,root,false,0,1)
  4451. symbolizeBlink(targetted.Head,0,2109052855,MAINRUINCOLOR.Color,30,0,0,0,root,false,0,2)
  4452. symbolizeBlink(targetted.Head,0,2109052855,MAINRUINCOLOR.Color,30,0,0,0,root,false,0,4)
  4453. dmg(targetted)
  4454. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  4455. for i = 0, 9 do
  4456. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  4457. end
  4458. for i = 0, 24 do
  4459. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  4460. end
  4461. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4462. root.CFrame = originalpos
  4463. for i = 0, 9 do
  4464. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  4465. end
  4466. for i = 0, 24 do
  4467. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  4468. end
  4469. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4470. attack = false
  4471. hum.WalkSpeed = storehumanoidWS
  4472. end
  4473. end
  4474.  
  4475. local stealth = false
  4476. function StealthWarped()
  4477. if stealth then
  4478. return
  4479. end
  4480. attack = true
  4481. stealth = true
  4482. hum.WalkSpeed = 0
  4483. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  4484. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  4485. for i = 0, 4, 0.1 do
  4486. swait()
  4487. block(10,"Add",sorb.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  4488. block(10,"Add",sorb2.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  4489. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4490. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4491. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4492. end
  4493. sphere2(4,"Add",sorb2.CFrame,vt(5,5,5),0.1,0.1,0.1,MAINRUINCOLOR)
  4494. sphere2(2,"Add",sorb2.CFrame,vt(5,5,5),0.1,0.1,0.1,MAINRUINCOLOR)
  4495. sphere2(4,"Add",sorb.CFrame,vt(5,5,5),0.1,0.1,0.1,MAINRUINCOLOR)
  4496. sphere2(2,"Add",sorb.CFrame,vt(5,5,5),0.1,0.1,0.1,MAINRUINCOLOR)
  4497. CFuncs["Sound"].Create("rbxassetid://840567549", root, 10, 1)
  4498. newTheme("rbxassetid://0",48.6,1,0.8)
  4499. char.Head.Transparency = 0.5
  4500. char["Left Arm"].Transparency = 0.5
  4501. char["Left Leg"].Transparency = 0.5
  4502. char["Right Arm"].Transparency = 0.5
  4503. char["Right Leg"].Transparency = 0.5
  4504. char.Torso.Transparency = 0.5
  4505. attack = false
  4506. hum.WalkSpeed = 60
  4507. storehumanoidWS = 60
  4508. swait(400)
  4509. char.Head.Transparency = 0
  4510. char["Left Arm"].Transparency = 0
  4511. char["Left Leg"].Transparency = 0
  4512. char["Right Arm"].Transparency = 0
  4513. char["Right Leg"].Transparency = 0
  4514. char.Torso.Transparency = 0
  4515. stealth = false
  4516. storehumanoidWS = 16
  4517. hum.WalkSpeed = storehumanoidWS
  4518. newTheme("rbxassetid://1119453744",48.6,1,0.8)
  4519. end
  4520.  
  4521. function QuickSnap()
  4522. hum.WalkSpeed = 1
  4523. attack = true
  4524. for i = 0,0.5,0.1 do
  4525. swait()
  4526. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4527. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4528. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4529. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.2)
  4530. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(50)),.2)
  4531. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-50)),.2)
  4532. end
  4533. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  4534. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,SECONDRUINCOLOR)
  4535. for i = 0, 24 do
  4536. slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,SECONDRUINCOLOR)
  4537. end
  4538. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  4539. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  4540. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  4541. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  4542. local eff = Instance.new("ParticleEmitter",sorb2)
  4543. eff.Texture = "rbxassetid://2273224484"
  4544. eff.LightEmission = 1
  4545. eff.Color = ColorSequence.new(SECONDRUINCOLOR.Color)
  4546. eff.Rate = 900000000
  4547. eff.Lifetime = NumberRange.new(0.5,2)
  4548. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,8,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4549. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4550. eff.Speed = NumberRange.new(50,250)
  4551. eff.Drag = 5
  4552. eff.Rotation = NumberRange.new(-500,500)
  4553. eff.VelocitySpread = 9000
  4554. eff.RotSpeed = NumberRange.new(-50,50)
  4555. local eff2 = eff:Clone()
  4556. eff2.Parent = sorb
  4557. eff2.LightEmission = 0
  4558. eff2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4559. for i = 0,4,0.1 do
  4560. swait(1)
  4561. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  4562. local dis = CreateParta(char,0.25,1,"Neon",SECONDRUINCOLOR)
  4563. CreateMesh(dis,"Sphere",1,1,1)
  4564. dis.Anchored = true
  4565. dis.CFrame = sorb2.CFrame
  4566. local dis2 = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  4567. CreateMesh(dis2,"Sphere",1,1,1)
  4568. dis2.Anchored = true
  4569. dis2.CFrame = sorb.CFrame
  4570. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  4571. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  4572. game:GetService("Debris"):AddItem(dis, 5)
  4573. game:GetService("Debris"):AddItem(dis2, 5)
  4574. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 1.5),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 3))),.2)
  4575. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 1.5),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 3))),.2)
  4576. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 1.5))*angles(math.rad(25 - 4 * math.cos(sine / 1.5)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 3))),.2)
  4577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 1.5)),math.rad(0),math.rad(0 + 1 * math.cos(sine / 3))),.2)
  4578. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70 + 4 * math.cos(sine / 1.5)),math.rad(0),math.rad(70)),.2)
  4579. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70 + 4 * math.cos(sine / 1.5)),math.rad(0),math.rad(-70)),.2)
  4580. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(1,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.25,0.25,3,-0.00375,MAINRUINCOLOR,0)
  4581. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(1,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.25,0.25,3,-0.00375,SECONDRUINCOLOR,0)
  4582. coroutine.resume(coroutine.create(function()
  4583. swait(5)
  4584. coroutine.resume(coroutine.create(function()
  4585. CamShakeAll({
  4586. Duration=0.25; -- Lasts for .1 seconds
  4587. Intensity=0.9; -- Intensity of 5
  4588. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4589. Rotation=Vector3.new(2,2,6); -- What axises the shake effects and how much (rotation)
  4590. DropDist=75; -- Camera dist from origin when the shake starts to gradually get weaker
  4591. IneffectiveDist=125; -- Camera dist from origin when the shake goes away
  4592. Origin=dis.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4593. })
  4594. CamShakeAll({
  4595. Duration=0.25; -- Lasts for .1 seconds
  4596. Intensity=0.9; -- Intensity of 5
  4597. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4598. Rotation=Vector3.new(2,2,6); -- What axises the shake effects and how much (rotation)
  4599. DropDist=75; -- Camera dist from origin when the shake starts to gradually get weaker
  4600. IneffectiveDist=125; -- Camera dist from origin when the shake goes away
  4601. Origin=dis2.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4602. })
  4603. end))
  4604. swait(20)
  4605. dis.Transparency = 1
  4606. dis2.Transparency = 1
  4607. MagniDamage(dis, 55, 50,99, 0, "Normal")
  4608. MagniDamage(dis2, 55, 50,99, 0, "Normal")
  4609. for i = 0, 2 do
  4610. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis.BrickColor)
  4611. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis2.BrickColor)
  4612. end
  4613. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  4614. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  4615. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  4616. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  4617. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  4618. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  4619. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  4620. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  4621. dis:Destroy()
  4622. dis2:Destroy()
  4623. end))
  4624. end
  4625. eff.Enabled=false
  4626. eff2.Enabled=false
  4627. attack = false
  4628. hum.WalkSpeed = storehumanoidWS
  4629. wait(2)
  4630. eff:Destroy()
  4631. eff2:Destroy()
  4632. end
  4633.  
  4634. function Ballesta_Shards()
  4635. attack = true
  4636. hum.WalkSpeed = 2
  4637. local keptcolor = BrickColor.new("Really red")
  4638. local keptcolor2 = SECONDRUINCOLOR
  4639. local rval = 0
  4640. local eval = 1
  4641. for i = 0,3,0.1 do
  4642. swait()
  4643. rval = rval + 30
  4644. eval = eval + 1.5
  4645. slash(math.random(40,70)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01*rval/25,0.002,0.01*rval/25),math.random(5,20)/250,keptcolor2)
  4646. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4647. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4648. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  4649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3)
  4650. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3)
  4651. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3)
  4652. end
  4653. for i = 0, 19 do
  4654. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.002,0.01),math.random(150,250)/250,keptcolor2)
  4655. end
  4656. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 4,1)
  4657. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  4658. CFuncs["Sound"].Create("rbxassetid://1310128035", root, 9, 0.9)
  4659. CFuncs["Sound"].Create("rbxassetid://199145739", root, 3,1)
  4660. MagniDamage(root, 50, 40,50, 0, "Normal")
  4661. sphere2(2,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),2,2,2,keptcolor,keptcolor.Color)
  4662. sphere2(3,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),2,2,2,keptcolor2,keptcolor2.Color)
  4663.  
  4664. coroutine.resume(coroutine.create(function()
  4665. for i = 0, 51 do
  4666. swait()
  4667. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  4668. dis.BrickColor = keptcolor
  4669. dis.Anchored = true
  4670. local at1 = Instance.new("Attachment",dis)
  4671. at1.Position = vt(-0.25,0,0)
  4672. local at2 = Instance.new("Attachment",dis)
  4673. at2.Position = vt(0.25,0,0)
  4674. local trl = Instance.new('Trail',dis)
  4675. trl.Attachment0 = at1
  4676. trl.FaceCamera = true
  4677. trl.Attachment1 = at2
  4678. trl.Texture = "rbxassetid://1049219073"
  4679. trl.LightEmission = 1
  4680. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4681. trl.Color = ColorSequence.new(dis.Color)
  4682. trl.Lifetime = 0.6
  4683. dis.Velocity = vt(math.random(-50,50),math.random(125,210),math.random(-50,50))
  4684. CFuncs["Sound"].Create("rbxassetid://199145967", dis, 0.1,1)
  4685. dis.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(5,25),math.random(-3,3))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4686. CreateMesh(dis,"Sphere",0.5,0.5,4)
  4687. dis.Anchored = false
  4688. coroutine.resume(coroutine.create(function()
  4689. wait(1)
  4690. local a = Instance.new("Part",workspace)
  4691. a.Name = "Direction"
  4692. a.Anchored = true
  4693. a.BrickColor = bc("Bright red")
  4694. a.Material = "Neon"
  4695. a.Transparency = 1
  4696. a.CanCollide = false
  4697. local ray = Ray.new(
  4698. dis.CFrame.p, -- origin
  4699. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  4700. )
  4701. local ignore = dis
  4702. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4703. a.BottomSurface = 10
  4704. a.TopSurface = 10
  4705. local distance = (dis.CFrame.p - position).magnitude
  4706. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4707. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  4708. dis.CFrame = a.CFrame
  4709. a:Destroy()
  4710. local bv = Instance.new("BodyVelocity")
  4711. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4712. bv.velocity = dis.CFrame.lookVector*200
  4713. bv.Parent = dis
  4714. game:GetService("Debris"):AddItem(dis, 5)
  4715. local hitted = false
  4716. coroutine.resume(coroutine.create(function()
  4717. dis.Touched:connect(function(hit)
  4718. if hitted == false and hit.Parent ~= char then
  4719. hitted = true
  4720. CFuncs["Sound"].Create("rbxassetid://199146035", dis, 1.5,1)
  4721. MagniDamage(dis, 20, 10,20, 0, "Normal")
  4722. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor2,keptcolor2.Color)
  4723. sphere2(8,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  4724. coroutine.resume(coroutine.create(function()
  4725. local eff = Instance.new("ParticleEmitter",dis)
  4726. eff.Texture = "rbxassetid://2344870656"
  4727. eff.LightEmission = 1
  4728. eff.Color = ColorSequence.new(dis.Color)
  4729. eff.Rate = 10000000
  4730. eff.Enabled = true
  4731. --eff.EmissionDirection = "Front"
  4732. eff.Lifetime = NumberRange.new(0.5)
  4733. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,20,0),NumberSequenceKeypoint.new(1,30,0)})
  4734. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4735. eff.Speed = NumberRange.new(100)
  4736. eff.Drag = 5
  4737. eff.Rotation = NumberRange.new(-500,500)
  4738. eff.SpreadAngle = Vector2.new(0,900)
  4739. eff.RotSpeed = NumberRange.new(-500,500)
  4740. wait(0.1)
  4741. eff.Enabled = false
  4742. end))
  4743. coroutine.resume(coroutine.create(function()
  4744. local eff = Instance.new("ParticleEmitter",dis)
  4745. eff.Texture = "rbxassetid://695499847"
  4746. eff.LightEmission = 1
  4747. eff.Color = ColorSequence.new(dis.Color)
  4748. eff.Rate = 500000
  4749. eff.Lifetime = NumberRange.new(0.5,2)
  4750. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4751. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4752. eff.Speed = NumberRange.new(20,150)
  4753. eff.Drag = 5
  4754. eff.Rotation = NumberRange.new(-500,500)
  4755. eff.VelocitySpread = 9000
  4756. eff.RotSpeed = NumberRange.new(-150,150)
  4757. wait(0.5)
  4758. eff.Enabled = false
  4759. end))
  4760. dis.Anchored = true
  4761. dis.Transparency = 1
  4762. wait(8)
  4763. dis:Destroy()
  4764. end
  4765. end)
  4766. end))
  4767. end))
  4768. end
  4769. end))
  4770. coroutine.resume(coroutine.create(function()
  4771. local eff = Instance.new("ParticleEmitter",root)
  4772. eff.Texture = "rbxassetid://695499847"
  4773. eff.LightEmission = 0
  4774. eff.Color = ColorSequence.new(BrickColor.new("Crimson").Color)
  4775. eff.Rate = 500000
  4776. eff.Lifetime = NumberRange.new(0.5,2)
  4777. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.2,3,0),NumberSequenceKeypoint.new(0.8,3,0),NumberSequenceKeypoint.new(1,0,0)})
  4778. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4779. eff.Speed = NumberRange.new(30,250)
  4780. eff.Drag = 5
  4781. eff.Rotation = NumberRange.new(-500,500)
  4782. eff.VelocitySpread = 9000
  4783. eff.RotSpeed = NumberRange.new(-150,150)
  4784. wait(1.5)
  4785. eff.Enabled = false
  4786. end))
  4787. local eval2 = 1
  4788. sphere2(1,"Add",root.CFrame,vt(12.5,1,12.5),-0.05,3,-0.05,keptcolor)
  4789. sphere2(1,"Add",root.CFrame,vt(25,1,25),-0.1,6,-0.1,keptcolor2)
  4790. CamShakeAll({
  4791. Duration=0.6; -- Lasts for .1 seconds
  4792. Intensity=2; -- Intensity of 5
  4793. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4794. Rotation=Vector3.new(2,2,4); -- What axises the shake effects and how much (rotation)
  4795. DropDist=130; -- Camera dist from origin when the shake starts to gradually get weaker
  4796. IneffectiveDist=165; -- Camera dist from origin when the shake goes away
  4797. Origin=root.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4798. })
  4799. for i = 0,9,0.1 do
  4800. swait()
  4801. rval = rval + 20
  4802. eval = eval + 1.5
  4803. eval2 = eval2 + 10
  4804. slash(math.random(40,70)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,3.5,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01*eval2/60,0.002,0.01*eval2/60),math.random(5,20)/250,MAINRUINCOLOR)
  4805. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1)
  4806. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1)
  4807. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  4808. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  4809. RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
  4810. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
  4811. end
  4812. attack = false
  4813. hum.WalkSpeed = storehumanoidWS
  4814. end
  4815.  
  4816.  
  4817. function CursedSlash()
  4818. attack = true
  4819. hum.WalkSpeed = 2
  4820. local keptcolor = BrickColor.new("Black")
  4821. local keptcolor2 = SECONDRUINCOLOR
  4822. for i = 0,3,0.1 do
  4823. swait()
  4824. slash(math.random(80,90),90,true,"Round","Add","In",sword.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-90,90))),vt(0.01*2/60,0.002,0.01*2/60),math.random(5,20)/250,MAINRUINCOLOR)
  4825. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-5),math.rad(90),math.rad(-5)),.1)
  4826. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(5),math.rad(-90),math.rad(5)),.1)
  4827. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.001 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20 - 1 * math.cos(sine / 44))),.1)
  4828. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0 - 1.5 * math.cos(sine / 32)), math.rad(0 - 0.5 * math.cos(sine / 32)), math.rad(0 - 0.5 * math.cos(sine / 32))), 0.1)
  4829. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(162 - 2 * math.cos(sine / 32)), math.rad(35), math.rad(-5 + 1.5 * math.cos(sine / 32))), 0.1)
  4830. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(15 - 2 * math.cos(sine / 32)), math.rad(0), math.rad(15 - 2 * math.cos(sine / 32))), 0.1)
  4831. end
  4832. MagniDamage(sword, 2, 15,30, 0, "Normal")
  4833. CamShakeAll({
  4834. Duration=0.6; -- Lasts for .1 seconds
  4835. Intensity=2; -- Intensity of 5
  4836. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4837. Rotation=Vector3.new(2,2,4); -- What axises the shake effects and how much (rotation)
  4838. DropDist=130; -- Camera dist from origin when the shake starts to gradually get weaker
  4839. IneffectiveDist=165; -- Camera dist from origin when the shake goes away
  4840. Origin=root.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4841. })
  4842. for i = 0,9,0.1 do
  4843. swait()
  4844. slash(math.random(40,70)/10,5,true,"Round","Add","Out",sword.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-90,90))),vt(0.01*2/60,0.002,0.01*2/60),math.random(5,20)/250,MAINRUINCOLOR)
  4845. MagniDamage(sword, 10, 1,5, 0, "Normal")
  4846. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-5),math.rad(90),math.rad(-5)),.1)
  4847. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(5),math.rad(-90),math.rad(5)),.1)
  4848. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.001 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20 - 1 * math.cos(sine / 44))),.1)
  4849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  4850. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),-0.2)*angles(math.rad(17),math.rad(-360),math.rad(-15)),.1)
  4851. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.1)
  4852. end
  4853. attack = false
  4854. hum.WalkSpeed = storehumanoidWS
  4855. end
  4856. function desstomp()
  4857. attack = true
  4858. bosschatfunc("To the depths of hell...",MAINRUINCOLOR.Color,4)
  4859. for i = 0, 8, 0.1 do
  4860. swait()
  4861. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4862. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4863. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.4 + 0.5 * math.cos(sine / 32))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4864. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4865. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4866. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4867. end
  4868. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  4869. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  4870. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 105)) do
  4871. if v:FindFirstChild('Head') then
  4872. dmg(v)
  4873. end
  4874. end
  4875. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,MAINRUINCOLOR)
  4876. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,MAINRUINCOLOR)
  4877. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(200,0.1,200),0.01,MAINRUINCOLOR)
  4878. bosschatfunc("YOU GO!",MAINRUINCOLOR.Color,4)
  4879. CamShakeAll({
  4880. Duration=0.2; -- Lasts for .1 seconds
  4881. Intensity=4; -- Intensity of 5
  4882. Position=Vector3.new(2,2,2); -- What axises the shake effects and how much (position)
  4883. Rotation=Vector3.new(2,2,4); -- What axises the shake effects and how much (rotation)
  4884. DropDist=200; -- Camera dist from origin when the shake starts to gradually get weaker
  4885. IneffectiveDist=250; -- Camera dist from origin when the shake goes away
  4886. Origin=root.Position; -- Where the shake is coming from (Part, CFrame, or Vector3)
  4887. })
  4888. for i = 0, 6, 0.1 do
  4889. swait()
  4890. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-105,105),-5,math.random(-105,105))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  4891. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-105,105),-5,math.random(-105,105))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  4892. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4893. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4894. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4895. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  4896. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.4)
  4897. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.4)
  4898. end
  4899. attack = false
  4900. end
  4901. function destaunt()
  4902. attack = true
  4903. bosschatfunc("Did you expect a different and more recognisable name? My bad.",MAINRUINCOLOR.Color,4)
  4904. for i = 0,20,0.1 do
  4905. swait()
  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(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  4907. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  4908. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.4 + 0.5 * math.cos(sine / 32))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-35)),.1)
  4909. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 5 * math.cos(sine / 10)),math.rad(0),math.rad(34)),.1)
  4910. RW.C0=clerp(RW.C0,cf(1.3,0.5 + 0.1 * math.cos(sine / 70),-0.9)*angles(math.rad(120 + 1 * math.cos(sine / 0.0001) ),math.rad(0),math.rad(-90 + 1 * math.cos(sine / 0.0001))),.1)
  4911. LW.C0=clerp(LW.C0,cf(-1.1,0.6 + 0.1 * math.cos(sine / 28),0.2)*angles(math.rad(220),math.rad(0),math.rad(45 + 1 * math.cos(sine / 50))),.1)
  4912. end
  4913. attack = false
  4914. end
  4915. -------------------------------------
  4916.  
  4917. if Humanoid:findFirstChild("Animator")~=nil then
  4918. Humanoid:findFirstChild("Animator").Parent=nil
  4919. end
  4920.  
  4921. if Character:findFirstChild("Animate")~=nil then
  4922. Character:findFirstChild("Animate").Parent=nil
  4923. end
  4924. local TransformCD = false
  4925. hum.WalkSpeed = 16
  4926. -------------------------------------
  4927.  
  4928. local NewInstance = function(instance,parent,properties)
  4929. local inst = Instance.new(instance,parent)
  4930. if(properties)then
  4931. for i,v in next, properties do
  4932. pcall(function() inst[i] = v end)
  4933. end
  4934. end
  4935. return inst;
  4936. end
  4937.  
  4938. local attacktype = 1
  4939. mouse.Button1Down:connect(function()
  4940. if attack == false and attacktype == 1 then
  4941. attacktype = 2
  4942. attackone()
  4943. elseif attack == false and attacktype == 2 then
  4944. attacktype = 3
  4945. attacktwo()
  4946. elseif attack == false and attacktype == 3 then
  4947. attacktype = 1
  4948. attackthree()
  4949. elseif attack == false and attacktype == 4 then
  4950. attacktype = 1
  4951. --attackfour()
  4952. end
  4953. end)
  4954.  
  4955. local modeInformation={
  4956. {Name='COMMOTIAUS',ThemePitch=1,Walkspeed=16,Rainbow=false,Chaos=false,Theme="rbxassetid://2071274388",Volume=1.2,TextColor=BrickColor.new("Bright bluish green").Color,Stroke=Color3.new(0,0.3,1),Font='SciFi',MainColor=BrickColor.new("Bright bluish green"),SecColor=BrickColor.new("Pastel light blue"),WingColor1=BrickColor.new("Bright bluish green"),WingColor2=BrickColor.new("Bright bluish green"),ExWing1={Trans=1,Color=BrickColor.new("Bright bluish green")},ExWing2={Trans=1,Color=BrickColor.new("Bright bluish green")},SecondWing=true,SecondTrail=false,MainTrail=false};
  4957. {Name='DURABITINE',ThemePitch=1,Walkspeed=12,Rainbow=false,Chaos=false,Theme="rbxassetid://692083837",Volume=1.2,TextColor=BrickColor.new("Earth green").Color,Stroke=BrickColor.new("Forest green").Color,Font='Bodoni',MainColor=BrickColor.new("Earth green"),SecColor=BrickColor.new("Forest green"),WingColor1=BrickColor.new("Earth green"),WingColor2=BrickColor.new("Forest green"),ExWing1={Trans=1,Color=BrickColor.new("Earth green")},ExWing2={Trans=1,Color=BrickColor.new("Earth green")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4958. {Name='ENCHANTER',ThemePitch=1,Walkspeed=19,Rainbow=false,Chaos=false,Theme="rbxassetid://436447939",Volume=1.2,TextColor=Color3.new(0.1,0.1,0.1),Stroke=BrickColor.new"Royal purple".Color,Font='Antique',MainColor=BrickColor.new("Mulberry"),SecColor=BrickColor.new("Royal purple"),WingColor1=BrickColor.new("Mulberry"),WingColor2=BrickColor.new("Royal purple"),ExWing1={Trans=1,Color=BrickColor.new("Mulberry")},ExWing2={Trans=1,Color=BrickColor.new("Mulberry")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4959. {Name='LACONISM',ThemePitch=.8,Walkspeed=9,Rainbow=false,Chaos=false,Theme="rbxassetid://2668496921",Volume=1.3,TextColor=Color3.new(0,0,0),Stroke=BrickColor.new("Really black").Color,Font='Cartoon',MainColor=BrickColor.new("Really black"),SecColor=BrickColor.new("Really black"),WingColor1=BrickColor.new("Really black"),WingColor2=BrickColor.new("Really black"),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Really black")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4960. {Name='METALEMPSYSIS',ThemePitch=1,Walkspeed=37,Rainbow=false,Chaos=false,Theme="rbxassetid://1880845619",Volume=1.1,TextColor=Color3.new(0,0,0),Stroke=Color3.new(0.02,0.02,0.02),Font='SciFi',MainColor=BrickColor.new("Really black"),SecColor=BrickColor.new("Really black"),WingColor1=BrickColor.new("Really black"),WingColor2=BrickColor.new("Really black"),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Really black")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4961. {Name='AMBUSTUME',ThemePitch=1,Walkspeed=37,Rainbow=false,Chaos=false,Theme="rbxassetid://1290419263",Volume=0.9,TextColor=Color3.new(143/255, 76/255, 42/255),Stroke=Color3.new(86/255, 36/255, 36/255),Font='Bodoni',MainColor=BrickColor.new("Rust"),SecColor=BrickColor.new("Cocoa"),WingColor1=BrickColor.new("Rust"),WingColor2=BrickColor.new("Rust"),ExWing1={Trans=1,Color=BrickColor.new("Cocoa")},ExWing2={Trans=1,Color=BrickColor.new("Cocoa")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4962. {Name='CURSED',ThemePitch=0.5,Walkspeed=20,Rainbow=false,Chaos=false,Theme="rbxassetid://343860759",Volume=1.2,TextColor=Color3.new(0,0,0),Stroke=BrickColor.new"Dark stone grey".Color,Font='Bodoni',MainColor=BrickColor.new("Really black"),SecColor=BrickColor.new("Black"),WingColor1=BrickColor.new("Really black"),WingColor2=BrickColor.new("Really black"),ExWing1={Trans=1,Color=BrickColor.new("Black")},ExWing2={Trans=1,Color=BrickColor.new("Black")},SecondWing=true,SecondTrail=false,MainTrail=false};
  4963. {Name='ACCESSIONIST',ThemePitch=1,Walkspeed=100,Rainbow=false,Chaos=false,Theme="rbxassetid://227551982",Volume=1.2,TextColor=Color3.new(239/255, 184/255, 56/255),Stroke=BrickColor.new"White".Color,Font='SourceSansBold',MainColor=BrickColor.new("White"),SecColor=BrickColor.new("Daisy orange"),WingColor1=BrickColor.new("White"),WingColor2=BrickColor.new("Daisy orange"),ExWing1={Trans=1,Color=BrickColor.new("White")},ExWing2={Trans=1,Color=BrickColor.new("Daisy orange")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4964. {Name='DESCENTED',ThemePitch=0.81,Walkspeed=55,Rainbow=false,Chaos=false,Theme="rbxassetid://150384451",Volume=1.2,TextColor=BrickColor.new"Alder".Color,Stroke=BrickColor.new"Cyan".Color,Font='Garamond',MainColor=BrickColor.new("Alder"),SecColor=BrickColor.new("Cyan"),WingColor1=BrickColor.new("Alder"),WingColor2=BrickColor.new("Cyan"),ExWing1={Trans=1,Color=BrickColor.new("White")},ExWing2={Trans=1,Color=BrickColor.new("Cyan")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4965. {Name='DISGUITIVE',ThemePitch=1,Walkspeed=125,Rainbow=false,Chaos=false,Theme="rbxassetid://189701469",Volume=1.2,TextColor=Color3.new(0,0,0.5),Stroke=BrickColor.new"Really blue".Color,Font='Arcade',MainColor=BrickColor.new("Navy blue"),SecColor=BrickColor.new("Navy blue"),WingColor1=BrickColor.new("Navy blue"),WingColor2=BrickColor.new("Really blue"),ExWing1={Trans=1,Color=BrickColor.new("Mulberry")},ExWing2={Trans=1,Color=BrickColor.new("Mulberry")},SecondWing=false,SecondTrail=false,MainTrail=true};
  4966. {Name='SHAMBOLIACY',ThemePitch=1,Walkspeed=65,Rainbow=false,Chaos=false,Theme="rbxassetid://668243190",Volume=1.25,TextColor=Color3.new(0.1,0.1,0.1),Stroke=Color3.new(0.35,0,0),Font='SciFi',MainColor=BrickColor.new("Maroon"),SecColor=BrickColor.new("Really black"),WingColor1=BrickColor.new("Maroon"),WingColor2=BrickColor.new("Really black"),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Black")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4967. {Name='STEALTH',ThemePitch=1,Walkspeed=16,Rainbow=false,Chaos=false,Theme="rbxassetid://1119453744",Volume=0.8,TextColor=Color3.new(0.15,0.15,0.15),Stroke=Color3.new(0.3,0.3,0.3),Font='Antique',MainColor=BrickColor.new("Dark stone grey"),SecColor=BrickColor.new("Light blue"),WingColor1=BrickColor.new("Dark stone grey"),WingColor2=BrickColor.new("Light blue"),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Black")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4968. {Name='RETINENTIA',ThemePitch=1,Walkspeed=12,Rainbow=false,Chaos=false,Theme="rbxassetid://579259104",Volume=0.8,TextColor=Color3.new(.8,.8,.8),Stroke=Color3.new(0.1,0.1,0.1),Font='Bodoni',MainColor=BrickColor.new("Medium stone grey"),SecColor=BrickColor.new("Black"),WingColor1=BrickColor.new("Dark stone grey"),WingColor2=BrickColor.new("White"),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Black")},SecondWing=false,SecondTrail=false,MainTrail=true};
  4969. {Name='SYMBOLICITY',ThemePitch=1,Walkspeed=125,Rainbow=false,Chaos=false,Theme="rbxassetid://899090278",Volume=1.25,TextColor=Color3.new(1,0,0),Stroke=Color3.new(1,1,1),Font='Arcade',MainColor=BrickColor.new("Really red"),SecColor=BrickColor.new("White"),WingColor1=BrickColor.new("Really red"),WingColor2=BrickColor.new("White"),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Black")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4970. {Name='ANTECEDENT',ThemePitch=1,Walkspeed=16,Rainbow=false,Chaos=false,Theme="rbxassetid://657143125",Volume=1.25,TextColor=Color3.new(1,0,.31),Stroke=Color3.new(1,0,1),Font='Arcade',MainColor=BrickColor.new("Really red"),SecColor=BrickColor.new("Hot pink"),WingColor1=Color3.new(1,0,.31),WingColor2=Color3.new(1,0,.31),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Black")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4971. {Name='EQUILIBRIUM',ThemePitch=1,Walkspeed=32,Rainbow=false,Chaos=false,Theme="rbxassetid://837090776",Volume=1.25,TextColor=Color3.new(1,1,1),Stroke=Color3.new(0,0,0),Font='Gotham',MainColor=BrickColor.new("Really black"),SecColor=BrickColor.new("Institutional white"),WingColor1=Color3.new(0,0,0),WingColor2=Color3.new(1,1,1),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Black")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4972. }
  4973.  
  4974.  
  4975. --Ench 565863302
  4976.  
  4977. --407122850 2128439818 1134696007
  4978. --^ die
  4979.  
  4980. --[[local modeInformation2={ v v v for future flying modetypes
  4981. {Name='SILENTIAC',ThemePitch=1,Walkspeed=9,Rainbow=false,Chaos=false,Theme="rbxassetid://209322206",TextColor=Color3.new(0,0,0),Stroke=BrickColor.new("Really black").Color,Font='Cartoon',MainColor=BrickColor.new("Really black"),SecColor=BrickColor.new("Really black"),WingColor1=BrickColor.new("Really black"),WingColor2=BrickColor.new("Really black"),ExWing1={Trans=1,Color=BrickColor.new("Really black")},ExWing2={Trans=1,Color=BrickColor.new("Really black")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4982. {Name='ACCESSION',ThemePitch=1,Walkspeed=70,Rainbow=false,Chaos=false,Theme="rbxassetid://227551982",TextColor=Color3.new(239, 184, 56),Stroke=BrickColor.new"White".Color,Font='SourceSansBold',MainColor=BrickColor.new("White"),SecColor=BrickColor.new("Daisy orange"),WingColor1=BrickColor.new("White"),WingColor2=BrickColor.new("Daisy orange"),ExWing1={Trans=1,Color=BrickColor.new("White")},ExWing2={Trans=1,Color=BrickColor.new("Daisy orange")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4983. {Name='DESCENTED',ThemePitch=0.81,Walkspeed=70,Rainbow=false,Chaos=false,Theme="rbxassetid://150384451",TextColor=BrickColor.new"Alder".Color,Stroke=BrickColor.new"Cyan".Color,Font='Garamond',MainColor=BrickColor.new("Alder"),SecColor=BrickColor.new("Cyan"),WingColor1=BrickColor.new("Alder"),WingColor2=BrickColor.new("Cyan"),ExWing1={Trans=1,Color=BrickColor.new("White")},ExWing2={Trans=1,Color=BrickColor.new("Cyan")},SecondWing=true,SecondTrail=false,MainTrail=true};
  4984. }]]
  4985.  
  4986. RecolorTextAndRename("COMMOTIAUS",MAINRUINCOLOR.Color,Color3.new(0,0.3,1),Enum.Font.SciFi)
  4987.  
  4988. mouse.KeyDown:connect(function(k)
  4989. if stealth==false and k == "q" and attack == false and TransformCD == false or stealth==false and k == "e" and attack == false and FlyingTypes==false and TransformCD == false then
  4990. local pmode=ModeOfGlitch
  4991. attack = true
  4992. hum.WalkSpeed = 5
  4993. TransformCD = true
  4994. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.8)
  4995.  
  4996. for i = 0,2,0.1 do
  4997. swait()
  4998. sphereMK(5,-4.5,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,225)
  4999. sphereMK(5,-4.5,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,225)
  5000. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.1,-0.1)* angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  5001. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  5002. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  5003. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  5004. 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(20)),.3)
  5005. 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(-20)),.3)
  5006. end
  5007. swait(4)
  5008. if k == "e" then
  5009. ModeOfGlitch = ModeOfGlitch + 1
  5010. elseif k == "q" then
  5011. ModeOfGlitch = ModeOfGlitch - 1
  5012. end
  5013. if ModeOfGlitch > #modeInformation then
  5014. ModeOfGlitch = 1
  5015. end
  5016. if ModeOfGlitch < 1 then
  5017. ModeOfGlitch = #modeInformation
  5018. end
  5019. local info = modeInformation[ModeOfGlitch]
  5020. if(info and pmode~=ModeOfGlitch)then
  5021. storehumanoidWS = info.Walkspeed
  5022. hum.WalkSpeed = info.Walkspeed
  5023. MAINRUINCOLOR = info.MainColor
  5024. SECONDRUINCOLOR = info.SecColor
  5025. sphere2(3,"Add",tors.CFrame,vt(1,1,1),0.25,0.25,0.25,MAINRUINCOLOR)
  5026. sphere2(4,"Add",tors.CFrame,vt(1,1,1),0.5,0.5,0.5,SECONDRUINCOLOR)
  5027. sphere2(5,"Add",tors.CFrame,vt(1,1,1),0.75,0.75,0.75,MAINRUINCOLOR)
  5028. for i = 0, 24 do
  5029. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,MAINRUINCOLOR)
  5030. end
  5031. CFuncs["Sound"].Create("rbxassetid://206082327", root, 5,1)
  5032. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7,1)
  5033. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5034. CFuncs["Sound"].Create("rbxassetid://1310128035", root, 9, 0.9)
  5035. hum.WalkSpeed = storehumanoidWS
  5036. rainbowmode = info.Rainbow
  5037. chaosmode = info.Chaos
  5038. cp = info.Theme:gsub("rbxassetid://","")
  5039. newTheme(info.Theme,0,info.ThemePitch,info.Volume)
  5040. RecolorTextAndRename(info.Name,info.TextColor,info.Stroke,info.Font)
  5041. RecolorThing(info.WingColor1,info.WingColor2,info.WingColor1,info.WingColor1,info.WingColor1,info.ExWing1.Trans,info.ExWing1.Color,info.ExWing2.Trans,info.ExWing1.Color,info.SecondWing,info.SecondTrail,info.MainTrail)
  5042. if ModeOfGlitch==11 then
  5043. for i, v in pairs(mw2:GetDescendants()) do
  5044. if v:IsA("Part") or v:IsA("BasePart") then
  5045. v.Color = Color3.new(0.35,0,0)
  5046. v.Material = "Neon"
  5047. v.Transparency = 0
  5048. elseif v:IsA("Trail") or v:IsA("ParticleEmitter") then
  5049. v.Color = ColorSequence.new(Color3.new(MRANDOM(0,1),0,0))
  5050. v.Enabled = true
  5051. end
  5052. end
  5053. end
  5054. for i = 0,2.5,0.1 do
  5055. swait()
  5056. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,-0.1)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.3)
  5057. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-35),math.rad(0),math.rad(0)),.3)
  5058. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(35)), 0.3)
  5059. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-35)), 0.3)
  5060. 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(-20)),.3)
  5061. 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(20)),.3)
  5062. end
  5063. attack = false
  5064. wait(0.3)
  5065. TransformCD = false
  5066. end
  5067. end
  5068. if k == "i" and mutedtog == false then
  5069. mutedtog = true
  5070. kan.Volume = 0
  5071. elseif k == "i" and mutedtog == true then
  5072. mutedtog = false
  5073. kan.Volume = 1.25
  5074. end
  5075. if k == "h" then
  5076. local ggagag=math.random(1,4)
  5077. if ggagag==1 then
  5078. newbosschatfunc("ok.",MAINRUINCOLOR.Color,SECONDRUINCOLOR.Color,200)
  5079. elseif ggagag==2 then
  5080. newbosschatfunc("s",MAINRUINCOLOR.Color,SECONDRUINCOLOR.Color,200)
  5081. elseif ggagag==3 then
  5082. newbosschatfunc("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MAINRUINCOLOR.Color,SECONDRUINCOLOR.Color,200)
  5083. elseif ggagag==4 then
  5084. newbosschatfunc("g",MAINRUINCOLOR.Color,SECONDRUINCOLOR.Color,200)
  5085. end
  5086. end
  5087. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5088. ExtinctiveHeartbreak()
  5089. elseif k == "z" and attack == false and ModeOfGlitch == 12 then
  5090. StealthWarped()
  5091. elseif k == "z" and attack == false and ModeOfGlitch == 11 then
  5092. Ballesta_Shards()
  5093. elseif k == "z" and attack == false and ModeOfGlitch == 7 then
  5094. CursedSlash()
  5095. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  5096. QuickSnap()
  5097. elseif k == "z" and attack == false and ModeOfGlitch == 10 then
  5098. desstomp()
  5099. elseif k == "b" and attack == false and ModeOfGlitch == 10 then
  5100. destaunt()
  5101. end
  5102. end)
  5103.  
  5104. plr.Chatted:connect(function(message)
  5105. newbosschatfunc(message,MAINRUINCOLOR.Color,SECONDRUINCOLOR.Color,200)
  5106. end)
  5107.  
  5108. local no=0
  5109. local no2=0
  5110. local spin=0
  5111. coroutine.resume(coroutine.create(function()
  5112. while true do
  5113. swait()
  5114. spin=spin+1
  5115.  
  5116.  
  5117. if ModeOfGlitch ~= 7 then
  5118. for i,v in pairs(script.BloodCurse.BloodCurse:GetChildren()) do
  5119. if v:IsA("Part") then
  5120. v.Transparency = 1
  5121. end
  5122. end
  5123. elseif ModeOfGlitch == 7 then
  5124. for i,v in pairs(script.BloodCurse.BloodCurse:GetChildren()) do
  5125. if v:IsA("Part") then
  5126. v.Transparency = 0
  5127. end
  5128. end
  5129. end
  5130.  
  5131.  
  5132.  
  5133. if ModeOfGlitch == 5 and attack==false or ModeOfGlitch==10 and attack==false then
  5134. no=no+1
  5135. if no>3 then
  5136. no=0
  5137. local rsiz = math.random(1,3)
  5138. 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)
  5139. 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)
  5140. end
  5141. end
  5142.  
  5143.  
  5144. if ModeOfGlitch==8 or ModeOfGlitch==10 or ModeOfGlitch==12 or ModeOfGlitch==14 then
  5145. effar.Enabled = true
  5146. effar.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5147. rotperm = rotperm + 2
  5148. no2=no2+1
  5149. if no2>4 then
  5150. no2=0
  5151. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(0 +rotperm),0)*CFrame.new(0+4*math.sin(sine / 45),1.4+3*math.cos(sine / 45),2.5),vt(1,1,1),-0.01,-0.01,-0.01,MAINRUINCOLOR)
  5152. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 +rotperm),0)*CFrame.new(0+4*math.sin(sine / 45),1.4+3*math.cos(sine / 45),2.5),vt(1,1,1),-0.01,-0.01,-0.01,MAINRUINCOLOR)
  5153. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotperm),0)*CFrame.new(0+4*math.sin(sine / 45),1.4+3*math.cos(sine / 45),2.5),vt(1,1,1),-0.01,-0.01,-0.01,MAINRUINCOLOR)
  5154. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 +rotperm),0)*CFrame.new(0+4*math.sin(sine / 45),1.4+3*math.cos(sine / 45),2.5),vt(1,1,1),-0.01,-0.01,-0.01,MAINRUINCOLOR)
  5155. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(0 - rotperm),0)*CFrame.new(0+4*math.sin(sine / 45),1.4-3*math.cos(sine / 45),2.5),vt(1,1,1),-0.01,-0.01,-0.01,SECONDRUINCOLOR)
  5156. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 - rotperm),0)*CFrame.new(0+4*math.sin(sine / 45),1.4-3*math.cos(sine / 45),2.5),vt(1,1,1),-0.01,-0.01,-0.01,SECONDRUINCOLOR)
  5157. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 - rotperm),0)*CFrame.new(0+4*math.sin(sine / 45),1.4-3*math.cos(sine / 45),2.5),vt(1,1,1),-0.01,-0.01,-0.01,SECONDRUINCOLOR)
  5158. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 - rotperm),0)*CFrame.new(0+4*math.sin(sine / 45),1.4-3*math.cos(sine / 45),2.5),vt(1,1,1),-0.01,-0.01,-0.01,SECONDRUINCOLOR)
  5159. end
  5160. if ModeOfGlitch==10 then
  5161. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(0,1,0),0.15+GetClientProperty(kan,'PlaybackLoudness')/850,0.01,0.15+GetClientProperty(kan,'PlaybackLoudness')/850,SECONDRUINCOLOR)
  5162. else
  5163. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(0,1,0),0.15,0.01,0.15,SECONDRUINCOLOR)
  5164. end
  5165. else
  5166. effar.Enabled = false
  5167. end
  5168.  
  5169. if ModeOfGlitch == 1 then
  5170. local hitfloor2,posfloor2=rayCast(RootPart.Position,-RootPart.CFrame.upVector,100,Character)
  5171. if hitfloor2 then
  5172. sphereMK(5,math.random(2,12)/25,"Add",CFrame.new(posfloor2)*CFrame.Angles(0,math.rad(spin*5.4),0),3,1,9,0,SECONDRUINCOLOR,-1)
  5173. sphereMK(5,math.random(2,12)/25,"Add",CFrame.new(posfloor2)*CFrame.Angles(0,math.rad(90+spin*5.4),0),3,1,9,0,SECONDRUINCOLOR,0)
  5174. sphereMK(5,math.random(2,12)/25,"Add",CFrame.new(posfloor2)*CFrame.Angles(0,math.rad(180+spin*5.4),0),3,1,9,0,SECONDRUINCOLOR,0)
  5175. sphereMK(5,math.random(2,12)/25,"Add",CFrame.new(posfloor2)*CFrame.Angles(0,math.rad(270+spin*5.4),0),3,1,9,0,SECONDRUINCOLOR,0)
  5176. end
  5177. elseif ModeOfGlitch == 4 then
  5178. block2(10,4,"Add",CFrame.new(RootPart.Position)*CFrame.Angles(math.random(-120,120),math.random(-120,120),math.random(-120,120))*CFrame.new(0,0,math.random(-150,150)/10),vt(math.random(10,80)/30,math.random(10,80)/30,math.random(10,80)/30),0,0,0,MAINRUINCOLOR,SECONDRUINCOLOR.Color)
  5179. block2(10,4,"Add",CFrame.new(RootPart.Position)*CFrame.Angles(math.random(-120,120),math.random(-120,120),math.random(-120,120))*CFrame.new(0,0,math.random(-150,150)/10),vt(math.random(10,80)/30,math.random(10,80)/30,math.random(10,80)/30),0,0,0,MAINRUINCOLOR,SECONDRUINCOLOR.Color)
  5180. elseif ModeOfGlitch == 8 or ModeOfGlitch == 10 or ModeOfGlitch==12 or ModeOfGlitch==14 then
  5181. sphereMK(6,math.random(5,15)/45,"Add",root.CFrame*CFrame.new(math.random(-7,7),-5,math.random(-7,7))*CFrame.Angles(math.rad(90 + math.random(-3,3)),math.rad(math.random(-3,3)),math.rad(math.random(-3,3))),0.1,0.1,3,0,MAINRUINCOLOR,0)
  5182. sphereMK(6,math.random(5,15)/45,"Add",root.CFrame*CFrame.new(math.random(-7,7),-5,math.random(-7,7))*CFrame.Angles(math.rad(90 + math.random(-3,3)),math.rad(math.random(-3,3)),math.rad(math.random(-3,3))),0.1,0.1,3,0,SECONDRUINCOLOR,0)
  5183. elseif ModeOfGlitch == 11 then
  5184. if hitfloor ~= nil then
  5185. sphereMK(10,math.random(10,25)/45,"Add",root.CFrame*CFrame.new(math.random(-20,20),-5,math.random(-20,20))*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.25,0.25,8,0,MAINRUINCOLOR,0)
  5186. sphereMK(10,math.random(10,25)/45,"Add",root.CFrame*CFrame.new(math.random(-20,20),-5,math.random(-20,20))*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.25,0.25,8,0,SECONDRUINCOLOR,0)
  5187. end
  5188. elseif ModeOfGlitch == 2 or ModeOfGlitch == 3 or ModeOfGlitch==5 or ModeOfGlitch==6 then
  5189. sphereMK(6,math.random(5,15)/45,"Add",root.CFrame*CFrame.new(math.random(-10,10),-5,math.random(-10,10))*CFrame.Angles(math.rad(90 + math.random(-3,3)),math.rad(math.random(-3,3)),math.rad(math.random(-3,3))),0.2,0.2,3,0,MAINRUINCOLOR,0)
  5190. elseif ModeOfGlitch == 13 then
  5191. no=no+1
  5192. if no>4 then
  5193. no=0
  5194. sphereMK(2,math.random(5,15)/60,"Add",root.CFrame*CFrame.new(math.random(-10,10),-5,math.random(-10,10))*CFrame.Angles(math.rad(90 + math.random(-3,3)),math.rad(math.random(-3,3)),math.rad(math.random(-3,3))),1,1,1,0,MAINRUINCOLOR,0)
  5195. sphereMK(2,math.random(5,15)/60,"Add",root.CFrame*CFrame.new(math.random(-10,10),-5,math.random(-10,10))*CFrame.Angles(math.rad(90 + math.random(-3,3)),math.rad(math.random(-3,3)),math.rad(math.random(-3,3))),1,1,1,0,SECONDRUINCOLOR,0)
  5196. end
  5197. elseif ModeOfGlitch==15 and GetClientProperty(kan,'PlaybackLoudness')/850 > .4 then
  5198. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(0,1,0),0.05+GetClientProperty(kan,'PlaybackLoudness')/1000,0.01,0.05+GetClientProperty(kan,'PlaybackLoudness')/1000,SECONDRUINCOLOR)
  5199.  
  5200. elseif ModeOfGlitch==16 then
  5201. sphere2(8,"Add",root.CFrame*CFrame.new(-2+4*math.sin(sine / 24)+.5*math.sin(sine/8),1.4+3*math.cos(sine / 28)+2*math.sin(sine / 34),1-3*math.sin(sine / 21)),vt(1,1,1),-0.01,-0.01,-0.01,MAINRUINCOLOR)
  5202. sphere2(8,"Add",root.CFrame*CFrame.new(2-4*math.sin(sine / 24)-.5*math.sin(sine/8),-1.4-3*math.cos(sine / 28)-2*math.sin(sine / 34),-1+3*math.sin(sine / 21)),vt(1,1,1),-0.01,-0.01,-0.01,SECONDRUINCOLOR)
  5203.  
  5204. end
  5205. end
  5206. end))
  5207.  
  5208.  
  5209. for i,v in pairs(script.BloodCurse.BloodCurse:GetChildren()) do
  5210. v.Anchored = false
  5211. end
  5212.  
  5213. rotperm = 0
  5214.  
  5215.  
  5216. Humanoid.Name = "ETHEREAL"
  5217. Humanoid.MaxHealth = math.huge
  5218. Humanoid.Health = math.huge
  5219. Instance.new("ForceField",char).Visible = false
  5220.  
  5221. local bguis = Instance.new("BillboardGui",tors)
  5222. bguis.Size = UDim2.new(25, 0, 25, 0)
  5223. local imgca = Instance.new("ImageLabel",bguis)
  5224. imgca.BackgroundTransparency = 1
  5225. imgca.ImageTransparency = 1
  5226. imgca.Size = UDim2.new(1,0,1,0)
  5227. imgca.Image = "rbxassetid://2344830904" --997291547,521073910,2312119891,2344830904
  5228. imgca.ImageColor3 = Color3.new(0,0,0)
  5229. local rvalu = 0
  5230.  
  5231. idleanim=.4
  5232. local hai=0
  5233. local hai2=1
  5234. local khhkh=0
  5235. local asine1=0
  5236. local asine2=0
  5237. local asine3=0
  5238. local hahahaaa={"Black","Crimson","Maroon","Bright red","Cocoa","Really red"}
  5239. while true do
  5240. ggg()
  5241. if ModeOfGlitch==5 then
  5242. hai=hai+1
  5243. if hai>math.random(2,5) then
  5244. hai=0
  5245. if hai2==1 then
  5246. hai2=2
  5247. MAINRUINCOLOR = BrickColor.new("Really black")
  5248. SECONDRUINCOLOR = BrickColor.new("Really black")
  5249. else
  5250. hai2=1
  5251. MAINRUINCOLOR = BrickColor.new(hahahaaa[math.random(1,#hahahaaa)])
  5252. SECONDRUINCOLOR = BrickColor.new(hahahaaa[math.random(1,#hahahaaa)])
  5253. end
  5254. end
  5255. end
  5256. if khhkh<50 then
  5257. khhkh=khhkh+1
  5258. end
  5259.  
  5260. if khhkh>12 then
  5261.  
  5262. asine1=asine1+change
  5263. end
  5264.  
  5265. if khhkh>24 then
  5266. asine2=asine2+change
  5267. end
  5268.  
  5269. if khhkh>36 then
  5270. asine3=asine3+change
  5271. end
  5272. if mutedtog == false then
  5273. kan.Volume = currentVol
  5274. elseif mutedtog == true then
  5275. kan.Volume = 0
  5276. end
  5277. local what = math.random()*0.6
  5278. if ModeOfGlitch == 5 then
  5279. modet.TextStrokeColor3 = Color3.new(what,0,0)
  5280. modet.TextColor3 = Color3.new(math.random(0,255)/255,0,0)
  5281. for i, v in pairs(mwY:GetChildren()) do
  5282. if v:IsA("Part") then
  5283. v.Color = Color3.new(MRANDOM(0,1),0,0)
  5284. v.Material = "Neon"
  5285. end
  5286. end
  5287. for i, v in pairs(mw2:GetDescendants()) do
  5288. if v:IsA("Part") or v:IsA("BasePart") then
  5289. v.Color = Color3.new(what,0,0)
  5290. v.Material = "Neon"
  5291. v.Transparency = 0
  5292. elseif v:IsA("Trail") or v:IsA("ParticleEmitter") then
  5293. v.Color = ColorSequence.new(Color3.new(MRANDOM(0,1),0,0))
  5294. v.Enabled = true
  5295. end
  5296. end
  5297. for i, v in pairs(mw1:GetDescendants()) do
  5298. if v:IsA("Part") or v:IsA("BasePart") then
  5299. v.Color = Color3.new(MRANDOM(0,1),0,0)
  5300. v.Material = "Neon"
  5301. v.Transparency = 0
  5302. elseif v:IsA("Trail") or v:IsA("ParticleEmitter") then
  5303. v.Color = ColorSequence.new(Color3.new(MRANDOM(0,1),0,0))
  5304. v.Enabled = true
  5305. end
  5306. end
  5307. end
  5308. local what = math.random()*0.6
  5309. if ModeOfGlitch == 4 then
  5310. local gay = math.random()
  5311. modet.TextStrokeColor3 = Color3.new(gay,gay,gay)
  5312. modet.TextColor3 = Color3.new(gay,gay,gay)
  5313. for i, v in pairs(mwY:GetChildren()) do
  5314. if v:IsA("Part") then
  5315. v.Color = Color3.new(gay,gay,gay)
  5316. v.Material = "Neon"
  5317. end
  5318. end
  5319. for i, v in pairs(mw2:GetDescendants()) do
  5320. if v:IsA("Part") or v:IsA("BasePart") then
  5321. v.Color = Color3.new(gay,gay,gay)
  5322. v.Material = "Neon"
  5323. v.Transparency = 0
  5324. elseif v:IsA("Trail") or v:IsA("ParticleEmitter") then
  5325. v.Color = ColorSequence.new(Color3.new(gay,gay,gay))
  5326. v.Enabled = true
  5327. end
  5328. end
  5329. for i, v in pairs(mw1:GetDescendants()) do
  5330. if v:IsA("Part") or v:IsA("BasePart") then
  5331. v.Color = Color3.new(gay,gay,gay)
  5332. v.Material = "Neon"
  5333. v.Transparency = 0
  5334. elseif v:IsA("Trail") or v:IsA("ParticleEmitter") then
  5335. v.Color = ColorSequence.new(Color3.new(gay,gay,gay))
  5336. v.Enabled = true
  5337. end
  5338. end
  5339. end
  5340. kan:ClearAllChildren()
  5341. local succ = pcall(function()
  5342. kan.PlaybackSpeed = currentPitch
  5343. end)
  5344. if(not succ)then
  5345. local tp = kan.TimePosition
  5346. kan = Instance.new("Sound",Torso)
  5347. kan.PlaybackSpeed = currentPitch
  5348. kan.TimePosition = tp
  5349. kan.Name = "wrecked"
  5350. kan.Looped = true
  5351. kan:Play()
  5352. end
  5353. pcall(function()
  5354. kan.Pitch = currentPitch
  5355. kan.Volume = currentVol
  5356. kan.SoundId = currentThemePlaying
  5357. kan.Looped = true
  5358. kan.Parent = Torso
  5359. kan:Resume()
  5360. end)
  5361. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 101 and ModeOfGlitch ~= 090 and ModeOfGlitch ~= 103 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 765688533321 and ModeOfGlitch ~= 88893333388 and ModeOfGlitch ~= 808080808080808080808080 then
  5362. imgca.ImageTransparency = 1
  5363. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 101 or ModeOfGlitch == 103 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 765688533321 or ModeOfGlitch == 88893333388 or ModeOfGlitch == 808080808080808080808080 then
  5364. imgca.ImageColor3 = MAINRUINCOLOR.Color
  5365. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  5366. elseif ModeOfGlitch == 090 then
  5367. imgca.ImageColor3 = Color3.new(r/255,g/255,b/255)
  5368. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  5369. end
  5370. imgca.Rotation = imgca.Rotation + 5 + GetClientProperty(kan,'PlaybackLoudness')/100
  5371. bguis.Size = UDim2.new(15 + 3 * math.cos(sine / 30),0, 15 + 3 * math.cos(sine / 30),0)
  5372. modet.Rotation = - 5 * math.cos(sine / 32)
  5373. nedf.Rotation = 0 - 2 * math.cos(sine / 24)
  5374. --nedf.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  5375. fullscreenz.BackgroundColor3 = SECONDRUINCOLOR.Color
  5376. fullscreenz.BorderColor3 = MAINRUINCOLOR.Color
  5377. hh1.BackgroundColor3 = MAINRUINCOLOR.Color
  5378. hh2.BackgroundColor3 = MAINRUINCOLOR.Color
  5379. hh3.BackgroundColor3 = MAINRUINCOLOR.Color
  5380. hh1.Position=UDim2.new(-.1-.02*math.cos(asine3/66), 0, .5, 0)
  5381. hh2.Position=UDim2.new(-.14-.02*math.cos(asine2/66), 0, .5, 0)
  5382. hh3.Position=UDim2.new(-.16-.02*math.cos(asine1/66), 0, .5, 0)
  5383. hh1.Rotation=0+.8*math.sin(asine1/66)
  5384. hh2.Rotation=0+.8*math.sin(asine2/66)
  5385. nedf.TextColor3=SECONDRUINCOLOR.Color
  5386. nedf.TextStrokeColor3=MAINRUINCOLOR.Color
  5387. fullscreenz.Rotation=0+.8*math.sin(sine/66)
  5388. vis1.BackgroundColor3 = MAINRUINCOLOR.Color
  5389. vis2.BackgroundColor3 = MAINRUINCOLOR.Color
  5390. vis3.BackgroundColor3 = MAINRUINCOLOR.Color
  5391. vis4.BackgroundColor3 = MAINRUINCOLOR.Color
  5392. vis5.BackgroundColor3 = MAINRUINCOLOR.Color
  5393.  
  5394. vis1.Size = UDim2.new(.1, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/330, 0)
  5395. vis2.Size = UDim2.new(.07, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/410, 0)
  5396. vis3.Size = UDim2.new(.045, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/470, 0)
  5397. vis4.Size = UDim2.new(.03, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/540, 0)
  5398. vis5.Size = UDim2.new(.012, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/590, 0)
  5399.  
  5400. CameraManager()
  5401. swait()
  5402. kan:Resume()
  5403. if ModeOfGlitch == 2 or ModeOfGlitch == 15 or ModeOfGlitch == 16 then
  5404. rvalu = rvalu + 0.25 + GetClientProperty(kan,'PlaybackLoudness')/90
  5405. else
  5406. rvalu = rvalu + 0.5
  5407. end
  5408. if ModeOfGlitch==2 then
  5409. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5410. handlexweld.C0=clerp(handleweld.C0,cf(0,0,-0.3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5411. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,2.25- .25 * math.cos(sine / 38),1.85)*angles(math.rad(0),math.rad(0),math.rad(60 + rvalu)),.3)
  5412. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,2.25- .25 * math.cos(sine / 38),1.85)*angles(math.rad(0),math.rad(0),math.rad(180 + rvalu)),.3)
  5413. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,2.25- .25 * math.cos(sine / 38),1.85)*angles(math.rad(0),math.rad(0),math.rad(-60 + rvalu)),.3)
  5414. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,3+ 1 * math.cos(sine / 38),1.25)*angles(math.rad(0),math.rad(0),math.rad(120 - rvalu)),.3)
  5415. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,3+ 1 * math.cos(sine / 38),1.25)*angles(math.rad(0),math.rad(0),math.rad(-120 - rvalu)),.3)
  5416. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,3+ 1 * math.cos(sine / 38),1.25)*angles(math.rad(0),math.rad(0),math.rad(0 - rvalu)),.3)
  5417. elseif ModeOfGlitch == 3 or ModeOfGlitch==16 then
  5418. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5419. handlexweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5420. rwing1weld.C1=clerp(rwing1weld.C1,cf(-5.25,3+ 1 * math.cos(sine / 23.5),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0+ 20 * math.cos(sine / 47)),math.rad(135+ 10 * math.cos(sine / 47))),.3)
  5421. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,-6 + 0.75 * math.cos(sine / 34),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 10 * math.cos(sine / 47))),.3)
  5422. rwing3weld.C1=clerp(rwing3weld.C1,cf(5.25,3+ 1 * math.cos(sine / 23.5),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0+ 20 * math.cos(sine / 47)),math.rad(-135+ 10 * math.cos(sine / 47))),.3)
  5423. lwing1weld.C1=clerp(lwing1weld.C1,cf(-3.75,-2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0+ 20 * math.cos(sine / 47)),math.rad(-135+ 10 * math.cos(sine / 47))),.3)
  5424. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,1 + 0.75 * math.cos(sine / 34),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(180 + 10 * math.cos(sine / 47))),.3)
  5425. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,-2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0+ 20 * math.cos(sine / 47)),math.rad(135+ 10 * math.cos(sine / 47))),.3)
  5426. elseif ModeOfGlitch==4 then
  5427. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5428. handlexweld.C0=clerp(handleweld.C0,cf(0,0,-0.3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5429. lwing1weld.C1=clerp(lwing1weld.C1,cf(2.25+MRANDOM(-1,1),0+MRANDOM(-1,1),1.75+MRANDOM(-1,1))*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+MRANDOM(-15,15))),.3)
  5430. lwing2weld.C1=clerp(lwing2weld.C1,cf(5+MRANDOM(-1,1),0+MRANDOM(-1,1),1.75+MRANDOM(-1,1))*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+MRANDOM(-15,15))),.3)
  5431. lwing3weld.C1=clerp(lwing3weld.C1,cf(7.75+MRANDOM(-1,1),0+MRANDOM(-1,1),1.75+MRANDOM(-1,1))*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+MRANDOM(-15,15))),.3)
  5432. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2.25+MRANDOM(-1,1),0+MRANDOM(-1,1),1.75+MRANDOM(-1,1))*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+MRANDOM(-15,15))),.3)
  5433. rwing2weld.C1=clerp(rwing2weld.C1,cf(-5+MRANDOM(-1,1),0+MRANDOM(-1,1),1.75+MRANDOM(-1,1))*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+MRANDOM(-15,15))),.3)
  5434. rwing3weld.C1=clerp(rwing3weld.C1,cf(-7.75+MRANDOM(-1,1),0+MRANDOM(-1,1),1.75+MRANDOM(-1,1))*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+MRANDOM(-15,15))),.3)
  5435. elseif ModeOfGlitch == 5 then
  5436. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 3600 * math.cos(sine / 360))),.3)
  5437. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 + 3600 * math.cos(sine / 360))),.3)
  5438. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 + 3600 * math.cos(sine / 360))),.3)
  5439. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 + 3600 * math.cos(sine / 360))),.3)
  5440. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 + 3600 * math.cos(sine / 360))),.3)
  5441. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 + 3600 * math.cos(sine / 360))),.3)
  5442. elseif ModeOfGlitch==11 then
  5443. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5444. handlexweld.C0=clerp(handleweld.C0,cf(0,0,-0.3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5445. lwing1weld.C1=clerp(lwing1weld.C1,cf(-3- 0.75 * math.cos(sine / 32),1.5+ 0.5 * math.cos(sine / 18),1)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 7.5 * math.cos(sine / 16))),.3)
  5446. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,4+ 0.5 * math.cos(sine / 18),1)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  5447. lwing3weld.C1=clerp(lwing3weld.C1,cf(3+ 0.75 * math.cos(sine / 32),1.5+ 0.5 * math.cos(sine / 18),1)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 16))),.3)
  5448. rwing1weld.C1=clerp(rwing1weld.C1,cf(-3- 0.75 * math.cos(sine / 32),4+ 0.5 * math.cos(sine / 18),1)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(180 - 7.5 * math.cos(sine / 16))),.3)
  5449. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,1.5+ 0.5 * math.cos(sine / 18),1)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5450. rwing3weld.C1=clerp(rwing3weld.C1,cf(3+ 0.75 * math.cos(sine / 32),4+ 0.5 * math.cos(sine / 18),1)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(180 + 7.5 * math.cos(sine / 16))),.3)
  5451. elseif ModeOfGlitch==12 or ModeOfGlitch==13 then
  5452. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5453. handlexweld.C0=clerp(handleweld.C0,cf(0,0,-0.3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5454. lwing1weld.C1=clerp(lwing1weld.C1,cf(2.25-0.25*math.cos(sine / 32),0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 5 * math.cos(sine / 16))),.3)
  5455. lwing2weld.C1=clerp(lwing2weld.C1,cf(5-0.5*math.cos(sine / 32),0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 16))),.3)
  5456. lwing3weld.C1=clerp(lwing3weld.C1,cf(7.75-0.75*math.cos(sine / 32),0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 10 * math.cos(sine / 16))),.3)
  5457. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2.25+0.25*math.cos(sine / 32),0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 5 * math.cos(sine / 16))),.3)
  5458. rwing2weld.C1=clerp(rwing2weld.C1,cf(-5+0.5*math.cos(sine / 32),0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 7.5 * math.cos(sine / 16))),.3)
  5459. rwing3weld.C1=clerp(rwing3weld.C1,cf(-7.75+0.75*math.cos(sine / 32),0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 10 * math.cos(sine / 16))),.3)
  5460. elseif ModeOfGlitch==14 then
  5461. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5462. handlexweld.C0=clerp(handleweld.C0,cf(0,0,-0.3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5463. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,2.25- .25 * math.cos(sine / 38),1.85)*angles(math.rad(0),math.rad(0),math.rad(60 - 3600 * math.cos(sine / 360))),.3)
  5464. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,2.25- .25 * math.cos(sine / 38),1.85)*angles(math.rad(0),math.rad(0),math.rad(180 - 3600 * math.cos(sine / 360))),.3)
  5465. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,2.25- .25 * math.cos(sine / 38),1.85)*angles(math.rad(0),math.rad(0),math.rad(-60 - 3600 * math.cos(sine / 360))),.3)
  5466. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,3+ 1 * math.cos(sine / 38),1.25)*angles(math.rad(0),math.rad(0),math.rad(120 + 3600 * math.cos(sine / 360))),.3)
  5467. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,3+ 1 * math.cos(sine / 38),1.25)*angles(math.rad(0),math.rad(0),math.rad(-120 + 3600 * math.cos(sine / 360))),.3)
  5468. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,3+ 1 * math.cos(sine / 38),1.25)*angles(math.rad(0),math.rad(0),math.rad(0 + 3600 * math.cos(sine / 360))),.3)
  5469. elseif ModeOfGlitch==15 then
  5470. for i = 6, 2, -1 do
  5471. visWings[i]=visWings[i-1]
  5472. end
  5473. visWings[1]=GetClientProperty(kan,'PlaybackLoudness')/250
  5474. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5475. handlexweld.C0=clerp(handleweld.C0,cf(0,0,-0.3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5476. lwing1weld.C1=clerp(lwing1weld.C1,cf(2.25,0+visWings[3],1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1.25 * math.cos(sine / 32))),.3)
  5477. lwing2weld.C1=clerp(lwing2weld.C1,cf(5,0+visWings[2],1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1.875 * math.cos(sine / 32))),.3)
  5478. lwing3weld.C1=clerp(lwing3weld.C1,cf(7.75,0+visWings[1],1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 2.5 * math.cos(sine / 32))),.3)
  5479. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2.25,0+visWings[6],1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 1.25 * math.cos(sine / 32))),.3)
  5480. rwing2weld.C1=clerp(rwing2weld.C1,cf(-5,0+visWings[5],1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 1.875 * math.cos(sine / 32))),.3)
  5481. rwing3weld.C1=clerp(rwing3weld.C1,cf(-7.75,0+visWings[4],1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 2.5 * math.cos(sine / 32))),.3)
  5482.  
  5483. else
  5484. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5485. handlexweld.C0=clerp(handleweld.C0,cf(0,0,-0.3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5486. lwing1weld.C1=clerp(lwing1weld.C1,cf(2.25,0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 5 * math.cos(sine / 32))),.3)
  5487. lwing2weld.C1=clerp(lwing2weld.C1,cf(5,0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  5488. lwing3weld.C1=clerp(lwing3weld.C1,cf(7.75,0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 10 * math.cos(sine / 32))),.3)
  5489. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2.25,0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 5 * math.cos(sine / 32))),.3)
  5490. rwing2weld.C1=clerp(rwing2weld.C1,cf(-5,0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 7.5 * math.cos(sine / 32))),.3)
  5491. rwing3weld.C1=clerp(rwing3weld.C1,cf(-7.75,0,1.75)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-0 - 10 * math.cos(sine / 32))),.3)
  5492. end
  5493. sine = sine + change
  5494. SINE=SINE+change
  5495. if(ModeOfGlitch==16)then
  5496.  
  5497. end
  5498.  
  5499. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  5500. local velderp=RootPart.Velocity.y
  5501. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  5502. if equipped==true or equipped==false then
  5503. if attack==false then
  5504. idle=idle+1
  5505. else
  5506. idle=0
  5507. end
  5508. if idle>=500 then
  5509. if attack==false then
  5510. --Sheath()
  5511. end
  5512. end
  5513. if RootPart.Velocity.y > 1 and hitfloor==nil then
  5514. Anim="Jump"
  5515. if attack==false then
  5516. 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)
  5517. 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)
  5518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  5519. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  5520. 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)
  5521. 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)
  5522. end
  5523. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  5524. Anim="Fall"
  5525. if attack==false then
  5526. 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)
  5527. 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)
  5528. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  5529. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  5530. 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)
  5531. 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)
  5532. end
  5533. elseif torvel<1 and hitfloor~=nil then
  5534. Anim="Idle"
  5535. if attack==false then
  5536. if ModeOfGlitch == 2 then
  5537. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  5538. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  5539. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  5540. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0, 0, 0 + ((1) - 1))*angles(math.rad(25 - 2.5 * math.sin(sine / 32)),math.rad(0),math.rad(0 - 5 * math.sin(sine / 95))),0.1)
  5541. RW.C0=clerp(RW.C0,cf(1,0.4,-0.45)*angles(math.rad(82 + 6 * math.cos(sine / 72)),math.rad(3 - 1 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  5542. LW.C0=clerp(LW.C0,cf(-1,0.55,-0.5)*angles(math.rad(69 - 7 * math.cos(sine / 66)),math.rad(4 - 2 * math.cos(sine / 59)),math.rad(61 - 4 * math.cos(sine / 45))),.1)
  5543. elseif ModeOfGlitch == 3 then
  5544. local snap = math.random(1,32)
  5545. if snap == 1 then
  5546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 8.5 * math.cos(sine / 41)+MRANDOM(-35,15)),math.rad(0 + 1 * math.cos(sine / 57)+MRANDOM(-65,65)),math.rad(0 - 30 * math.cos(sine / 47)+MRANDOM(-65,65))),.4)
  5547. end
  5548. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  5549. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  5550. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  5551. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 8.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0 - 30 * math.cos(sine / 47))),.1)
  5552. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 - 10 * math.cos(sine / 47))),.1)
  5553. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 10 * math.cos(sine / 47))),.1)
  5554. elseif ModeOfGlitch == 4 then
  5555. local snap = math.random(1,24)
  5556. if snap == 1 then
  5557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0, 0, 0 + ((1) - 1))*angles(math.rad(35+math.random(-50,50)),math.rad(10+math.random(-50,50)),math.rad(0+math.random(-50,50))),.5)
  5558. end
  5559. local snap = math.random(1,78)
  5560. if snap == 1 then
  5561. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0, 0, 0 + ((1) - 1))*angles(math.rad(35+math.random(-100,100)),math.rad(10+math.random(-100,100)),math.rad(0+math.random(-100,100))),.5)
  5562. end
  5563. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3.5+ 1 * math.cos(sine / 45)),math.rad(0),math.rad(0)),.1)
  5564. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3.5+ 1 * math.cos(sine / 45)),math.rad(0),math.rad(0)),.1)
  5565. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 45),1 + 0.25 * math.cos(sine / 45))*angles(math.rad(0 - 2 * math.cos(sine / 45)+math.random(-5,5)),math.rad(0+math.random(-5,5)),math.rad(0+math.random(-5,5))),.1)
  5566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)+math.random(-5,5)),math.rad(0 + 1 * math.cos(sine / 58)+math.random(-5,5)),math.rad(0 + 2 * math.cos(sine / 53)+math.random(-5,5))),.1)
  5567. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(2 + 5 * math.cos(sine / 74)+math.random(-5,5)),math.rad(1 - 3 * math.cos(sine / 53)+math.random(-5,5)),math.rad(14 + 5 * math.sin(sine / 45)+math.random(-5,5))),.1)
  5568. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5 - 3 * math.cos(sine / 73)+math.random(-5,5)),math.rad(2 - 1 * math.cos(sine / 55)+math.random(-5,5)),math.rad(-14 - 6 * math.sin(sine / 45)+math.random(-5,5))),.1)
  5569. elseif ModeOfGlitch == 5 then
  5570. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  5571. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  5572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  5573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
  5574. RW.C0=clerp(RW.C0,cf(1.35,0.4 + 0.025 * math.cos(sine / 30),0)*angles(math.rad(25 + 3 * math.cos(sine / 30)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 30))),.1)
  5575. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 30),0)*angles(math.rad(-25 + 2 * math.cos(sine / 30)),math.rad(0),math.rad(-12 + 5 * math.cos(sine / 30))),.1)
  5576. elseif ModeOfGlitch == 6 then -- soon to change anim
  5577. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(5.5 - 2 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  5578. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(12 + 2 * math.cos(sine / 32))),.1)
  5579. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(22 + 2 * math.cos(sine / 56))),.1)
  5580. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-22 - 2 * math.cos(sine / 56))),.1)
  5581. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  5582. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(7 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(-22 - 2 * math.cos(sine / 45))),.1)
  5583. elseif ModeOfGlitch == 7 then -- Cursed by Unfair
  5584. local rsiz = math.random(1,2)
  5585. 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)
  5586. 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)
  5587. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-5),math.rad(90),math.rad(-5)),.1)
  5588. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(5),math.rad(-90),math.rad(5)),.1)
  5589. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.001 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20 - 1 * math.cos(sine / 44))),.1)
  5590. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 8.5 * math.cos(sine / 41)+MRANDOM(-5,5)),math.rad(0 + 1 * math.cos(sine / 57)+MRANDOM(-5,5)),math.rad(20 + 10 * math.cos(sine / 47)+MRANDOM(-5,5))),.1)
  5591. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(10 + 3 * math.cos(sine / 43)),math.rad(35 - 2 * math.cos(sine / 52)),math.rad(13 + 0.9 * math.cos(sine / 45))),.1)
  5592. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(134 - 0.2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(47 - 0.2 * math.cos(sine / 45))),.1)
  5593. elseif ModeOfGlitch == 8 then -- Accession by Unfair
  5594. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  5595. 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 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  5596. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.4 + 0.5 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  5597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0 - 0.3 * math.cos(sine / 47))),.1)
  5598. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3)
  5599. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3)
  5600. elseif ModeOfGlitch == 9 then -- Descented by Unfair
  5601. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  5602. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  5603. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  5604. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 3 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  5605. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.05 * math.cos(sine / 45),0.45)*angles(math.rad(-23 + 6 * math.cos(sine / 74)),math.rad(1 - 2 * math.cos(sine / 53)),math.rad(-53 + 3 * math.cos(sine / 45))),.1)
  5606. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.05 * math.cos(sine / 45),-0.5)*angles(math.rad(84 - 3 * math.cos(sine / 73)),math.rad(8 - 5 * math.cos(sine / 55)),math.rad(80 - 3 * math.cos(sine / 45))),.1)
  5607. elseif ModeOfGlitch == 10 then
  5608. local snap = math.random(1,100)
  5609. if snap == 1 then
  5610. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  5611. end
  5612. 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)
  5613. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  5614. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.4 + 0.5 * math.cos(sine / 32))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-35)),.1)
  5615. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 45)),math.rad(0),math.rad(34)),.1)
  5616. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 70),0)*angles(math.rad(0 + 1 * math.cos(sine / 0.0001) ),math.rad(0),math.rad(10 + 1 * math.cos(sine / 0.0001))),.1)
  5617. LW.C0=clerp(LW.C0,cf(-1.1,0.6 + 0.1 * math.cos(sine / 28),0.2)*angles(math.rad(220),math.rad(0),math.rad(45 + 1 * math.cos(sine / 50))),.1)
  5618. elseif ModeOfGlitch == 11 then
  5619. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  5620. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  5621. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 4 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  5622. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 6 * math.cos(sine / 32)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 5 * math.sin(sine / 32))),.1)
  5623. RW.C0 = clerp(RW.C0, CF(1.1, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(-0), Rad(-30)), 0.1)
  5624. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  5625. elseif ModeOfGlitch == 12 then
  5626. RH.C0=clerp(RH.C0,cf(1,-1.3,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(30),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 - 2 * math.cos(sine / 39))),.1)
  5627. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 6 * math.cos(sine / 31))),.1)
  5628. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-66 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  5629. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  5630. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(183 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  5631. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(183 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  5632. elseif ModeOfGlitch == 13 then
  5633. 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(0 + 1 * math.cos(sine / 34))),.1)
  5634. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  5635. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5636. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(20),math.rad(0)),.1)
  5637. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(180),math.rad(45),math.rad(0)),.1)
  5638. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(10)),.1)
  5639. elseif ModeOfGlitch == 14 then
  5640. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  5641. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  5642. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.01 * math.cos(sine / 32),2 + 0.35 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 18)),math.rad(0),math.rad(0)),.1)
  5643. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-15 - 5 * math.cos(sine / 62))),.1)
  5644. RW.C0=clerp(RW.C0,cf(1.2,0.5 + 0.05 * math.cos(sine / 28),0.3)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.1)
  5645. LW.C0=clerp(LW.C0,cf(-1.2,0.5 + 0.05 * math.cos(sine / 28),0.3)*angles(math.rad(-30),math.rad(0),math.rad(20)),.1)
  5646.  
  5647. elseif(ModeOfGlitch == 15)then -- Antecedent
  5648. local snap = math.random(1,10)
  5649. if snap == 1 then
  5650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(0 + math.random(-5,5))),1)
  5651. end
  5652. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  5653. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(-10 +10 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  5654. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10-10 * math.cos(sine / 56))),.1)
  5655. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-10 + 10 * math.cos(sine / 56))),.1)
  5656. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(-3 + 9 * math.cos(sine / 45))),.1)
  5657. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0+.1*math.sin(sine/52))*angles(math.rad(7 - 2 * math.cos(sine / 51)),math.rad(-10+10 * math.cos(sine / 52)),math.rad(-12 + 5 * math.cos(sine / 45))),.1)
  5658. elseif(ModeOfGlitch == 16)then -- Balanced
  5659. --Balanced Anim by Derpz
  5660. -- ^ thanks Derpz
  5661. local color = math.random(0,1)
  5662. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*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.05,-0.01,BrickColor.new(Color3.new(color,color,color)),Color3.new(color,color,color))
  5663.  
  5664. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 30),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  5665. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 30),0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  5666. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 30))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5667. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 3 * math.cos(sine / 45)),math.rad(0),math.rad(0)),.1)
  5668. RW.C0=clerp(RW.C0,cf(1.2,0.5 + 0.05 * math.cos(sine / 50),0.3)*angles(math.rad(-50),math.rad(0),math.rad(-50 - 5 * math.cos(sine / 50))),.1)
  5669. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 50),0)*angles(math.rad(180),math.rad(0),math.rad(-20 + 5 * math.cos(sine / 50))),.1)
  5670.  
  5671. else
  5672. local snap = math.random(1,10)
  5673. if snap == 1 then
  5674. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  5675. end
  5676. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  5677. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  5678. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  5679. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
  5680. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  5681. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(7 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(-22 - 2 * math.cos(sine / 45))),.1)
  5682. end
  5683. end
  5684. elseif torvel>2 and Humanoid.WalkSpeed<32 and hitfloor~=nil then
  5685. Anim="Walk"
  5686. if attack==false then
  5687. if ModeOfGlitch == 3 then
  5688. 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)
  5689. 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)
  5690. 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 / 8)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  5691. 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) - 30 * math.cos(sine / 47))),.1)
  5692. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 - 10 * math.cos(sine / 47))),.1)
  5693. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 10 * math.cos(sine / 47))),.1)
  5694. elseif ModeOfGlitch == 4 then
  5695. local snap = math.random(1,24)
  5696. if snap == 1 then
  5697. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0, 0, 0 + ((1) - 1))*angles(math.rad(35+math.random(-50,50)),math.rad(10+math.random(-50,50)),math.rad(0+math.random(-50,50))),.5)
  5698. end
  5699. local snap = math.random(1,48)
  5700. if snap == 1 then
  5701. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0, 0, 0 + ((1) - 1))*angles(math.rad(35+math.random(-100,100)),math.rad(10+math.random(-100,100)),math.rad(0+math.random(-100,100))),.5)
  5702. end
  5703. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  5704. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  5705. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1+ 0.1 * math.cos(sine / 29))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  5706. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0, 0, 0 + ((1) - 1))*angles(math.rad(35),math.rad(10),math.rad(0)),0.5)
  5707. RW.C0=clerp(RW.C0,cf(1.5+math.random(-.5,.5),0.5+math.random(-.5,.5),0+math.random(-.5,.5))*angles(math.rad(0+math.random(-5,5)),math.rad(0+math.random(-5,5)),math.rad(0+math.random(-5,5))),.1)
  5708. LW.C0=clerp(LW.C0,cf(-1.5+math.random(-.5,.5),0.5+math.random(-.5,.5),0+math.random(-.5,.5))*angles(math.rad(0+math.random(-5,5)),math.rad(0+math.random(-5,5)),math.rad(0+math.random(-5,5))),.1)
  5709. elseif ModeOfGlitch == 7 then
  5710. local rsiz = math.random(1,2)
  5711. 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)
  5712. 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)
  5713. 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)
  5714. 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)
  5715. 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 / 8)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  5716. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 3 * math.cos(sine / 4)+MRANDOM(-5,5)),math.rad(0 + root.RotVelocity.Y/1.5+MRANDOM(-5,5)),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8)+MRANDOM(-5,5))),.1)
  5717. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.025 * math.cos(sine / 8))*angles(math.rad(-25 - 5 * math.cos(sine / 4)),math.rad(0),math.rad(25 - 0.015 * math.cos(sine / 4))),.1)
  5718. 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(-10 + 15 * math.cos(sine / 4))),.1)
  5719. elseif ModeOfGlitch==12 then
  5720. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1)
  5721. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1)
  5722. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.45 * math.cos(sine / 49),0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(50),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05)
  5723. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1)
  5724. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0.3 * math.cos(sine / 43)),math.rad(-35 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1)
  5725. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0.2 * math.cos(sine / 51)),math.rad(35 - 4 * math.cos(sine / 64)),math.rad(-19 - 0.2 * math.cos(sine / 45))),.1)
  5726. else
  5727. 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)
  5728. 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)
  5729. 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 / 8)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  5730. 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)
  5731. 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(10 - 15 * math.cos(sine / 4))),.1)
  5732. 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(-10 + 15 * math.cos(sine / 4))),.1)
  5733. end
  5734. end
  5735. elseif torvel>=4 and Humanoid.WalkSpeed>=32 and hitfloor~=nil then
  5736. Anim="Run"
  5737. if attack==false then
  5738. if ModeOfGlitch==8 or ModeOfGlitch==10 or ModeOfGlitch == 14 or ModeOfGlitch==12 then
  5739. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1)
  5740. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1)
  5741. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),0 + 0.125 * math.cos(sine / 34),1 + 0.25 * math.cos(sine / 28))*angles(math.rad(50),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05)
  5742. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1)
  5743. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0.3 * math.cos(sine / 43)),math.rad(-35 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1)
  5744. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0.2 * math.cos(sine / 51)),math.rad(35 - 4 * math.cos(sine / 64)),math.rad(-19 - 0.2 * math.cos(sine / 45))),.1)
  5745. else
  5746. 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 + 95 * math.cos(sine / 6))),.1)
  5747. 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 + 95 * math.cos(sine / 6))),.1)
  5748. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
  5749. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
  5750. 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)
  5751. 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)
  5752. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(1,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.25,0.25,3,-0.00375,MAINRUINCOLOR,0)
  5753. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(1,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.25,0.25,3,-0.00375,SECONDRUINCOLOR,0)
  5754. end
  5755. end
  5756. end
  5757. end
  5758. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement