Advertisement
Azurewood

A

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