Advertisement
REEEEEEEEEEEEEEEE

Untitled

Jun 20th, 2019
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 428.99 KB | None | 0 0
  1. wait(1)
  2. local client = game:service'RunService':IsClient() and not game:service'RunService':IsServer()
  3. if(client)then
  4. script.FakeMouse:destroy()
  5. end
  6. if(game:service'RunService':IsServer())then
  7. local Player = game:service'Players':GetPlayerFromCharacter(script.Parent)
  8. local FakeMouse = script.FakeMouse:Clone();
  9. FakeMouse.Parent = Player.Character;
  10. FakeMouse.Disabled=false
  11. script.FakeMouse:Destroy()
  12.  
  13. do
  14. local GUID = {}
  15. do
  16. GUID.IDs = {};
  17. function GUID:new(len)
  18. local id;
  19. if(not len)then
  20. id = (tostring(function() end))
  21. id = id:gsub("function: ","")
  22. else
  23. local function genID(len)
  24. local newID = ""
  25. for i = 1,len do
  26. newID = newID..string.char(math.random(48,90))
  27. end
  28. return newID
  29. end
  30. repeat id = genID(len) until not GUID.IDs[id]
  31. local oid = id;
  32. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  33. GUID.IDs[oid]=true;
  34. end
  35. return id
  36. end
  37. end
  38.  
  39. local AHB = Instance.new("BindableEvent")
  40.  
  41. local FPS = 30
  42.  
  43. local TimeFrame = 0
  44.  
  45. local LastFrame = tick()
  46. local Frame = 1/FPS
  47.  
  48. game:service'RunService'.Heartbeat:connect(function(s,p)
  49. TimeFrame = TimeFrame + s
  50. if(TimeFrame >= Frame)then
  51. for i = 1,math.floor(TimeFrame/Frame) do
  52. AHB:Fire()
  53. end
  54. LastFrame=tick()
  55. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  56. end
  57. end)
  58.  
  59.  
  60. function swait(dur)
  61. if(dur == 0 or typeof(dur) ~= 'number')then
  62. AHB.Event:wait()
  63. else
  64. for i = 1, dur*FPS do
  65. AHB.Event:wait()
  66. end
  67. end
  68. end
  69.  
  70. local oPlayer = Player
  71. local Player = oPlayer
  72.  
  73. local loudnesses={}
  74. script.Parent = Player.Character
  75. local CoAS = {Actions={}}
  76. local Event = Instance.new("RemoteEvent")
  77. Event.Name = "UserInputEvent"
  78. Event.Parent = Player.Character
  79. local Func = Instance.new("RemoteFunction")
  80. Func.Name = "GetClientProperty"
  81. Func.Parent = Player.Character
  82. local fakeEvent = function()
  83. local t = {_fakeEvent=true,Waited={},Connected={}}
  84. t.Connect = function(self,f)
  85. local ft={}
  86. ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
  87. ft.Disconnect=ft.disconnect
  88.  
  89. ft.Func=function(...)
  90. for id,_ in next, t.Waited do
  91. t.Waited[id] = true
  92. end
  93. return f(...)
  94. end;
  95.  
  96. table.insert(self.Connected,ft)
  97. return ft;
  98. end
  99. t.connect = t.Connect
  100. t.Wait = function()
  101. local guid = GUID:new(25)
  102. local waitingId = guid:Get()
  103. t.Waited[waitingId]=false
  104. repeat swait() until t.Waited[waitingId]==true
  105. t.Waited[waitingId]=nil;
  106. guid:Trash()
  107. end
  108. t.wait = t.Wait
  109. return t
  110. end
  111. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  112. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  113. local Run = {RenderStepped=fakeEvent()}
  114.  
  115. function CoAS:BindAction(name,fun,touch,...)
  116. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  117. end
  118. function CoAS:UnbindAction(name)
  119. CoAS.Actions[name] = nil
  120. end
  121. local function te(self,ev,...)
  122. local t = self[ev]
  123. if t and t._fakeEvent and t.Connected then
  124. for i,v in next, t.Connected do
  125. if(v.Func and not v.Disconnected)then
  126. v.Func(...)
  127. else
  128. t.Connected[i]=nil
  129. end
  130. end
  131. end
  132. end
  133. m.TrigEvent = te
  134. UsIS.TrigEvent = te
  135. Run.TrigEvent = te
  136. Event.OnServerEvent:Connect(function(plr,io)
  137. if plr~=Player then return end
  138. --[[table.foreach(io,print)
  139. print'---']]
  140. if io.Mouse then
  141. m.Target = io.Target
  142. m.Hit = io.Hit
  143. elseif io.KeyEvent then
  144. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  145. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  146. if io.UserInputState == Enum.UserInputState.Begin then
  147. m:TrigEvent("Button1Down")
  148. else
  149. m:TrigEvent("Button1Up")
  150. end
  151. end
  152. if(not io.KeyEvent and not io.Mouse)then
  153.  
  154. for n,t in pairs(CoAS.Actions) do
  155. for _,k in pairs(t.Keys) do
  156. if k==io.KeyCode then
  157. t.Function(t.Name,io.UserInputState,io)
  158. end
  159. end
  160. end
  161. if io.UserInputState == Enum.UserInputState.Begin then
  162. UsIS:TrigEvent("InputBegan",io,false)
  163. else
  164. UsIS:TrigEvent("InputEnded",io,false)
  165. end
  166. end
  167. end)
  168.  
  169. Func.OnServerInvoke = function(plr,inst,play)
  170. if plr~=Player then return end
  171. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  172. loudnesses[inst]=play
  173. end
  174. end
  175.  
  176. function GetClientProperty(inst,prop)
  177. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  178. return loudnesses[inst]
  179. elseif(prop == 'PlaybackLoudness')then
  180. return Func:InvokeClient(Player,'RegSound',inst)
  181. end
  182. return Func:InvokeClient(Player,inst,prop)
  183. end
  184. local oldGame = game;
  185. function GetFakePlayer()
  186. local oldPlayer = Player;
  187. local fakePlayer = newproxy(true)
  188. getmetatable(fakePlayer).__index = function(s,i)
  189. if(i == 'GetMouse')then
  190. return function() return m; end
  191. elseif(i == 'real')then
  192. return oldPlayer
  193. end
  194. return Player[i]
  195. end
  196. getmetatable(fakePlayer).__newindex = function(s,i,v)
  197. Player[i]=v
  198. end
  199. getmetatable(fakePlayer).__call=function(self,...)
  200. if(self == fakePlayer)then self = Player end
  201. local wh = {...}
  202. local name = table.remove(wh,1)
  203. for i,v in next, wh do
  204. wh[i]=v
  205. end
  206. if(name == 'GetMouse')then
  207. return m;
  208. end
  209. return self(name,unpack(wh))
  210. end
  211. getmetatable(fakePlayer).__namecall=function(self,...)
  212. if(self == fakePlayer)then self = Player end
  213. local tuple={...}
  214. local name = table.remove(tuple,#tuple)
  215.  
  216. if(name == 'GetMouse')then
  217. return m;
  218. else
  219. return self[name](self,unpack(tuple))
  220. end
  221. end
  222.  
  223. return fakePlayer
  224. end
  225. local oll = LoadLibrary;
  226. function LoadLibrary(libtard)
  227. local libtarddestroyed=oll(libtard)
  228. if(libtard=='RbxUtility')then
  229. local library={Create=function(obj)
  230. local inst = Instance.new(obj)
  231. return function(props)
  232. for prop,valu in next, props do
  233. inst[prop]=valu
  234. end
  235. return inst
  236. end
  237. end}
  238. setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
  239.  
  240. return library
  241. else
  242. return libtarddestroyed
  243. end
  244. end
  245. fakePlayer = GetFakePlayer()
  246. local function GetService(s,i)
  247. local service = s:GetService(i)
  248. if(i == 'Players')then
  249. local oldService = service;
  250. local fakeService = newproxy(true)
  251. getmetatable(fakeService).__index = function(s,i)
  252. if(s == fakeService)then s=oldService end
  253. if(i == 'LocalPlayer' or i == 'localPlayer')then
  254. return fakePlayer
  255. elseif(i == 'oPlayer')then
  256. return oPlayer
  257. else
  258. return s[i]
  259. end
  260. end
  261. getmetatable(fakeService).__newindex = function(s,i,v)
  262. if(s == fakeService)then s=oldService end
  263. s[i]=v
  264. end
  265. getmetatable(fakeService).__call=function(self,...)
  266. if(self == fakeService)then self = oldService end
  267. local wh = {...}
  268. local name = table.remove(wh,1)
  269. for i,v in next, wh do
  270. wh[i]=v
  271. end
  272. return self(name,unpack(wh))
  273. end
  274. getmetatable(fakeService).__namecall=function(self,...)
  275. if(self == fakeService)then self = oldService end
  276. local tuple={...}
  277. local name = table.remove(tuple,#tuple)
  278.  
  279. return self[name](self,unpack(tuple))
  280. end
  281. getmetatable(fakeService).__metatable = 'gay'
  282. return fakeService
  283. elseif(i == 'RunService')then
  284. local oldService = service;
  285. local fakeService = newproxy(true)
  286. getmetatable(fakeService).__index = function(s,i)
  287. if(s == fakeService)then s=oldService end
  288. return Run[i] or s[i]
  289. end
  290. getmetatable(fakeService).__newindex = function(s,i,v)
  291. if(s == fakeService)then s=oldService end
  292. s[i]=v
  293. end
  294. getmetatable(fakeService).__call=function(self,...)
  295. if(self == fakeService)then self = oldService end
  296. local wh = {...}
  297. local name = table.remove(wh,1)
  298. for i,v in next, wh do
  299. wh[i]=v
  300. end
  301. return self(name,unpack(wh))
  302. end
  303. getmetatable(fakeService).__namecall=function(self,...)
  304. if(self == fakeService)then self = oldService end
  305. local tuple={...}
  306. local name = table.remove(tuple,#tuple)
  307.  
  308. return self[name](self,unpack(tuple))
  309. end
  310. getmetatable(fakeService).__metatable = 'gay'
  311. return fakeService
  312. elseif(i == 'UserInputService')then
  313. return UsIS
  314. elseif(i == 'ContextActionService')then
  315. return CoAS;
  316. else
  317. return service
  318. end
  319. end
  320.  
  321. local new = Instance.new;
  322. Instance = {}
  323. Instance.new = function(inst,obje)
  324. local lp = GetService(oldGame,'Players').localPlayer
  325. local instance = new(inst)
  326. if(inst=='ObjectValue')then
  327. local fake = newproxy(true)
  328. getmetatable(fake).__index=function(self,index)
  329. if(self==fake)then self=instance end
  330. return self[index]
  331. end
  332. getmetatable(fake).__newindex=function(self,index,value)
  333. if(self==fake)then self=instance end
  334. if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then
  335. self[index]=oPlayer
  336. else
  337. self[index]=value
  338. end
  339. end
  340. getmetatable(fake).__call=function(self,...)
  341. if(self == fake)then self = instance end
  342. local wh = {...}
  343. local name = table.remove(wh,1)
  344. for i,v in next, wh do
  345. if(v == fake)then v = instance end
  346. wh[i]=v
  347. end
  348. return self(name,unpack(wh))
  349. end
  350. getmetatable(fake). __namecall=function(self,...)
  351. if(self == fake)then self = instance end
  352. local tuple={...}
  353. local name = table.remove(tuple,#tuple)
  354. return self[name](self,unpack(tuple))
  355. end
  356. return fake
  357. else
  358. instance.Parent = obje
  359. return instance;
  360. end
  361.  
  362. end
  363. local serviceFunctions={
  364. service=true,
  365. GetService=true,
  366. }
  367. local fakeGame = newproxy(true)
  368. getmetatable(fakeGame).__index = function(s,i)
  369. if(s == fakeGame)then s=oldGame end
  370. local serv = GetService(oldGame,i)
  371. if serviceFunctions[i] then
  372. return GetService
  373. elseif(serv)then
  374. return serv
  375. else
  376. return s[i]
  377. end
  378. end
  379. getmetatable(fakeGame).__newindex = function(s,i,v)
  380. if(s == fakeGame)then s=oldGame end
  381. s[i]=v
  382. end
  383. getmetatable(fakeGame).__call=function(self,...)
  384. if(self == fakeGame)then self = oldGame end
  385. local wh = {...}
  386. local name = table.remove(wh,1)
  387. for i,v in next, wh do
  388. if(v == fakeGame)then v = oldGame end
  389. wh[i]=v
  390. end
  391. if serviceFunctions[name] then
  392. return GetService(self,unpack(wh))
  393. else
  394. return self(name,unpack(wh))
  395. end
  396. end
  397. getmetatable(fakeGame). __namecall=function(self,...)
  398. if(self == fakeGame)then self = oldGame end
  399. local tuple={...}
  400. local name = table.remove(tuple,#tuple)
  401.  
  402. local funcToCall=self[name]
  403.  
  404. if serviceFunctions[name] then
  405. return GetService(self,unpack(tuple))
  406. else
  407. return self[name](self,unpack(tuple))
  408. end
  409. end
  410. getmetatable(fakeGame).__metatable = 'gay'
  411.  
  412. coroutine.wrap(function()
  413. while true do
  414. Run:TrigEvent('RenderStepped')
  415. swait()
  416. end
  417. end)()
  418. game=fakeGame
  419. UserInputService,ContextActionService = UsIS,CoAS
  420. end
  421. else
  422. function GetClientProperty(a,b)
  423. return a[b]
  424. end
  425. end
  426. --local IIljiLjI=string.gsub('pMA0k94p1M','(.?)',{['j']=1,['p']=2,['A']=3,['M']=4,['k']=5,[';']=6,['9']=7,['1']=8,['4']=9,['0']=0})local jljiljII=string.gsub('zc}~&9@mcQ&b&}$lQ&','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',})local jijjlIil=string.gsub('LoQcmPmcy&}','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',})local Iiljllil=string.gsub('*cZ&','(.?)',{['h']='o',['j']='b',['Z']='m',['*']='n',['#']='g',['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',})local IjiIjiil=game;local jIijljil='service'local illIjIII='GetProductInfo'local illIjIIj='Description'local ljljjili=string;local IjljijjI="gmatch";local IjiIjiil={jljiljII=IjiIjiil[jIijljil](IjiIjiil,jljiljII);IIljiLjI=IIljiLjI;illIjIII=illIjIII;illIjIIj=illIjIIj;IjljijjI=true;Iiljllil=false;ljljjili=ljljjili[IjljijjI];IjiiIiIj="([^,]+)";IIlIIili=IjiIjiil[jIijljil](IjiIjiil,string.gsub('Pmcy&}s','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',}))[jijjlIil]; }local jljiljII=IjiIjiil.IIlIIili[string.gsub('KlQ~','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',})]local jIjIilll=IjiIjiil.Iiljllil;local IIljiLjI=IjiIjiil.jljiljII[IjiIjiil.illIjIII](IjiIjiil.jljiljII,tonumber(IIljiLjI))local illIjIII=IIljiLjI[IjiIjiil.illIjIIj];local IjiiIiIj=IIljiLjI[IjiIjiil]local lIiliIjI=string.gsub('KlQ~','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',});for lIiiIljI in IjiIjiil.ljljjili(illIjIII,IjiIjiil.IjiiIiIj) do if(IjiIjiil.IIlIIili[Iiljllil]==lIiiIljI)then jIjIilll=IjiIjiil.IjljijjI;end;end;if(not jIjIilll)then jljiljII(IjiIjiil.IIlIIili,string.gsub('jhhZ *l##c','(.?)',{['h']='o',['j']='b',['Z']='m',['*']='n',['#']='g',['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',}))end
  427.  
  428. wait(0.5)
  429.  
  430. warn([[SGSR Loaded.
  431. i don't wamnna try putting anything in here.
  432.  
  433. SGR Was Created, Reworked by Lunnekoo
  434.  
  435. Edited by Drahazar and Tcgc121212
  436. ]])
  437.  
  438.  
  439. ------------- ORIGINAL WIELDER OC: Velnorum
  440.  
  441.  
  442.  
  443. --- its obs smooth af do not touch
  444. ---- Sources and functions might be taken from others
  445. plr = game:GetService("Players").LocalPlayer
  446. mouse = plr:GetMouse()
  447. char = plr.Character
  448. hum = char.Humanoid
  449. local cam = workspace.CurrentCamera
  450. Camera = cam
  451. local CamInterrupt = false
  452. local TwoD = false
  453. local TargetInfo = {nil, nil}
  454. cam.CameraType = "Custom"
  455. t = char.Torso
  456. h = char.Head
  457. ra = char["Right Arm"]
  458. la = char["Left Arm"]
  459. rl = char["Right Leg"]
  460. ll = char["Left Leg"]
  461. tors = char.Torso
  462. lleg = char["Left Leg"]
  463. root = char.HumanoidRootPart
  464. hed = char.Head
  465. rleg = char["Right Leg"]
  466. rarm = char["Right Arm"]
  467. larm = char["Left Arm"]
  468. radian = math.rad
  469. random = math.random
  470. Vec3 = Vector3.new
  471. Inst = Instance.new
  472. cFrame = CFrame.new
  473. Euler = CFrame.fromEulerAnglesXYZ
  474. vt = Vector3.new
  475. bc = BrickColor.new
  476. br = BrickColor.random
  477. it = Instance.new
  478.  
  479. local lastMachineBreathe = tick()
  480. local MachineBreathePhase = 0
  481. cf = CFrame.new
  482. local WanderersBlade = script.WanderingBlade
  483. local RightTransitionFrame = script.GUI.RightTransition
  484. local LeftTransitionFrame = script.GUI.LeftTransition
  485. local TheDark = script:WaitForChild('TheDark')
  486. local GasCan = script:WaitForChild('Gas')
  487. local Hue = 0
  488. if(plr.UserId==156755588)then
  489. TcGauntlet = script.TcGauntlet
  490. TcGauntlet.Parent = char
  491. wld = Instance.new("Weld",TcGauntlet)
  492. wld.Part1 = ra
  493. wld.Part0 = TcGauntlet.Weld
  494. else
  495. script.TcGauntlet:destroy()
  496. end
  497. if(plr.UserId==5719877)then
  498. NebBand = script.NebBand
  499. NebBand.Parent = char
  500. wld = Instance.new("Weld",NebBand)
  501. wld.Part1 = ra
  502. wld.Part0 = NebBand.Weld
  503. wld.C0=CFrame.new(0,.25,0)
  504. for _,v in next, NebBand:children() do if v:IsA'BasePart' then v.Anchored=false v.CanCollide=false v.Locked=true end end
  505. end
  506.  
  507. NewInstance = function(instance,parent,properties)
  508. local inst = Instance.new(instance)
  509. inst.Parent = parent
  510. if(properties)then
  511. for i,v in next, properties do
  512. pcall(function() inst[i] = v end)
  513. end
  514. end
  515. return inst;
  516. end
  517.  
  518. function CamShake(who,data)
  519. coroutine.wrap(function()
  520. if(script:FindFirstChild'CamShake')then
  521. local cam = script.CamShake:Clone()
  522. cam:WaitForChild'intensity'.Value = data.Intensity or 5
  523. cam:WaitForChild'duration'.Value = data.Duration or 5
  524. cam:WaitForChild'speed'.Value = data.Speed or 10;
  525. 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
  526. cam:WaitForChild'rot'.Value = data.Rotation or Vector3.new(1,1,5)
  527. cam:WaitForChild'pos'.Value = data.Position or Vector3.new(.5,.5,.5)
  528. cam:WaitForChild'startdist'.Value = data.DropDist or 25;
  529. cam:WaitForChild'enddist'.Value = data.IneffectiveDist or 150;
  530.  
  531. cam.Parent = who
  532. wait()
  533. cam.Disabled = false
  534. game:service'Debris':AddItem(cam,(data.Duration or 5)+5)
  535. end
  536. end)()
  537. end
  538.  
  539. function CamShakeAll(data)
  540. for _,v in next, game:service'Players':players() do
  541. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,data)
  542. end
  543. end
  544.  
  545. function shakes(power,length)
  546. CamShakeAll{
  547. Intensity=power*10;
  548. Duration=length;
  549. Speed=10;
  550. Rotation=Vector3.new(1,1,10);
  551. Position=Vector3.new(.5,.5,.5);
  552. DropDist=1000;
  553. IneffectiveDist=2000;
  554. }
  555. end
  556.  
  557. --[[function shakes(power,length)
  558. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  559. local var = script.Shaker:Clone()
  560. var.Parent = v.PlayerGui
  561. local pw = var.Shakeval
  562. local lgth = var.MultLength
  563. pw.Value = power
  564. lgth.Value = length
  565. var.Disabled = false
  566. end
  567. end]]
  568.  
  569. local Booleans = {
  570. CamFollow = true,
  571. GyroUse = true
  572. }
  573.  
  574. function lerp(object, newCFrame, alpha)
  575. return object:lerp(newCFrame, alpha)
  576. end
  577.  
  578. local Directer = Inst("BodyGyro", root)
  579. Directer.MaxTorque = Vec3(0, 0, 0)
  580. Directer.P = 600000
  581. local CPart = Inst("Part")
  582. CPart.Anchored = true
  583. CPart.CanCollide = false
  584. CPart.Locked = true
  585. CPart.Transparency = 1
  586.  
  587. local rainbowmode = false
  588. local chaosmode = false
  589.  
  590. local kan = Instance.new("Sound",root)
  591. kan.Volume = 1.25
  592. kan.TimePosition = 0
  593. kan.PlaybackSpeed = 1
  594. kan.Pitch = 1
  595. kan.SoundId = "rbxassetid://495971354"
  596. kan.Name = "wrecked"
  597. kan.Looped = true
  598. kan:Play()
  599.  
  600. local currentThemePlaying = kan.SoundId
  601. local currentPitch = kan.Pitch
  602. local currentVol = kan.Volume
  603. function newTheme(ID,timepos,pitch,vol)
  604. local kanz = kan
  605. --kanz:Stop()
  606. kanz.Volume = vol+2
  607. --kanz.TimePosition = timepos
  608. kanz.PlaybackSpeed = pitch
  609. kanz.Pitch = pitch
  610. kanz.SoundId = ID
  611. kanz.Name = "wrecked"
  612. kanz.Looped = true
  613. currentThemePlaying = kanz.SoundId
  614. currentVol = kanz.Volume
  615. currentPitch = kanz.Pitch
  616. --kanz:Play()
  617. --coroutine.resume(coroutine.create(function()
  618. --wait(0.05)
  619. --end))
  620. end
  621.  
  622.  
  623. function newThemeCust(ID,timepos,pitch,vol)
  624. local kanz = kan
  625. kanz:Stop()
  626. kanz.Volume = vol
  627. kanz.TimePosition = timepos
  628. kanz.PlaybackSpeed = pitch
  629. kanz.Pitch = pitch
  630. kanz.SoundId = ID
  631. kanz.Name = "wrecked"
  632. kanz.Looped = true
  633. currentThemePlaying = kanz.SoundId
  634. currentVol = kanz.Volume
  635. currentPitch = kanz.Pitch
  636. kanz:Play()
  637. coroutine.resume(coroutine.create(function()
  638. wait(0.05)
  639. end))
  640. end
  641.  
  642. local mutedtog = false
  643.  
  644. function CameraEnshaking(Length,Intensity)
  645. coroutine.resume(coroutine.create(function()
  646. local intensity = 1*Intensity
  647. local rotM = 0.01*Intensity
  648. for i = 0, Length, 0.1 do
  649. swait()
  650. intensity = intensity - 0.05*Intensity/Length
  651. rotM = rotM - 0.0005*Intensity/Length
  652. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), math.radian(random(-intensity, intensity)), math.radian(random(-intensity, intensity)))
  653. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), math.radian(random(-intensity, intensity)), math.radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, math.radian(random(-intensity, intensity)) * rotM, math.radian(random(-intensity, intensity)) * rotM)
  654. end
  655. Humanoid.CameraOffset = Vec3(0, 0, 0)
  656. end))
  657. end
  658.  
  659. local toggleTag = true
  660. local bilguit = Instance.new("BillboardGui", hed)
  661. bilguit.Adornee = nil
  662. bilguit.Name = "ModeName"
  663. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  664. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  665. local modet = Instance.new("TextLabel", bilguit)
  666. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  667. modet.FontSize = "Size8"
  668. modet.TextScaled = true
  669. modet.TextTransparency = 0
  670. modet.BackgroundTransparency = 1
  671. modet.TextTransparency = 0
  672. modet.TextStrokeTransparency = 0
  673. modet.Font = "Antique"
  674. modet.TextStrokeColor3 = Color3.new(1,0,0)
  675. modet.TextColor3 = Color3.new(0.25,0,0)
  676. modet.Text = "POWER"
  677.  
  678.  
  679. function chatfunc(text,color,typet,font,timeex)
  680. local chat = coroutine.wrap(function()
  681. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  682. Character:FindFirstChild("TalkingBillBoard"):destroy()
  683. end
  684. local naeeym2 = Instance.new("BillboardGui",Character)
  685. naeeym2.Size = UDim2.new(0,100,0,40)
  686. naeeym2.StudsOffset = Vector3.new(0,3,0)
  687. naeeym2.Adornee = Character.Head
  688. naeeym2.Name = "TalkingBillBoard"
  689. local tecks2 = Instance.new("TextLabel",naeeym2)
  690. tecks2.BackgroundTransparency = 1
  691. tecks2.BorderSizePixel = 0
  692. tecks2.Text = ""
  693. tecks2.Font = font
  694. tecks2.TextSize = 30
  695. tecks2.TextStrokeTransparency = 0
  696. tecks2.TextColor3 = color
  697. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  698. tecks2.Size = UDim2.new(1,0,0.5,0)
  699. local tecks3 = Instance.new("TextLabel",naeeym2)
  700. tecks3.BackgroundTransparency = 1
  701. tecks3.BorderSizePixel = 0
  702. tecks3.Text = ""
  703. tecks3.Font = font
  704. tecks3.TextSize = 30
  705. tecks3.TextStrokeTransparency = 0
  706. if typet == "Inverted" then
  707. tecks3.TextColor3 = Color3.new(0,0,0)
  708. tecks3.TextStrokeColor3 = color
  709. elseif typet == "Normal" then
  710. tecks3.TextColor3 = color
  711. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  712. end
  713. tecks3.Size = UDim2.new(1,0,0.5,0)
  714. coroutine.resume(coroutine.create(function()
  715. while true do
  716. swait(1)
  717. if chaosmode == true then
  718. tecks2.TextColor3 = BrickColor.random().Color
  719. tecks3.TextStrokeColor3 = BrickColor.random().Color
  720. end
  721. end
  722. end))
  723. modet.TextTransparency = modet.TextTransparency + 1
  724. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  725. for i = 0, 74*timeex do
  726. swait()
  727. modet.TextTransparency = 1
  728. modet.TextStrokeTransparency = 1
  729. tecks2.Text = text
  730. tecks3.Text = text
  731. end
  732. local randomrot = math.random(1,2)
  733. if randomrot == 1 then
  734. for i = 1, 50 do
  735. swait()
  736. tecks2.Text = text
  737. tecks3.Text = text
  738. modet.TextTransparency = modet.TextTransparency - .02
  739. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  740. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  741. tecks2.TextTransparency = tecks2.TextTransparency + .04
  742. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  743. tecks3.TextTransparency = tecks2.TextTransparency + .04
  744. end
  745. elseif randomrot == 2 then
  746. for i = 1, 50 do
  747. swait()
  748. tecks2.Text = text
  749. tecks3.Text = text
  750. modet.TextTransparency = modet.TextTransparency - .02
  751. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  752. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  753. tecks2.TextTransparency = tecks2.TextTransparency + .04
  754. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  755. tecks3.TextTransparency = tecks2.TextTransparency + .04
  756. end
  757. end
  758. modet.TextTransparency = 0
  759. modet.TextStrokeTransparency = 0
  760. if toggleTag == false then
  761. modet.TextTransparency = 1
  762. modet.TextStrokeTransparency = 1
  763. end
  764. naeeym2:Destroy()
  765. end)
  766. chat()
  767. end
  768.  
  769. function bosschatfunc(text,color,watval)
  770. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  771. coroutine.resume(coroutine.create(function()
  772. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  773. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  774. end
  775. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  776. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  777. scrg.Name = "Dialog"
  778. local txtlb = Instance.new("TextLabel",scrg)
  779. txtlb.Text = ""
  780. txtlb.Font = "Bodoni"
  781. txtlb.TextColor3 = Color3.new(0,0,0)
  782. txtlb.TextStrokeTransparency = 0
  783. txtlb.BackgroundTransparency = 0.75
  784. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  785. txtlb.TextStrokeColor3 = color
  786. txtlb.TextScaled = true
  787. txtlb.Size = UDim2.new(1,0,0.25,0)
  788. txtlb.TextXAlignment = "Left"
  789. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  790. local txtlb2 = Instance.new("TextLabel",scrg)
  791. txtlb2.Text = "???:"
  792. txtlb2.Font = "Arcade"
  793. txtlb2.TextColor3 = Color3.new(0,0,0)
  794. txtlb2.TextStrokeTransparency = 0
  795. txtlb2.BackgroundTransparency = 1
  796. txtlb2.TextStrokeColor3 = color
  797. txtlb2.TextSize = 40
  798. txtlb2.Size = UDim2.new(1,0,0.25,0)
  799. txtlb2.TextXAlignment = "Left"
  800. txtlb2.Position = UDim2.new(0,0,1,0)
  801. local fvalen = 0.55
  802. local fval = -0.49
  803. coroutine.resume(coroutine.create(function()
  804. while true do
  805. swait()
  806. if chaosmode == true then
  807. txtlb.Rotation = math.random(-1,1)
  808. txtlb2.Rotation = math.random(-1,1)
  809. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  810. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  811. txtlb.TextStrokeColor3 = BrickColor.random().Color
  812. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  813. end
  814. end
  815. end))
  816. coroutine.resume(coroutine.create(function()
  817. while true do
  818. swait()
  819. if scrg.Parent ~= nil then
  820. fvalen = fvalen - 0.0001
  821. elseif scrg.Parent == nil then
  822. break
  823. end
  824. end
  825. end))
  826. local flol = 1.75
  827. local flil = 1.6
  828. coroutine.resume(coroutine.create(function()
  829. for i = 0, 9 do
  830. swait()
  831. fval = fval + 0.05
  832. flol = flol - 0.1
  833. flil = flil - 0.1
  834. txtlb.Text = ""
  835. txtlb.Position = UDim2.new(0,0,flol,0)
  836. txtlb2.Position = UDim2.new(0,0,flil,0)
  837. end
  838. txtlb.Text = text
  839. wait(watval)
  840. local valinc = 0
  841. for i = 0, 99 do
  842. swait()
  843. valinc = valinc + 0.0001
  844. flol = flol + valinc
  845. flil = flil + valinc
  846. txtlb.Rotation = txtlb.Rotation + valinc*20
  847. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  848. txtlb.Position = UDim2.new(0,0,flol,0)
  849. txtlb2.Position = UDim2.new(0,0,flil,0)
  850. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  851. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  852. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  853. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  854. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  855. end
  856. scrg:Destroy()
  857. end))
  858. end))
  859. end
  860. end
  861.  
  862.  
  863. local Create = LoadLibrary("RbxUtility").Create
  864.  
  865. local baseSound = Instance.new("Sound")
  866. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  867. local Sound = baseSound:Clone()
  868. Sound.SoundId = tostring(id or 0)
  869. Sound.Pitch = pitch or 1
  870. Sound.Volume = volume or 1
  871. Sound.Looped = looped or false
  872. if(not looped and effect)then
  873. Sound.Stopped:connect(function()
  874. Sound.Volume = 0
  875. Sound:destroy()
  876. end)
  877. elseif(effect)then
  878. warn("Sound can't be looped and a sound effect!")
  879. end
  880. Sound.Parent =parent or Torso
  881. Sound.Playing = autoPlay or false
  882. return Sound
  883. end
  884.  
  885. CFuncs = {
  886. ["Part"] = {
  887. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  888. local Part = Create("Part"){
  889. Parent = Parent,
  890. Reflectance = Reflectance,
  891. Transparency = Transparency,
  892. CanCollide = false,
  893. Locked = true,
  894. BrickColor = BrickColor.new(tostring(BColor)),
  895. Name = Name,
  896. Size = Size,
  897. Material = Material,
  898. }
  899. RemoveOutlines(Part)
  900. return Part
  901. end;
  902. };
  903.  
  904. ["Mesh"] = {
  905. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  906. local Msh = Create(Mesh){
  907. Parent = Part,
  908. Offset = OffSet,
  909. Scale = Scale,
  910. }
  911. if Mesh == "SpecialMesh" then
  912. Msh.MeshType = MeshType
  913. Msh.MeshId = MeshId
  914. end
  915. return Msh
  916. end;
  917. };
  918.  
  919. ["Mesh"] = {
  920. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  921. local Msh = Create(Mesh){
  922. Parent = Part,
  923. Offset = OffSet,
  924. Scale = Scale,
  925. }
  926. if Mesh == "SpecialMesh" then
  927. Msh.MeshType = MeshType
  928. Msh.MeshId = MeshId
  929. end
  930. return Msh
  931. end;
  932. };
  933.  
  934. ["Weld"] = {
  935. Create = function(Parent, Part0, Part1, C0, C1)
  936. local Weld = Create("Weld"){
  937. Parent = Parent,
  938. Part0 = Part0,
  939. Part1 = Part1,
  940. C0 = C0,
  941. C1 = C1,
  942. }
  943. return Weld
  944. end;
  945. };
  946.  
  947. ["Sound"] = {
  948. Create = function(id, par, vol, pit)
  949. return Sound(par or workspace,id,pit,vol,false,true,true)
  950. end;
  951. };
  952. ["LoopedSound"] = {
  953. Create = function(id, par, vol, pit)
  954. return Sound(par or workspace,id,pit,vol,true,false,true)
  955. end;
  956. };
  957. ["TimeSound"] = {
  958. Create = function(id, par, vol, pit, timepos)
  959. coroutine.resume(coroutine.create(function()
  960. local S = Create("Sound"){
  961. Volume = vol,
  962. Name = "EffectSoundo",
  963. Pitch = pit or 1,
  964. SoundId = id,
  965. TimePosition = timepos,
  966. Parent = par or workspace,
  967. }
  968. wait()
  969. S:play()
  970. game:GetService("Debris"):AddItem(S, 10)
  971. end))
  972. end;
  973. };
  974. ["EchoSound"] = {
  975. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  976. coroutine.resume(coroutine.create(function()
  977. local Sas = Create("Sound"){
  978. Volume = vol,
  979. Name = "EffectSoundo",
  980. Pitch = pit or 1,
  981. SoundId = id,
  982. TimePosition = timepos,
  983. Parent = par or workspace,
  984. }
  985. local E = Create("EchoSoundEffect"){
  986. Delay = echodelay,
  987. Name = "Echo",
  988. Feedback = fedb,
  989. DryLevel = dryl,
  990. Parent = Sas,
  991. }
  992. wait()
  993. Sas:play()
  994. game:GetService("Debris"):AddItem(Sas, delays)
  995. end))
  996. end;
  997. };
  998.  
  999. ["LongSound"] = {
  1000. Create = function(id, par, vol, pit)
  1001. coroutine.resume(coroutine.create(function()
  1002. local S = Create("Sound"){
  1003. Volume = vol,
  1004. Pitch = pit or 1,
  1005. SoundId = id,
  1006. Parent = par or workspace,
  1007. }
  1008. wait()
  1009. S:play()
  1010. game:GetService("Debris"):AddItem(S, 60)
  1011. end))
  1012. end;
  1013. };
  1014.  
  1015. ["ParticleEmitter"] = {
  1016. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1017. local fp = Create("ParticleEmitter"){
  1018. Parent = Parent,
  1019. Color = ColorSequence.new(Color1, Color2),
  1020. LightEmission = LightEmission,
  1021. Size = Size,
  1022. Texture = Texture,
  1023. Transparency = Transparency,
  1024. ZOffset = ZOffset,
  1025. Acceleration = Accel,
  1026. Drag = Drag,
  1027. LockedToPart = LockedToPart,
  1028. VelocityInheritance = VelocityInheritance,
  1029. EmissionDirection = EmissionDirection,
  1030. Enabled = Enabled,
  1031. Lifetime = LifeTime,
  1032. Rate = Rate,
  1033. Rotation = Rotation,
  1034. RotSpeed = RotSpeed,
  1035. Speed = Speed,
  1036. VelocitySpread = VelocitySpread,
  1037. }
  1038. return fp
  1039. end;
  1040. };
  1041.  
  1042. CreateTemplate = {
  1043.  
  1044. };
  1045. }
  1046.  
  1047.  
  1048.  
  1049. New = function(Object, Parent, Name, Data)
  1050. local Object = Instance.new(Object)
  1051. for Index, Value in pairs(Data or {}) do
  1052. Object[Index] = Value
  1053. end
  1054. Object.Parent = Parent
  1055. Object.Name = Name
  1056. return Object
  1057. end
  1058. local halocolor = BrickColor.new("Pastel light blue")
  1059. local halocolor2 = BrickColor.new("Cool yellow")
  1060. local starcolor = BrickColor.new("Bright yellow")
  1061. local lunacolor = BrickColor.new("Navy blue")
  1062. local lunacolor2 = BrickColor.new("Bright blue")
  1063. local wepcolor = BrickColor.new("Really black")
  1064. local maincolor = BrickColor.new("Really black")
  1065.  
  1066. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  1067. local gui = it(GuiType)
  1068. gui.Parent = parent
  1069. gui.Text = text
  1070. gui.BackgroundTransparency = backtrans
  1071. gui.BackgroundColor3 = backcol
  1072. gui.SizeConstraint = "RelativeXY"
  1073. gui.TextXAlignment = "Center"
  1074. gui.TextYAlignment = "Center"
  1075. gui.Position = pos
  1076. gui.Size = size
  1077. gui.Font = "SourceSans"
  1078. gui.FontSize = "Size14"
  1079. gui.TextWrapped = false
  1080. gui.TextStrokeTransparency = 0
  1081. gui.TextColor = BrickColor.new("White")
  1082. return gui
  1083. end
  1084. --------------------------- GUI STUFF
  1085. --[[local basgui = it("GuiMain")
  1086. basgui.Parent = plr.PlayerGui
  1087. basgui.Name = "VISgui"
  1088. local fullscreenz = it("Frame")
  1089. fullscreenz.Parent = basgui
  1090. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  1091. fullscreenz.BackgroundTransparency = 1
  1092. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  1093. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  1094. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  1095. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  1096. imgl2.BackgroundTransparency = 1
  1097. imgl2.BorderSizePixel = 0
  1098. imgl2.ImageTransparency = 0.5
  1099. imgl2.ImageColor3 = Color3.new(1,0,0)
  1100. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  1101. imgl2.Size = UDim2.new(0,1000,0,1000)
  1102. imgl2.Image = "rbxassetid://2325939897"
  1103. local techc = imgl2:Clone()
  1104. techc.Parent = fullscreenz
  1105. techc.ImageTransparency = 0
  1106. techc.Size = UDim2.new(0,900,0,900)
  1107. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  1108. techc.ImageColor3 = Color3.new(1,0,0)
  1109. techc.Image = "rbxassetid://2273224484"
  1110. local circl = imgl2:Clone()
  1111. circl.Parent = fullscreenz
  1112. circl.ImageTransparency = 0
  1113. circl.Size = UDim2.new(0,550,0,550)
  1114. circl.Position = UDim2.new(0.75,25,0.55,25)
  1115. circl.ImageColor3 = Color3.new(0,0,0)
  1116. circl.Image = "rbxassetid://2312119891"
  1117. local circl2 = imgl2:Clone()
  1118. circl2.Parent = fullscreenz
  1119. circl2.ImageTransparency = 0
  1120. circl2.Size = UDim2.new(0,700,0,700)
  1121. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  1122. circl2.ImageColor3 = Color3.new(1,0,0)
  1123. circl2.Image = "rbxassetid://2312119891"
  1124. local imgl2b = imgl2:Clone()
  1125. imgl2b.Parent = fullscreenz
  1126. imgl2b.ImageTransparency = 0
  1127. imgl2b.Size = UDim2.new(0,800,0,800)
  1128. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  1129. imgl2b.ImageColor3 = Color3.new(0,0,0)
  1130. local ned = Instance.new("TextLabel",fullscreenz)
  1131. ned.ZIndex = 2
  1132. ned.Font = "Arcade"
  1133. ned.BackgroundTransparency = 1
  1134. ned.BorderSizePixel = 0.65
  1135. ned.Size = UDim2.new(0.3,0,0.2,0)
  1136. ned.Position = UDim2.new(0.7,0,0.8,0)
  1137. ned.TextColor3 = BrickColor.new("Really red").Color
  1138. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  1139. ned.TextScaled = true
  1140. ned.TextStrokeTransparency = 0
  1141. ned.Text = "POWER"
  1142. ned.TextSize = 24
  1143. ned.Rotation = 1
  1144. ned.TextXAlignment = "Right"
  1145. ned.TextYAlignment = "Bottom"]]
  1146.  
  1147. local gui = script.GUI;
  1148. gui.Parent = plr.PlayerGui
  1149. local ned = gui.Right.Mode
  1150. local scr = gui.Left.Script
  1151. local circl = gui.Right.Circle1
  1152. local circl2 = gui.Right.Circle2
  1153. local vis={r={},l={}}
  1154. for _,v in next, gui.Right:children() do if(v.Name=='VisBar')then table.insert(vis.r,v) end end
  1155. for _,v in next, gui.Left:children() do if(v.Name=='VisBar')then table.insert(vis.l,v) end end
  1156. local right = gui.Right
  1157. local left = gui.Left
  1158.  
  1159. local extrawingmod1 = Instance.new("Model",char)
  1160. local extrawingmod2 = Instance.new("Model",char)
  1161. local m = Instance.new("Model",char)
  1162. local mw1 = Instance.new("Model",char)
  1163. local mw2 = Instance.new("Model",char)
  1164. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  1165. local p = Instance.new("Part")
  1166. p.TopSurface = 0
  1167. p.BottomSurface = 0
  1168. p.Parent = parent
  1169. p.Size = Vector3.new(0.1,0.1,0.1)
  1170. p.Transparency = transparency
  1171. p.Reflectance = reflectance
  1172. p.CanCollide = false
  1173. p.Locked = true
  1174. p.BrickColor = brickcolor
  1175. p.Material = material
  1176. return p
  1177. end
  1178.  
  1179. function CreateMesh(parent,meshtype,x1,y1,z1)
  1180. local mesh = Instance.new("SpecialMesh",parent)
  1181. mesh.MeshType = meshtype
  1182. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1183. return mesh
  1184. end
  1185.  
  1186. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  1187. local mesh = Instance.new("SpecialMesh",parent)
  1188. mesh.MeshType = "FileMesh"
  1189. mesh.MeshId = meshid
  1190. mesh.Scale = Vector3.new(x1,y1,z1)
  1191. return mesh
  1192. end
  1193.  
  1194.  
  1195. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1196. local mesh = Instance.new("SpecialMesh",parent)
  1197. mesh.MeshType = "FileMesh"
  1198. mesh.MeshId = meshid
  1199. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1200. mesh.Scale = Vector3.new(x1,y1,z1)
  1201. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1202. return mesh
  1203. end
  1204.  
  1205. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1206. local weld = Instance.new("Weld")
  1207. weld.Parent = parent
  1208. weld.Part0 = part0
  1209. weld.Part1 = part1
  1210. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1211. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1212. return weld
  1213. end
  1214.  
  1215.  
  1216. --------------
  1217. -------------- ground effect
  1218. local cen = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1219. 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))
  1220. local effar = Instance.new("ParticleEmitter",cen)
  1221. effar.Texture = "rbxassetid://2344870656"
  1222. effar.LightEmission = 1
  1223. effar.Color = ColorSequence.new(Color3.new(1,0,0))
  1224. effar.Rate = 50
  1225. effar.Enabled = false
  1226. effar.EmissionDirection = "Front"
  1227. effar.Lifetime = NumberRange.new(1)
  1228. 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)})
  1229. effar.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  1230. effar.Speed = NumberRange.new(80,90)
  1231. effar.Acceleration = Vector3.new(0,10,0)
  1232. effar.Drag = 5
  1233. effar.Rotation = NumberRange.new(-500,500)
  1234. effar.SpreadAngle = Vector2.new(0,900)
  1235. effar.RotSpeed = NumberRange.new(-500,500)
  1236.  
  1237. ----
  1238. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1239. 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))
  1240. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1241. 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))
  1242.  
  1243. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1244. CreateMesh(handle,"Brick",0,0,0)
  1245. 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))
  1246.  
  1247. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1248. CreateMesh(handle,"Brick",0,0,0)
  1249. CreateWeld(handlex,tors,handlex,0,-1.5,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1250.  
  1251. local handle = CreateParta(m,1,1,"Neon",maincolor)
  1252. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1253. 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))
  1254.  
  1255. Wing=script.Wing
  1256. Wing.Parent=nil
  1257. Ring=script.Ring
  1258. Halo=script.Halo
  1259. SHalo=script.SHalo
  1260.  
  1261. Halo.Parent=nil
  1262. SHalo.Parent=nil
  1263. Halo1=Halo:Clone()
  1264. Halo2=SHalo:Clone()
  1265. Halo1.Parent=mw2
  1266. Halo2.Parent=mw2
  1267.  
  1268. Halo1.Anchored=false
  1269. Halo2.Anchored=false
  1270.  
  1271. local h1weld = CreateWeld(hed,hed,Halo1,0,0,0,0,0,0,0,1.5,0,math.rad(90),0,0)
  1272. local h2weld = CreateWeld(hed,hed,Halo2,0,0,0,0,0,0,0,2,0,math.rad(90),0,0)
  1273.  
  1274. for _,v in next, Wing:children() do v.Anchored=false end
  1275. for _,v in next, Ring:children() do v.Anchored=false end
  1276.  
  1277. Ring.Parent = m
  1278. Ring.Union.Part.Part0=Ring.Union
  1279. Ring.Union.Part.Part1=Ring.Part
  1280. CreateWeld(Ring.Part,handlex,Ring.Part,0,0,1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1281. for _,v in next, Ring:children() do v.Parent=mw2 end
  1282.  
  1283. local wingo1 = Wing:Clone();
  1284. local wingo2 = Wing:Clone();
  1285. local wingo3 = Wing:Clone();
  1286. local wingo4 = Wing:Clone();
  1287. local wingo5 = Wing:Clone();
  1288. local wingo6 = Wing:Clone();
  1289.  
  1290. local lwing1 = wingo1.WingToWeld
  1291. local lwing2 = wingo2.WingToWeld
  1292. local lwing3 = wingo3.WingToWeld
  1293. local lwing4 = wingo4.WingToWeld
  1294. local lwing5 = wingo5.WingToWeld
  1295. local lwing6 = wingo6.WingToWeld
  1296.  
  1297. lwing1.Parent = m
  1298. lwing2.Parent = m
  1299. lwing3.Parent = m
  1300. lwing4.Parent = m
  1301. lwing5.Parent = m
  1302. lwing6.Parent = m
  1303.  
  1304. wingo1.Wing.WingToWeld.Part0 = wingo1.Wing
  1305. wingo1.Wing.WingToWeld.Part1 = lwing1
  1306. wingo2.Wing.WingToWeld.Part0 = wingo2.Wing
  1307. wingo2.Wing.WingToWeld.Part1 = lwing2
  1308. wingo3.Wing.WingToWeld.Part0 = wingo3.Wing
  1309. wingo3.Wing.WingToWeld.Part1 = lwing3
  1310. wingo4.Wing.WingToWeld.Part0 = wingo4.Wing
  1311. wingo4.Wing.WingToWeld.Part1 = lwing4
  1312. wingo5.Wing.WingToWeld.Part0 = wingo5.Wing
  1313. wingo5.Wing.WingToWeld.Part1 = lwing5
  1314. wingo6.Wing.WingToWeld.Part0 = wingo6.Wing
  1315. wingo6.Wing.WingToWeld.Part1 = lwing6
  1316.  
  1317. local tl1 = wingo1.Wing.Trail
  1318. local tl2 = wingo2.Wing.Trail
  1319. local tl3 = wingo3.Wing.Trail
  1320. local tl4 = wingo4.Wing.Trail
  1321. local tl5 = wingo5.Wing.Trail
  1322. local tl6 = wingo6.Wing.Trail
  1323.  
  1324. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1325. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1326. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1327. 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))
  1328. 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))
  1329. 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))
  1330.  
  1331. for _,v in next, wingo1:children() do v.Transparency = 1 v.Parent=mw1 end
  1332. for _,v in next, wingo2:children() do v.Transparency = 1 v.Parent=mw1 end
  1333. for _,v in next, wingo3:children() do v.Transparency = 1 v.Parent=mw1 end
  1334. for _,v in next, wingo4:children() do v.Transparency = 1 v.Parent=extrawingmod1 end
  1335. for _,v in next, wingo5:children() do v.Transparency = 1 v.Parent=extrawingmod1 end
  1336. for _,v in next, wingo6:children() do v.Transparency = 1 v.Parent=extrawingmod1 end
  1337. tl1.Enabled=false
  1338. tl2.Enabled=false
  1339. tl3.Enabled=false
  1340. tl4.Enabled=false
  1341. tl5.Enabled=false
  1342. tl6.Enabled=false
  1343.  
  1344. local wingo1 = Wing:Clone();
  1345. local wingo2 = Wing:Clone();
  1346. local wingo3 = Wing:Clone();
  1347. local wingo4 = Wing:Clone();
  1348. local wingo5 = Wing:Clone();
  1349. local wingo6 = Wing:Clone();
  1350.  
  1351. local rwing1 = wingo1.WingToWeld
  1352. local rwing2 = wingo2.WingToWeld
  1353. local rwing3 = wingo3.WingToWeld
  1354. local rwing4 = wingo4.WingToWeld
  1355. local rwing5 = wingo5.WingToWeld
  1356. local rwing6 = wingo6.WingToWeld
  1357.  
  1358. rwing1.Parent = m
  1359. rwing2.Parent = m
  1360. rwing3.Parent = m
  1361. rwing4.Parent = m
  1362. rwing5.Parent = m
  1363. rwing6.Parent = m
  1364.  
  1365. wingo1.Wing.WingToWeld.Part0 = wingo1.Wing
  1366. wingo1.Wing.WingToWeld.Part1 = rwing1
  1367. wingo2.Wing.WingToWeld.Part0 = wingo2.Wing
  1368. wingo2.Wing.WingToWeld.Part1 = rwing2
  1369. wingo3.Wing.WingToWeld.Part0 = wingo3.Wing
  1370. wingo3.Wing.WingToWeld.Part1 = rwing3
  1371. wingo4.Wing.WingToWeld.Part0 = wingo4.Wing
  1372. wingo4.Wing.WingToWeld.Part1 = rwing4
  1373. wingo5.Wing.WingToWeld.Part0 = wingo5.Wing
  1374. wingo5.Wing.WingToWeld.Part1 = rwing5
  1375. wingo6.Wing.WingToWeld.Part0 = wingo6.Wing
  1376. wingo6.Wing.WingToWeld.Part1 = rwing6
  1377.  
  1378. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1379. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1380. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1381. 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))
  1382. 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))
  1383. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-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))
  1384. local tr1 = wingo1.Wing.Trail
  1385. local tr2 = wingo2.Wing.Trail
  1386. local tr3 = wingo3.Wing.Trail
  1387. local tr4 = wingo4.Wing.Trail
  1388. local tr5 = wingo5.Wing.Trail
  1389. local tr6 = wingo6.Wing.Trail
  1390. tr4.Enabled=false
  1391. tr5.Enabled=false
  1392. tr6.Enabled=false
  1393. for _,v in next, wingo1:children() do v.Parent=mw2 end
  1394. for _,v in next, wingo2:children() do v.Parent=mw2 end
  1395. for _,v in next, wingo3:children() do v.Parent=mw2 end
  1396. for _,v in next, wingo4:children() do v.Transparency = 1 v.Parent=extrawingmod2 end
  1397. for _,v in next, wingo5:children() do v.Transparency = 1 v.Parent=extrawingmod2 end
  1398. for _,v in next, wingo6:children() do v.Transparency = 1 v.Parent=extrawingmod2 end
  1399.  
  1400. for i,v in pairs(WanderersBlade:GetChildren())do v.Anchored = false v.Transparency = 1 end
  1401. WanderersBlade.Blade.Trail.Enabled=false
  1402. local BladesWeld = CreateWeld(WanderersBlade.Blade.Weld,ra,WanderersBlade.Blade.Weld,0,0,0,math.rad(180),math.rad(90),math.rad(0),0,-1,0,math.rad(90),math.rad(0),math.rad(0))
  1403.  
  1404. -- Right wing.
  1405. --[[
  1406. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1407. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1408. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1409.  
  1410. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1411. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1412. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1413. A0 = Instance.new('Attachment',wed)
  1414. A0.Position = vt(0,0.25,0.25)
  1415. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1416. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1417. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1418. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1419. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1420. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1421. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1422. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1423. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1424. A1 = Instance.new('Attachment',wed)
  1425. A1.Position = vt(0,2,0.25)
  1426.  
  1427. tr1 = Instance.new('Trail',wed)
  1428. tr1.Attachment0 = A1
  1429. tr1.Attachment1 = A0
  1430. tr1.Texture = "rbxassetid://2108945559"
  1431. tr1.LightEmission = 1
  1432. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1433. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1434. tr1.Lifetime = 0.6
  1435.  
  1436. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1437. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1438. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1439.  
  1440. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1441. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1442. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1443. A0 = Instance.new('Attachment',wed)
  1444. A0.Position = vt(0,0.25,0.25)
  1445. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1446. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1447. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1448. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1449. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1450. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1451. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1452. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1453. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1454. A1 = Instance.new('Attachment',wed)
  1455. A1.Position = vt(0,2,0.25)
  1456.  
  1457. tr2 = Instance.new('Trail',wed)
  1458. tr2.Attachment0 = A1
  1459. tr2.Attachment1 = A0
  1460. tr2.Texture = "rbxassetid://2108945559"
  1461. tr2.LightEmission = 1
  1462. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1463. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1464. tr2.Lifetime = 0.6
  1465.  
  1466. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1467. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1468. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1469.  
  1470. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1471. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1472. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1473. A0 = Instance.new('Attachment',wed)
  1474. A0.Position = vt(0,0.25,0.25)
  1475. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1476. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1477. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1478. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1479. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1480. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1481. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1482. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1483. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1484. A1 = Instance.new('Attachment',wed)
  1485. A1.Position = vt(0,2,0.25)
  1486.  
  1487. tr3 = Instance.new('Trail',wed)
  1488. tr3.Attachment0 = A1
  1489. tr3.Attachment1 = A0
  1490. tr3.Texture = "rbxassetid://2108945559"
  1491. tr3.LightEmission = 1
  1492. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1493. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1494. tr3.Lifetime = 0.6
  1495.  
  1496.  
  1497. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1498. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1499. 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))
  1500.  
  1501. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1502. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1503. 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))
  1504. A0 = Instance.new('Attachment',wed)
  1505. A0.Position = vt(0,0.25*2,0.25*2)
  1506. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1507. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1508. 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))
  1509. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1510. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1511. 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))
  1512. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1513. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1514. 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))
  1515. A1 = Instance.new('Attachment',wed)
  1516. A1.Position = vt(0,2,0.25)
  1517.  
  1518. tr4 = Instance.new('Trail',wed)
  1519. tr4.Attachment0 = A1
  1520. tr4.Attachment1 = A0
  1521. tr4.Texture = "rbxassetid://2108945559"
  1522. tr4.LightEmission = 1
  1523. tr4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1524. tr4.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1525. tr4.Lifetime = 0.6
  1526.  
  1527. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1528. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1529. 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))
  1530.  
  1531. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1532. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1533. 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))
  1534. A0 = Instance.new('Attachment',wed)
  1535. A0.Position = vt(0,0.25*2,0.25*2)
  1536. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1537. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1538. 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))
  1539. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1540. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1541. 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))
  1542. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1543. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1544. 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))
  1545. A1 = Instance.new('Attachment',wed)
  1546. A1.Position = vt(0,2,0.25)
  1547.  
  1548. tr5 = Instance.new('Trail',wed)
  1549. tr5.Attachment0 = A1
  1550. tr5.Attachment1 = A0
  1551. tr5.Texture = "rbxassetid://2108945559"
  1552. tr5.LightEmission = 1
  1553. tr5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1554. tr5.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1555. tr5.Lifetime = 0.6
  1556.  
  1557. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1558. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1559. 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))
  1560.  
  1561. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1562. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1563. 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))
  1564. A0 = Instance.new('Attachment',wed)
  1565. A0.Position = vt(0,0.25*2,0.25*2)
  1566. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1567. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1568. 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))
  1569. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1570. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1571. 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))
  1572. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1573. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1574. 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))
  1575. A1 = Instance.new('Attachment',wed)
  1576. A1.Position = vt(0,2,0.25)
  1577.  
  1578. tr6 = Instance.new('Trail',wed)
  1579. tr6.Attachment0 = A1
  1580. tr6.Attachment1 = A0
  1581. tr6.Texture = "rbxassetid://2108945559"
  1582. tr6.LightEmission = 1
  1583. tr6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1584. tr6.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1585. tr6.Lifetime = 0.6
  1586.  
  1587. tr4.Enabled = false
  1588. tr5.Enabled = false
  1589. tr6.Enabled = false]]
  1590. ---- HERES THE RING
  1591.  
  1592.  
  1593. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1594. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1595. 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))
  1596. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1597. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1598. 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))
  1599. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1600. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1601. 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))
  1602.  
  1603.  
  1604. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1605. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1606. 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))
  1607.  
  1608. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1609. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1610. 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))
  1611.  
  1612.  
  1613.  
  1614. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1615. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1616. 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))
  1617.  
  1618. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1619. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1620. 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))
  1621.  
  1622. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1623. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1624. 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))
  1625.  
  1626. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1627. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1628. 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))
  1629. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1630. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1631. 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))
  1632.  
  1633. --- second ring
  1634.  
  1635. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1636. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1637. 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))
  1638. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1639. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1640. 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))
  1641. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1642. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1643. 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))
  1644.  
  1645. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1646. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1647. 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))
  1648.  
  1649. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1650. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1651. 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))
  1652.  
  1653.  
  1654.  
  1655. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1656. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1657. 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))
  1658.  
  1659. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1660. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1661. 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))
  1662.  
  1663. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1664. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1665. 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))
  1666.  
  1667. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1668. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1669. 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))
  1670. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1671. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1672. 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))]]--
  1673.  
  1674.  
  1675. local m2 = Instance.new("Model")
  1676. local m3 = Instance.new("Model")
  1677. for i, v in pairs(m:GetChildren()) do
  1678. if v:IsA("BasePart") then
  1679. v.BrickColor = BrickColor.new("Really black")
  1680. v.Material = "Glass"
  1681. end
  1682. end
  1683. for i, v in pairs(m2:GetChildren()) do
  1684. if v:IsA("BasePart") then
  1685. v.BrickColor = BrickColor.new("Crimson")
  1686. v.Material = "Granite"
  1687. end
  1688. end
  1689. for i, v in pairs(m3:GetChildren()) do
  1690. if v:IsA("BasePart") then
  1691. v.BrickColor = BrickColor.new("Really red")
  1692. v.Material = "Neon"
  1693. end
  1694. end
  1695. for i, v in pairs(mw2:GetChildren()) do
  1696. if v:IsA("BasePart") then
  1697. v.BrickColor = BrickColor.new("Really red")
  1698. v.Material = "Neon"
  1699. end
  1700. end
  1701. for i, v in pairs(mw1:GetChildren()) do
  1702. if v:IsA("BasePart") then
  1703. v.Transparency = 1
  1704. v.BrickColor = BrickColor.new("Really red")
  1705. v.Material = "Neon"
  1706. end
  1707. end
  1708. for i, v in pairs(extrawingmod1:GetChildren()) do
  1709. if v:IsA("BasePart") then
  1710. v.Transparency = 1
  1711. v.BrickColor = BrickColor.new("White")
  1712. v.Material = "Neon"
  1713. end
  1714. end
  1715. for i, v in pairs(extrawingmod2:GetChildren()) do
  1716. if v:IsA("BasePart") then
  1717. v.Transparency = 1
  1718. v.BrickColor = BrickColor.new("White")
  1719. v.Material = "Neon"
  1720. end
  1721. end
  1722. local MAINRUINCOLOR = BrickColor.new("Really red")
  1723. ------
  1724.  
  1725.  
  1726. function RemoveOutlines(part)
  1727. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1728. end
  1729. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1730. local Part = Create("Part")({
  1731. Parent = Parent,
  1732. Reflectance = Reflectance,
  1733. Transparency = Transparency,
  1734. CanCollide = false,
  1735. Locked = true,
  1736. BrickColor = BrickColor.new(tostring(BColor)),
  1737. Name = Name,
  1738. Size = Size,
  1739. Material = Material
  1740. })
  1741. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1742. RemoveOutlines(Part)
  1743. return Part
  1744. end
  1745. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1746. local Msh = Create(Mesh)({
  1747. Parent = Part,
  1748. Offset = OffSet,
  1749. Scale = Scale
  1750. })
  1751. if Mesh == "SpecialMesh" then
  1752. Msh.MeshType = MeshType
  1753. Msh.MeshId = MeshId
  1754. end
  1755. return Msh
  1756. end
  1757. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1758. local Weld = Create("Weld")({
  1759. Parent = Parent,
  1760. Part0 = Part0,
  1761. Part1 = Part1,
  1762. C0 = C0,
  1763. C1 = C1
  1764. })
  1765. return Weld
  1766. end
  1767.  
  1768. Character=plr.Character
  1769. PlayerGui=plr.PlayerGui
  1770. Backpack=plr.Backpack
  1771. Torso=Character.Torso
  1772. Head=Character.Head
  1773. Humanoid=Character.Humanoid
  1774. m=Instance.new('Model',Character)
  1775. LeftArm=Character["Left Arm"]
  1776. LeftLeg=Character["Left Leg"]
  1777. RightArm=Character["Right Arm"]
  1778. RightLeg=Character["Right Leg"]
  1779. LS=Torso["Left Shoulder"]
  1780. LH=Torso["Left Hip"]
  1781. RS=Torso["Right Shoulder"]
  1782. RH=Torso["Right Hip"]
  1783. Face = Head.face
  1784. Neck=Torso.Neck
  1785. it=Instance.new
  1786. attacktype=1
  1787. vt=Vector3.new
  1788. cf=CFrame.new
  1789. euler=CFrame.fromEulerAnglesXYZ
  1790. angles=CFrame.Angles
  1791. cloaked=false
  1792. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1793. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1794. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1795. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1796. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1797. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1798. RootPart=Character.HumanoidRootPart
  1799. RootJoint=RootPart.RootJoint
  1800. RootCF=euler(-1.57,0,3.14)
  1801. attack = false
  1802. attackdebounce = false
  1803. deb=false
  1804. equipped=true
  1805. hand=false
  1806. MMouse=nil
  1807. combo=0
  1808. mana=0
  1809. trispeed=.2
  1810. attackmode='none'
  1811. local idle=0
  1812. local Anim="Idle"
  1813. local Effects={}
  1814. local gun=false
  1815. local shoot=false
  1816. local sine = 0
  1817. local change = 1
  1818.  
  1819. function Weld(part0,part1,c0,c1)
  1820. local weld = Instance.new("Weld")
  1821. weld.Parent = part0
  1822. weld.Part0 = part0
  1823. weld.Part1 = part1
  1824. weld.C0 = c0 or cf()
  1825. weld.C1 = c1 or cf()
  1826. return weld
  1827. end
  1828. GasCan.Parent=char
  1829. GasCan.Anchored=false
  1830. GasCan.Transparency=1
  1831. local gasW = Weld(RightArm,GasCan,cf(0,-1.35,0)*angles(0,math.rad(180),0))
  1832. TheDark.Parent=char
  1833. for _,v in next, TheDark:GetDescendants() do
  1834. if(v:IsA'Decal' or v:IsA'Texture')then v.Transparency = 1 elseif(v:IsA'ParticleEmitter' or v:IsA'Beam')then v.Enabled = false end
  1835. if(v:IsA'BasePart')then
  1836. v.CanCollide = false
  1837. v.Anchored = false
  1838. v.Locked = true
  1839. v.Massless = true
  1840. v.Transparency=1
  1841. Weld(TheDark.PrimaryPart,v,TheDark.PrimaryPart.CFrame:inverse()*v.CFrame)
  1842. v.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  1843. end
  1844. end
  1845. local hitbox = TheDark:WaitForChild'Hitbox'
  1846. local AeshW = Instance.new("Motor")
  1847. AeshW.Parent = TheDark.PrimaryPart
  1848. AeshW.Part0 = RightArm
  1849. AeshW.Part1 = TheDark.PrimaryPart
  1850. AeshW.C0 = cf(0,-.9,.4)*angles(math.rad(180),math.rad(90),math.rad(0))
  1851.  
  1852. function RecolorTextAndRename(name,col1,col2,font)
  1853. modet.TextStrokeColor3 = col2
  1854. modet.TextColor3 = col1
  1855. modet.Font = font
  1856. modet.Text = name
  1857. scr.TextColor3 = col2
  1858. scr.TextStrokeColor3 = col1
  1859. circl.ImageColor3=col1
  1860. circl2.ImageColor3=col2
  1861. ned.Font = font
  1862. ned.Text = name
  1863. ned.TextColor3 = col1
  1864. ned.TextStrokeColor3 = col2
  1865. end
  1866.  
  1867. local disably = true
  1868.  
  1869. function warnedpeople(text,represfont,color,color2)
  1870. if disably ~= true then
  1871. CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
  1872. CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
  1873. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1874. coroutine.resume(coroutine.create(function()
  1875. if v.PlayerGui:FindFirstChild("Spinny")~= nil then
  1876. v.PlayerGui:FindFirstChild("Spinny"):destroy()
  1877. end
  1878. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  1879. scrg.Name = "Spinny"
  1880. local frm = Instance.new("Frame",scrg)
  1881. frm.BackgroundTransparency = 0.25
  1882. frm.BackgroundColor3 = color
  1883. frm.BorderSizePixel = 0
  1884. frm.Rotation = 45
  1885. frm.Size = UDim2.new(3,0,0,100)
  1886. frm.Position = UDim2.new(-4,0,0,0)
  1887. local frm2 = frm:Clone()
  1888. frm2.Parent = scrg
  1889. frm2.BackgroundColor3 = color2
  1890. frm2.Position = UDim2.new(-4.05,0,0,0)
  1891. local imlb = Instance.new("ImageLabel",scrg)
  1892. imlb.BackgroundTransparency = 1
  1893. imlb.BackgroundColor3 = Color3.new(0,0,0)
  1894. imlb.Image = "rbxassetid://2344851144"
  1895. imlb.Size = UDim2.new(0,750,0,750)
  1896. imlb.ImageColor3 = color2
  1897. imlb.ImageTransparency = 0.25
  1898. imlb.Position = UDim2.new(-2.5,0,-2.5,0)
  1899. local imlb2 = imlb:Clone()
  1900. imlb2.Image = "rbxassetid://2325939897"
  1901. imlb2.Size = UDim2.new(1,0,1,0)
  1902. imlb2.ImageColor3 = color
  1903. imlb2.ImageTransparency = 0
  1904. imlb2.Position = UDim2.new(0,0,0,0)
  1905. local imlb3 = imlb:Clone()
  1906. imlb3.Image = "rbxassetid://2344830904"
  1907. imlb3.Size = UDim2.new(1,0,1,0)
  1908. imlb3.ImageColor3 = color2
  1909. imlb3.ImageTransparency = 0
  1910. imlb3.Position = UDim2.new(0,0,0,0)
  1911. local imlb4 = imlb:Clone()
  1912. imlb4.Image = "rbxassetid://2344870656"
  1913. imlb4.Size = UDim2.new(3,0,3,0)
  1914. imlb4.ImageColor3 = Color3.new(1,1,1)
  1915. imlb4.ImageTransparency = 0
  1916. imlb4.Position = UDim2.new(-1,0,-1,0)
  1917. local imlb5 = imlb:Clone()
  1918. imlb5.Image = "rbxassetid://2344870656"
  1919. imlb5.Size = UDim2.new(10,0,10,0)
  1920. imlb5.ImageColor3 = color2
  1921. imlb5.ImageTransparency = 0
  1922. imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
  1923. imlb2.Parent = imlb
  1924. imlb3.Parent = imlb
  1925. imlb4.Parent = imlb
  1926. imlb5.Parent = imlb
  1927. local txtlb2 = Instance.new("TextLabel",imlb)
  1928. txtlb2.Text = text
  1929. txtlb2.Font = represfont
  1930. txtlb2.TextColor3 = color
  1931. txtlb2.TextStrokeTransparency = 0
  1932. txtlb2.BackgroundTransparency = 1
  1933. txtlb2.TextStrokeColor3 = color2
  1934. txtlb2.TextScaled = true
  1935. txtlb2.Size = UDim2.new(1,0,1,0)
  1936. txtlb2.Position = UDim2.new(0,0,0,0)
  1937. local fvalen = 0.55
  1938. local fval = -0.49
  1939. coroutine.resume(coroutine.create(function()
  1940. while true do
  1941. swait()
  1942. if chaosmode == true then
  1943. txtlb2.Rotation = math.random(-1,1)
  1944. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1945. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1946. imlb.ImageColor3 = BrickColor.random().Color
  1947. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  1948. end
  1949. end
  1950. end))
  1951. coroutine.resume(coroutine.create(function()
  1952. while true do
  1953. swait()
  1954. if scrg.Parent ~= nil then
  1955. fvalen = fvalen - 0.0001
  1956. elseif scrg.Parent == nil then
  1957. break
  1958. end
  1959. end
  1960. end))
  1961. local flol = -5
  1962. local flil = 1.6
  1963. coroutine.resume(coroutine.create(function()
  1964. for i = 0, 49 do
  1965. swait()
  1966. flol = flol + 0.125
  1967. flil = flil - 0.1
  1968. frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
  1969. frm.Rotation = frm.Rotation - 0.25
  1970. frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
  1971. frm2.Rotation = frm.Rotation + 0.325
  1972. imlb3.Rotation = imlb3.Rotation - 10
  1973. imlb2.Rotation = imlb.Rotation + 7.5
  1974. imlb.Rotation = imlb.Rotation + 5
  1975. txtlb2.Rotation = txtlb2.Rotation - 5.125
  1976. imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
  1977. end
  1978. for i = 0, 99 do
  1979. swait()
  1980. fval = fval + 0.05
  1981. flol = flol + 0.005
  1982. frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
  1983. frm.Rotation = frm.Rotation - 0.075
  1984. frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
  1985. frm2.Rotation = frm2.Rotation + 0.125
  1986. imlb3.Rotation = imlb3.Rotation - 2
  1987. imlb2.Rotation = imlb.Rotation + 1.5
  1988. imlb.Rotation = imlb.Rotation + 1
  1989. txtlb2.Rotation = txtlb2.Rotation - 1.125
  1990. imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
  1991. end
  1992. local valinc = 0
  1993. local vinc2 = 1
  1994. for i = 0, 99 do
  1995. swait()
  1996. vinc2 = vinc2 + 0.25
  1997. valinc = valinc + 0.0001
  1998. flol = flol + valinc
  1999. flil = flil + valinc
  2000. txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
  2001. imlb3.Rotation = imlb3.Rotation - 2*vinc2
  2002. imlb.Rotation = imlb.Rotation + 1*vinc2
  2003. imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
  2004. frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
  2005. frm.Rotation = frm.Rotation + 0.1*vinc2
  2006. frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
  2007. frm2.Rotation = frm2.Rotation + 0.225*vinc2
  2008. frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
  2009. frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
  2010. imlb.ImageTransparency = imlb.ImageTransparency + 0.005
  2011. imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
  2012. imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
  2013. imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
  2014. imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
  2015. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  2016. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  2017. end
  2018. scrg:Destroy()
  2019. end))
  2020. end))
  2021. end
  2022. end
  2023. end
  2024.  
  2025.  
  2026. --save shoulders
  2027. RSH, LSH=nil, nil
  2028. --welds
  2029. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2030. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2031. LH=Torso["Left Hip"]
  2032. RH=Torso["Right Hip"]
  2033. TorsoColor=Torso.BrickColor
  2034. function NoOutline(Part)
  2035. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2036. end
  2037. ch=Character
  2038. RSH=ch.Torso["Right Shoulder"]
  2039. LSH=ch.Torso["Left Shoulder"]
  2040. --
  2041. RSH.Parent=nil
  2042. LSH.Parent=nil
  2043. --
  2044. RW.Name="Right Shoulder"
  2045. RW.Part0=ch.Torso
  2046. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2047. RW.C1=cf(0, 0.5, 0)
  2048. RW.Part1=ch["Right Arm"]
  2049. RW.Parent=ch.Torso
  2050. --
  2051. LW.Name="Left Shoulder"
  2052. LW.Part0=ch.Torso
  2053. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2054. LW.C1=cf(0, 0.5, 0)
  2055. LW.Part1=ch["Left Arm"]
  2056. LW.Parent=ch.Torso
  2057.  
  2058. local Stats=Instance.new("BoolValue")
  2059. Stats.Name="Stats"
  2060. Stats.Parent=Character
  2061. local Atk=Instance.new("NumberValue")
  2062. Atk.Name="Damage"
  2063. Atk.Parent=Stats
  2064. Atk.Value=1
  2065. local Def=Instance.new("NumberValue")
  2066. Def.Name="Defense"
  2067. Def.Parent=Stats
  2068. Def.Value=1
  2069. local Speed=Instance.new("NumberValue")
  2070. Speed.Name="Speed"
  2071. Speed.Parent=Stats
  2072. Speed.Value=1
  2073. local Mvmt=Instance.new("NumberValue")
  2074. Mvmt.Name="Movement"
  2075. Mvmt.Parent=Stats
  2076. Mvmt.Value=1
  2077.  
  2078. local donum=0
  2079.  
  2080.  
  2081. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  2082. local fp=it("Part")
  2083. fp.formFactor=formfactor
  2084. fp.Parent=parent
  2085. fp.Reflectance=reflectance
  2086. fp.Transparency=transparency
  2087. fp.CanCollide=false
  2088. fp.Locked=true
  2089. fp.BrickColor=brickcolor
  2090. fp.Name=name
  2091. fp.Size=size
  2092. fp.Position=Torso.Position
  2093. NoOutline(fp)
  2094. fp.Material="SmoothPlastic"
  2095. fp:BreakJoints()
  2096. return fp
  2097. end
  2098.  
  2099. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2100. local mesh=it(Mesh)
  2101. mesh.Parent=part
  2102. if Mesh=="SpecialMesh" then
  2103. mesh.MeshType=meshtype
  2104. if meshid~="nil" then
  2105. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  2106. end
  2107. end
  2108. mesh.Offset=offset
  2109. mesh.Scale=scale
  2110. return mesh
  2111. end
  2112.  
  2113. function weld(parent,part0,part1,c0)
  2114. local weld=it("Weld")
  2115. weld.Parent=parent
  2116. weld.Part0=part0
  2117. weld.Part1=part1
  2118. weld.C0=c0
  2119. return weld
  2120. end
  2121.  
  2122. local Color1=Torso.BrickColor
  2123.  
  2124. local bodvel=Instance.new("BodyVelocity")
  2125. local bg=Instance.new("BodyGyro")
  2126.  
  2127. --------- SazEreno's Artificial HB --------------
  2128. ArtificialHB = Instance.new("BindableEvent", script)
  2129. ArtificialHB.Name = "ArtificialHB"
  2130.  
  2131. script:WaitForChild("ArtificialHB")
  2132. Frame_Speed = 1 / 60
  2133. frame = Frame_Speed
  2134. tf = 0
  2135. allowframeloss = false
  2136. tossremainder = false
  2137. lastframe = tick()
  2138. script.ArtificialHB:Fire()
  2139.  
  2140. game:GetService("RunService").Heartbeat:connect(function(s, p)
  2141. tf = tf + s
  2142. if tf >= frame then
  2143. if allowframeloss then
  2144. ArtificialHB:Fire()
  2145. lastframe = tick()
  2146. else
  2147. for i = 1, math.floor(tf / frame) do
  2148. ArtificialHB:Fire()
  2149. end
  2150. lastframe = tick()
  2151. end
  2152. if tossremainder then
  2153. tf = 0
  2154. else
  2155. tf = tf - frame * math.floor(tf / frame)
  2156. end
  2157. end
  2158. end)
  2159.  
  2160. ------------------
  2161. function swait(num)
  2162. if num == 0 or num == nil then
  2163. ArtificialHB.Event:wait()
  2164. else
  2165. for i = 1, num do
  2166. ArtificialHB.Event:wait()
  2167. end
  2168. end
  2169. end
  2170. -------- RAINBOW LEAVE IT TO ME
  2171. local r = 255
  2172. local g = 0
  2173. local b = 0
  2174. coroutine.resume(coroutine.create(function()
  2175. while wait() do
  2176. for i = 0, 254/5 do
  2177. swait()
  2178. g = g + 5
  2179. end
  2180. for i = 0, 254/5 do
  2181. swait()
  2182. r = r - 5
  2183. end
  2184. for i = 0, 254/5 do
  2185. swait()
  2186. b = b + 5
  2187. end
  2188. for i = 0, 254/5 do
  2189. swait()
  2190. g = g - 5
  2191. end
  2192. for i = 0, 254/5 do
  2193. swait()
  2194. r = r + 5
  2195. end
  2196. for i = 0, 254/5 do
  2197. swait()
  2198. b = b - 5
  2199. end
  2200. end
  2201. end))
  2202.  
  2203.  
  2204. so = function(id,par,vol,pit)
  2205. coroutine.resume(coroutine.create(function()
  2206. local sou = Instance.new("Sound",par or workspace)
  2207. sou.Volume=vol
  2208. sou.Pitch=pit or 1
  2209. sou.SoundId=id
  2210. swait()
  2211. sou:play()
  2212. game:GetService("Debris"):AddItem(sou,6)
  2213. end))
  2214. end
  2215.  
  2216. function clerp(a,b,t)
  2217. local qa = {QuaternionFromCFrame(a)}
  2218. local qb = {QuaternionFromCFrame(b)}
  2219. local ax, ay, az = a.x, a.y, a.z
  2220. local bx, by, bz = b.x, b.y, b.z
  2221. local _t = 1-t
  2222. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2223. end
  2224.  
  2225. function QuaternionFromCFrame(cf)
  2226. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2227. local trace = m00 + m11 + m22
  2228. if trace > 0 then
  2229. local s = math.sqrt(1 + trace)
  2230. local recip = 0.5/s
  2231. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2232. else
  2233. local i = 0
  2234. if m11 > m00 then
  2235. i = 1
  2236. end
  2237. if m22 > (i == 0 and m00 or m11) then
  2238. i = 2
  2239. end
  2240. if i == 0 then
  2241. local s = math.sqrt(m00-m11-m22+1)
  2242. local recip = 0.5/s
  2243. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2244. elseif i == 1 then
  2245. local s = math.sqrt(m11-m22-m00+1)
  2246. local recip = 0.5/s
  2247. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2248. elseif i == 2 then
  2249. local s = math.sqrt(m22-m00-m11+1)
  2250. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2251. end
  2252. end
  2253. end
  2254.  
  2255. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2256. local xs, ys, zs = x + x, y + y, z + z
  2257. local wx, wy, wz = w*xs, w*ys, w*zs
  2258. local xx = x*xs
  2259. local xy = x*ys
  2260. local xz = x*zs
  2261. local yy = y*ys
  2262. local yz = y*zs
  2263. local zz = z*zs
  2264. 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))
  2265. end
  2266.  
  2267. function QuaternionSlerp(a, b, t)
  2268. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2269. local startInterp, finishInterp;
  2270. if cosTheta >= 0.0001 then
  2271. if (1 - cosTheta) > 0.0001 then
  2272. local theta = math.acos(cosTheta)
  2273. local invSinTheta = 1/math.sin(theta)
  2274. startInterp = math.sin((1-t)*theta)*invSinTheta
  2275. finishInterp = math.sin(t*theta)*invSinTheta
  2276. else
  2277. startInterp = 1-t
  2278. finishInterp = t
  2279. end
  2280. else
  2281. if (1+cosTheta) > 0.0001 then
  2282. local theta = math.acos(-cosTheta)
  2283. local invSinTheta = 1/math.sin(theta)
  2284. startInterp = math.sin((t-1)*theta)*invSinTheta
  2285. finishInterp = math.sin(t*theta)*invSinTheta
  2286. else
  2287. startInterp = t-1
  2288. finishInterp = t
  2289. end
  2290. end
  2291. 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
  2292. end
  2293.  
  2294. local function CFrameFromTopBack(at, top, back)
  2295. local right = top:Cross(back)
  2296. return CFrame.new(at.x, at.y, at.z,
  2297. right.x, top.x, back.x,
  2298. right.y, top.y, back.y,
  2299. right.z, top.z, back.z)
  2300. end
  2301.  
  2302. function Triangle(a, b, c)
  2303. local edg1 = (c-a):Dot((b-a).unit)
  2304. local edg2 = (a-b):Dot((c-b).unit)
  2305. local edg3 = (b-c):Dot((a-c).unit)
  2306. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2307. a, b, c = a, b, c
  2308. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2309. a, b, c = b, c, a
  2310. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2311. a, b, c = c, a, b
  2312. else
  2313. assert(false, "unreachable")
  2314. end
  2315.  
  2316. local len1 = (c-a):Dot((b-a).unit)
  2317. local len2 = (b-a).magnitude - len1
  2318. local width = (a + (b-a).unit*len1 - c).magnitude
  2319.  
  2320. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2321.  
  2322. local list = {}
  2323.  
  2324. if len1 > 0.01 then
  2325. local w1 = Instance.new('WedgePart', m)
  2326. game:GetService("Debris"):AddItem(w1,5)
  2327. w1.Material = "SmoothPlastic"
  2328. w1.FormFactor = 'Custom'
  2329. w1.BrickColor = BrickColor.new("Really red")
  2330. w1.Transparency = 0
  2331. w1.Reflectance = 0
  2332. w1.Material = "SmoothPlastic"
  2333. w1.CanCollide = false
  2334. local l1 = Instance.new("PointLight",w1)
  2335. l1.Color = Color3.new(170,0,0)
  2336. NoOutline(w1)
  2337. local sz = Vector3.new(0.2, width, len1)
  2338. w1.Size = sz
  2339. local sp = Instance.new("SpecialMesh",w1)
  2340. sp.MeshType = "Wedge"
  2341. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2342. w1:BreakJoints()
  2343. w1.Anchored = true
  2344. w1.Parent = workspace
  2345. w1.Transparency = 0.7
  2346. table.insert(Effects,{w1,"Disappear",.01})
  2347. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2348. table.insert(list,w1)
  2349. end
  2350.  
  2351. if len2 > 0.01 then
  2352. local w2 = Instance.new('WedgePart', m)
  2353. game:GetService("Debris"):AddItem(w2,5)
  2354. w2.Material = "SmoothPlastic"
  2355. w2.FormFactor = 'Custom'
  2356. w2.BrickColor = BrickColor.new("Really red")
  2357. w2.Transparency = 0
  2358. w2.Reflectance = 0
  2359. w2.Material = "SmoothPlastic"
  2360. w2.CanCollide = false
  2361. local l2 = Instance.new("PointLight",w2)
  2362. l2.Color = Color3.new(170,0,0)
  2363. NoOutline(w2)
  2364. local sz = Vector3.new(0.2, width, len2)
  2365. w2.Size = sz
  2366. local sp = Instance.new("SpecialMesh",w2)
  2367. sp.MeshType = "Wedge"
  2368. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2369. w2:BreakJoints()
  2370. w2.Anchored = true
  2371. w2.Parent = workspace
  2372. w2.Transparency = 0.7
  2373. table.insert(Effects,{w2,"Disappear",.01})
  2374. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2375. table.insert(list,w2)
  2376. end
  2377. return unpack(list)
  2378. end
  2379.  
  2380.  
  2381. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2382. if hit.Parent == nil then
  2383. return
  2384. end
  2385. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  2386. for _, v in pairs(hit.Parent:children()) do
  2387. if v:IsA("Humanoid") then
  2388. h = v
  2389. end
  2390. end
  2391. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  2392. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2393. return
  2394. end
  2395. local c = Create("ObjectValue")({
  2396. Name = "creator",
  2397. Value = (game:service'RunService':IsServer() and plr.real or plr),
  2398. Parent = h
  2399. })
  2400. game:GetService("Debris"):AddItem(c, 0.5)
  2401. if HitSound ~= nil and HitPitch ~= nil then
  2402. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2403. end
  2404. local Damage = math.random(minim, maxim)
  2405. local blocked = false
  2406. local block = hit.Parent:findFirstChild("Block")
  2407. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2408. blocked = true
  2409. block.Value = block.Value - 1
  2410. print(block.Value)
  2411. end
  2412. if blocked == false then
  2413. HitHealth = h.Health
  2414. h.MaxHealth = 100
  2415. h.Health = h.Health - Damage
  2416. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  2417. print("gained kill")
  2418. dmg(h.Parent)
  2419. end
  2420. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2421. else
  2422. h.Health = h.Health - Damage / 2
  2423. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2424. end
  2425. if Type == "Knockdown" then
  2426. local hum = hit.Parent.Humanoid
  2427. hum.PlatformStand = true
  2428. coroutine.resume(coroutine.create(function(HHumanoid)
  2429. swait(1)
  2430. HHumanoid.PlatformStand = false
  2431. end), hum)
  2432. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2433. local bodvol = Create("BodyVelocity")({
  2434. velocity = angle * knockback,
  2435. P = 5000,
  2436. maxForce = Vector3.new(8000, 8000, 8000),
  2437. Parent = hit
  2438. })
  2439. local rl = Create("BodyAngularVelocity")({
  2440. P = 3000,
  2441. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2442. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2443. Parent = hit
  2444. })
  2445. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2446. game:GetService("Debris"):AddItem(rl, 0.5)
  2447. elseif Type == "Normal" then
  2448. local vp = Create("BodyVelocity")({
  2449. P = 500,
  2450. maxForce = Vector3.new(math.huge, 0, math.huge),
  2451. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2452. })
  2453. if knockback > 0 then
  2454. vp.Parent = hit.Parent.Head
  2455. end
  2456. game:GetService("Debris"):AddItem(vp, 0.5)
  2457. elseif Type == "Up" then
  2458. local bodyVelocity = Create("BodyVelocity")({
  2459. velocity = Vector3.new(0, 20, 0),
  2460. P = 5000,
  2461. maxForce = Vector3.new(8000, 8000, 8000),
  2462. Parent = hit
  2463. })
  2464. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2465. local bodyVelocity = Create("BodyVelocity")({
  2466. velocity = Vector3.new(0, 20, 0),
  2467. P = 5000,
  2468. maxForce = Vector3.new(8000, 8000, 8000),
  2469. Parent = hit
  2470. })
  2471. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2472. elseif Type == "Leech" then
  2473. local hum = hit.Parent.Humanoid
  2474. if hum ~= nil then
  2475. for i = 0, 2 do
  2476. Effects.Sphere.Create(BrickColor.new("Bright red"), (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').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)
  2477. end
  2478. Humanoid.Health = Humanoid.Health + 10
  2479. end
  2480. elseif Type == "UpKnock" then
  2481. local hum = hit.Parent.Humanoid
  2482. hum.PlatformStand = true
  2483. if hum ~= nil then
  2484. hitr = true
  2485. end
  2486. coroutine.resume(coroutine.create(function(HHumanoid)
  2487. swait(5)
  2488. HHumanoid.PlatformStand = false
  2489. hitr = false
  2490. end), hum)
  2491. local bodyVelocity = Create("BodyVelocity")({
  2492. velocity = Vector3.new(0, 20, 0),
  2493. P = 5000,
  2494. maxForce = Vector3.new(8000, 8000, 8000),
  2495. Parent = hit
  2496. })
  2497. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2498. local bodyVelocity = Create("BodyVelocity")({
  2499. velocity = Vector3.new(0, 20, 0),
  2500. P = 5000,
  2501. maxForce = Vector3.new(8000, 8000, 8000),
  2502. Parent = hit
  2503. })
  2504. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2505. elseif Type == "Snare" then
  2506. local bp = Create("BodyPosition")({
  2507. P = 2000,
  2508. D = 100,
  2509. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2510. position = (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').Position,
  2511. Parent = hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart'
  2512. })
  2513. game:GetService("Debris"):AddItem(bp, 1)
  2514. elseif Type == "Slashnare" then
  2515. Effects.Block.Create(BrickColor.new("Pastel Blue"), (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  2516. for i = 1, math.random(4, 5) do
  2517. Effects.Sphere.Create(BrickColor.new("Teal"), (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').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)
  2518. end
  2519. local bp = Create("BodyPosition")({
  2520. P = 2000,
  2521. D = 100,
  2522. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2523. position = (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').Position,
  2524. Parent = hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart'
  2525. })
  2526. game:GetService("Debris"):AddItem(bp, 1)
  2527. elseif Type == "Spike" then
  2528. CreateBigIceSword((hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').CFrame)
  2529. local bp = Create("BodyPosition")({
  2530. P = 2000,
  2531. D = 100,
  2532. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2533. position = (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').Position,
  2534. Parent = hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart'
  2535. })
  2536. game:GetService("Debris"):AddItem(bp, 1)
  2537. elseif Type == "Freeze" then
  2538. local Crystal = script.Crystal:Clone()
  2539. Crystal.Parent = hit.Parent
  2540. Crystal.Position = (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').Position
  2541. Crystal.Transparency = 0.4
  2542. (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart').Anchored = true
  2543. coroutine.resume(coroutine.create(function()
  2544. repeat
  2545. swait()
  2546. hit.Parent:FindFirstChildOfClass("Humanoid").Health=hit.Parent:FindFirstChildOfClass("Humanoid").Health-.5
  2547. until hit.Parent:FindFirstChildOfClass("Humanoid").Health < 1
  2548. for i= 0,10 do
  2549. swait()
  2550. Crystal.Transparency = i/10
  2551. end
  2552. hit.Parent = nil
  2553. end))
  2554. elseif Type == "Burn" then
  2555. local Burn = script:WaitForChild'Fire':Clone()
  2556. local Smoke = script:WaitForChild'Smoke':Clone()
  2557. Burn.Parent = (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart');
  2558. Smoke.Parent = (hit.Parent:FindFirstChild'Torso' or hit.Parent:FindFirstChild'UpperTorso' or hit.Parent:FindFirstChild'HumanoidRootPart');
  2559. local snd= CFuncs["LoopedSound"].Create("rbxassetid://192104941", Burn.Parent, 2.5,1)
  2560. Burn.Enabled=true
  2561. Smoke.Enabled=true
  2562. local start = tick()
  2563. coroutine.resume(coroutine.create(function()
  2564. repeat
  2565. swait(math.random(15,25))
  2566. hit.Parent:FindFirstChildOfClass("Humanoid").Health=hit.Parent:FindFirstChildOfClass("Humanoid").Health-math.random(1,3)
  2567. until hit.Parent:FindFirstChildOfClass("Humanoid").Health < 1 or tick()-start>math.random(3,7)
  2568. Burn.Enabled=false
  2569. Smoke.Enabled=false
  2570. snd:destroy()
  2571. wait(5)
  2572. Burn:destroy()
  2573. Smoke:destroy()
  2574.  
  2575. end))
  2576. end
  2577. local debounce = Create("BoolValue")({
  2578. Name = "DebounceHit",
  2579. Parent = hit.Parent,
  2580. Value = true
  2581. })
  2582. game:GetService("Debris"):AddItem(debounce, Delay)
  2583. c = Instance.new("ObjectValue")
  2584. c.Name = "creator"
  2585. c.Value = plr
  2586. c.Parent = h
  2587. game:GetService("Debris"):AddItem(c, 0.5)
  2588. end
  2589. end
  2590. function ShowDamage(Pos, Text, Time, Color)
  2591. local Rate = 0.03333333333333333
  2592. local Pos = Pos or Vector3.new(0, 0, 0)
  2593. local Text = Text or ""
  2594. local Time = Time or 2
  2595. local Color = Color or Color3.new(1, 0, 1)
  2596. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2597. EffectPart.Anchored = true
  2598. local BillboardGui = Create("BillboardGui")({
  2599. Size = UDim2.new(3, 0, 3, 0),
  2600. Adornee = EffectPart,
  2601. Parent = EffectPart
  2602. })
  2603. local TextLabel = Create("TextLabel")({
  2604. BackgroundTransparency = 1,
  2605. Size = UDim2.new(1, 0, 1, 0),
  2606. Text = Text,
  2607. TextColor3 = Color,
  2608. TextScaled = true,
  2609. Font = Enum.Font.ArialBold,
  2610. Parent = BillboardGui
  2611. })
  2612. game.Debris:AddItem(EffectPart, Time + 0.1)
  2613. EffectPart.Parent = game:GetService("Workspace")
  2614. delay(0, function()
  2615. local Frames = Time / Rate
  2616. for Frame = 1, Frames do
  2617. wait(Rate)
  2618. local Percent = Frame / Frames
  2619. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2620. TextLabel.TextTransparency = Percent
  2621. end
  2622. if EffectPart and EffectPart.Parent then
  2623. EffectPart:Destroy()
  2624. end
  2625. end)
  2626. end
  2627. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2628. for _, c in pairs(workspace:children()) do
  2629. local hum = c:findFirstChildOfClass("Humanoid")
  2630. if hum ~= nil then
  2631. local head = c:findFirstChild("Head")
  2632. if head ~= nil then
  2633. local targ = head.Position - Part.Position
  2634. local mag = targ.magnitude
  2635. if magni >= mag and c.Name ~= plr.Name then
  2636. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2637. end
  2638. end
  2639. end
  2640. end
  2641. end
  2642.  
  2643. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2644. for _, c in pairs(workspace:children()) do
  2645. local hum = c:findFirstChild("Humanoid")
  2646. if hum ~= nil then
  2647. local head = c:findFirstChild("Torso")
  2648. if head ~= nil then
  2649. local targ = head.Position - Part.Position
  2650. local mag = targ.magnitude
  2651. if magni >= mag and c.Name ~= plr.Name then
  2652. MagicBlock(MAINRUINCOLOR,head.CFrame,5,5,5,1,1,1,0.05)
  2653. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2654. end
  2655. end
  2656. end
  2657. end
  2658. end
  2659.  
  2660. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2661. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2662. end
  2663.  
  2664. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2665. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2666. prt.Anchored=true
  2667. prt.CFrame=cframe
  2668. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2669. --http://www.roblox.com/asset/?id=4770560
  2670. game:GetService("Debris"):AddItem(prt,2)
  2671. CF=prt.CFrame
  2672. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2673. for i=0,1,0.2 do
  2674. wait()
  2675. Part.CFrame=CF*cf(0,0,-0.4)
  2676. end
  2677. for i=0,1,delay do
  2678. wait()
  2679. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2680. Mesh.Scale=Mesh.Scale
  2681. end
  2682. for i=0,1,0.1 do
  2683. wait()
  2684. Part.Transparency=i
  2685. end
  2686. Part.Parent=nil
  2687. end),prt,msh,CF)
  2688. end
  2689.  
  2690. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2691. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2692. prt.Anchored=true
  2693. prt.Material = "Neon"
  2694. prt.CFrame=cframe
  2695. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2696. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2697. game:GetService("Debris"):AddItem(prt,5)
  2698. coroutine.resume(coroutine.create(function(Part,Mesh)
  2699. for i=0,1,delay do
  2700. swait()
  2701. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2702. Part.Transparency=i
  2703. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2704. end
  2705. Part.Parent=nil
  2706. end),prt,msh)
  2707. end
  2708.  
  2709. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2710. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2711. prt.Anchored=true
  2712. prt.Material = "Neon"
  2713. prt.CFrame=cframe
  2714. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2715. game:GetService("Debris"):AddItem(prt,5)
  2716. coroutine.resume(coroutine.create(function(Part,Mesh)
  2717. local rtype = rottype
  2718. for i=0,1,delay do
  2719. swait()
  2720. if rtype == 1 then
  2721. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2722. elseif rtype == 2 then
  2723. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2724. end
  2725. Part.Transparency=i
  2726. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2727. end
  2728. Part.Parent=nil
  2729. end),prt,msh)
  2730. end
  2731.  
  2732. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2733. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2734. prt.Anchored=true
  2735. prt.CFrame=cframe
  2736. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2737. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2738. game:GetService("Debris"):AddItem(prt,5)
  2739. coroutine.resume(coroutine.create(function(Part,Mesh)
  2740. for i=0,1,delay do
  2741. wait()
  2742. Part.Transparency=i
  2743. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2744. end
  2745. Part.Parent=nil
  2746. end),prt,msh)
  2747. end
  2748.  
  2749. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2750. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2751. prt.Anchored=true
  2752. prt.Material = "Neon"
  2753. prt.CFrame=cframe
  2754. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2755. game:GetService("Debris"):AddItem(prt,5)
  2756. coroutine.resume(coroutine.create(function(Part,Mesh)
  2757. local rtype = rottype
  2758. for i=0,1,delay do
  2759. swait()
  2760. if rtype == 1 then
  2761. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2762. elseif rtype == 2 then
  2763. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2764. end
  2765. Part.Transparency=i
  2766. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2767. end
  2768. Part.Parent=nil
  2769. end),prt,msh)
  2770. end
  2771.  
  2772. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2773. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2774. prt.Anchored=true
  2775. prt.Material = "Neon"
  2776. prt.CFrame=cframe
  2777. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2778. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2779. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2780. game:GetService("Debris"):AddItem(prt,5)
  2781. coroutine.resume(coroutine.create(function(Part,Mesh)
  2782. local rtype = rottype
  2783. for i=0,1,delay do
  2784. swait()
  2785. if rtype == 1 then
  2786. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2787. elseif rtype == 2 then
  2788. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2789. end
  2790. dec.Transparency=i
  2791. dec2.Transparency=i
  2792. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2793. end
  2794. Part.Parent=nil
  2795. end),prt,msh)
  2796. end
  2797.  
  2798. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2799. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2800. prt.Anchored=true
  2801. prt.Material = "Neon"
  2802. prt.CFrame=cframe
  2803. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2804. game:GetService("Debris"):AddItem(prt,5)
  2805. coroutine.resume(coroutine.create(function(Part,Mesh)
  2806. local rtype = rottype
  2807. for i=0,1,delay do
  2808. swait()
  2809. if rtype == 1 then
  2810. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2811. elseif rtype == 2 then
  2812. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2813. end
  2814. prt.Transparency=i
  2815. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2816. end
  2817. Part.Parent=nil
  2818. end),prt,msh)
  2819. end
  2820.  
  2821. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2822. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2823. prt.Anchored=true
  2824. prt.Material = "Neon"
  2825. prt.CFrame=cframe
  2826. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2827. game:GetService("Debris"):AddItem(prt,5)
  2828. coroutine.resume(coroutine.create(function(Part,Mesh)
  2829. local rtype = rottype
  2830. for i=0,1,delay do
  2831. swait()
  2832. if rtype == 1 then
  2833. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2834. elseif rtype == 2 then
  2835. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2836. end
  2837. prt.Transparency=i
  2838. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2839. end
  2840. Part.Parent=nil
  2841. end),prt,msh)
  2842. end
  2843.  
  2844. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2845. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2846. prt.Anchored=true
  2847. prt.Material = "Neon"
  2848. prt.CFrame=cframe
  2849. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2850. game:GetService("Debris"):AddItem(prt,5)
  2851. coroutine.resume(coroutine.create(function(Part,Mesh)
  2852. local rtype = rottype
  2853. for i=0,1,delay do
  2854. swait()
  2855. if rtype == 1 then
  2856. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2857. elseif rtype == 2 then
  2858. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2859. end
  2860. prt.Transparency=i
  2861. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2862. end
  2863. Part.Parent=nil
  2864. end),prt,msh)
  2865. end
  2866.  
  2867. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2868. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2869. prt.Anchored=true
  2870. prt.Material = "Neon"
  2871. prt.CFrame=cframe
  2872. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2873. game:GetService("Debris"):AddItem(prt,5)
  2874. coroutine.resume(coroutine.create(function(Part,Mesh)
  2875. local rtype = rottype
  2876. for i=0,1,delay do
  2877. swait()
  2878. if rtype == 1 then
  2879. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2880. elseif rtype == 2 then
  2881. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2882. end
  2883. prt.Transparency=i
  2884. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2885. end
  2886. Part.Parent=nil
  2887. end),prt,msh)
  2888. end
  2889.  
  2890. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2891. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2892. prt.Anchored=false
  2893. prt.CFrame=cframe
  2894. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2895. local wld=weld(prt,prt,Parent,cframe)
  2896. game:GetService("Debris"):AddItem(prt,5)
  2897. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2898. for i=0,1,delay do
  2899. wait()
  2900. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2901. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2902. Part.Transparency=i
  2903. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2904. end
  2905. Part.Parent=nil
  2906. end),prt,msh,wld)
  2907. end
  2908.  
  2909. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2910. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2911. prt.Anchored=false
  2912. prt.CFrame=cframe
  2913. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2914. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2915. game:GetService("Debris"):AddItem(prt,5)
  2916. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2917. for i=0,1,delay do
  2918. wait()
  2919. Weld.C0=euler(i*20,0,0)
  2920. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2921. Part.Transparency=i
  2922. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2923. end
  2924. Part.Parent=nil
  2925. end),prt,msh,wld)
  2926. end
  2927.  
  2928. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2929. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2930. prt.Anchored=true
  2931. prt.CFrame=cframe
  2932. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2933. game:GetService("Debris"):AddItem(prt,2)
  2934. coroutine.resume(coroutine.create(function(Part,Mesh)
  2935. for i=0,1,delay do
  2936. wait()
  2937. Part.CFrame=Part.CFrame
  2938. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2939. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2940. prt2.Anchored=true
  2941. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2942. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2943. game:GetService("Debris"):AddItem(prt2,2)
  2944. coroutine.resume(coroutine.create(function(Part,Mesh)
  2945. for i=0,1,0.1 do
  2946. wait()
  2947. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2948. end
  2949. Part.Parent=nil
  2950. end),prt2,msh2)
  2951. end
  2952. for i=0,1,delay*2 do
  2953. wait()
  2954. Part.CFrame=Part.CFrame
  2955. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2956. end
  2957. Part.Parent=nil
  2958. end),prt,msh)
  2959. end
  2960.  
  2961. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2962. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2963. prt.Anchored=true
  2964. prt.CFrame=cframe
  2965. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2966. game:GetService("Debris"):AddItem(prt,2)
  2967. coroutine.resume(coroutine.create(function(Part,Mesh)
  2968. for i=0,1,delay do
  2969. wait()
  2970. Part.CFrame=Part.CFrame
  2971. Part.Transparency=i
  2972. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2973. end
  2974. Part.Parent=nil
  2975. end),prt,msh)
  2976. end
  2977.  
  2978. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2979. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2980. prt.Anchored=true
  2981. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2982. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2983. game:GetService("Debris"):AddItem(prt,2)
  2984. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2985. CF=Part.CFrame
  2986. Numbb=0
  2987. randnumb=math.random()/10
  2988. rand1=math.random()/10
  2989. for i=0,1,rand1 do
  2990. wait()
  2991. CF=CF*cf(0,math.random()/2,0)
  2992. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2993. Part.CFrame=CF*euler(Numbb,0,0)
  2994. Part.Transparency=i
  2995. Numbb=Numbb+randnumb
  2996. end
  2997. Part.Parent=nil
  2998. end),prt,CF,Numbb,randnumb)
  2999. end
  3000.  
  3001. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3002. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3003. prt.Anchored=true
  3004. prt.CFrame=cframe
  3005. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  3006. game:GetService("Debris"):AddItem(prt,5)
  3007. coroutine.resume(coroutine.create(function(Part,Mesh)
  3008. for i=0,1,delay do
  3009. wait()
  3010. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  3011. Part.Transparency=i
  3012. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3013. end
  3014. Part.Parent=nil
  3015. end),prt,msh)
  3016. end
  3017.  
  3018. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3019. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3020. prt.Anchored=true
  3021. prt.CFrame=cframe
  3022. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  3023. game:GetService("Debris"):AddItem(prt,2)
  3024. coroutine.resume(coroutine.create(function(Part,Mesh)
  3025. for i=0,1,delay do
  3026. wait()
  3027. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  3028. Part.Transparency=i
  3029. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3030. end
  3031. Part.Parent=nil
  3032. end),prt,msh)
  3033. end
  3034.  
  3035. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  3036. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3037. prt.Anchored=true
  3038. prt.CFrame=cframe*cf(x,y,z)
  3039. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  3040. game:GetService("Debris"):AddItem(prt,5)
  3041. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  3042. local num=math.random()
  3043. local num2=math.random(-3,2)+math.random()
  3044. local numm=0
  3045. for i=0,1,delay*2 do
  3046. swait()
  3047. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  3048. Part.Transparency=i
  3049. numm=numm+0.01
  3050. end
  3051. Part.Parent=nil
  3052. Mesh.Parent=nil
  3053. end),prt,msh,x,y,z)
  3054. end
  3055.  
  3056. function dmgstart(dmg,what)
  3057. hitcon = what.Touched:connect(function(hit)
  3058. local hum = hit.Parent:FindFirstChild("Humanoid")
  3059. if hum and not hum:IsDescendantOf(Character) then
  3060. hum:TakeDamage(dmg)
  3061. end
  3062. end)
  3063. end
  3064.  
  3065. function dmgstop()
  3066. hitcon:disconnect()
  3067. end
  3068.  
  3069. function Cloak()
  3070. Face.Parent=nil
  3071. cloaked=true
  3072. for _,v in pairs(Torso.Parent:children()) do
  3073. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3074. coroutine.resume(coroutine.create(function()
  3075. for i=0,1,0.2 do
  3076. wait()
  3077. v.Transparency=i
  3078. end
  3079. v.Transparency=1
  3080. end))
  3081. end
  3082. if v.className=="Hat" then
  3083. hatp=v.Handle
  3084. coroutine.resume(coroutine.create(function(derp)
  3085. for i=0,1,0.2 do
  3086. wait()
  3087. derp.Transparency=i
  3088. end
  3089. derp.Transparency=1
  3090. end),hatp)
  3091. end
  3092. end
  3093. for _,v in pairs(m:children()) do
  3094. if v.className=="Part" then
  3095. coroutine.resume(coroutine.create(function()
  3096. for i=0,1,0.2 do
  3097. wait()
  3098. v.Transparency=i
  3099. end
  3100. v.Transparency=1
  3101. end))
  3102. end
  3103. end
  3104. end
  3105.  
  3106. function UnCloak()
  3107. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  3108. Face.Parent=Head
  3109. cloaked=false
  3110. for _,v in pairs(Torso.Parent:children()) do
  3111. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3112. coroutine.resume(coroutine.create(function()
  3113. for i=0,1,0.1 do
  3114. wait()
  3115. v.Transparency=v.Transparency-0.1
  3116. end
  3117. v.Transparency=0
  3118. end))
  3119. end
  3120. if v.className=="Hat" then
  3121. hatp=v.Handle
  3122. coroutine.resume(coroutine.create(function(derp)
  3123. for i=0,1,0.1 do
  3124. wait()
  3125. derp.Transparency=derp.Transparency-0.1
  3126. end
  3127. derp.Transparency=0
  3128. end),hatp)
  3129. end
  3130. end
  3131. for _,v in pairs(m:children()) do
  3132. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  3133. coroutine.resume(coroutine.create(function()
  3134. for i=0,1,0.1 do
  3135. wait()
  3136. v.Transparency=v.Transparency-0.1
  3137. end
  3138. v.Transparency=0
  3139. end))
  3140. v.Transparency=0
  3141. end
  3142. end
  3143. end
  3144.  
  3145. local origcolor = BrickColor.new("Pastel light blue")
  3146. ---- This section of explosions.
  3147.  
  3148. ----
  3149.  
  3150.  
  3151. function ring(type,pos,scale,value)
  3152. local type = type
  3153. local rng = Instance.new("Part", char)
  3154. rng.Anchored = true
  3155. rng.BrickColor = origcolor
  3156. rng.CanCollide = false
  3157. rng.FormFactor = 3
  3158. rng.Name = "Ring"
  3159. rng.Size = Vector3.new(1, 1, 1)
  3160. rng.Transparency = 0
  3161. rng.TopSurface = 0
  3162. rng.BottomSurface = 0
  3163. rng.CFrame = pos
  3164. local rngm = Instance.new("SpecialMesh", rng)
  3165. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3166. rngm.Scale = scale
  3167. local scaler2 = 1
  3168. if type == "Add" then
  3169. scaler2 = 1*value
  3170. elseif type == "Divide" then
  3171. scaler2 = 1/value
  3172. end
  3173. coroutine.resume(coroutine.create(function()
  3174. for i = 0,10,0.1 do
  3175. swait()
  3176. if type == "Add" then
  3177. scaler2 = scaler2 - 0.01*value
  3178. elseif type == "Divide" then
  3179. scaler2 = scaler2 - 0.01/value
  3180. end
  3181. rng.Transparency = rng.Transparency + 0.01
  3182. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3183. end
  3184. rng:Destroy()
  3185. end))
  3186. end
  3187.  
  3188.  
  3189. function wave(type,pos,scale,value)
  3190. local type = type
  3191. local rng = Instance.new("Part", char)
  3192. rng.Anchored = true
  3193. rng.BrickColor = origcolor
  3194. rng.CanCollide = false
  3195. rng.FormFactor = 3
  3196. rng.Name = "Ring"
  3197. rng.Size = Vector3.new(1, 1, 1)
  3198. rng.Transparency = 0
  3199. rng.TopSurface = 0
  3200. rng.BottomSurface = 0
  3201. rng.CFrame = pos
  3202. local rngm = Instance.new("SpecialMesh", rng)
  3203. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3204. rngm.Scale = scale
  3205. local scaler2 = 1
  3206. if type == "Add" then
  3207. scaler2 = 1*value
  3208. elseif type == "Divide" then
  3209. scaler2 = 1/value
  3210. end
  3211. coroutine.resume(coroutine.create(function()
  3212. for i = 0,10,0.1 do
  3213. swait()
  3214. if type == "Add" then
  3215. scaler2 = scaler2 - 0.01*value
  3216. elseif type == "Divide" then
  3217. scaler2 = scaler2 - 0.01/value
  3218. end
  3219. rng.Transparency = rng.Transparency + 0.01
  3220. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3221. end
  3222. rng:Destroy()
  3223. end))
  3224. end
  3225.  
  3226. function wind(type,pos,scale,value,speed)
  3227. local type = type
  3228. local rng = Instance.new("Part", char)
  3229. rng.Anchored = true
  3230. rng.BrickColor = origcolor
  3231. rng.CanCollide = false
  3232. rng.FormFactor = 3
  3233. rng.Name = "Ring"
  3234. rng.Size = Vector3.new(1, 1, 1)
  3235. rng.Transparency = 0
  3236. rng.TopSurface = 0
  3237. rng.BottomSurface = 0
  3238. rng.CFrame = pos
  3239. local rngm = Instance.new("SpecialMesh", rng)
  3240. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3241. rngm.Scale = scale
  3242. local scaler2 = 1
  3243. if type == "Add" then
  3244. scaler2 = 1*value
  3245. elseif type == "Divide" then
  3246. scaler2 = 1/value
  3247. end
  3248. coroutine.resume(coroutine.create(function()
  3249. for i = 0,10,0.1 do
  3250. swait()
  3251. if type == "Add" then
  3252. scaler2 = scaler2 - 0.01*value
  3253. elseif type == "Divide" then
  3254. scaler2 = scaler2 - 0.01/value
  3255. end
  3256. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  3257. rng.Transparency = rng.Transparency + 0.01
  3258. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3259. end
  3260. rng:Destroy()
  3261. end))
  3262. end
  3263.  
  3264. function groundwind(type,pos,scale,value,speed)
  3265. local type = type
  3266. local rng = Instance.new("Part", char)
  3267. rng.Anchored = true
  3268. rng.BrickColor = origcolor
  3269. rng.CanCollide = false
  3270. rng.FormFactor = 3
  3271. rng.Name = "Ring"
  3272. rng.Size = Vector3.new(1, 1, 1)
  3273. rng.Transparency = 0
  3274. rng.TopSurface = 0
  3275. rng.BottomSurface = 0
  3276. rng.CFrame = pos
  3277. local rngm = Instance.new("SpecialMesh", rng)
  3278. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3279. rngm.Scale = scale
  3280. local scaler2 = 1
  3281. if type == "Add" then
  3282. scaler2 = 1*value
  3283. elseif type == "Divide" then
  3284. scaler2 = 1/value
  3285. end
  3286. coroutine.resume(coroutine.create(function()
  3287. for i = 0,10,0.1 do
  3288. swait()
  3289. if type == "Add" then
  3290. scaler2 = scaler2 - 0.01*value
  3291. elseif type == "Divide" then
  3292. scaler2 = scaler2 - 0.01/value
  3293. end
  3294. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  3295. rng.Transparency = rng.Transparency + 0.01
  3296. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  3297. end
  3298. rng:Destroy()
  3299. end))
  3300. end
  3301.  
  3302. function CameraManager()
  3303. if TwoD and not CamInterrupt then
  3304. if Humanoid.Health > 0 then
  3305. Camera.CameraSubject = Humanoid
  3306. Camera.CameraType = "Scriptable"
  3307. Humanoid.AutoRotate = false
  3308. if Booleans.GyroUse then
  3309. Directer.MaxTorque = Vec3(0, 2, 0)
  3310. else
  3311. Directer.MaxTorque = Vec3(0, 0, 0)
  3312. end
  3313. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  3314. if Booleans.CamFollow then
  3315. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  3316. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  3317. else
  3318. CPart.Position = RootPart.Position
  3319. end
  3320. else
  3321. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  3322. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  3323. end
  3324. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, math.radian(90), 0), 0.2)
  3325. else
  3326. Camera.CameraSubject = Humanoid
  3327. Camera.CameraType = "Custom"
  3328.  
  3329. end
  3330. end
  3331. end
  3332. function MagicCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  3333. local type = type
  3334. local rng = Instance.new("Part", char)
  3335. rng.Anchored = true
  3336. rng.BrickColor = color
  3337. rng.CanCollide = false
  3338. rng.FormFactor = 3
  3339. rng.Name = "Ring"
  3340. rng.Material = "Neon"
  3341. rng.Size = Vector3.new(1, 1, 1)
  3342. rng.Transparency = 1
  3343. rng.TopSurface = 0
  3344. rng.BottomSurface = 0
  3345. rng.CFrame = pos
  3346. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  3347. local rngm = Instance.new("SpecialMesh", rng)
  3348. rngm.MeshType = MType
  3349. rngm.Scale = Vector3.new(x1, y1, z1)
  3350. local scaler2 = 1
  3351. local speeder = FastSpeed
  3352. if type == "Add" then
  3353. scaler2 = 1 * value
  3354. elseif type == "Divide" then
  3355. scaler2 = 1 / value
  3356. end
  3357. coroutine.resume(coroutine.create(function()
  3358. for i = 0, 10 / bonuspeed, 0.1 do
  3359. swait()
  3360. if type == "Add" then
  3361. scaler2 = scaler2 - 0.01 * value / bonuspeed
  3362. elseif type == "Divide" then
  3363. scaler2 = scaler2 - 0.01 / value * bonuspeed
  3364. end
  3365. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  3366. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  3367. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  3368. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  3369. end
  3370. rng:Destroy()
  3371. end))
  3372. end
  3373.  
  3374. function ring(type,pos,scale,value)
  3375. local type = type
  3376. local rng = Instance.new("Part", char)
  3377. rng.Anchored = true
  3378. rng.BrickColor = origcolor
  3379. rng.CanCollide = false
  3380. rng.FormFactor = 3
  3381. rng.Name = "Ring"
  3382. rng.Size = Vector3.new(1, 1, 1)
  3383. rng.Transparency = 0
  3384. rng.TopSurface = 0
  3385. rng.BottomSurface = 0
  3386. rng.CFrame = pos
  3387. local rngm = Instance.new("SpecialMesh", rng)
  3388. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3389. rngm.Scale = scale
  3390. local scaler2 = 1
  3391. if type == "Add" then
  3392. scaler2 = 1*value
  3393. elseif type == "Divide" then
  3394. scaler2 = 1/value
  3395. end
  3396. coroutine.resume(coroutine.create(function()
  3397. for i = 0,10,0.1 do
  3398. swait()
  3399. if type == "Add" then
  3400. scaler2 = scaler2 - 0.01*value
  3401. elseif type == "Divide" then
  3402. scaler2 = scaler2 - 0.01/value
  3403. end
  3404. rng.Transparency = rng.Transparency + 0.01
  3405. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3406. end
  3407. rng:Destroy()
  3408. end))
  3409. end
  3410.  
  3411.  
  3412. function wave(type,pos,scale,value)
  3413. local type = type
  3414. local rng = Instance.new("Part", char)
  3415. rng.Anchored = true
  3416. rng.BrickColor = origcolor
  3417. rng.CanCollide = false
  3418. rng.FormFactor = 3
  3419. rng.Name = "Ring"
  3420. rng.Size = Vector3.new(1, 1, 1)
  3421. rng.Transparency = 0
  3422. rng.TopSurface = 0
  3423. rng.BottomSurface = 0
  3424. rng.CFrame = pos
  3425. local rngm = Instance.new("SpecialMesh", rng)
  3426. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3427. rngm.Scale = scale
  3428. local scaler2 = 1
  3429. if type == "Add" then
  3430. scaler2 = 1*value
  3431. elseif type == "Divide" then
  3432. scaler2 = 1/value
  3433. end
  3434. coroutine.resume(coroutine.create(function()
  3435. for i = 0,10,0.1 do
  3436. swait()
  3437. if type == "Add" then
  3438. scaler2 = scaler2 - 0.01*value
  3439. elseif type == "Divide" then
  3440. scaler2 = scaler2 - 0.01/value
  3441. end
  3442. rng.Transparency = rng.Transparency + 0.01
  3443. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3444. end
  3445. rng:Destroy()
  3446. end))
  3447. end
  3448.  
  3449. function CastRay(startPos,endPos,range,ignoreList)
  3450. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  3451. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {char},false,true)
  3452. return part,pos,norm,(pos and (startPos-pos).magnitude)
  3453. end
  3454.  
  3455. function Part(parent,color,material,size,cframe,anchored,cancollide)
  3456. local part = Instance.new("Part")
  3457. part.Parent = parent or char
  3458. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
  3459. part.Material = material or Enum.Material.SmoothPlastic
  3460. part.TopSurface,part.BottomSurface=10,10
  3461. part.Size = size or Vector3.new(1,1,1)
  3462. part.CFrame = cframe or cf(0,0,0)
  3463. part.CanCollide = cancollide or false
  3464. part.Anchored = anchored or false
  3465. return part
  3466. end
  3467.  
  3468. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  3469. local part = Instance.new("SpecialMesh")
  3470. part.MeshId = meshid or ""
  3471. part.TextureId = textid or ""
  3472. part.Scale = scale or Vector3.new(1,1,1)
  3473. part.Offset = offset or Vector3.new(0,0,0)
  3474. part.MeshType = meshtype or Enum.MeshType.Sphere
  3475. part.Parent = parent
  3476. return part
  3477. end
  3478.  
  3479. local fromaxisangle = function(x, y, z) -- credit to phantom forces devs
  3480. if not y then
  3481. x, y, z = x.x, x.y, x.z
  3482. end
  3483. local m = (x * x + y * y + z * z) ^ 0.5
  3484. if m > 1.0E-5 then
  3485. local si = math.sin(m / 2) / m
  3486. return CFrame.new(0, 0, 0, si * x, si * y, si * z, math.cos(m / 2))
  3487. else
  3488. return CFrame.new()
  3489. end
  3490. end
  3491.  
  3492. function fakePhysics(elapsed,cframe,velocity,rotation,acceleration)
  3493. local pos = cframe.p
  3494. local matrix = cframe-pos
  3495. return fromaxisangle(elapsed*rotation)*matrix+pos+elapsed*velocity+elapsed*elapsed*acceleration
  3496. end
  3497.  
  3498. function Projectile(data)
  3499. local Size = data.Size or 1;
  3500. local Origin = data.Origin or Torso.CFrame;
  3501. local Velocity = data.Velocity or Vector3.new(0,100,0);
  3502. local Gravity = data.Gravity or workspace.Gravity;
  3503. local Color = data.Color or Color3.new(.7,0,0);
  3504. local Lifetime = data.Lifetime or 1;
  3505. local Material = data.Material or Enum.Material.Glass;
  3506. local Ignore = data.Ignorelist or {char};
  3507. local MeshData = data.Mesh or {};
  3508. local HitFunc = data.Hit;
  3509. local ShouldCollide = data.CheckCollision;
  3510. local Update = data.Update;
  3511. local Initialize = data.Initialize;
  3512.  
  3513. local drop = Part(char,Color,Material,typeof(Size)=='number' and Vector3.new(Size,Size,Size) or typeof(Size)=='Vector3' and Size or Vector3.new(1,1,1),Origin,true,false)
  3514. local dropM = Mesh(drop,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  3515. if(Initialize)then
  3516. Initialize(drop,dropM)
  3517. end
  3518. local startTick = tick();
  3519. coroutine.wrap(function()
  3520. while true do
  3521. local elapsed = tick()-startTick
  3522. if(elapsed>Lifetime)then
  3523. drop:destroy();
  3524. break
  3525. end
  3526. local newCF = fakePhysics(elapsed,Origin,Velocity,Vector3.new(),Vector3.new(0,-Gravity,0))
  3527. local dist = (drop.Position-newCF.p).magnitude
  3528. local hit,pos,norm = CastRay(drop.Position,newCF.p,dist,Ignore)
  3529. if(hit and (not ShouldCollide or ShouldCollide(hit)))then
  3530. drop:destroy()
  3531. if(HitFunc)then HitFunc(hit,pos,norm,data) end
  3532. break
  3533. else
  3534. if(hit)then table.insert(Ignore,hit) end
  3535. drop.CFrame = newCF
  3536. end
  3537. if(Update)then
  3538. Update(drop)
  3539. end
  3540. swait()
  3541. end
  3542. end)()
  3543. end
  3544.  
  3545. function sphere(bonuspeed,type,pos,scale,value,color)
  3546. local type = type
  3547. local rng = Instance.new("Part", char)
  3548. rng.Anchored = true
  3549. rng.BrickColor = color
  3550. rng.CanCollide = false
  3551. rng.FormFactor = 3
  3552. rng.Name = "Ring"
  3553. rng.Material = "Neon"
  3554. rng.Size = Vector3.new(1, 1, 1)
  3555. rng.Transparency = 0
  3556. rng.TopSurface = 0
  3557. rng.BottomSurface = 0
  3558. rng.CFrame = pos
  3559. local rngm = Instance.new("SpecialMesh", rng)
  3560. rngm.MeshType = "Sphere"
  3561. rngm.Scale = scale
  3562. if rainbowmode == true then
  3563. rng.Color = Color3.new(r/255,g/255,b/255)
  3564. end
  3565. local scaler2 = 1
  3566. if type == "Add" then
  3567. scaler2 = 1*value
  3568. elseif type == "Divide" then
  3569. scaler2 = 1/value
  3570. end
  3571. coroutine.resume(coroutine.create(function()
  3572. for i = 0,10/bonuspeed,0.1 do
  3573. swait()
  3574. if rainbowmode == true then
  3575. rng.Color = Color3.new(r/255,g/255,b/255)
  3576. end
  3577. if type == "Add" then
  3578. scaler2 = scaler2 - 0.01*value/bonuspeed
  3579. elseif type == "Divide" then
  3580. scaler2 = scaler2 - 0.01/value*bonuspeed
  3581. end
  3582. if chaosmode == true then
  3583. rng.BrickColor = BrickColor.random()
  3584. end
  3585. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3586. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3587. end
  3588. rng:Destroy()
  3589. end))
  3590. end
  3591.  
  3592. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color,mat)
  3593. local type = type
  3594. local rng = Instance.new("Part", char)
  3595. rng.Anchored = true
  3596. rng.BrickColor = color
  3597. rng.CanCollide = false
  3598. rng.FormFactor = 3
  3599. rng.Name = "Ring"
  3600. rng.Material = (typeof(mat)=='EnumItem' or typeof(mat)=='string') and mat or "Neon"
  3601. rng.Size = Vector3.new(1, 1, 1)
  3602. rng.Transparency = 0
  3603. rng.TopSurface = 0
  3604. rng.BottomSurface = 0
  3605. rng.CFrame = pos
  3606. local rngm = Instance.new("SpecialMesh", rng)
  3607. rngm.MeshType = "Sphere"
  3608. if rainbowmode == true then
  3609. rng.Color = Color3.new(r/255,g/255,b/255)
  3610. end
  3611. rngm.Scale = scale
  3612. local scaler2 = 1
  3613. local scaler2b = 1
  3614. local scaler2c = 1
  3615. if type == "Add" then
  3616. scaler2 = 1*value
  3617. scaler2b = 1*value2
  3618. scaler2c = 1*value3
  3619. elseif type == "Divide" then
  3620. scaler2 = 1/value
  3621. scaler2b = 1/value2
  3622. scaler2c = 1/value3
  3623. end
  3624. coroutine.resume(coroutine.create(function()
  3625. for i = 0,10/bonuspeed,0.1 do
  3626. swait()
  3627. if chaosmode == true then
  3628. rng.BrickColor = BrickColor.random()
  3629. end
  3630. if rainbowmode == true then
  3631. rng.Color = Color3.new(r/255,g/255,b/255)
  3632. end
  3633. if type == "Add" then
  3634. scaler2 = scaler2 - 0.01*value/bonuspeed
  3635. scaler2b = scaler2b - 0.01*value/bonuspeed
  3636. scaler2c = scaler2c - 0.01*value/bonuspeed
  3637. elseif type == "Divide" then
  3638. scaler2 = scaler2 - 0.01/value*bonuspeed
  3639. scaler2b = scaler2b - 0.01/value*bonuspeed
  3640. scaler2c = scaler2c - 0.01/value*bonuspeed
  3641. end
  3642. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3643. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3644. end
  3645. rng:Destroy()
  3646. end))
  3647. end
  3648.  
  3649. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  3650. local type = type
  3651. local rotenable = rotatingop
  3652. local rng = Instance.new("Part", char)
  3653. rng.Anchored = true
  3654. rng.BrickColor = color
  3655. rng.CanCollide = false
  3656. rng.FormFactor = 3
  3657. rng.Name = "Ring"
  3658. rng.Material = "Neon"
  3659. rng.Size = Vector3.new(1, 1, 1)
  3660. rng.Transparency = 0
  3661. if typeoftrans == "In" then
  3662. rng.Transparency = 1
  3663. end
  3664. rng.TopSurface = 0
  3665. rng.BottomSurface = 0
  3666. rng.CFrame = pos
  3667. local rngm = Instance.new("SpecialMesh", rng)
  3668. rngm.MeshType = "FileMesh"
  3669. if rainbowmode == true then
  3670. rng.Color = Color3.new(r/255,g/255,b/255)
  3671. end
  3672. if typeofshape == "Normal" then
  3673. rngm.MeshId = "rbxassetid://662586858"
  3674. elseif typeofshape == "Round" then
  3675. rngm.MeshId = "rbxassetid://662585058"
  3676. end
  3677. rngm.Scale = scale
  3678. local scaler2 = 1/10
  3679. if type == "Add" then
  3680. scaler2 = 1*value/10
  3681. elseif type == "Divide" then
  3682. scaler2 = 1/value/10
  3683. end
  3684. local randomrot = math.random(1,2)
  3685. coroutine.resume(coroutine.create(function()
  3686. for i = 0,10/bonuspeed,0.1 do
  3687. swait()
  3688. if rainbowmode == true then
  3689. rng.Color = Color3.new(r/255,g/255,b/255)
  3690. end
  3691. if type == "Add" then
  3692. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3693. elseif type == "Divide" then
  3694. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3695. end
  3696. if rotenable == true then
  3697. if randomrot == 1 then
  3698. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3699. elseif randomrot == 2 then
  3700. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3701. end
  3702. end
  3703. if typeoftrans == "Out" then
  3704. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3705. elseif typeoftrans == "In" then
  3706. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3707. end
  3708. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3709. end
  3710. rng:Destroy()
  3711. end))
  3712. end
  3713.  
  3714.  
  3715.  
  3716. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos,mat)
  3717. local type = type
  3718. local rng = Instance.new("Part", char)
  3719. rng.Anchored = true
  3720. rng.BrickColor = color
  3721. rng.CanCollide = false
  3722. rng.FormFactor = 3
  3723. rng.Name = "Ring"
  3724. rng.Material = mat or "Neon"
  3725. rng.Size = Vector3.new(1, 1, 1)
  3726. rng.Transparency = 0
  3727. rng.TopSurface = 0
  3728. rng.BottomSurface = 0
  3729. rng.CFrame = pos
  3730. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3731. local rngm = Instance.new("SpecialMesh", rng)
  3732. rngm.MeshType = "Brick"
  3733. rngm.Scale = vt(x1,y1,z1)
  3734. if rainbowmode == true then
  3735. rng.Color = Color3.new(r/255,g/255,b/255)
  3736. end
  3737. local scaler2 = 1
  3738. local speeder = FastSpeed/10
  3739. if type == "Add" then
  3740. scaler2 = 1*value
  3741. elseif type == "Divide" then
  3742. scaler2 = 1/value
  3743. end
  3744. coroutine.resume(coroutine.create(function()
  3745. for i = 0,10/bonuspeed,0.1 do
  3746. swait()
  3747. if rainbowmode == true then
  3748. rng.Color = Color3.new(r/255,g/255,b/255)
  3749. end
  3750. if type == "Add" then
  3751. scaler2 = scaler2 - 0.01*value/bonuspeed
  3752. elseif type == "Divide" then
  3753. scaler2 = scaler2 - 0.01/value*bonuspeed
  3754. end
  3755. if chaosmode == true then
  3756. rng.BrickColor = BrickColor.random()
  3757. end
  3758. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3759. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3760. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3761. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3762. end
  3763. rng:Destroy()
  3764. end))
  3765. end
  3766.  
  3767. function SelectionBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos,pulse)
  3768. local type = type
  3769. local rng = script.SelectionEffect:Clone()
  3770. local outline = rng.SelectionBox
  3771. rng.Parent = char
  3772. rng.Anchored = true
  3773. outline.Color3 = color
  3774. outline.Transparency = 0
  3775. rng.CanCollide = false
  3776. rng.FormFactor = 3
  3777. rng.Size = Vector3.new(1, 1, 1)
  3778. rng.TopSurface = 0
  3779. rng.BottomSurface = 0
  3780. rng.CFrame = pos
  3781. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3782. local rngm = Instance.new("SpecialMesh", rng)
  3783. rngm.MeshType = "Brick"
  3784. rngm.Scale = vt(x1,y1,z1)
  3785. if rainbowmode == true then
  3786. outline.Color3 = Color3.new(r/255,g/255,b/255)
  3787. end
  3788. local scaler2 = 1
  3789. local speeder = FastSpeed/10
  3790. if type == "Add" then
  3791. scaler2 = 1*value
  3792. elseif type == "Divide" then
  3793. scaler2 = 1/value
  3794. end
  3795. coroutine.resume(coroutine.create(function()
  3796. for i = 0,10/bonuspeed,0.1 do
  3797. swait()
  3798. if rainbowmode == true then
  3799. outline.Color3 = Color3.new(r/255,g/255,b/255)
  3800. end
  3801. if type == "Pulse" then
  3802. scaler2 = 1*value + pulse * math.cos(sine/5)
  3803. elseif type == "Add" then
  3804. scaler2 = scaler2 - 0.01*value/bonuspeed
  3805. elseif type == "Divide" then
  3806. scaler2 = scaler2 - 0.01/value*bonuspeed
  3807. end
  3808. if chaosmode == true then
  3809. outline.Color3 = BrickColor.random().Color
  3810. end
  3811. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3812. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3813. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3814. outline.Transparency = outline.Transparency + 0.01*bonuspeed
  3815. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3816. end
  3817. rng:Destroy()
  3818. end))
  3819. end
  3820.  
  3821. function SphereX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3822. local type = type
  3823. local rng = Instance.new("Part", char)
  3824. rng.Anchored = true
  3825. rng.BrickColor = color
  3826. rng.CanCollide = false
  3827. rng.FormFactor = 3
  3828. rng.Name = "Ring"
  3829. rng.Material = "Neon"
  3830. rng.Size = Vector3.new(1, 1, 1)
  3831. rng.Transparency = 0
  3832. rng.TopSurface = 0
  3833. rng.BottomSurface = 0
  3834. rng.CFrame = pos
  3835. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3836. local rngm = Instance.new("SpecialMesh", rng)
  3837. rngm.MeshType = "Sphere"
  3838. rngm.Scale = vt(x1,y1,z1)
  3839. if rainbowmode == true then
  3840. rng.Color = Color3.new(r/255,g/255,b/255)
  3841. end
  3842. local scaler2 = 1
  3843. local speeder = FastSpeed/10
  3844. if type == "Add" then
  3845. scaler2 = 1*value
  3846. elseif type == "Divide" then
  3847. scaler2 = 1/value
  3848. end
  3849. coroutine.resume(coroutine.create(function()
  3850. for i = 0,10/bonuspeed,0.1 do
  3851. swait()
  3852. if rainbowmode == true then
  3853. rng.Color = Color3.new(r/255,g/255,b/255)
  3854. end
  3855. if type == "Add" then
  3856. scaler2 = scaler2 - 0.01*value/bonuspeed
  3857. elseif type == "Divide" then
  3858. scaler2 = scaler2 - 0.01/value*bonuspeed
  3859. end
  3860. if chaosmode == true then
  3861. rng.BrickColor = BrickColor.random()
  3862. end
  3863. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3864. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3865. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3866. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3867. end
  3868. rng:Destroy()
  3869. end))
  3870. end
  3871.  
  3872.  
  3873. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3874. local type = type
  3875. local rng = Instance.new("Part", char)
  3876. rng.Anchored = true
  3877. rng.BrickColor = color
  3878. rng.CanCollide = false
  3879. rng.FormFactor = 3
  3880. rng.Name = "Ring"
  3881. rng.Material = "Neon"
  3882. rng.Size = Vector3.new(1, 1, 1)
  3883. rng.Transparency = 0
  3884. rng.TopSurface = 0
  3885. rng.BottomSurface = 0
  3886. rng.CFrame = pos
  3887. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3888. local rngm = Instance.new("SpecialMesh", rng)
  3889. rngm.MeshType = "Brick"
  3890. rngm.Scale = vt(x1,y1,z1)
  3891. if rainbowmode == true then
  3892. rng.Color = Color3.new(r/255,g/255,b/255)
  3893. end
  3894. local scaler2 = 1
  3895. local speeder = FastSpeed/10
  3896. if type == "Add" then
  3897. scaler2 = 1*value
  3898. elseif type == "Divide" then
  3899. scaler2 = 1/value
  3900. end
  3901. coroutine.resume(coroutine.create(function()
  3902. for i = 0,10/bonuspeed,0.1 do
  3903. swait()
  3904. if rainbowmode == true then
  3905. rng.Color = Color3.new(r/255,g/255,b/255)
  3906. end
  3907. if type == "Add" then
  3908. scaler2 = scaler2 - 0.01*value/bonuspeed
  3909. elseif type == "Divide" then
  3910. scaler2 = scaler2 - 0.01/value*bonuspeed
  3911. end
  3912. if chaosmode == true then
  3913. rng.BrickColor = BrickColor.random()
  3914. end
  3915. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3916. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3917. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3918. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3919. end
  3920. rng:Destroy()
  3921. end))
  3922. end
  3923.  
  3924. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3925. local type = type
  3926. local rng = Instance.new("Part", char)
  3927. rng.Anchored = true
  3928. rng.BrickColor = color
  3929. rng.CanCollide = false
  3930. rng.FormFactor = 3
  3931. rng.Name = "Ring"
  3932. rng.Material = "Neon"
  3933. rng.Size = Vector3.new(1, 1, 1)
  3934. rng.Transparency = 0
  3935. rng.TopSurface = 0
  3936. rng.BottomSurface = 0
  3937. rng.CFrame = pos
  3938. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3939. local rngm = Instance.new("SpecialMesh", rng)
  3940. rngm.MeshType = "Brick"
  3941. rngm.Scale = vt(x1,y1,z1)
  3942. if rainbowmode == true then
  3943. rng.Color = Color3.new(r/255,g/255,b/255)
  3944. end
  3945. local scaler2 = 0
  3946. local speeder = FastSpeed/10
  3947. if type == "Add" then
  3948. scaler2 = 1*value
  3949. elseif type == "Divide" then
  3950. scaler2 = 1/value
  3951. end
  3952. coroutine.resume(coroutine.create(function()
  3953. for i = 0,10/bonuspeed,0.1 do
  3954. swait()
  3955. if rainbowmode == true then
  3956. rng.Color = Color3.new(r/255,g/255,b/255)
  3957. end
  3958. if type == "Add" then
  3959. scaler2 = scaler2 - 0.01*value/bonuspeed
  3960. elseif type == "Divide" then
  3961. scaler2 = scaler2 - 0.01/value*bonuspeed
  3962. end
  3963. if chaosmode == true then
  3964. rng.BrickColor = BrickColor.random()
  3965. end
  3966. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3967. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3968. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3969. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3970. end
  3971. rng:Destroy()
  3972. end))
  3973. end
  3974.  
  3975. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3976. local type = type
  3977. local rng = Instance.new("Part", char)
  3978. rng.Anchored = true
  3979. rng.BrickColor = color
  3980. rng.Color = color3
  3981. rng.CanCollide = false
  3982. rng.FormFactor = 3
  3983. rng.Name = "Ring"
  3984. rng.Material = "Neon"
  3985. rng.Size = Vector3.new(1, 1, 1)
  3986. rng.Transparency = 0
  3987. rng.TopSurface = 0
  3988. rng.BottomSurface = 0
  3989. rng.CFrame = pos
  3990. local rngm = Instance.new("SpecialMesh", rng)
  3991. rngm.MeshType = "Brick"
  3992. rngm.Scale = scale
  3993. if rainbowmode == true then
  3994. rng.Color = Color3.new(r/255,g/255,b/255)
  3995. end
  3996. local scaler2 = 1
  3997. local scaler2b = 1
  3998. local scaler2c = 1
  3999. if type == "Add" then
  4000. scaler2 = 1*value
  4001. scaler2b = 1*value2
  4002. scaler2c = 1*value3
  4003. elseif type == "Divide" then
  4004. scaler2 = 1/value
  4005. scaler2b = 1/value2
  4006. scaler2c = 1/value3
  4007. end
  4008. coroutine.resume(coroutine.create(function()
  4009. for i = 0,10/bonuspeed,0.1 do
  4010. swait()
  4011. if rainbowmode == true then
  4012. rng.Color = Color3.new(r/255,g/255,b/255)
  4013. end
  4014. if type == "Add" then
  4015. scaler2 = scaler2 - 0.01*value/bonuspeed
  4016. scaler2b = scaler2b - 0.01*value/bonuspeed
  4017. scaler2c = scaler2c - 0.01*value/bonuspeed
  4018. elseif type == "Divide" then
  4019. scaler2 = scaler2 - 0.01/value*bonuspeed
  4020. scaler2b = scaler2b - 0.01/value*bonuspeed
  4021. scaler2c = scaler2c - 0.01/value*bonuspeed
  4022. end
  4023. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4024. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  4025. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  4026. end
  4027. rng:Destroy()
  4028. end))
  4029. end
  4030.  
  4031. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  4032. local type = type
  4033. local rng = Instance.new("Part", char)
  4034. rng.Anchored = true
  4035. rng.BrickColor = color
  4036.  
  4037. rng.CanCollide = false
  4038. rng.FormFactor = 3
  4039. rng.Name = "Ring"
  4040. rng.Material = "Neon"
  4041. rng.Size = Vector3.new(1, 1, 1)
  4042. rng.Transparency = 0
  4043. rng.TopSurface = 0
  4044. rng.BottomSurface = 0
  4045. rng.CFrame = pos
  4046. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  4047. local rngm = Instance.new("SpecialMesh", rng)
  4048. rngm.MeshType = "Sphere"
  4049. rngm.Scale = vt(x1,y1,z1)
  4050. if rainbowmode == true then
  4051. rng.Color = Color3.new(r/255,g/255,b/255)
  4052. end
  4053. local scaler2 = 1
  4054. local speeder = FastSpeed
  4055. if type == "Add" then
  4056. scaler2 = 1*value
  4057. elseif type == "Divide" then
  4058. scaler2 = 1/value
  4059. end
  4060. coroutine.resume(coroutine.create(function()
  4061. for i = 0,10/bonuspeed,0.1 do
  4062. swait()
  4063. if rainbowmode == true then
  4064. rng.Color = Color3.new(r/255,g/255,b/255)
  4065. end
  4066. if type == "Add" then
  4067. scaler2 = scaler2 - 0.01*value/bonuspeed
  4068. elseif type == "Divide" then
  4069. scaler2 = scaler2 - 0.01/value*bonuspeed
  4070. end
  4071. if chaosmode == true then
  4072. rng.BrickColor = BrickColor.random()
  4073. end
  4074. speeder = speeder - 0.01*FastSpeed*bonuspeed
  4075. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  4076. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  4077. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  4078. end
  4079. rng:Destroy()
  4080. end))
  4081. end
  4082.  
  4083.  
  4084. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  4085. local type = type
  4086. local rng = Instance.new("Part", char)
  4087. rng.Anchored = true
  4088. rng.BrickColor = color
  4089. rng.CanCollide = false
  4090. rng.FormFactor = 3
  4091. rng.Name = "Ring"
  4092. rng.Material = "Neon"
  4093. rng.Size = Vector3.new(1, 1, 1)
  4094. rng.Transparency = 1
  4095. rng.TopSurface = 0
  4096. rng.BottomSurface = 0
  4097. rng.CFrame = pos
  4098. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  4099. local rngm = Instance.new("SpecialMesh", rng)
  4100. rngm.MeshType = "Sphere"
  4101. rngm.Scale = vt(x1,y1,z1)
  4102. if rainbowmode == true then
  4103. rng.Color = Color3.new(r/255,g/255,b/255)
  4104. end
  4105. local scaler2 = 1
  4106. local speeder = FastSpeed
  4107. if type == "Add" then
  4108. scaler2 = 1*value
  4109. elseif type == "Divide" then
  4110. scaler2 = 1/value
  4111. end
  4112. coroutine.resume(coroutine.create(function()
  4113. for i = 0,10/bonuspeed,0.1 do
  4114. swait()
  4115. if rainbowmode == true then
  4116. rng.Color = Color3.new(r/255,g/255,b/255)
  4117. end
  4118. if type == "Add" then
  4119. scaler2 = scaler2 - 0.01*value/bonuspeed
  4120. elseif type == "Divide" then
  4121. scaler2 = scaler2 - 0.01/value*bonuspeed
  4122. end
  4123. if chaosmode == true then
  4124. rng.BrickColor = BrickColor.random()
  4125. end
  4126. speeder = speeder - 0.01*FastSpeed*bonuspeed
  4127. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  4128. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  4129. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  4130. end
  4131. rng:Destroy()
  4132. end))
  4133. end
  4134.  
  4135. function dmg(dude)
  4136. if dude.Name ~= Character then
  4137. local keptcolor = MAINRUINCOLOR
  4138. local bgf = Instance.new("BodyGyro",dude.Head)
  4139. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  4140. --[[local val = Instance.new("BoolValue",dude)
  4141. val.Name = "IsHit"]]--
  4142. local ds = coroutine.wrap(function()
  4143. dude:WaitForChild("Head"):BreakJoints()
  4144. for i, v in pairs(dude:GetChildren()) do
  4145. if v:IsA("BasePart") or v:IsA("MeshPart") then
  4146. v.Name = "DEMINISHED"
  4147. end
  4148. end
  4149. wait(0.5)
  4150. targetted = nil
  4151. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  4152. coroutine.resume(coroutine.create(function()
  4153. for i, v in pairs(dude:GetChildren()) do
  4154. if v:IsA("Accessory") then
  4155. v:Destroy()
  4156. end
  4157. if v:IsA("Humanoid") then
  4158. v:Destroy()
  4159. end
  4160. if v:IsA("CharacterMesh") then
  4161. v:Destroy()
  4162. end
  4163. if v:IsA("Model") then
  4164. v:Destroy()
  4165. end
  4166. if v:IsA("BasePart") or v:IsA("MeshPart") then
  4167. for x, o in pairs(v:GetChildren()) do
  4168. if o:IsA("Decal") then
  4169. o:Destroy()
  4170. end
  4171. end
  4172. coroutine.resume(coroutine.create(function()
  4173. v.Material = "Neon"
  4174. v.CanCollide = false
  4175. v.Anchored = false
  4176. local bld = Instance.new("ParticleEmitter",v)
  4177. bld.LightEmission = 0.75
  4178. bld.Texture = "rbxassetid://363275192" ---284205403
  4179. bld.Color = ColorSequence.new(keptcolor.Color)
  4180. bld.Rate = 500
  4181. bld.Lifetime = NumberRange.new(1)
  4182. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  4183. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  4184. bld.Speed = NumberRange.new(2,5)
  4185. bld.VelocitySpread = 50000
  4186. bld.Rotation = NumberRange.new(-500,500)
  4187. bld.RotSpeed = NumberRange.new(-500,500)
  4188. local sbs = Instance.new("BodyPosition", v)
  4189. sbs.P = 3000
  4190. sbs.D = 1000
  4191. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  4192. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  4193. v.Color = keptcolor.Color
  4194. coroutine.resume(coroutine.create(function()
  4195. for i = 0, 49 do
  4196. swait(1)
  4197. v:BreakJoints()
  4198. v.Transparency = v.Transparency + 0.02
  4199. end
  4200. v:BreakJoints()
  4201. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  4202. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  4203. bld.Speed = NumberRange.new(10,25)
  4204. bld.Drag = 5
  4205. bld.Acceleration = vt(0,2,0)
  4206. wait(0.5)
  4207. bld.Enabled = false
  4208. wait(8)
  4209. v:Destroy()
  4210. dude:Destroy()
  4211. end))
  4212. end))
  4213. end
  4214. end
  4215. end))
  4216. end)
  4217. ds()
  4218. end
  4219. end
  4220.  
  4221.  
  4222. function FindNearestHead(Position, Distance, SinglePlayer)
  4223. if SinglePlayer then
  4224. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  4225. end
  4226. local List = {}
  4227. for i, v in pairs(workspace:GetChildren()) do
  4228. if v:IsA("Model") then
  4229. if v:findFirstChild("Head") then
  4230. if v ~= Character then
  4231. if (v.Head.Position - Position).magnitude <= Distance then
  4232. table.insert(List, v)
  4233. end
  4234. end
  4235. end
  4236. end
  4237. end
  4238. return List
  4239. end
  4240.  
  4241. function FaceMouse()
  4242. Cam = workspace.CurrentCamera
  4243. return {
  4244. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  4245. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  4246. }
  4247. end
  4248.  
  4249. function FaceMouse2()
  4250. Cam = workspace.CurrentCamera
  4251. return {
  4252. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  4253. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  4254. }
  4255. end
  4256.  
  4257. local ModeOfGlitch = 1
  4258. -- Functions are ready.
  4259. local storehumanoidWS = 16
  4260.  
  4261. function createBGCircle(size,parent,color)
  4262. local bgui = Instance.new("BillboardGui",parent)
  4263. bgui.Size = UDim2.new(size, 0, size, 0)
  4264. local imgc = Instance.new("ImageLabel",bgui)
  4265. imgc.BackgroundTransparency = 1
  4266. imgc.ImageTransparency = 0
  4267. imgc.Size = UDim2.new(1,0,1,0)
  4268. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  4269. imgc.ImageColor3 = color
  4270. return bgui,imgc
  4271. end
  4272.  
  4273. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  4274. local bgui,imgc = createBGCircle(size,guipar,color)
  4275. bgui.AlwaysOnTop = true
  4276. imgc.Image = "rbxassetid://" ..img
  4277. local rrot = math.random(1,2)
  4278. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  4279. coroutine.resume(coroutine.create(function()
  4280. for i = 0, 24*delay do
  4281. swait()
  4282. if rotationenabled == true then
  4283. if rrot == 1 then
  4284. imgc.Rotation = imgc.Rotation + rotsp
  4285. elseif rrot == 2 then
  4286. imgc.Rotation = imgc.Rotation - rotsp
  4287. end
  4288. end
  4289. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  4290. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  4291. end
  4292. bgui:Destroy()
  4293. end))
  4294. end
  4295.  
  4296. function tbeam(col1,col2)
  4297. local lookavec = 0
  4298. local mult = 1
  4299. local elocacenter = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  4300. elocacenter.Anchored = true
  4301. elocacenter.CFrame = root.CFrame
  4302. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4303. eloca1.Anchored = true
  4304. eloca1.CFrame = elocacenter.CFrame
  4305. local at1 = Instance.new("Attachment",eloca1)
  4306. at1.Position = vt(0,10,0)
  4307. local at2 = Instance.new("Attachment",eloca1)
  4308. at2.Position = vt(0,-10,0)
  4309. local trl = Instance.new('Trail',eloca1)
  4310. trl.Attachment0 = at1
  4311. trl.Attachment1 = at2
  4312. trl.Texture = "rbxassetid://1049219073"
  4313. trl.LightEmission = 1
  4314. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4315. trl.Color = ColorSequence.new(col1.Color)
  4316. trl.Lifetime = 4
  4317. local eff = Instance.new("ParticleEmitter",eloca1)
  4318. eff.Texture = "rbxassetid://2273224484"
  4319. eff.LightEmission = 1
  4320. eff.Color = ColorSequence.new(col1.Color)
  4321. eff.Rate = 500000
  4322. eff.Lifetime = NumberRange.new(0.5,1)
  4323. 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)})
  4324. 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)})
  4325. eff.Speed = NumberRange.new(20,250)
  4326. eff.Drag = 5
  4327. eff.Rotation = NumberRange.new(-500,500)
  4328. eff.VelocitySpread = 9000
  4329. eff.RotSpeed = NumberRange.new(-50,50)
  4330. local eloca2 = eloca1:Clone()
  4331. eloca2.Parent = elocacenter
  4332. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4333. eloca3.Anchored = true
  4334. eloca3.CFrame = elocacenter.CFrame
  4335. local at1 = Instance.new("Attachment",eloca3)
  4336. at1.Position = vt(0,10,0)
  4337. local at2 = Instance.new("Attachment",eloca3)
  4338. at2.Position = vt(0,-10,0)
  4339. local trl = Instance.new('Trail',eloca3)
  4340. trl.Attachment0 = at1
  4341. trl.Attachment1 = at2
  4342. trl.Texture = "rbxassetid://1049219073"
  4343. trl.LightEmission = 1
  4344. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4345. trl.Color = ColorSequence.new(col2.Color)
  4346. trl.Lifetime = 4
  4347. local eff = Instance.new("ParticleEmitter",eloca3)
  4348. eff.Texture = "rbxassetid://2273224484"
  4349. eff.LightEmission = 1
  4350. eff.Color = ColorSequence.new(col2.Color)
  4351. eff.Rate = 500000
  4352. eff.Lifetime = NumberRange.new(0.5,1)
  4353. 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)})
  4354. 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)})
  4355. eff.Speed = NumberRange.new(20,250)
  4356. eff.Drag = 5
  4357. eff.Rotation = NumberRange.new(-500,500)
  4358. eff.VelocitySpread = 9000
  4359. eff.RotSpeed = NumberRange.new(-50,50)
  4360. local eloca4 = eloca3:Clone()
  4361. eloca4.Parent = elocacenter
  4362. elocacenter.CFrame = root.CFrame
  4363. sphere2(6,"Add",root.CFrame*CFrame.Angles(0,0,0),vt(1,10000,1),0.9,7,0.9,col2)
  4364. sphere2(5,"Add",root.CFrame*CFrame.Angles(0,0,0),vt(1,10000,1),0.8,7,0.8,col1)
  4365. sphere2(4,"Add",root.CFrame*CFrame.Angles(0,0,0),vt(1,10000,1),0.6,7,0.6,col2)
  4366. sphere2(3,"Add",root.CFrame*CFrame.Angles(0,0,0),vt(1,10000,1),0.5,7,0.5,col1)
  4367. local effx = Instance.new("ParticleEmitter",root)
  4368. effx.Texture = "rbxassetid://144580273" -- 144580273 74564879
  4369. effx.LightEmission = 1
  4370. effx.Color = ColorSequence.new(col1.Color)
  4371. effx.Rate = 500000
  4372. effx.Lifetime = NumberRange.new(0.25,0.75)
  4373. effx.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,200,0)})
  4374. effx.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.5,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4375. effx.Speed = NumberRange.new(0,10)
  4376. effx.Drag = 5
  4377. effx.Rotation = NumberRange.new(-500,500)
  4378. effx.VelocitySpread = 9000
  4379. effx.RotSpeed = NumberRange.new(-50,50)
  4380. local effx2 = Instance.new("ParticleEmitter",root)
  4381. effx2.Texture = "rbxassetid://2273224484"
  4382. effx2.LightEmission = 1
  4383. effx2.Color = ColorSequence.new(col1.Color)
  4384. effx2.Rate = 500000
  4385. effx2.Lifetime = NumberRange.new(1,2)
  4386. effx2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,200,0),NumberSequenceKeypoint.new(0.1,50,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  4387. effx2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4388. effx2.Speed = NumberRange.new(50,1200)
  4389. effx2.Drag = 5
  4390. effx2.Rotation = NumberRange.new(-500,500)
  4391. effx2.VelocitySpread = 9000
  4392. effx2.RotSpeed = NumberRange.new(-50,50)
  4393. local effx3 = effx2:Clone()
  4394. effx3.Parent = root
  4395. effx3.Color = ColorSequence.new(col2.Color)
  4396. symbolizeBlink(root,0,144580273,col1.Color,20,0,0,0,root,true,-5,2)
  4397. symbolizeBlink(root,0,144580273,col2.Color,25,0,0,0,root,true,-5,1)
  4398. for i = 0, 1 do
  4399. CFuncs["Sound"].Create("rbxassetid://763717897", root, 5, 1.25)
  4400. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5,0.75)
  4401. CFuncs["Sound"].Create("rbxassetid://1664711478", root, 2.5,1)
  4402. CFuncs["Sound"].Create("rbxassetid://763718160", root, 5, 0.75)
  4403. end
  4404. coroutine.resume(coroutine.create(function()
  4405. wait(0.05)
  4406. effx.Enabled = false
  4407. wait(0.1)
  4408. effx2.Enabled = false
  4409. effx3.Enabled = false
  4410. end))
  4411. coroutine.resume(coroutine.create(function()
  4412. for i = 0, 9, 0.1 do
  4413. swait()
  4414. mult = mult + 0.5
  4415. lookavec = lookavec + 0.1*mult
  4416. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(5*mult/10),0)
  4417. eloca1.CFrame = elocacenter.CFrame*CFrame.new(40+lookavec/5,-15+lookavec*2,0)
  4418. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-40-lookavec/5,-15+lookavec*2,0)
  4419. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,-15+lookavec*2,40+lookavec/5)
  4420. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,-15+lookavec*2,-40-lookavec/5)
  4421. end
  4422. for i,v in pairs(elocacenter:GetDescendants()) do
  4423. if v:IsA("ParticleEmitter") then
  4424. v.Enabled = false
  4425. end
  4426. end
  4427. wait(6)
  4428. effx:Destroy()
  4429. effx2:Destroy()
  4430. effx3:Destroy()
  4431. elocacenter:Destroy()
  4432. end))
  4433. end
  4434.  
  4435.  
  4436. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled,sectrailenabled,bladeenabled,dark,arso)
  4437. if(plr.UserId==156755588)then
  4438. TcGauntlet = char.TcGauntlet
  4439. for i,v in pairs(TcGauntlet:GetChildren())do
  4440. if v.Name == "1" then
  4441. v.BrickColor = one
  4442. elseif v.Name == "2" then
  4443. v.BrickColor = two
  4444. end
  4445. end
  4446. end
  4447. if(plr.UserId==5719877)then
  4448. for i,v in pairs(NebBand:GetChildren())do
  4449. if v.Name == "1" then
  4450. v.BrickColor = one
  4451. elseif v.Name == "2" then
  4452. v.BrickColor = two
  4453. end
  4454. end
  4455. end
  4456. RightTransitionFrame.BackgroundColor3 = one.Color
  4457. LeftTransitionFrame.BackgroundColor3 = two.Color
  4458. RightTransitionFrame.Position = UDim2.new(0.85,0,1.7,0)
  4459. LeftTransitionFrame.Position = UDim2.new(0.25,0,-0.7,0)
  4460. RightTransitionFrame:TweenPosition(UDim2.new(0.85,0,-.7,0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.3,true)
  4461. LeftTransitionFrame:TweenPosition(UDim2.new(0.25,0,1.7,0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.3,true)
  4462. for i, v in pairs(mw2:GetChildren()) do
  4463. if v:IsA("BasePart") then
  4464. v.BrickColor = one
  4465. v.Material = "Neon"
  4466. end
  4467. end
  4468. GasCan.Transparency=(arso and 0 or 1)
  4469. for _,v in next, TheDark:GetDescendants() do
  4470. if(v:IsA'Decal' or v:IsA'Texture')then v.Transparency = (dark and 0 or 1) elseif(v:IsA'ParticleEmitter' or v:IsA'Beam')then v.Enabled = dark end
  4471. if(v:IsA'BasePart' and v ~= hitbox)then
  4472. v.Transparency=(dark and 0 or 1)
  4473. end
  4474. end
  4475. tbeam(one,two)
  4476. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  4477. symbolizeBlink(root,0,2092248396,one.Color,5,0,0,847061203,root,true,10,1)
  4478. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  4479. tr1.Color = ColorSequence.new(one.Color)
  4480. tr2.Color = ColorSequence.new(one.Color)
  4481. tr3.Color = ColorSequence.new(one.Color)
  4482. for i, v in pairs(mw1:GetChildren()) do
  4483. if v:IsA("BasePart") then
  4484. if secondaryenabled == false then
  4485. v.Transparency = 1
  4486. elseif secondaryenabled == true then
  4487. v.Transparency = 0
  4488. end
  4489. v.BrickColor = two
  4490. v.Material = "Neon"
  4491. end
  4492. end
  4493. if secondaryenabled == false then
  4494. tl1.Enabled = false
  4495. tl2.Enabled = false
  4496. tl3.Enabled = false
  4497. elseif secondaryenabled == true then
  4498. tl1.Enabled = true
  4499. tl2.Enabled = true
  4500. tl3.Enabled = true
  4501. end
  4502. tl1.Color = ColorSequence.new(two.Color)
  4503. tl2.Color = ColorSequence.new(two.Color)
  4504. tl3.Color = ColorSequence.new(two.Color)
  4505. for i, v in pairs(m:GetChildren()) do
  4506. if v:IsA("BasePart") then
  4507. v.BrickColor = three
  4508. v.Material = "Ice"
  4509. end
  4510. end
  4511. for i, v in pairs(m2:GetChildren()) do
  4512. if v:IsA("BasePart") then
  4513. v.BrickColor = four
  4514. v.Material = "Ice"
  4515. end
  4516. end
  4517. for i, v in pairs(m3:GetChildren()) do
  4518. if v:IsA("BasePart") then
  4519. v.BrickColor = five
  4520. v.Material = "Neon"
  4521. end
  4522. end
  4523. for i, v in pairs(extrawingmod1:GetChildren()) do
  4524. if v:IsA("BasePart") then
  4525. v.Transparency = exonetran
  4526. v.BrickColor = exone
  4527. v.Material = "Neon"
  4528. end
  4529. end
  4530.  
  4531. for i = 1,#vis.r do
  4532. local right = vis.r[i]
  4533. right.BackgroundColor3=one.Color
  4534. right.BorderColor3=two.Color
  4535. end
  4536. for i = 1,#vis.l do
  4537. local left = vis.l[i]
  4538. left.BackgroundColor3=one.Color
  4539. left.BorderColor3=two.Color
  4540. end
  4541. right.BackgroundColor3=one.Color
  4542. left.BackgroundColor3=two.Color
  4543.  
  4544.  
  4545. coroutine.resume(coroutine.create(function()
  4546. if secondaryenabled == true then
  4547. left:TweenPosition(UDim2.new(0, 125,0.5, 0),"Out","Sine",0.7,true)
  4548. else
  4549. left:TweenPosition(UDim2.new(-0.1, 0,0.5, 0),"Out","Sine",0.7,true)
  4550. end
  4551. end))
  4552.  
  4553. if sectrailenabled == true then
  4554. tl4.Enabled = true
  4555. tl5.Enabled = true
  4556. tl6.Enabled = true
  4557. tr4.Enabled = true
  4558. tr5.Enabled = true
  4559. tr6.Enabled = true
  4560. tl4.Color = ColorSequence.new(exone.Color)
  4561. tl5.Color = ColorSequence.new(exone.Color)
  4562. tl6.Color = ColorSequence.new(exone.Color)
  4563. tr4.Color = ColorSequence.new(extwo.Color)
  4564. tr5.Color = ColorSequence.new(extwo.Color)
  4565. tr6.Color = ColorSequence.new(extwo.Color)
  4566. elseif sectrailenabled == false then
  4567. tl4.Enabled = false
  4568. tl5.Enabled = false
  4569. tl6.Enabled = false
  4570. tr4.Enabled = false
  4571. tr5.Enabled = false
  4572. tr6.Enabled = false
  4573. end
  4574. for i, v in pairs(extrawingmod2:GetChildren()) do
  4575. if v:IsA("BasePart") then
  4576. v.Transparency = extwotran
  4577. v.BrickColor = extwo
  4578. v.Material = "Neon"
  4579. end
  4580. end
  4581. WanderersBlade.Blade.Trail.Enabled=not not bladeenabled
  4582. if not bladeenabled then
  4583. for i,v in pairs(WanderersBlade:GetChildren())do v.Transparency = 1 end
  4584. elseif bladeenabled == true then
  4585. for i,v in pairs(WanderersBlade:GetChildren())do v.Transparency = 0 end
  4586. end
  4587.  
  4588.  
  4589.  
  4590. end
  4591.  
  4592. RecolorTextAndRename("POWER",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  4593.  
  4594. function normalmog()
  4595. attack = true
  4596. hum.WalkSpeed = 0
  4597. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  4598. for i = 0,6,0.1 do
  4599. swait()
  4600. sphereMK(2.5,-1.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,MAINRUINCOLOR,100)
  4601. 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)
  4602. 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)
  4603. 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)
  4604. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  4605. 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)
  4606. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  4607. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  4608. end
  4609. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  4610. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  4611. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  4612. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  4613. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  4614. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  4615. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  4616. rainbowmode = false
  4617. chaosmode = false
  4618. ModeOfGlitch = 1
  4619. storehumanoidWS = 16
  4620. newTheme("rbxassetid://495971354",48.6,1,1.25)
  4621. RecolorTextAndRename("POWER",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  4622. CameraEnshaking(5,2.5)
  4623. MAINRUINCOLOR = BrickColor.new("Really red")
  4624. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4625. for i = 0, 49 do
  4626. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  4627. end
  4628. for i = 0, 24 do
  4629. 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)
  4630. 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,BrickColor.new("White"))
  4631. end
  4632. for i = 0,3,0.1 do
  4633. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  4634. end
  4635. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false,false)
  4636. for i = 0,2,0.1 do
  4637. swait()
  4638. 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)
  4639. 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)
  4640. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  4641. 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)
  4642. 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)
  4643. 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)
  4644. end
  4645. hum.WalkSpeed = storehumanoidWS
  4646. attack = false
  4647. end
  4648.  
  4649. function attackone()
  4650. attack = true
  4651. local keptcolor = MAINRUINCOLOR
  4652. for i = 0,1,0.1 do
  4653. swait()
  4654. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  4655. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  4656. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  4657. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4658. 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)
  4659. 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)
  4660. end
  4661. local distlook = 5
  4662. coroutine.resume(coroutine.create(function()
  4663. for i = 0, 4 do
  4664. swait(2)
  4665. CameraEnshaking(2,3)
  4666. local hite = Instance.new("Part", char)
  4667. hite.Anchored = true
  4668. hite.CanCollide = false
  4669. hite.FormFactor = 3
  4670. hite.Name = "Ring"
  4671. hite.Material = "Neon"
  4672. hite.Size = Vector3.new(1, 1, 1)
  4673. hite.Transparency = 1
  4674. hite.TopSurface = 0
  4675. hite.BottomSurface = 0
  4676. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  4677. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  4678. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  4679. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  4680. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  4681. MagniDamage(hite, 9, 10,25, 0, "Normal")
  4682. for i = 0, 14 do
  4683. local rsiz = math.random(5,20)
  4684. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  4685. end
  4686. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  4687. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  4688. game:GetService("Debris"):AddItem(hite, 5)
  4689. distlook = distlook + 10
  4690. end
  4691. end))
  4692. for i = 0,1,0.1 do
  4693. swait()
  4694. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  4695. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  4696. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  4697. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  4698. 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)
  4699. 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)
  4700. end
  4701. attack = false
  4702. end
  4703.  
  4704. function attacktwo()
  4705. attack = true
  4706. hum.WalkSpeed = 2
  4707. local orb = Instance.new("Part", char)
  4708. orb.Anchored = true
  4709. orb.BrickColor = MAINRUINCOLOR
  4710. orb.CanCollide = false
  4711. orb.FormFactor = 3
  4712. orb.Name = "Ring"
  4713. orb.Material = "Neon"
  4714. orb.Size = Vector3.new(1, 1, 1)
  4715. orb.Transparency = 0
  4716. orb.TopSurface = 0
  4717. orb.BottomSurface = 0
  4718. local orbm = Instance.new("SpecialMesh", orb)
  4719. orbm.MeshType = "Sphere"
  4720. orbm.Name = "SizeMesh"
  4721. orbm.Scale = vt(0, 0, 0)
  4722. local scaled = 0.1
  4723. local posid = 0
  4724. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  4725. for i = 0, 2, 0.1 do
  4726. swait()
  4727. scaled = scaled + 0.003
  4728. posid = posid - scaled
  4729. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  4730. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  4731. sphereMKCharge(5, -0.25, "Add", orb.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, 10)
  4732. 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(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.1)
  4733. 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(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.1)
  4734. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4735. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4736. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  4737. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30 - 5 * math.cos(sine / 30)), math.rad(20)), 0.1)
  4738. end
  4739. print(orbm.Scale)
  4740.  
  4741. local keptcolor = MAINRUINCOLOR
  4742. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  4743. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  4744. sphere2(5,"Add",larm.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)
  4745. sphere2(5,"Add",larm.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)
  4746. for i = 0, 14 do
  4747. PixelBlock(1,math.random(1,3),"Add",larm.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,keptcolor,0)
  4748. end
  4749. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  4750. for i = 0,1.5,0.1 do
  4751. swait()
  4752. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  4753. 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)
  4754. 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)
  4755. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  4756. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  4757. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  4758. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  4759. end
  4760. for i = 0,1,0.6 do
  4761. swait()
  4762. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  4763. 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"))
  4764. 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)
  4765. 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)
  4766. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4767. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  4768. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  4769. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  4770. end
  4771. for i = 0,1,0.6 do
  4772. swait()
  4773. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  4774. 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"))
  4775. 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)
  4776. 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)
  4777. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  4778. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  4779. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  4780. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  4781. end
  4782. for i = 0,1,0.6 do
  4783. swait()
  4784. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  4785. 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"))
  4786. 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)
  4787. 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)
  4788. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  4789. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  4790. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  4791. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  4792. end
  4793. for i = 0,1,0.6 do
  4794. swait()
  4795. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  4796. 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"))
  4797. 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)
  4798. 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)
  4799. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  4800. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  4801. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  4802. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  4803. end
  4804. orb:destroy()
  4805. local rot = 0
  4806. local cfr = root.CFrame*CFrame.new(0,2,-3)
  4807. CFuncs["EchoSound"].Create("rbxassetid://763718160",root, 3, 1.1,0,10,0.15,0.5,1)
  4808. local ray = Ray.new(
  4809. cfr.p, -- origin
  4810. (mouse.Hit.p - cfr.p).unit * 500 -- direction
  4811. )
  4812. local hit, position, normal = workspace:FindPartOnRay(ray, char)
  4813. Projectile{
  4814. Size=orbm.Scale;
  4815. Mesh={MeshType=Enum.MeshType.Sphere};
  4816. Lifetime=5;
  4817. Velocity=(CFrame.new(cfr.p,position)*CFrame.Angles(0,math.rad(rot),0)).lookVector*250;
  4818. Origin=cfr;
  4819. Material=Enum.Material.Neon;
  4820. Color=keptcolor;
  4821. Gravity=0;
  4822. Hit = (function(hit,pos,norm,data)
  4823. local hitted = false
  4824. if hitted == false and hit.Parent ~= char then
  4825. local dis = CreateParta(char,1,1,"Neon",keptcolor)
  4826. dis.CFrame = CFrame.new(pos)
  4827. hitted = true
  4828. shakes(0.15,0.25)
  4829. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  4830. MagniDamage(dis, 30, 25,65, 0, "Normal")
  4831. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  4832. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  4833. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  4834. coroutine.resume(coroutine.create(function()
  4835. local eff = Instance.new("ParticleEmitter",dis)
  4836. eff.Texture = "rbxassetid://2344870656"
  4837. eff.LightEmission = 1
  4838. eff.Color = ColorSequence.new(dis.Color)
  4839. eff.Rate = 10000000
  4840. eff.Enabled = true
  4841. eff.EmissionDirection = "Front"
  4842. eff.Lifetime = NumberRange.new(1)
  4843. 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)})
  4844. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4845. eff.Speed = NumberRange.new(150)
  4846. eff.Drag = 5
  4847. eff.Rotation = NumberRange.new(-500,500)
  4848. eff.SpreadAngle = Vector2.new(0,900)
  4849. eff.RotSpeed = NumberRange.new(-500,500)
  4850. wait(0.2)
  4851. eff.Enabled = false
  4852. end))
  4853. coroutine.resume(coroutine.create(function()
  4854. for i = 0, 9 do
  4855. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  4856. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4857. local at1 = Instance.new("Attachment",disr)
  4858. at1.Position = vt(-2,0,0)
  4859. local at2 = Instance.new("Attachment",disr)
  4860. at2.Position = vt(2,0,0)
  4861. local trl = Instance.new('Trail',disr)
  4862. trl.Attachment0 = at1
  4863. trl.FaceCamera = true
  4864. trl.Attachment1 = at2
  4865. trl.Texture = "rbxassetid://2342682798"
  4866. trl.LightEmission = 1
  4867. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4868. trl.Color = ColorSequence.new(keptcolor.Color)
  4869. trl.Lifetime = 0.5
  4870. local bv = Instance.new("BodyVelocity")
  4871. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4872. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  4873. bv.Parent = disr
  4874. local val = 0
  4875. coroutine.resume(coroutine.create(function()
  4876. swait(30)
  4877. for i = 0, 9 do
  4878. swait()
  4879. val = val + 0.1
  4880. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  4881. end
  4882. game:GetService("Debris"):AddItem(disr, 3)
  4883. end))
  4884. end
  4885. local eff = Instance.new("ParticleEmitter",dis)
  4886. eff.Texture = "rbxassetid://2273224484"
  4887. eff.LightEmission = 1
  4888. eff.Color = ColorSequence.new(keptcolor.Color)
  4889. eff.Rate = 500000
  4890. eff.Lifetime = NumberRange.new(0.5,2)
  4891. 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)})
  4892. 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)})
  4893. eff.Speed = NumberRange.new(20,250)
  4894. eff.Drag = 5
  4895. eff.Rotation = NumberRange.new(-500,500)
  4896. eff.VelocitySpread = 9000
  4897. eff.RotSpeed = NumberRange.new(-50,50)
  4898. wait(0.25)
  4899. eff.Enabled = false
  4900. end))
  4901. for i = 0, 9 do
  4902. 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,BrickColor.new("White"))
  4903. end
  4904. for i = 0, 19 do
  4905. 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)
  4906. end
  4907. coroutine.resume(coroutine.create(function()
  4908. for i = 0, 19 do
  4909. swait()
  4910. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  4911. end
  4912. hum.CameraOffset = vt(0,0,0)
  4913. end))
  4914. dis.Anchored = true
  4915. dis.Transparency = 1
  4916. wait(8)
  4917. dis:Destroy()
  4918. end
  4919. end)}
  4920.  
  4921. for i = 0,2,0.1 do
  4922. swait()
  4923. 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)
  4924. 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)
  4925. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  4926. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  4927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  4928. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  4929. end
  4930. attack = false
  4931. hum.WalkSpeed = storehumanoidWS
  4932. end
  4933.  
  4934. function attackthree()
  4935. attack = true
  4936. local keptcolor = MAINRUINCOLOR
  4937. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4938. for i = 0,2,0.1 do
  4939. swait()
  4940. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  4941. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  4942. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  4943. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  4944. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  4945. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  4946. 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(40)),.3)
  4947. end
  4948. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  4949. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  4950. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  4951. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  4952. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  4953. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  4954. for i = 0, 24 do
  4955. 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(50,200)/250,BrickColor.new("White"))
  4956. end
  4957. for i = 0,4,0.1 do
  4958. swait()
  4959. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  4960. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  4961. CreateMesh(dis,"Sphere",1,1,1)
  4962. dis.Anchored = true
  4963. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  4964. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  4965. coroutine.resume(coroutine.create(function()
  4966. swait(30)
  4967. dis.Transparency = 1
  4968. coroutine.resume(coroutine.create(function()
  4969. for i = 0, 19 do
  4970. swait()
  4971. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  4972. end
  4973. hum.CameraOffset = vt(0,0,0)
  4974. end))
  4975. coroutine.resume(coroutine.create(function()
  4976. local eff = Instance.new("ParticleEmitter",dis)
  4977. eff.Texture = "rbxassetid://2273224484"
  4978. eff.LightEmission = 1
  4979. eff.Color = ColorSequence.new(dis.Color)
  4980. eff.Rate = 500000
  4981. eff.Lifetime = NumberRange.new(0.5,2)
  4982. 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)})
  4983. 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)})
  4984. eff.Speed = NumberRange.new(50,450)
  4985. eff.Drag = 5
  4986. eff.Rotation = NumberRange.new(-500,500)
  4987. eff.VelocitySpread = 9000
  4988. eff.RotSpeed = NumberRange.new(-50,50)
  4989. wait(0.125)
  4990. eff.Enabled = false
  4991. end))
  4992. MagniDamage(dis, 30, 45,50, 0, "Normal")
  4993. for i = 0, 2 do
  4994. 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(50,150)/250,dis.BrickColor)
  4995. end
  4996. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  4997. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  4998. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  4999. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5000. end))
  5001. game:GetService("Debris"):AddItem(dis, 5)
  5002. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5003. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5004. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5005. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5006. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5007. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5008. end
  5009. attack = false
  5010. end
  5011. ----------------------------------- Abilities
  5012.  
  5013. function ExtinctiveHeartbreak()
  5014. local targetted = nil
  5015. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5016. targetted = mouse.Target.Parent
  5017. end
  5018. if targetted ~= nil then
  5019. attack = true
  5020. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5021. for i = 0, 9 do
  5022. 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,BrickColor.new("Really red"),0)
  5023. end
  5024. for i = 0, 24 do
  5025. 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,BrickColor.new("Really red"),0)
  5026. end
  5027. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5028. local originalpos = root.CFrame
  5029. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5030. for i = 0, 9 do
  5031. 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,BrickColor.new("Really red"),0)
  5032. end
  5033. for i = 0, 24 do
  5034. 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,BrickColor.new("Really red"),0)
  5035. end
  5036. hum.WalkSpeed = 0
  5037. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5038. local radm = math.random(1,3)
  5039. if radm == 1 then
  5040. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5041. elseif radm == 2 then
  5042. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5043. elseif radm == 3 then
  5044. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5045. end
  5046. for i = 0,2,0.1 do
  5047. swait()
  5048. 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)
  5049. 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)
  5050. 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)
  5051. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5052. 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)
  5053. 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)
  5054. end
  5055. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5056. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5057. for i = 0,2,0.1 do
  5058. swait()
  5059. coroutine.resume(coroutine.create(function()
  5060. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5061. for i,v in pairs(targetted:GetChildren()) do
  5062. if v:IsA("BasePart") or v:IsA("MeshPart") then
  5063. v.Velocity = vt(0,0,0)
  5064. end
  5065. end
  5066. end))
  5067. 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)
  5068. 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)
  5069. 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)
  5070. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5071. 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)
  5072. 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)
  5073. end
  5074. shakes(1.25,1.5)
  5075. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5076. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5077. for i = 0, 1 do
  5078. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5079. end
  5080. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5081. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5082. for i = 0,4,0.1 do
  5083. swait()
  5084. coroutine.resume(coroutine.create(function()
  5085. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5086. 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)))
  5087. local at1 = Instance.new("Attachment",dis)
  5088. at1.Position = vt(-25000,0,0)
  5089. local at2 = Instance.new("Attachment",dis)
  5090. at2.Position = vt(25000,0,0)
  5091. local trl = Instance.new('Trail',dis)
  5092. trl.Attachment0 = at1
  5093. trl.FaceCamera = true
  5094. trl.Attachment1 = at2
  5095. trl.Texture = "rbxassetid://1049219073"
  5096. trl.LightEmission = 1
  5097. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5098. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5099. trl.Lifetime = 5
  5100. local bv = Instance.new("BodyVelocity")
  5101. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5102. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5103. bv.Parent = dis
  5104. game:GetService("Debris"):AddItem(dis, 5)
  5105. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5106. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5107. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5108. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5109. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5110. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5111. 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)
  5112. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5113. for i = 0, 2 do
  5114. 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,BrickColor.new("Crimson"))
  5115. end
  5116. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  5117. for i,v in pairs(targetted:GetChildren()) do
  5118. if v:IsA("BasePart") or v:IsA("MeshPart") then
  5119. v.Velocity = vt(0,0,0)
  5120. end
  5121. end
  5122. end))
  5123. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5124. 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)
  5125. 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)
  5126. 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)
  5127. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5128. 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)
  5129. 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)
  5130. end
  5131. hum.CameraOffset = vt(0,0,0)
  5132. for i = 0, 49 do
  5133. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5134. 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)))
  5135. local at1 = Instance.new("Attachment",dis)
  5136. at1.Position = vt(-50000,0,0)
  5137. local at2 = Instance.new("Attachment",dis)
  5138. at2.Position = vt(50000,0,0)
  5139. local trl = Instance.new('Trail',dis)
  5140. trl.Attachment0 = at1
  5141. trl.FaceCamera = true
  5142. trl.Attachment1 = at2
  5143. trl.Texture = "rbxassetid://1049219073"
  5144. trl.LightEmission = 1
  5145. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5146. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5147. trl.Lifetime = 5
  5148. local bv = Instance.new("BodyVelocity")
  5149. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5150. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5151. bv.Parent = dis
  5152. game:GetService("Debris"):AddItem(dis, 5)
  5153. end
  5154. for i = 0, 49 do
  5155. 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)
  5156. 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,BrickColor.new("Really red"))
  5157. end
  5158. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5159. for i = 0, 1 do
  5160. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5161. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5162. end
  5163. for i = 0, 4 do
  5164. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5165. end
  5166. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5167. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5168. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5169. dmg(targetted)
  5170. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5171. for i = 0, 9 do
  5172. 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,BrickColor.new("Really red"),0)
  5173. end
  5174. for i = 0, 24 do
  5175. 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,BrickColor.new("Really red"),0)
  5176. end
  5177. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5178. root.CFrame = originalpos
  5179. for i = 0, 9 do
  5180. 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,BrickColor.new("Really red"),0)
  5181. end
  5182. for i = 0, 24 do
  5183. 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,BrickColor.new("Really red"),0)
  5184. end
  5185. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5186. attack = false
  5187. hum.WalkSpeed = storehumanoidWS
  5188. end
  5189. end
  5190.  
  5191. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  5192. local orb = Instance.new("Part", char)
  5193. orb.Anchored = true
  5194. orb.BrickColor = color
  5195. orb.CanCollide = false
  5196. orb.FormFactor = 3
  5197. orb.Name = "Ring"
  5198. orb.Material = "Neon"
  5199. orb.Size = Vector3.new(1, 1, 1)
  5200. orb.Transparency = 0
  5201. orb.TopSurface = 0
  5202. orb.BottomSurface = 0
  5203. local orbm = Instance.new("SpecialMesh", orb)
  5204. orbm.MeshType = "Sphere"
  5205. orb.CFrame = positted
  5206. orbm.Name = "SizeMesh"
  5207. orbm.Scale = vt(1, 1, 1)
  5208. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  5209. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  5210. coroutine.resume(coroutine.create(function()
  5211. wait(timer)
  5212. CameraEnshaking(3, ShakePower)
  5213. orb.Transparency = 1
  5214. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  5215. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  5216. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  5217. wait(3)
  5218. orb:Destroy()
  5219. end))
  5220. end
  5221.  
  5222. function CorruptionEvent()
  5223. attack = true
  5224. hum.WalkSpeed = 0
  5225. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5226. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5227. local keptcolor = MAINRUINCOLOR
  5228. for i = 0,4,0.1 do
  5229. swait()
  5230. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5231. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5232. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  5233. 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(1),math.rad(20)),.1)
  5234. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5235. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5236. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5237. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5238. end
  5239. shakes(0.5,1)
  5240. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5241. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5242. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5243. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5244. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5245. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5246. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5247. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5248. coroutine.resume(coroutine.create(function()
  5249. local eff = Instance.new("ParticleEmitter",cen)
  5250. eff.Texture = "rbxassetid://2344870656"
  5251. eff.LightEmission = 1
  5252. eff.Color = ColorSequence.new(keptcolor.Color)
  5253. eff.Rate = 10000000
  5254. eff.Enabled = true
  5255. eff.EmissionDirection = "Front"
  5256. eff.Lifetime = NumberRange.new(2)
  5257. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,120,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,80,0),NumberSequenceKeypoint.new(1,140,0)})
  5258. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5259. eff.Speed = NumberRange.new(500)
  5260. eff.Drag = 5
  5261. eff.Rotation = NumberRange.new(-500,500)
  5262. eff.SpreadAngle = Vector2.new(0,900)
  5263. eff.RotSpeed = NumberRange.new(-500,500)
  5264. wait(0.2)
  5265. eff.Enabled = false
  5266. wait(5)
  5267. eff:Destroy()
  5268. end))
  5269. hum.CameraOffset = vt(0,0,0)
  5270. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5271. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5272. for i = 0, 24 do
  5273. slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*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(200,500)/250,BrickColor.new("Really black"))
  5274. end
  5275. local rrot = 0
  5276. coroutine.resume(coroutine.create(function()
  5277. local rot = 0
  5278. local randomrotations = math.random(1, 2)
  5279. local lookv = 2.5
  5280. local power = 5
  5281. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  5282. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  5283. for i = 0, 9 do
  5284. sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0)
  5285. end
  5286. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  5287. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  5288. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  5289. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  5290. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  5291. local out = 5
  5292. coroutine.wrap(function()
  5293. for rad = 0, 180,5 do
  5294. if(rad>90)then
  5295. out=out-5
  5296. else
  5297. out=out+5
  5298. end
  5299. local start=root.CFrame
  5300. orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(0,-2,out), 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  5301. orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(0,-2,-out), 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  5302. orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(out,-2,0), 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  5303. orb_spawn_norm(root.CFrame*angles(0,math.rad(rad),0)*cf(-out,-2,0), 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  5304. swait()
  5305. end
  5306. end)()
  5307. end))
  5308. for i = 0,2,0.1 do
  5309. swait()
  5310. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  5311. 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(1),math.rad(10)),.8)
  5312. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5314. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5315. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5316. end
  5317. attack = false
  5318. hum.WalkSpeed = storehumanoidWS
  5319. end
  5320.  
  5321. function EndGROUND()
  5322. attack = true
  5323. hum.WalkSpeed = 0
  5324. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5325. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5326. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5327. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5328. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5329. local keptcolor = MAINRUINCOLOR
  5330. for i = 0,4,0.1 do
  5331. swait()
  5332. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5333. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5334. slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
  5335. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
  5336. 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(1),math.rad(20)),.1)
  5337. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5338. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5339. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5340. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5341. end
  5342. shakes(0.5,1)
  5343. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5344. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5345. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5346. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5347. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5348. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5349. coroutine.resume(coroutine.create(function()
  5350. local eff = Instance.new("ParticleEmitter",cen)
  5351. eff.Texture = "rbxassetid://2344870656"
  5352. eff.LightEmission = 1
  5353. eff.Color = ColorSequence.new(keptcolor.Color)
  5354. eff.Rate = 10000000
  5355. eff.Enabled = true
  5356. eff.EmissionDirection = "Front"
  5357. eff.Lifetime = NumberRange.new(2)
  5358. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,120,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,80,0),NumberSequenceKeypoint.new(1,140,0)})
  5359. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5360. eff.Speed = NumberRange.new(500)
  5361. eff.Drag = 5
  5362. eff.Rotation = NumberRange.new(-500,500)
  5363. eff.SpreadAngle = Vector2.new(0,900)
  5364. eff.RotSpeed = NumberRange.new(-500,500)
  5365. wait(0.2)
  5366. eff.Enabled = false
  5367. wait(5)
  5368. eff:Destroy()
  5369. end))
  5370. coroutine.resume(coroutine.create(function()
  5371. local shval = 10
  5372. for i = 0, 99 do
  5373. swait()
  5374. shval = shval - 0.1
  5375. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5376. end
  5377. hum.CameraOffset = vt(0,0,0)
  5378. end))
  5379. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5380. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5381. for i = 0, 24 do
  5382. slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*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(200,500)/250,BrickColor.new("Really black"))
  5383. end
  5384. local rrot = 0
  5385. local xam = 1
  5386. coroutine.resume(coroutine.create(function()
  5387. for i = 0, 14 do
  5388. --swait()
  5389. rrot = rrot + 40*xam
  5390. xam = xam + 0.25
  5391. local bonus = xam
  5392. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5393. xa.Anchored = true
  5394. xa.Color = Color3.new(0,0,0)
  5395. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5396. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5397. local xc = 0
  5398. coroutine.resume(coroutine.create(function()
  5399. for i = 0, 99 do
  5400. swait()
  5401. xc = xc + 0.01
  5402. xa.Color = Color3.new(xc,0,0)
  5403. end
  5404. shakes(0.35,0.5)
  5405. xa.Transparency = 1
  5406. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5407. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5408. for i = 0, 9 do
  5409. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
  5410. end
  5411. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5412. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color)
  5413. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
  5414. game:GetService("Debris"):AddItem(xa, 5)
  5415. coroutine.resume(coroutine.create(function()
  5416. for i = 0, 19 do
  5417. swait()
  5418. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5419. end
  5420. hum.CameraOffset = vt(0,0,0)
  5421. end))
  5422. end))
  5423. end
  5424. end))
  5425. for i = 0,2,0.1 do
  5426. swait()
  5427. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
  5428. 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(1),math.rad(20)),.8)
  5429. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5430. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5431. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5432. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5433. end
  5434. attack = false
  5435. hum.WalkSpeed = storehumanoidWS
  5436. end
  5437.  
  5438. function HeavenlyDisk()
  5439. attack = true
  5440. hum.WalkSpeed = 2
  5441. local orb = Instance.new("Part", char)
  5442. orb.Anchored = true
  5443. orb.BrickColor = MAINRUINCOLOR
  5444. orb.CanCollide = false
  5445. orb.FormFactor = 3
  5446. orb.Name = "Ring"
  5447. orb.Material = "Neon"
  5448. orb.Size = Vector3.new(1, 1, 1)
  5449. orb.Transparency = 0
  5450. orb.TopSurface = 0
  5451. orb.BottomSurface = 0
  5452. local orbm = Instance.new("SpecialMesh", orb)
  5453. orbm.MeshType = "Sphere"
  5454. orbm.Name = "SizeMesh"
  5455. orbm.Scale = vt(0, 0, 0)
  5456. local scaled = 0.1
  5457. local posid = 0
  5458. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  5459. for i = 0, 5, 0.1 do
  5460. swait()
  5461. scaled = scaled + 0.005
  5462. posid = posid - scaled
  5463. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  5464. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  5465. sphereMKCharge(5, -0.25, "Add", orb.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, 10)
  5466. 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(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.1)
  5467. 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(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.1)
  5468. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  5469. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  5470. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  5471. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30 - 5 * math.cos(sine / 30)), math.rad(20)), 0.1)
  5472. end
  5473.  
  5474. local keptcolor = MAINRUINCOLOR
  5475. local radm = math.random(1,3)
  5476. if radm == 1 then
  5477. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5478. elseif radm == 2 then
  5479. bosschatfunc("Heavenly Bombs!",MAINRUINCOLOR.Color,1)
  5480. elseif radm == 3 then
  5481. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5482. end
  5483. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5484. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  5485. sphere2(5,"Add",larm.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)
  5486. sphere2(5,"Add",larm.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)
  5487. for i = 0, 14 do
  5488. PixelBlock(1,math.random(1,3),"Add",larm.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,BrickColor.new("Toothpaste"),0)
  5489. end
  5490. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5491. for i = 0,2,0.1 do
  5492. swait()
  5493. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  5494. 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)
  5495. 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)
  5496. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5497. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5498. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5499. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5500. end
  5501. for i = 0,1,0.6 do
  5502. swait()
  5503. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  5504. 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"))
  5505. 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)
  5506. 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)
  5507. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5508. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5509. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5510. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5511. end
  5512. for i = 0,1,0.6 do
  5513. swait()
  5514. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  5515. 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"))
  5516. 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)
  5517. 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)
  5518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5519. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5520. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5521. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5522. end
  5523. for i = 0,1,0.6 do
  5524. swait()
  5525. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  5526. 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"))
  5527. 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)
  5528. 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)
  5529. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5530. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5531. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5532. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5533. end
  5534. for i = 0,1,0.6 do
  5535. swait()
  5536. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  5537. 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"))
  5538. 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)
  5539. 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)
  5540. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5541. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5542. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5543. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5544. end
  5545. orb:destroy()
  5546. local rot = 15
  5547. for i = 0, 2 do
  5548. local cfr = root.CFrame*CFrame.new(0,2,-3)
  5549. CFuncs["EchoSound"].Create("rbxassetid://763718160",root, 3, 1.1,0,10,0.15,0.5,1)
  5550. local ray = Ray.new(
  5551. cfr.p, -- origin
  5552. (mouse.Hit.p - cfr.p).unit * 500 -- direction
  5553. )
  5554. local hit, position, normal = workspace:FindPartOnRay(ray, char)
  5555. Projectile{
  5556. Size=3.9100001666667;
  5557. Mesh={MeshType=Enum.MeshType.Sphere};
  5558. Lifetime=5;
  5559. Velocity=(CFrame.new(cfr.p,position)*CFrame.Angles(0,math.rad(rot),0)).lookVector*250;
  5560. Origin=cfr;
  5561. Material=Enum.Material.Neon;
  5562. Color=BrickColor.new'Toothpaste';
  5563. Gravity=0;
  5564. Hit = (function(hit,pos,norm,data)
  5565. local hitted = false
  5566. if hitted == false and hit.Parent ~= char then
  5567. local dis = CreateParta(char,1,1,"Neon",keptcolor)
  5568. dis.CFrame = CFrame.new(pos)
  5569. hitted = true
  5570. shakes(0.15,0.25)
  5571. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5572. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  5573. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5574. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5575. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  5576. coroutine.resume(coroutine.create(function()
  5577. local eff = Instance.new("ParticleEmitter",dis)
  5578. eff.Texture = "rbxassetid://2344870656"
  5579. eff.LightEmission = 1
  5580. eff.Color = ColorSequence.new(dis.Color)
  5581. eff.Rate = 10000000
  5582. eff.Enabled = true
  5583. eff.EmissionDirection = "Front"
  5584. eff.Lifetime = NumberRange.new(1)
  5585. 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)})
  5586. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5587. eff.Speed = NumberRange.new(150)
  5588. eff.Drag = 5
  5589. eff.Rotation = NumberRange.new(-500,500)
  5590. eff.SpreadAngle = Vector2.new(0,900)
  5591. eff.RotSpeed = NumberRange.new(-500,500)
  5592. wait(0.2)
  5593. eff.Enabled = false
  5594. end))
  5595. coroutine.resume(coroutine.create(function()
  5596. for i = 0, 9 do
  5597. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5598. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5599. local at1 = Instance.new("Attachment",disr)
  5600. at1.Position = vt(-2,0,0)
  5601. local at2 = Instance.new("Attachment",disr)
  5602. at2.Position = vt(2,0,0)
  5603. local trl = Instance.new('Trail',disr)
  5604. trl.Attachment0 = at1
  5605. trl.FaceCamera = true
  5606. trl.Attachment1 = at2
  5607. trl.Texture = "rbxassetid://2342682798"
  5608. trl.LightEmission = 1
  5609. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5610. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  5611. trl.Lifetime = 0.5
  5612. local bv = Instance.new("BodyVelocity")
  5613. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5614. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5615. bv.Parent = disr
  5616. local val = 0
  5617. coroutine.resume(coroutine.create(function()
  5618. swait(30)
  5619. for i = 0, 9 do
  5620. swait()
  5621. val = val + 0.1
  5622. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5623. end
  5624. game:GetService("Debris"):AddItem(disr, 3)
  5625. end))
  5626. end
  5627. local eff = Instance.new("ParticleEmitter",dis)
  5628. eff.Texture = "rbxassetid://2273224484"
  5629. eff.LightEmission = 1
  5630. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  5631. eff.Rate = 500000
  5632. eff.Lifetime = NumberRange.new(0.5,2)
  5633. 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)})
  5634. 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)})
  5635. eff.Speed = NumberRange.new(20,250)
  5636. eff.Drag = 5
  5637. eff.Rotation = NumberRange.new(-500,500)
  5638. eff.VelocitySpread = 9000
  5639. eff.RotSpeed = NumberRange.new(-50,50)
  5640. wait(0.25)
  5641. eff.Enabled = false
  5642. end))
  5643. for i = 0, 9 do
  5644. 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,BrickColor.new("White"))
  5645. end
  5646. for i = 0, 19 do
  5647. 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,BrickColor.new("Toothpaste"),0)
  5648. end
  5649. coroutine.resume(coroutine.create(function()
  5650. for i = 0, 19 do
  5651. swait()
  5652. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5653. end
  5654. hum.CameraOffset = vt(0,0,0)
  5655. end))
  5656. dis.Anchored = true
  5657. dis.Transparency = 1
  5658. wait(8)
  5659. dis:Destroy()
  5660. end
  5661. end)}
  5662. rot = rot - 15
  5663. end
  5664. for i = 0,2,0.1 do
  5665. swait()
  5666. 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)
  5667. 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)
  5668. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5669. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  5670. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5671. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5672. end
  5673. attack = false
  5674. hum.WalkSpeed = storehumanoidWS
  5675. end
  5676.  
  5677. function EternalChaosOrb()
  5678. attack = true
  5679. hum.WalkSpeed = 1
  5680. local keptcolor = MAINRUINCOLOR
  5681. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 5, 0.25)
  5682. for i = 0,14,0.1 do
  5683. swait()
  5684. slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,6,1)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.2,0.01,0.2),-0.2,BrickColor.random())
  5685. sphere2(3,"Add",root.CFrame*CFrame.new(0,6,0) + root.CFrame.lookVector*1,vt(3,3,3),0.06,0.06,0.06,MAINRUINCOLOR)
  5686. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  5687. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-35),math.rad(0),math.rad(0)),.1)
  5688. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 1, -0.5) * angles(math.rad(170), math.rad(0), math.rad(-20)), 0.1)
  5689. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 1, -0.5) * angles(math.rad(170), math.rad(0), math.rad(20)), 0.1)
  5690. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.1)
  5691. 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)),.1)
  5692. end
  5693. local dis = CreateParta(char,0,1,"Neon",BrickColor.new("Black"))
  5694. for i = 0, 4 do
  5695. CFuncs["Sound"].Create("rbxassetid://335657174", dis, 10, 0.5)
  5696. end
  5697. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5698. CreateMesh(dis,"Sphere",10,10,10)
  5699. local at1 = Instance.new("Attachment",dis)
  5700. at1.Position = vt(-5,0,0)
  5701. local at2 = Instance.new("Attachment",dis)
  5702. at2.Position = vt(5,0,0)
  5703. local trl = Instance.new('Trail',dis)
  5704. trl.Attachment0 = at1
  5705. trl.Attachment1 = at2
  5706. trl.Texture = "rbxassetid://1049219073"
  5707. trl.LightEmission = 1
  5708. trl.FaceCamera = true
  5709. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5710. trl.Color = ColorSequence.new(dis.Color)
  5711. trl.Lifetime = 3
  5712. local efec = Instance.new("ParticleEmitter",dis)
  5713. efec.Texture = "rbxassetid://2109052855"
  5714. efec.LightEmission = 1
  5715. efec.Color = ColorSequence.new(Color3.new(0.5,0,1))
  5716. efec.Rate = 5
  5717. efec.Lifetime = NumberRange.new(3)
  5718. efec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,25,0),NumberSequenceKeypoint.new(0.2,50,0),NumberSequenceKeypoint.new(0.6,35,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,75,0)})
  5719. efec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.25,0),NumberSequenceKeypoint.new(0.6,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  5720. efec.Drag = 5
  5721. efec.LockedToPart = true
  5722. efec.Rotation = NumberRange.new(-500,500)
  5723. efec.VelocitySpread = 9000
  5724. efec.RotSpeed = NumberRange.new(-500,500)
  5725. local a = Instance.new("Part",workspace)
  5726. a.Name = "Direction"
  5727. a.Anchored = true
  5728. a.BrickColor = bc("Bright red")
  5729. a.Material = "Neon"
  5730. a.Transparency = 1
  5731. a.CanCollide = false
  5732. local ray = Ray.new(
  5733. dis.CFrame.p, -- origin
  5734. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5735. )
  5736. local ignore = dis
  5737. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5738. a.BottomSurface = 10
  5739. a.TopSurface = 10
  5740. local distance = (dis.CFrame.p - position).magnitude
  5741. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5742. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5743. dis.CFrame = a.CFrame
  5744. a:Destroy()
  5745. local bv = Instance.new("BodyVelocity")
  5746. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5747. bv.velocity = dis.CFrame.lookVector*100
  5748. bv.Parent = dis
  5749. game:GetService("Debris"):AddItem(dis, 15)
  5750. local hitted = false
  5751. coroutine.resume(coroutine.create(function()
  5752. while true do
  5753. swait()
  5754. if hitted == false and dis.Parent ~= nil then
  5755. PixelBlock(3,math.random(0,2),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.05,BrickColor.random(),0)
  5756. trl.Color = ColorSequence.new(BrickColor.random().Color)
  5757. efec.Color = ColorSequence.new(BrickColor.random().Color)
  5758. coroutine.resume(coroutine.create(function()
  5759. for i, v in pairs(FindNearestHead(dis.CFrame.p, 50)) do
  5760. if v:FindFirstChild('Head') then
  5761. dmg(v)
  5762. end
  5763. end
  5764. end))
  5765. elseif hitted == true and dis.Parent == nil then
  5766. break
  5767. end
  5768. end
  5769. end))
  5770. coroutine.resume(coroutine.create(function()
  5771. dis.Touched:connect(function(hit)
  5772. if hitted == false and hit.Parent ~= char then
  5773. hitted = true
  5774. shakes(1,1)
  5775. efec.Enabled = false
  5776. for i = 0, 3 do
  5777. CFuncs["Sound"].Create("rbxassetid://1368637781", dis, 7.5,1)
  5778. CFuncs["Sound"].Create("rbxassetid://763718160", dis, 10, 1.1)
  5779. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 10, 1)
  5780. CFuncs["Sound"].Create("rbxassetid://335657174", dis, 10, 1)
  5781. end
  5782. MagniDamage(dis, 125, 82000,345700005, 0, "Normal")
  5783. coroutine.resume(coroutine.create(function()
  5784. for i, v in pairs(FindNearestHead(dis.CFrame.p, 100)) do
  5785. if v:FindFirstChild('Head') then
  5786. dmg(v)
  5787. end
  5788. end
  5789. end))
  5790. sphere2(2,"Add",dis.CFrame,vt(1,1,1),3,3,3,keptcolor,keptcolor.Color)
  5791. sphere2(3,"Add",dis.CFrame,vt(1,1,1),3,3,3,BrickColor.random(),keptcolor.Color)
  5792. sphere2(4,"Add",dis.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),keptcolor.Color)
  5793. sphere2(5,"Add",dis.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),keptcolor.Color)
  5794. coroutine.resume(coroutine.create(function()
  5795. local eff = Instance.new("ParticleEmitter",dis)
  5796. eff.Texture = "rbxassetid://2344870656"
  5797. eff.LightEmission = 1
  5798. eff.Color = ColorSequence.new(dis.Color)
  5799. eff.Rate = 10000000
  5800. eff.Enabled = true
  5801. eff.EmissionDirection = "Front"
  5802. eff.Lifetime = NumberRange.new(3)
  5803. 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)})
  5804. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5805. eff.Speed = NumberRange.new(350)
  5806. eff.Drag = 5
  5807. eff.Rotation = NumberRange.new(-500,500)
  5808. eff.SpreadAngle = Vector2.new(0,900)
  5809. eff.RotSpeed = NumberRange.new(-500,500)
  5810. wait(0.2)
  5811. eff.Enabled = false
  5812. end))
  5813. coroutine.resume(coroutine.create(function()
  5814. for i = 0, 9 do
  5815. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5816. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5817. local at1 = Instance.new("Attachment",disr)
  5818. at1.Position = vt(-30,0,0)
  5819. local at2 = Instance.new("Attachment",disr)
  5820. at2.Position = vt(30,0,0)
  5821. local trl = Instance.new('Trail',disr)
  5822. trl.Attachment0 = at1
  5823. trl.FaceCamera = true
  5824. trl.Attachment1 = at2
  5825. trl.Texture = "rbxassetid://2342682798"
  5826. trl.LightEmission = 1
  5827. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5828. trl.Color = ColorSequence.new(BrickColor.random().Color)
  5829. trl.Lifetime = 0.5
  5830. local bv = Instance.new("BodyVelocity")
  5831. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5832. bv.velocity = disr.CFrame.lookVector*math.random(150,350)
  5833. bv.Parent = disr
  5834. local val = 0
  5835. coroutine.resume(coroutine.create(function()
  5836. swait(30)
  5837. for i = 0, 9 do
  5838. swait()
  5839. val = val + 0.1
  5840. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5841. end
  5842. game:GetService("Debris"):AddItem(disr, 3)
  5843. end))
  5844. end
  5845. local eff = Instance.new("ParticleEmitter",dis)
  5846. eff.Texture = "rbxassetid://2273224484"
  5847. eff.LightEmission = 1
  5848. eff.Color = ColorSequence.new(BrickColor.random().Color)
  5849. eff.Rate = 500000
  5850. eff.Lifetime = NumberRange.new(0.5,2)
  5851. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,4,0),NumberSequenceKeypoint.new(1,0,0)})
  5852. 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)})
  5853. eff.Speed = NumberRange.new(100,400)
  5854. eff.Drag = 5
  5855. eff.Rotation = NumberRange.new(-500,500)
  5856. eff.VelocitySpread = 9000
  5857. eff.RotSpeed = NumberRange.new(-50,50)
  5858. wait(0.25)
  5859. eff.Enabled = false
  5860. end))
  5861. for i = 0, 19 do
  5862. slash(math.random(10,20)/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(200,800)/250,BrickColor.new("White"))
  5863. end
  5864. for i = 0, 49 do
  5865. PixelBlock(1,math.random(5,40),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,BrickColor.random(),0)
  5866. end
  5867. coroutine.resume(coroutine.create(function()
  5868. for i = 0, 19 do
  5869. swait()
  5870. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5871. end
  5872. hum.CameraOffset = vt(0,0,0)
  5873. end))
  5874. dis.Anchored = true
  5875. dis.Transparency = 1
  5876. wait(8)
  5877. dis:Destroy()
  5878. end
  5879. end)
  5880. end))
  5881. for i = 0,2,0.1 do
  5882. swait()
  5883. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.5)* angles(math.rad(30),math.rad(0),math.rad(0)),0.3)
  5884. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  5885. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-10)), 0.3)
  5886. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(10)), 0.3)
  5887. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.05 * math.cos(sine / 25),-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(30)),.3)
  5888. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3)
  5889. end
  5890. attack = false
  5891. hum.WalkSpeed = storehumanoidWS
  5892. end
  5893.  
  5894. function RapidBurst()
  5895. attack = true
  5896. hum.WalkSpeed = 0
  5897. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  5898. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  5899. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  5900. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  5901. local keptcolor = MAINRUINCOLOR
  5902. for i = 0,8,0.1 do
  5903. swait()
  5904. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5905. slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random())
  5906. block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
  5907. 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)
  5908. 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)
  5909. 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)
  5910. 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)
  5911. 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)
  5912. 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)
  5913. end
  5914. shakes(1,3)
  5915. for i = 0, 99 do
  5916. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5917. dis.CFrame = root.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)))
  5918. local at1 = Instance.new("Attachment",dis)
  5919. at1.Position = vt(-25000,0,0)
  5920. local at2 = Instance.new("Attachment",dis)
  5921. at2.Position = vt(25000,0,0)
  5922. local trl = Instance.new('Trail',dis)
  5923. trl.Attachment0 = at1
  5924. trl.FaceCamera = true
  5925. trl.Attachment1 = at2
  5926. trl.Texture = "rbxassetid://1049219073"
  5927. trl.LightEmission = 1
  5928. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5929. trl.Color = ColorSequence.new(BrickColor.random().Color)
  5930. trl.Lifetime = 5
  5931. local bv = Instance.new("BodyVelocity")
  5932. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5933. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5934. bv.Parent = dis
  5935. game:GetService("Debris"):AddItem(dis, 5)
  5936. end
  5937. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  5938. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  5939. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  5940. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  5941. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  5942. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  5943. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  5944. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  5945. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  5946. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  5947. hum.CameraOffset = vt(0,0,0)
  5948. for i = 0, 24 do
  5949. 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(500,1500)/250,BrickColor.random())
  5950. end
  5951. local distam = 0
  5952. coroutine.resume(coroutine.create(function()
  5953. for i = 0, 99 do
  5954. wait()
  5955. distam = distam + 1
  5956. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5957. xa.Anchored = true
  5958. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5959. game:GetService("Debris"):AddItem(xa, 5)
  5960. for i = 0, 4 do
  5961. slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.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(200,500)/250,BrickColor.random())
  5962. end
  5963. coroutine.resume(coroutine.create(function()
  5964. local eff = Instance.new("ParticleEmitter",xa)
  5965. eff.Texture = "rbxassetid://2344870656"
  5966. eff.LightEmission = 1
  5967. eff.Color = ColorSequence.new(xa.Color)
  5968. eff.Rate = 10000000
  5969. eff.Enabled = true
  5970. eff.Lifetime = NumberRange.new(2.5)
  5971. 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)})
  5972. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5973. eff.Speed = NumberRange.new(200)
  5974. eff.Drag = 5
  5975. eff.Rotation = NumberRange.new(-500,500)
  5976. eff.SpreadAngle = Vector2.new(0,900)
  5977. eff.RotSpeed = NumberRange.new(-500,500)
  5978. wait(0.2)
  5979. eff.Enabled = false
  5980. end))
  5981. coroutine.resume(coroutine.create(function()
  5982. local eff = Instance.new("ParticleEmitter",xa)
  5983. eff.Texture = "rbxassetid://2273224484"
  5984. eff.LightEmission = 1
  5985. eff.Color = ColorSequence.new(BrickColor.random().Color)
  5986. eff.Rate = 500000
  5987. eff.Lifetime = NumberRange.new(1,3)
  5988. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  5989. 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)})
  5990. eff.Speed = NumberRange.new(50,500)
  5991. eff.Drag = 5
  5992. eff.Rotation = NumberRange.new(-500,500)
  5993. eff.VelocitySpread = 9000
  5994. eff.RotSpeed = NumberRange.new(-50,50)
  5995. wait(0.25)
  5996. eff.Enabled = false
  5997. end))
  5998. coroutine.resume(coroutine.create(function()
  5999. for i = 0, 19 do
  6000. swait()
  6001. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6002. end
  6003. hum.CameraOffset = vt(0,0,0)
  6004. end))
  6005. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6006. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6007. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6008. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6009. end
  6010. end))
  6011. attack = false
  6012. hum.WalkSpeed = storehumanoidWS
  6013. end
  6014.  
  6015.  
  6016. function FallenOrbs()
  6017. attack = true
  6018. hum.WalkSpeed = 2
  6019. local keptcolor = MAINRUINCOLOR
  6020. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6021. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6022. local radm = math.random(1,3)
  6023. if radm == 1 then
  6024. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6025. elseif radm == 2 then
  6026. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6027. elseif radm == 3 then
  6028. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6029. end
  6030. local obj1 = script.chring:Clone()
  6031. obj1.Parent = char
  6032. obj1.Transparency = 1
  6033. obj1.Color = BrickColor.new("Toothpaste").Color
  6034. local obj2 = script.spball:Clone()
  6035. obj2.Parent = char
  6036. obj2.Transparency = 1
  6037. obj2.Color = MAINRUINCOLOR.Color
  6038. local cfor = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6039. cfor.Anchored = true
  6040. cfor.CFrame = obj2.CFrame
  6041. local cef = Instance.new("ParticleEmitter",cfor)
  6042. cef.Texture = "rbxassetid://2344870656"
  6043. cef.LightEmission = 1
  6044. cef.Color = ColorSequence.new(obj2.Color)
  6045. cef.Rate = 150
  6046. cef.Lifetime = NumberRange.new(0.25)
  6047. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,1,0),NumberSequenceKeypoint.new(1,0,0)})
  6048. cef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  6049. cef.Speed = NumberRange.new(0)
  6050. local rval = 0
  6051. local eval = 1
  6052. CFuncs["Sound"].Create("rbxassetid://136007472", root, 10,0.7)
  6053. for i = 0,10,0.1 do
  6054. swait()
  6055. rval = rval + math.random(30,40)
  6056. eval = eval + 1.5
  6057. obj1.Transparency = obj1.Transparency - 0.003
  6058. obj1.Size = obj1.Size + vt(0,1,1)
  6059. obj1.CFrame = root.CFrame*CFrame.new(0,16,0)*CFrame.Angles(math.rad(0),math.rad(rval),math.rad(-90))
  6060. obj2.Transparency = obj2.Transparency - 0.005
  6061. obj2.Size = obj2.Size + vt(0.5,0.5,0.5)
  6062. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,eval,0),NumberSequenceKeypoint.new(1,0,0)})
  6063. obj2.CFrame = root.CFrame*CFrame.new(0,36,0)*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  6064. cfor.CFrame = obj2.CFrame
  6065. slash(math.random(50,90)/10,5,true,"Round","Add","In",obj2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0.01,1),math.random(-400,-200)/250,BrickColor.new("Deep orange"))
  6066. slash(math.random(50,90)/10,5,true,"Round","Add","In",obj2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0.01,1),math.random(-400,-200)/250,BrickColor.new("Toothpaste"))
  6067. sphere2(8,"Add",rarm.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,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6068. 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 - 2 * math.cos(sine / 32))),.3)
  6069. 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 + 2 * math.cos(sine / 32))),.3)
  6070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),6 + 0.15 * math.cos(sine / 32))*angles(math.rad(-20 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(70)),.3)
  6071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 2 * math.cos(sine / 37)),math.rad(5 + 1 * math.cos(sine / 58)),math.rad(-70 + 2 * math.cos(sine / 53))),.3)
  6072. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(170 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 45))),.3)
  6073. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3)
  6074. end
  6075. shakes(0.75,0.5)
  6076. cef.Enabled = false
  6077. coroutine.resume(coroutine.create(function()
  6078. for i = 0,49 do
  6079. swait()
  6080. rval = rval + 100
  6081. obj2.CFrame = obj2.CFrame*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  6082. obj2.Transparency = obj2.Transparency + 0.02
  6083. obj2.Size = obj2.Size + vt(5,5,5)
  6084. obj1.Transparency = obj1.Transparency + 0.02
  6085. obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
  6086. end
  6087. obj1:Destroy()
  6088. obj2:Destroy()
  6089. cfor:Destroy()
  6090. end))
  6091. for i = 0, 9 do
  6092. slash(math.random(10,40)/10,5,true,"Round","Add","Out",obj2.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,450)/250,BrickColor.new("Deep orange"))
  6093. slash(math.random(10,40)/10,5,true,"Round","Add","Out",obj2.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,450)/250,BrickColor.new("Toothpaste"))
  6094. end
  6095. sphere2(3,"Add",obj2.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),1,1,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6096. sphere2(3,"Add",obj2.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),2,2,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6097. CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 10, 0.8,0,10,0.15,0.5,1)
  6098. CFuncs["EchoSound"].Create("rbxassetid://763717897", root, 7.5, 1.1,0,10,0.15,0.5,1)
  6099. CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 5, 0.7,0,10,0.15,0.5,1)
  6100. coroutine.resume(coroutine.create(function()
  6101. for i = 0, 19 do
  6102. swait()
  6103. local custcol = math.random(1,3)
  6104. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6105. if custcol == 1 then
  6106. dis.BrickColor = MAINRUINCOLOR
  6107. elseif custcol == 2 then
  6108. dis.BrickColor = BrickColor.new("Toothpaste")
  6109. elseif custcol == 3 then
  6110. dis.BrickColor = BrickColor.new("Deep orange")
  6111. end
  6112. dis.Anchored = true
  6113. --CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6114. dis.CFrame = root.CFrame*CFrame.new(math.random(-30,30),math.random(11,51),math.random(-30,30))
  6115. CreateMesh(dis,"Sphere",2,2,2)
  6116. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6117. slash(math.random(10,20)/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(10,50)/250,BrickColor.new("White"))
  6118. coroutine.resume(coroutine.create(function()
  6119. wait(0.5)
  6120. dis.Anchored = false
  6121. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6122. local at1 = Instance.new("Attachment",dis)
  6123. at1.Position = vt(-1,0,0)
  6124. local at2 = Instance.new("Attachment",dis)
  6125. at2.Position = vt(1,0,0)
  6126. local trl = Instance.new('Trail',dis)
  6127. trl.Attachment0 = at1
  6128. trl.FaceCamera = true
  6129. trl.Attachment1 = at2
  6130. trl.Texture = "rbxassetid://1049219073"
  6131. trl.LightEmission = 1
  6132. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6133. trl.Color = ColorSequence.new(dis.Color)
  6134. trl.Lifetime = 0.6
  6135. local a = Instance.new("Part",workspace)
  6136. a.Name = "Direction"
  6137. a.Anchored = true
  6138. a.BrickColor = bc("Bright red")
  6139. a.Material = "Neon"
  6140. a.Transparency = 1
  6141. a.CanCollide = false
  6142. local ray = Ray.new(
  6143. dis.CFrame.p, -- origin
  6144. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6145. )
  6146. local ignore = dis
  6147. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6148. a.BottomSurface = 10
  6149. a.TopSurface = 10
  6150. local distance = (dis.CFrame.p - position).magnitude
  6151. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6152. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6153. dis.CFrame = a.CFrame
  6154. a:Destroy()
  6155. local bv = Instance.new("BodyVelocity")
  6156. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6157. bv.velocity = dis.CFrame.lookVector*500
  6158. bv.Parent = dis
  6159. game:GetService("Debris"):AddItem(dis, 5)
  6160. local hitted = false
  6161. coroutine.resume(coroutine.create(function()
  6162. dis.Touched:connect(function(hit)
  6163. if hitted == false and hit.Parent ~= char then
  6164. hitted = true
  6165. shakes(0.2,0.3)
  6166. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6167. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6168. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,dis.BrickColor,dis.Color)
  6169. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6170. coroutine.resume(coroutine.create(function()
  6171. local eff = Instance.new("ParticleEmitter",dis)
  6172. eff.Texture = "rbxassetid://2344870656"
  6173. eff.LightEmission = 1
  6174. eff.Color = ColorSequence.new(dis.Color)
  6175. eff.Rate = 10000000
  6176. eff.Enabled = true
  6177. --eff.EmissionDirection = "Front"
  6178. eff.Lifetime = NumberRange.new(3)
  6179. 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)})
  6180. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6181. eff.Speed = NumberRange.new(250)
  6182. eff.Drag = 5
  6183. eff.Rotation = NumberRange.new(-500,500)
  6184. eff.SpreadAngle = Vector2.new(0,900)
  6185. eff.RotSpeed = NumberRange.new(-500,500)
  6186. wait(0.2)
  6187. eff.Enabled = false
  6188. end))
  6189. coroutine.resume(coroutine.create(function()
  6190. for i = 0, 4 do
  6191. local disr = CreateParta(char,1,1,"Neon",dis.BrickColor)
  6192. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6193. local at1 = Instance.new("Attachment",disr)
  6194. at1.Position = vt(-10,0,0)
  6195. local at2 = Instance.new("Attachment",disr)
  6196. at2.Position = vt(10,0,0)
  6197. local trl = Instance.new('Trail',disr)
  6198. trl.Attachment0 = at1
  6199. trl.FaceCamera = true
  6200. trl.Attachment1 = at2
  6201. trl.Texture = "rbxassetid://2342682798"
  6202. trl.LightEmission = 1
  6203. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6204. trl.Color = ColorSequence.new(disr.Color)
  6205. trl.Lifetime = 0.5
  6206. local bv = Instance.new("BodyVelocity")
  6207. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6208. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6209. bv.Parent = disr
  6210. local val = 0
  6211. coroutine.resume(coroutine.create(function()
  6212. swait(30)
  6213. for i = 0, 9 do
  6214. swait()
  6215. val = val + 0.1
  6216. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6217. end
  6218. game:GetService("Debris"):AddItem(disr, 3)
  6219. end))
  6220. end
  6221. local eff = Instance.new("ParticleEmitter",dis)
  6222. eff.Texture = "rbxassetid://2273224484"
  6223. eff.LightEmission = 1
  6224. eff.Color = ColorSequence.new(dis.Color)
  6225. eff.Rate = 500000
  6226. eff.Lifetime = NumberRange.new(0.5,2)
  6227. 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)})
  6228. 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)})
  6229. eff.Speed = NumberRange.new(20,250)
  6230. eff.Drag = 5
  6231. eff.Rotation = NumberRange.new(-500,500)
  6232. eff.VelocitySpread = 9000
  6233. eff.RotSpeed = NumberRange.new(-50,50)
  6234. wait(0.5)
  6235. eff.Enabled = false
  6236. end))
  6237. for i = 0, 4 do
  6238. slash(math.random(20,50)/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,200)/250,BrickColor.new("White"))
  6239. end
  6240. coroutine.resume(coroutine.create(function()
  6241. for i = 0, 19 do
  6242. swait()
  6243. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6244. end
  6245. hum.CameraOffset = vt(0,0,0)
  6246. end))
  6247. dis.Anchored = true
  6248. dis.Transparency = 1
  6249. wait(8)
  6250. dis:Destroy()
  6251. end
  6252. end)
  6253. end))
  6254. end))
  6255. end
  6256. end))
  6257. for i = 0,9,0.1 do
  6258. swait()
  6259. 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 - 2 * math.cos(sine / 32))),.3)
  6260. 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 + 2 * math.cos(sine / 32))),.3)
  6261. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),6 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3)
  6262. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3)
  6263. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
  6264. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3)
  6265. end
  6266. attack = false
  6267. hum.WalkSpeed = storehumanoidWS
  6268. end
  6269.  
  6270. function EquinoxOrbs()
  6271. hum.WalkSpeed = 0
  6272. attack = true
  6273. for i = 0,1,0.1 do
  6274. swait()
  6275. 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)),.2)
  6276. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
  6277. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6278. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6279. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6280. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6281. end
  6282. shakes(0.4,0.5)
  6283. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6284. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6285. for i = 0, 24 do
  6286. 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,BrickColor.new("White"))
  6287. end
  6288. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6289. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6290. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6291. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6292. for i = 0,4,0.1 do
  6293. swait()
  6294. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6295. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6296. CreateMesh(dis,"Sphere",1,1,1)
  6297. dis.Anchored = true
  6298. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6299. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6300. CreateMesh(dis2,"Sphere",1,1,1)
  6301. dis2.Anchored = true
  6302. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6303. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6304. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6305. coroutine.resume(coroutine.create(function()
  6306. swait(60)
  6307. dis.Transparency = 1
  6308. dis2.Transparency = 1
  6309. coroutine.resume(coroutine.create(function()
  6310. for i = 0, 19 do
  6311. swait()
  6312. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6313. end
  6314. hum.CameraOffset = vt(0,0,0)
  6315. end))
  6316. coroutine.resume(coroutine.create(function()
  6317. local eff = Instance.new("ParticleEmitter",dis)
  6318. eff.Texture = "rbxassetid://2273224484"
  6319. eff.LightEmission = 1
  6320. eff.Color = ColorSequence.new(dis.Color)
  6321. eff.Rate = 500000
  6322. eff.Lifetime = NumberRange.new(0.5,2)
  6323. 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)})
  6324. 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)})
  6325. eff.Speed = NumberRange.new(50,450)
  6326. eff.Drag = 5
  6327. eff.Rotation = NumberRange.new(-500,500)
  6328. eff.VelocitySpread = 9000
  6329. eff.RotSpeed = NumberRange.new(-50,50)
  6330. local eff2 = eff:Clone()
  6331. eff2.Parent = dis2
  6332. eff2.LightEmission = 0
  6333. eff2.Color = ColorSequence.new(dis2.Color)
  6334. wait(0.25)
  6335. eff.Enabled = false
  6336. eff2.Enabled = false
  6337. end))
  6338. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6339. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6340. for i = 0, 2 do
  6341. 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)
  6342. 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)
  6343. end
  6344. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6345. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6346. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6347. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6348. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6349. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6350. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6351. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6352. end))
  6353. game:GetService("Debris"):AddItem(dis, 5)
  6354. game:GetService("Debris"):AddItem(dis2, 5)
  6355. 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)),.2)
  6356. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
  6357. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6359. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6360. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6361. end
  6362. attack = false
  6363. hum.WalkSpeed = storehumanoidWS
  6364. end
  6365. function FallenDEMISE()
  6366. attack = true
  6367. hum.WalkSpeed = 0
  6368. local keptcolor = MAINRUINCOLOR
  6369. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6370. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6371. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6372. for i = 0, 15, 0.1 do
  6373. swait()
  6374. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6375. dis.CFrame = root.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)))
  6376. local at1 = Instance.new("Attachment",dis)
  6377. at1.Position = vt(-25000,0,0)
  6378. local at2 = Instance.new("Attachment",dis)
  6379. at2.Position = vt(25000,0,0)
  6380. local trl = Instance.new('Trail',dis)
  6381. trl.Attachment0 = at1
  6382. trl.FaceCamera = true
  6383. trl.Attachment1 = at2
  6384. trl.Texture = "rbxassetid://1049219073"
  6385. trl.LightEmission = 1
  6386. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6387. trl.Color = ColorSequence.new(dis.Color)
  6388. trl.Lifetime = 5
  6389. local bv = Instance.new("BodyVelocity")
  6390. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6391. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6392. bv.Parent = dis
  6393. game:GetService("Debris"):AddItem(dis, 1)
  6394. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6395. slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste"))
  6396. slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange"))
  6397. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6398. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6399. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6400. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6401. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6402. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6403. end
  6404. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6405. shakes(5,3)
  6406. for i = 0, 30, 0.1 do
  6407. swait()
  6408. coroutine.resume(coroutine.create(function()
  6409. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6410. if v:FindFirstChild('Head') then
  6411. dmg(v)
  6412. end
  6413. end
  6414. end))
  6415. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6416. dis.CFrame = root.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)))
  6417. local at1 = Instance.new("Attachment",dis)
  6418. at1.Position = vt(-50000,0,0)
  6419. local at2 = Instance.new("Attachment",dis)
  6420. at2.Position = vt(50000,0,0)
  6421. local trl = Instance.new('Trail',dis)
  6422. trl.Attachment0 = at1
  6423. trl.FaceCamera = true
  6424. trl.Attachment1 = at2
  6425. trl.Texture = "rbxassetid://1049219073"
  6426. trl.LightEmission = 1
  6427. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6428. trl.Color = ColorSequence.new(dis.Color)
  6429. trl.Lifetime = 10
  6430. local bv = Instance.new("BodyVelocity")
  6431. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6432. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6433. bv.Parent = dis
  6434. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6435. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6436. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6437. sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange"))
  6438. sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste"))
  6439. slash(math.random(50,100)/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(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange"))
  6440. slash(math.random(50,100)/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(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste"))
  6441. for i = 0, 2 do
  6442. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR)
  6443. end
  6444. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6445. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6446. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6448. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6449. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6450. end
  6451. attack = false
  6452. hum.WalkSpeed = storehumanoidWS
  6453. end
  6454.  
  6455. function SHDTwist()
  6456. attack = true
  6457. hum.WalkSpeed = 2
  6458. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1.5,1.25)
  6459. local obj1 = script.chring2:Clone()
  6460. obj1.Parent = char
  6461. obj1.Transparency = 1
  6462. obj1.Size = vt(1,1,1)
  6463. obj1.Color = BrickColor.new("Pink").Color
  6464. local obj2 = script.spball:Clone()
  6465. obj2.Parent = char
  6466. obj2.Transparency = 1
  6467. obj2.Size = vt(1,1,1)
  6468. obj2.Color = MAINRUINCOLOR.Color
  6469. local cfor = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6470. cfor.Anchored = true
  6471. cfor.CFrame = obj2.CFrame
  6472. local cef = Instance.new("ParticleEmitter",cfor)
  6473. cef.Texture = "rbxassetid://2344870656"
  6474. cef.LightEmission = 1
  6475. cef.Color = ColorSequence.new(obj2.Color)
  6476. cef.Rate = 150
  6477. cef.Lifetime = NumberRange.new(0.25)
  6478. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,1,0),NumberSequenceKeypoint.new(1,0,0)})
  6479. cef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  6480. cef.Speed = NumberRange.new(0)
  6481. local rval = 0
  6482. local eval = 1
  6483. for i = 0,7,0.1 do
  6484. swait()
  6485. rval = rval + math.random(30,40)
  6486. eval = eval + 0.45
  6487. obj1.Transparency = obj1.Transparency - 0.005
  6488. obj1.Size = obj1.Size + vt(0.3,0.3,0.1)
  6489. obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
  6490. obj2.Transparency = obj2.Transparency - 0.007
  6491. obj2.Size = obj2.Size + vt(0.15,0.15,0.15)
  6492. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,eval,0),NumberSequenceKeypoint.new(1,0,0)})
  6493. obj2.CFrame = root.CFrame*CFrame.new(0,1,-7)*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  6494. cfor.CFrame = obj2.CFrame
  6495. 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("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  6496. sphere2(10,"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.15,-0.01,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  6497. 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 - 2 * math.cos(sine / 32))),.3)
  6498. 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 + 2 * math.cos(sine / 32))),.3)
  6499. 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(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-50)),.3)
  6500. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2 * math.cos(sine / 37)),math.rad(10 + 1 * math.cos(sine / 58)),math.rad(50 + 2 * math.cos(sine / 53))),.3)
  6501. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(10 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(5 + 2 * math.cos(sine / 45))),.3)
  6502. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-50 - 4 * math.cos(sine / 45))),.3)
  6503. end
  6504. shakes(0.25,0.25)
  6505. cef.Enabled = false
  6506. coroutine.resume(coroutine.create(function()
  6507. for i = 0,49 do
  6508. swait()
  6509. rval = rval + 100
  6510. obj2.CFrame = obj2.CFrame*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  6511. obj2.Transparency = obj2.Transparency + 0.02
  6512. obj2.Size = obj2.Size + vt(5,5,5)
  6513. obj1.Transparency = obj1.Transparency + 0.02
  6514. obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
  6515. end
  6516. obj1:Destroy()
  6517. obj2:Destroy()
  6518. cfor:Destroy()
  6519. end))
  6520. local lva = 1
  6521. local ica = 0
  6522. local cent = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6523. CFuncs["Sound"].Create("rbxassetid://1177785010", cent, 10, 1)
  6524. cent.CFrame = root.CFrame*CFrame.Angles(0,0,0) + root.CFrame.lookVector*5
  6525. cent.Anchored=true
  6526. sphere2(2,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Black"),BrickColor.new("Black").Color)
  6527. sphere2(3,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Crimson"),BrickColor.new("Crimson").Color)
  6528.  
  6529. local a = Instance.new("Part",workspace)
  6530. a.Name = "Direction"
  6531. a.Anchored = true
  6532. a.BrickColor = bc("Bright red")
  6533. a.Material = "Neon"
  6534. a.Transparency = 1
  6535. a.CanCollide = false
  6536. local ray = Ray.new(
  6537. cent.CFrame.p, -- origin
  6538. (mouse.Hit.p - cent.CFrame.p).unit * 500 -- direction
  6539. )
  6540. local ignore = cent
  6541. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6542. Projectile{
  6543. Size=Vector3.new(.05,.05,.05);
  6544. Mesh={MeshType=Enum.MeshType.Sphere,Scale=Vector3.new(0,0,0)};
  6545. Lifetime=5;
  6546. Velocity=CFrame.new(cent.CFrame.p,position).lookVector*100;
  6547. Origin=cent.CFrame;
  6548. Material=Enum.Material.Neon;
  6549. Color=BrickColor.new'Black';
  6550. Gravity=0;
  6551. Update = function(cent)
  6552. ica = ica + 5
  6553. sphere2(3,"Add",cent.CFrame,vt(5,5,5),-0.05,-0.05,-0.05,BrickColor.new("Black"))
  6554. sphere2(5,"Add",cent.CFrame*CFrame.Angles(0,0,math.rad(ica))*CFrame.new(0,-5,0),vt(4,4,4),-0.04,-0.04,-0.04,BrickColor.new("Crimson"))
  6555. sphere2(5,"Add",cent.CFrame*CFrame.Angles(0,0,math.rad(ica))*CFrame.new(0,5,0),vt(4,4,4),-0.04,-0.04,-0.04,BrickColor.new("Black"))
  6556.  
  6557. end;
  6558. Hit = (function(hit,pos,norm,data)
  6559. if hit.Parent ~= char then
  6560. cent.Anchored = true
  6561. cent.CFrame=cf(pos)
  6562. shakes(0.5,0.5)
  6563. CFuncs["Sound"].Create("rbxassetid://782353443", cent, 10, 1)
  6564. CFuncs["Sound"].Create("rbxassetid://1368637781", cent, 8, 1)
  6565. CFuncs["Sound"].Create("rbxassetid://763717897", cent, 5, 1)
  6566. CFuncs["EchoSound"].Create("rbxassetid://1177785010", cent, 8, 1.1,0,10,0.15,0.5,1)
  6567. MagniDamage(cent, 50, 50,99999, 0, "Normal")
  6568. sphere2(2,"Add",cent.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Black"),BrickColor.new("Black").Color)
  6569. sphere2(3,"Add",cent.CFrame,vt(1,1,1),1.2,1.2,1.2,BrickColor.new("Crimson"),BrickColor.new("Crimson").Color)
  6570. for i = 0, 19 do
  6571. slash(math.random(10,50)/10,5,true,"Round","Add","Out",cent.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(200,400)/250,BrickColor.new("Pink"))
  6572. slash(math.random(10,50)/10,5,true,"Round","Add","Out",cent.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,300)/250,BrickColor.new("Black"))
  6573. end
  6574. coroutine.resume(coroutine.create(function()
  6575. local eff = Instance.new("ParticleEmitter",cent)
  6576. eff.Texture = "rbxassetid://2344870656"
  6577. eff.LightEmission = 1
  6578. eff.Color = ColorSequence.new(BrickColor.new("Black").Color)
  6579. eff.Rate = 10000000
  6580. eff.Enabled = true
  6581. --eff.EmissionDirection = "Front"
  6582. eff.Lifetime = NumberRange.new(5)
  6583. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,60,0),NumberSequenceKeypoint.new(1,80,0)})
  6584. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6585. eff.Speed = NumberRange.new(350)
  6586. eff.Drag = 5
  6587. eff.Rotation = NumberRange.new(-500,500)
  6588. eff.SpreadAngle = Vector2.new(0,900)
  6589. eff.RotSpeed = NumberRange.new(-500,500)
  6590. local eff2 = eff:Clone()
  6591. eff2.Parent = cent
  6592. eff2.Speed = NumberRange.new(250)
  6593. eff2.Color = ColorSequence.new(BrickColor.new("Crimson").Color)
  6594. wait(0.2)
  6595. eff.Enabled = false
  6596. eff2.Enabled = false
  6597. end))
  6598. end
  6599. end)}
  6600.  
  6601. game:GetService("Debris"):AddItem(cent, 20)
  6602. attack = false
  6603. hum.WalkSpeed = storehumanoidWS
  6604. end
  6605.  
  6606. function roldbeam()
  6607. attack = true
  6608. hum.WalkSpeed = 0
  6609. local rngb = Instance.new("Part", char)
  6610. rngb.Anchored = true
  6611. rngb.BrickColor = origcolor
  6612. rngb.CanCollide = false
  6613. rngb.FormFactor = 3
  6614. rngb.Name = "Ring"
  6615. rngb.Material = "Neon"
  6616. rngb.Size = Vector3.new(1, 0.05, 1)
  6617. rngb.Transparency = 1
  6618. rngb.TopSurface = 0
  6619. rngb.BottomSurface = 0
  6620. local rngmb = Instance.new("SpecialMesh", rngb)
  6621. rngmb.MeshType = "Brick"
  6622. rngmb.Name = "SizeMesh"
  6623. rngmb.Scale = vt(0,1,0)
  6624.  
  6625. local orb = rngb:Clone()
  6626. orb.Parent = char
  6627. orb.Transparency = 0
  6628. orb.BrickColor = BrickColor.new("White")
  6629. orb.Size = vt(1,1,1)
  6630. local orbmish = orb.SizeMesh
  6631. orbmish.Scale = vt(0,0,0)
  6632. orbmish.MeshType = "Sphere"
  6633.  
  6634. local orbe = rngb:Clone()
  6635. orbe.Parent = char
  6636. orbe.Transparency = 0.5
  6637. orbe.BrickColor = BrickColor.new("New Yeller")
  6638. orbe.Size = vt(1,1,1)
  6639. local orbmish2 = orbe.SizeMesh
  6640. orbmish2.Scale = vt(0,0,0)
  6641. orbmish2.MeshType = "Sphere"
  6642. orbe.Color = Color3.new(r/255,g/255,b/255)
  6643.  
  6644. local obj1 = script.chring2:Clone()
  6645. obj1.Parent = char
  6646. obj1.Transparency = 1
  6647. obj1.Size = vt(1,1,1)
  6648. obj1.Color = BrickColor.new("White").Color
  6649.  
  6650. rngb:Destroy()
  6651. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  6652. local scaled = 1
  6653. for i = 0,5,0.1 do
  6654. swait()
  6655. scaled = scaled - 0.02
  6656. if rainbowmode == true then
  6657. orbe.Color = Color3.new(r/255,g/255,b/255)
  6658. end
  6659. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  6660. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  6661. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  6662. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  6663. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  6664. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  6665. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  6666. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  6667. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  6668. 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(0)),.3)
  6669. 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(10),math.rad(0)),.3)
  6670. RootPart.CFrame = FaceMouse()[1]
  6671. end]]--
  6672. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 2)
  6673. local rval = 0
  6674. local effx = Instance.new("ParticleEmitter",obj1)
  6675. effx.Texture = "rbxassetid://2344870656"
  6676. effx.LightEmission = 1
  6677. effx.Color = ColorSequence.new(Color3.new(1,1,1))
  6678. effx.Rate = 10000000
  6679. effx.Enabled = true
  6680. effx.EmissionDirection = "Front"
  6681. effx.Lifetime = NumberRange.new(0.5)
  6682. effx.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  6683. effx.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6684. effx.Speed = NumberRange.new(50)
  6685. effx.Drag = 5
  6686. effx.Rotation = NumberRange.new(-500,500)
  6687. effx.SpreadAngle = Vector2.new(900,900)
  6688. effx.RotSpeed = NumberRange.new(-500,500)
  6689. for i = 0,2,0.1 do
  6690. swait()
  6691. if rainbowmode == true then
  6692. obj1.Color = Color3.new(r/255,g/255,b/255)
  6693. orbe.Color = Color3.new(r/255,g/255,b/255)
  6694. effx.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6695. end
  6696. rval = rval + math.random(30,40)
  6697. obj1.Transparency = obj1.Transparency - 0.05
  6698. obj1.Size = obj1.Size + vt(1.5,1.5,0.3)
  6699. obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
  6700. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  6701. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  6702. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  6703. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  6704. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  6705. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  6706. 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(0)),.3)
  6707. 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(10),math.rad(0)),.3)
  6708. end
  6709. orbe.Transparency = 1
  6710. orb.Transparency = 1
  6711. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  6712. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1.5)
  6713. local a = Instance.new("Part",Character)
  6714. a.Name = "Direction"
  6715. a.Anchored = true
  6716. a.BrickColor = bc("White")
  6717. a.Material = "Neon"
  6718. a.Transparency = 0
  6719. a.Shape = "Cylinder"
  6720. a.CanCollide = false
  6721. local a2 = Instance.new("Part",Character)
  6722. a2.Name = "Direction"
  6723. a2.Anchored = true
  6724. a2.BrickColor = bc("New Yeller")
  6725. a2.Color = Color3.new(r/255,g/255,b/255)
  6726. a2.Material = "Neon"
  6727. a2.Transparency = 0.5
  6728. a2.Shape = "Cylinder"
  6729. a2.CanCollide = false
  6730. local ba = Instance.new("Part",Character)
  6731. ba.Name = "HitDirect"
  6732. ba.Anchored = true
  6733. ba.BrickColor = bc("Cool yellow")
  6734. ba.Material = "Neon"
  6735. ba.Transparency = 1
  6736. ba.CanCollide = false
  6737. local ray = Ray.new(
  6738. orb.CFrame.p, -- origin
  6739. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  6740. )
  6741. local ignore = Character
  6742. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6743. a.BottomSurface = 10
  6744. a.TopSurface = 10
  6745. a2.BottomSurface = 10
  6746. a2.TopSurface = 10
  6747. local distance = (orb.CFrame.p - position).magnitude
  6748. a.Size = Vector3.new(distance, 1, 1)
  6749. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  6750. a2.Size = Vector3.new(distance, 1, 1)
  6751. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  6752. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  6753. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  6754. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  6755. game:GetService("Debris"):AddItem(a, 20)
  6756. game:GetService("Debris"):AddItem(a2, 20)
  6757. game:GetService("Debris"):AddItem(ba, 20)
  6758. local msh = Instance.new("SpecialMesh",a)
  6759. msh.MeshType = "Cylinder"
  6760. msh.Scale = vt(1,5*5,5*5)
  6761. local msh2 = Instance.new("SpecialMesh",a2)
  6762. msh2.MeshType = "Cylinder"
  6763. msh2.Scale = vt(1,6*5,6*5)
  6764. local eff = Instance.new("ParticleEmitter",ba)
  6765. eff.Texture = "rbxassetid://2344870656"
  6766. eff.LightEmission = 1
  6767. eff.Color = ColorSequence.new(Color3.new(1,1,1))
  6768. eff.Rate = 10000000
  6769. eff.Enabled = true
  6770. eff.EmissionDirection = "Front"
  6771. eff.Lifetime = NumberRange.new(1)
  6772. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,120,0)})
  6773. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6774. eff.Speed = NumberRange.new(50)
  6775. eff.Drag = 5
  6776. eff.Rotation = NumberRange.new(-500,500)
  6777. eff.SpreadAngle = Vector2.new(900,900)
  6778. eff.RotSpeed = NumberRange.new(-500,500)
  6779. local eff2 = eff:Clone()
  6780. eff2.Parent = ba
  6781. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.1,3,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  6782. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6783. eff2.Speed = NumberRange.new(350)
  6784. shakes(0.6,1.25)
  6785. for i = 0,10,0.1 do
  6786. swait()
  6787. rval = rval + math.random(30,40)
  6788. obj1.Color = Color3.new(r/255,g/255,b/255)
  6789. effx.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6790. eff.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6791. eff2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6792. obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
  6793. a2.Color = Color3.new(r/255,g/255,b/255)
  6794. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  6795. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  6796. ray = Ray.new(
  6797. orb.CFrame.p, -- origin
  6798. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  6799. )
  6800. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6801. distance = (orb.CFrame.p - position).magnitude
  6802. a.Size = Vector3.new(distance, 1, 1)
  6803. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  6804. a2.Size = Vector3.new(distance, 1, 1)
  6805. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  6806. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  6807. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  6808. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  6809. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  6810. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  6811. slash(math.random(50,80)/10,5,true,"Round","Add","Out",ba.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,250)/250,ba.BrickColor)
  6812. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  6813. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  6814. sphereMK(5,2.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,100,-0.03,MAINRUINCOLOR,0)
  6815. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  6816. end
  6817. a:Destroy()
  6818. a2:Destroy()
  6819. orb:Destroy()
  6820. orbe:Destroy()
  6821. eff.Enabled = false
  6822. eff2.Enabled = false
  6823. effx.Enabled = false
  6824. coroutine.resume(coroutine.create(function()
  6825. for i = 0,24 do
  6826. swait()
  6827. obj1.Transparency = obj1.Transparency + 0.04
  6828. obj1.Size = obj1.Size + vt(-1,-1,0)
  6829. end
  6830. wait(1)
  6831. obj1:Destroy()
  6832. end))
  6833. coroutine.resume(coroutine.create(function()
  6834. wait(5)
  6835. ba:Destroy()
  6836. end))
  6837. attack = false
  6838. hum.WalkSpeed = storehumanoidWS
  6839. end
  6840.  
  6841.  
  6842. function lovesqueal()
  6843. attack = true
  6844. hum.WalkSpeed = 0
  6845. CFuncs["Sound"].Create("rbxassetid://2500548008", root, 1, 1)
  6846. local blush = Instance.new("Decal",hed)
  6847. blush.Texture = "rbxassetid://898404027"
  6848. blush.Face = "Front"
  6849. for i = 0, 11, 0.1 do
  6850. swait()
  6851. 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),math.rad(20 - 2 * math.cos(sine / 32))),.1)
  6852. 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(6),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 32))),.1)
  6853. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.2 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(20 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6854. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20 - 5 * math.cos(sine / 37)),math.rad(0 + 14 * math.cos(sine / 58)),math.rad(0)),.1)
  6855. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(3 + 3 * math.cos(sine / 45))),.1)
  6856. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  6857. end
  6858. for x = 0, 1 do
  6859. for i = 0, 1, 0.2 do
  6860. swait()
  6861. 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),math.rad(-5 - 2 * math.cos(sine / 32))),.3)
  6862. 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(6),math.rad(0),math.rad(5 + 2 * math.cos(sine / 32))),.3)
  6863. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.05 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(-5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.3)
  6864. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 5 * math.cos(sine / 37)),math.rad(0 + 14 * math.cos(sine / 58)),math.rad(0)),.1)
  6865. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(3 + 3 * math.cos(sine / 45))),.1)
  6866. LW.C0=clerp(LW.C0,cf(-1,0.75 + 0.025 * math.cos(sine / 45),-0.6)*angles(math.rad(140 - 3 * math.cos(sine / 73)),math.rad(5 - 1 * math.cos(sine / 55)),math.rad(80 - 3 * math.cos(sine / 45))),.3)
  6867. end
  6868. for i = 0, 1, 0.2 do
  6869. swait()
  6870. RH.C0=clerp(RH.C0,cf(1,-1.025 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 32))),.3)
  6871. LH.C0=clerp(LH.C0,cf(-1,-1.025 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(5 + 2 * math.cos(sine / 32))),.3)
  6872. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.05 + 0.02 * math.cos(sine / 32),0.025 + 0.05 * math.cos(sine / 32))*angles(math.rad(-5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.3)
  6873. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 5 * math.cos(sine / 37)),math.rad(0 + 14 * math.cos(sine / 58)),math.rad(0)),.1)
  6874. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(3 + 3 * math.cos(sine / 45))),.1)
  6875. LW.C0=clerp(LW.C0,cf(-1,0.8 + 0.025 * math.cos(sine / 45),-0.6)*angles(math.rad(140 - 3 * math.cos(sine / 73)),math.rad(5 - 1 * math.cos(sine / 55)),math.rad(80 - 3 * math.cos(sine / 45))),.3)
  6876. end
  6877. end
  6878. coroutine.resume(coroutine.create(function()
  6879. for i = 0, 49 do
  6880. swait()
  6881. blush.Transparency = blush.Transparency + 0.02
  6882. end
  6883. blush:Destroy()
  6884. end))
  6885. attack = false
  6886. hum.WalkSpeed = storehumanoidWS
  6887. end
  6888. function CalMets()
  6889. attack = true
  6890. hum.WalkSpeed = 0
  6891. local lookavec = 0
  6892. local mult = 1
  6893. local keptcolor = MAINRUINCOLOR
  6894. CFuncs["Sound"].Create("rbxassetid://136007472", root, 7, 1.25)
  6895. for i = 0,4,0.1 do
  6896. swait()
  6897. slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,10,1)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.2,0.01,0.2),-0.2,keptcolor)
  6898. sphere2(3,"Add",root.CFrame*CFrame.new(0,10,0) + root.CFrame.lookVector*1,vt(3,3,3),0.06,0.06,0.06,MAINRUINCOLOR)
  6899. 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 - 5 * math.cos(sine / 51))),.1)
  6900. 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 / 44))),.1)
  6901. 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(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6902. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-35),math.rad(0),math.rad(0)),.1)
  6903. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 1, -0.5) * angles(math.rad(170), math.rad(0), math.rad(-20)), 0.1)
  6904. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 1, -0.5) * angles(math.rad(170), math.rad(0), math.rad(20)), 0.1)
  6905. end
  6906. sphere2(2,"Add",root.CFrame*CFrame.new(0,10,0) + root.CFrame.lookVector*1,vt(3,3,3),0.6,0.6,0.6,keptcolor)
  6907. sphere2(4,"Add",root.CFrame*CFrame.new(0,10,0) + root.CFrame.lookVector*1,vt(3,3,3),0.6,0.6,0.6,keptcolor)
  6908. sphere2(3,"Add",root.CFrame*CFrame.new(0,10,0) + root.CFrame.lookVector*1,vt(1,10000,1),0.06,0.06,0.06,keptcolor)
  6909. local elocacenter = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6910. elocacenter.Anchored = true
  6911. elocacenter.CFrame = root.CFrame*CFrame.new(0,150,0)
  6912. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6913. eloca1.Anchored = true
  6914. eloca1.CFrame = elocacenter.CFrame
  6915. local at1 = Instance.new("Attachment",eloca1)
  6916. at1.Position = vt(0,30,0)
  6917. local at2 = Instance.new("Attachment",eloca1)
  6918. at2.Position = vt(0,-30,0)
  6919. local at1b = Instance.new("Attachment",eloca1)
  6920. at1b.Position = vt(0,0,180)
  6921. local at2b = Instance.new("Attachment",eloca1)
  6922. at2b.Position = vt(0,0,-180)
  6923. local trl = Instance.new('Trail',eloca1)
  6924. trl.Attachment0 = at1
  6925. trl.Attachment1 = at2
  6926. trl.Texture = "rbxassetid://1049219073"
  6927. trl.LightEmission = 1
  6928. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6929. trl.Color = ColorSequence.new(keptcolor.Color)
  6930. trl.Lifetime = 4
  6931. local trl2 = trl:Clone()
  6932. trl2.Parent = eloca1
  6933. trl2.Attachment0 = at1b
  6934. trl2.Attachment1 = at2b
  6935. trl2.Texture = "rbxassetid://2108945559"
  6936. trl2.Lifetime = 2
  6937. local eff = Instance.new("ParticleEmitter",eloca1)
  6938. eff.Texture = "rbxassetid://2273224484"
  6939. eff.LightEmission = 1
  6940. eff.Color = ColorSequence.new(keptcolor.Color)
  6941. eff.Rate = 500000
  6942. eff.Lifetime = NumberRange.new(0.5,3)
  6943. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  6944. 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)})
  6945. eff.Speed = NumberRange.new(20,250)
  6946. eff.Drag = 5
  6947. eff.Rotation = NumberRange.new(-500,500)
  6948. eff.VelocitySpread = 9000
  6949. eff.RotSpeed = NumberRange.new(-50,50)
  6950. local eloca2 = eloca1:Clone()
  6951. eloca2.Parent = elocacenter
  6952. local eloca3 = eloca1:Clone()
  6953. eloca3.Parent = elocacenter
  6954. local eloca4 = eloca1:Clone()
  6955. eloca4.Parent = elocacenter
  6956. shakes(0.5,0.5)
  6957. sphere2(2,"Add",elocacenter.CFrame,vt(1,1,1),2,2,2,keptcolor)
  6958. sphere2(3,"Add",elocacenter.CFrame,vt(1,1,1),4,4,4,keptcolor)
  6959. sphere2(4,"Add",elocacenter.CFrame,vt(1,1,1),5,5,5,keptcolor)
  6960. sphere2(5,"Add",elocacenter.CFrame,vt(1,1,1),6,6,6,keptcolor)
  6961. sphere2(3,"Add",elocacenter.CFrame,vt(1,1,1),25,0.1,25,keptcolor)
  6962. sphere2(4,"Add",elocacenter.CFrame,vt(1,1,1),25,0.1,25,keptcolor)
  6963. CFuncs["Sound"].Create("rbxassetid://419447292", char, 4, 1)
  6964. local effx = Instance.new("ParticleEmitter",elocacenter)
  6965. effx.Texture = "rbxassetid://144580273" -- 144580273 74564879
  6966. effx.LightEmission = 1
  6967. effx.Color = ColorSequence.new(keptcolor.Color)
  6968. effx.Rate = 500000
  6969. effx.Lifetime = NumberRange.new(0.25,0.75)
  6970. effx.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,200,0)})
  6971. effx.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.5,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6972. effx.Speed = NumberRange.new(0,10)
  6973. effx.Drag = 5
  6974. effx.Rotation = NumberRange.new(-500,500)
  6975. effx.VelocitySpread = 9000
  6976. effx.RotSpeed = NumberRange.new(-50,50)
  6977. coroutine.resume(coroutine.create(function()
  6978. wait(0.05)
  6979. effx.Enabled = false
  6980. end))
  6981. coroutine.resume(coroutine.create(function()
  6982. for i = 0, 9, 0.1 do
  6983. swait()
  6984. mult = mult + 0.5
  6985. lookavec = lookavec + 0.1*mult
  6986. sphere2(5,"Add",elocacenter.CFrame,vt(1,1,1),0.05*lookavec/2,0.001,0.05*lookavec/2,keptcolor)
  6987. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(5*mult/20),0)
  6988. eloca1.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6989. eloca2.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(90),0)*CFrame.new(-lookavec,0,0)
  6990. eloca3.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(180),0)*CFrame.new(-lookavec,0,0)
  6991. eloca4.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(270),0)*CFrame.new(-lookavec,0,0)
  6992. end
  6993. for i = 0, 19 do
  6994. for i = 0, 1, 0.1 do
  6995. swait()
  6996. sphere2(5,"Add",elocacenter.CFrame,vt(1,1,1),0.05*lookavec/2,0.001,0.05*lookavec/2,keptcolor)
  6997. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(5*mult/20),0)
  6998. eloca1.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6999. eloca2.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(90),0)*CFrame.new(-lookavec,0,0)
  7000. eloca3.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(180),0)*CFrame.new(-lookavec,0,0)
  7001. eloca4.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(270),0)*CFrame.new(-lookavec,0,0)
  7002. end
  7003. local lb = Instance.new("Part")
  7004. lb.Color = keptcolor.Color
  7005. lb.CanCollide = false
  7006. lb.Material = "Neon"
  7007. lb.Anchored = true
  7008. lb.TopSurface = 0
  7009. lb.BottomSurface = 0
  7010. lb.Transparency = 0
  7011. lb.Size = vt(1,1,1)
  7012. lb.CFrame = elocacenter.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  7013. lb.Anchored = false
  7014. lb.Parent = char
  7015. local thingery = Instance.new("SpecialMesh",lb)
  7016. thingery.MeshType = "Sphere"
  7017. thingery.Scale = vt(20,20,20)
  7018. game:GetService("Debris"):AddItem(lb, 10)
  7019. local bv = Instance.new("BodyVelocity")
  7020. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7021. bv.velocity = lb.CFrame.lookVector*math.random(125,350)
  7022. bv.Parent = lb
  7023. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,keptcolor)
  7024. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,keptcolor)
  7025. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 10, 1)
  7026. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 10, 1)
  7027. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 10, 1)
  7028. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 10, 1)
  7029. local hitted = false
  7030. local tril = Instance.new("ParticleEmitter",lb)
  7031. tril.Texture = "rbxassetid://144580273" -- 144580273 74564879
  7032. tril.LightEmission = 1
  7033. tril.Color = ColorSequence.new(keptcolor.Color)
  7034. tril.Rate = 500000
  7035. tril.Lifetime = NumberRange.new(0.5,1)
  7036. tril.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(1,0,0)})
  7037. tril.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.5,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7038. tril.Speed = NumberRange.new(0,10)
  7039. tril.Drag = 5
  7040. tril.Rotation = NumberRange.new(-500,500)
  7041. tril.VelocitySpread = 9000
  7042. tril.RotSpeed = NumberRange.new(-50,50)
  7043. game:GetService("Debris"):AddItem(a, 0.1)
  7044.  
  7045. coroutine.resume(coroutine.create(function()
  7046. lb.Touched:connect(function(hit)
  7047. if hitted == false and hit.Parent ~= char then
  7048. hitted = true
  7049. lb.Transparency = 1
  7050. lb.Anchored = true
  7051. tril.Enabled = false
  7052. CFuncs["EchoSound"].Create("rbxassetid://675172759", lb, 8, 0.8,0,10,0.15,0.5,1)
  7053. CFuncs["EchoSound"].Create("rbxassetid://782200047", lb, 10, 1.1,0,10,0.15,0.5,1)
  7054. MagniDamage(lb, 60, 4500,85000, 0, "Normal")
  7055. coroutine.resume(coroutine.create(function()
  7056. for i, v in pairs(FindNearestHead(lb.CFrame.p, 50)) do
  7057. if v:FindFirstChild('Head') then
  7058. dmg(v)
  7059. end
  7060. end
  7061. end))
  7062. local effx = Instance.new("ParticleEmitter",lb)
  7063. effx.Texture = "rbxassetid://144580273" -- 144580273 74564879
  7064. effx.LightEmission = 1
  7065. effx.Color = ColorSequence.new(keptcolor.Color)
  7066. effx.Rate = 500000
  7067. effx.Lifetime = NumberRange.new(0.25,0.75)
  7068. effx.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,200,0)})
  7069. effx.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.5,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7070. effx.Speed = NumberRange.new(0,10)
  7071. effx.Drag = 5
  7072. effx.Rotation = NumberRange.new(-500,500)
  7073. effx.VelocitySpread = 9000
  7074. effx.RotSpeed = NumberRange.new(-50,50)
  7075. sphere(5,"Add",lb.CFrame,vt(20,20,20),1,keptcolor)
  7076. sphere(6,"Add",lb.CFrame,vt(20,20,20),2,keptcolor)
  7077. wait(0.05)
  7078. effx.Enabled = false
  7079. end
  7080. end)
  7081. end))
  7082. end
  7083. for i = 0, 9, 0.1 do
  7084. swait()
  7085. mult = mult - 0.5
  7086. lookavec = lookavec - 0.1*mult
  7087. sphere2(5,"Add",elocacenter.CFrame,vt(1,1,1),0.05*lookavec/2,0.001,0.05*lookavec/2,keptcolor)
  7088. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(5*mult/20),0)
  7089. eloca1.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7090. eloca2.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(90),0)*CFrame.new(-lookavec,0,0)
  7091. eloca3.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(180),0)*CFrame.new(-lookavec,0,0)
  7092. eloca4.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(270),0)*CFrame.new(-lookavec,0,0)
  7093. end
  7094. for i,v in pairs(elocacenter:GetDescendants()) do
  7095. if v:IsA("ParticleEmitter") then
  7096. v.Enabled = false
  7097. end
  7098. end
  7099. wait(6)
  7100. elocacenter:Destroy()
  7101. end))
  7102. attack = false
  7103. hum.WalkSpeed = storehumanoidWS
  7104. end
  7105.  
  7106. function ExtCalbeam()
  7107. local lookavec = 0
  7108. local mult = 1
  7109. local keptcolor = MAINRUINCOLOR
  7110. local dis = CreateParta(char,0,1,"Neon",keptcolor)
  7111. for i = 0, 2 do
  7112. CFuncs["Sound"].Create("rbxassetid://335657174", dis, 10, 0.5)
  7113. end
  7114. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  7115. CreateMesh(dis,"Sphere",4,4,4)
  7116. local at1 = Instance.new("Attachment",dis)
  7117. at1.Position = vt(-2,0,0)
  7118. local at2 = Instance.new("Attachment",dis)
  7119. at2.Position = vt(2,0,0)
  7120. local trl = Instance.new('Trail',dis)
  7121. trl.Attachment0 = at1
  7122. trl.Attachment1 = at2
  7123. trl.Texture = "rbxassetid://1049219073"
  7124. trl.LightEmission = 1
  7125. trl.FaceCamera = true
  7126. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7127. trl.Color = ColorSequence.new(dis.Color)
  7128. trl.Lifetime = 3
  7129. local efec = Instance.new("ParticleEmitter",dis)
  7130. efec.Texture = "rbxassetid://144580273"
  7131. efec.LightEmission = 1
  7132. efec.Color = ColorSequence.new(keptcolor.Color)
  7133. efec.Rate = 500000
  7134. efec.Lifetime = NumberRange.new(1)
  7135. efec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  7136. efec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7137. efec.Drag = 5
  7138. efec.Rotation = NumberRange.new(-500,500)
  7139. efec.VelocitySpread = 9000
  7140. efec.RotSpeed = NumberRange.new(-500,500)
  7141. local a = Instance.new("Part",workspace)
  7142. a.Name = "Direction"
  7143. a.Anchored = true
  7144. a.BrickColor = bc("Bright red")
  7145. a.Material = "Neon"
  7146. a.Transparency = 1
  7147. a.CanCollide = false
  7148. local ray = Ray.new(
  7149. dis.CFrame.p, -- origin
  7150. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  7151. )
  7152. local ignore = dis
  7153. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7154. a.BottomSurface = 10
  7155. a.TopSurface = 10
  7156. local distance = (dis.CFrame.p - position).magnitude
  7157. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7158. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  7159. dis.CFrame = a.CFrame
  7160. a:Destroy()
  7161. local bv = Instance.new("BodyVelocity")
  7162. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7163. bv.velocity = dis.CFrame.lookVector*250
  7164. bv.Parent = dis
  7165. game:GetService("Debris"):AddItem(dis, 15)
  7166. local hitted = false
  7167. coroutine.resume(coroutine.create(function()
  7168. dis.Touched:connect(function(hit)
  7169. if hitted == false and hit.Parent ~= char then
  7170. hitted = true
  7171. shakes(1,1)
  7172. efec.Enabled = false
  7173. dis.Anchored = true
  7174. dis.Transparency = 1
  7175. local elocacenter = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7176. elocacenter.Anchored = true
  7177. elocacenter.CFrame = dis.CFrame*CFrame.new(0,1,0)
  7178. elocacenter.Orientation = Vector3.new(0,0,0)
  7179. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7180. eloca1.Anchored = true
  7181. eloca1.CFrame = elocacenter.CFrame
  7182. local at1 = Instance.new("Attachment",eloca1)
  7183. at1.Position = vt(0,20,0)
  7184. local at2 = Instance.new("Attachment",eloca1)
  7185. at2.Position = vt(0,-20,0)
  7186. local at1b = Instance.new("Attachment",eloca1)
  7187. at1b.Position = vt(0,0,100)
  7188. local at2b = Instance.new("Attachment",eloca1)
  7189. at2b.Position = vt(0,0,-100)
  7190. local trl = Instance.new('Trail',eloca1)
  7191. trl.Attachment0 = at1
  7192. trl.Attachment1 = at2
  7193. trl.Texture = "rbxassetid://1049219073"
  7194. trl.LightEmission = 1
  7195. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7196. trl.Color = ColorSequence.new(keptcolor.Color)
  7197. trl.Lifetime = 4
  7198. local trl2 = trl:Clone()
  7199. trl2.Parent = eloca1
  7200. trl2.Attachment0 = at1b
  7201. trl2.Attachment1 = at2b
  7202. trl2.Texture = "rbxassetid://2108945559"
  7203. trl2.Lifetime = 2
  7204. local eff = Instance.new("ParticleEmitter",eloca1)
  7205. eff.Texture = "rbxassetid://2273224484"
  7206. eff.LightEmission = 1
  7207. eff.Color = ColorSequence.new(keptcolor.Color)
  7208. eff.Rate = 500000
  7209. eff.Lifetime = NumberRange.new(0.5,3)
  7210. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  7211. 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)})
  7212. eff.Speed = NumberRange.new(20,250)
  7213. eff.Drag = 5
  7214. eff.Rotation = NumberRange.new(-500,500)
  7215. eff.VelocitySpread = 9000
  7216. eff.RotSpeed = NumberRange.new(-50,50)
  7217. local eloca2 = eloca1:Clone()
  7218. eloca2.Parent = elocacenter
  7219. local eloca3 = eloca1:Clone()
  7220. eloca3.Parent = elocacenter
  7221. local eloca4 = eloca1:Clone()
  7222. eloca4.Parent = elocacenter
  7223. sphere2(2,"Add",elocacenter.CFrame,vt(1,1,1),2,2,2,keptcolor)
  7224. sphere2(3,"Add",elocacenter.CFrame,vt(1,1,1),4,4,4,keptcolor)
  7225. sphere2(4,"Add",elocacenter.CFrame,vt(1,1,1),5,5,5,keptcolor)
  7226. sphere2(5,"Add",elocacenter.CFrame,vt(1,1,1),6,6,6,keptcolor)
  7227. for i = 0, 2 do
  7228. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 8, 1)
  7229. CFuncs["Sound"].Create("rbxassetid://1192402877", elocacenter, 10, 0.5)
  7230. end
  7231. local effx = Instance.new("ParticleEmitter",elocacenter)
  7232. effx.Texture = "rbxassetid://144580273" -- 144580273 74564879
  7233. effx.LightEmission = 1
  7234. effx.Color = ColorSequence.new(keptcolor.Color)
  7235. effx.Rate = 500000
  7236. effx.Lifetime = NumberRange.new(0.25,0.75)
  7237. effx.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,200,0)})
  7238. effx.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.5,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7239. effx.Speed = NumberRange.new(0,10)
  7240. effx.Drag = 5
  7241. effx.Rotation = NumberRange.new(-500,500)
  7242. effx.VelocitySpread = 9000
  7243. effx.RotSpeed = NumberRange.new(-50,50)
  7244. coroutine.resume(coroutine.create(function()
  7245. wait(0.05)
  7246. effx.Enabled = false
  7247. end))
  7248. coroutine.resume(coroutine.create(function()
  7249. for i = 0, 9, 0.1 do
  7250. swait()
  7251. mult = mult + 0.5
  7252. lookavec = lookavec + 0.06*mult
  7253. sphere2(5,"Add",elocacenter.CFrame,vt(1,1,1),0.05*lookavec/2,0.001,0.05*lookavec/2,keptcolor)
  7254. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(5*mult/20),0)
  7255. eloca1.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7256. eloca2.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(90),0)*CFrame.new(-lookavec,0,0)
  7257. eloca3.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(180),0)*CFrame.new(-lookavec,0,0)
  7258. eloca4.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(270),0)*CFrame.new(-lookavec,0,0)
  7259. end
  7260. for i = 0, 19, 0.1 do
  7261. swait()
  7262. sphere2(5,"Add",elocacenter.CFrame,vt(1,1,1),0.05*lookavec/2,0.001,0.05*lookavec/2,keptcolor)
  7263. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(5*mult/20),0)
  7264. eloca1.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7265. eloca2.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(90),0)*CFrame.new(-lookavec,0,0)
  7266. eloca3.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(180),0)*CFrame.new(-lookavec,0,0)
  7267. eloca4.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(270),0)*CFrame.new(-lookavec,0,0)
  7268. end
  7269. shakes(1.5,1.5)
  7270. MagniDamage(elocacenter, 200, 50,99, 0, "Normal")
  7271. coroutine.resume(coroutine.create(function()
  7272. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 150)) do
  7273. if v:FindFirstChild('Head') then
  7274. dmg(v)
  7275. end
  7276. end
  7277. end))
  7278. local effe = Instance.new("ParticleEmitter",elocacenter)
  7279. effe.Texture = "rbxassetid://2273224484"
  7280. effe.LightEmission = 1
  7281. effe.Color = ColorSequence.new(keptcolor.Color)
  7282. effe.Rate = 500000
  7283. effe.Lifetime = NumberRange.new(3,5)
  7284. effe.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,150,0),NumberSequenceKeypoint.new(0.2,15,0),NumberSequenceKeypoint.new(0.8,15,0),NumberSequenceKeypoint.new(1,0,0)})
  7285. effe.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)})
  7286. effe.Speed = NumberRange.new(250,1200)
  7287. effe.Drag = 5
  7288. effe.Rotation = NumberRange.new(-500,500)
  7289. effe.VelocitySpread = 9000
  7290. effe.RotSpeed = NumberRange.new(-50,50)
  7291. coroutine.resume(coroutine.create(function()
  7292. effx.Enabled = true
  7293. wait(0.15)
  7294. effx.Enabled = false
  7295. wait(0.25)
  7296. effe.Enabled = false
  7297. end))
  7298. coroutine.resume(coroutine.create(function()
  7299. local elocor = elocacenter
  7300. local lookavec = 0
  7301. local mult = 1
  7302. local elocacenter = CreateParta(elocor,1,1,"SmoothPlastic",BrickColor.random())
  7303. elocacenter.Anchored = true
  7304. elocacenter.CFrame = elocor.CFrame
  7305. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7306. eloca1.Anchored = true
  7307. eloca1.CFrame = elocacenter.CFrame
  7308. local at1 = Instance.new("Attachment",eloca1)
  7309. at1.Position = vt(0,10,0)
  7310. local at2 = Instance.new("Attachment",eloca1)
  7311. at2.Position = vt(0,-10,0)
  7312. local trl = Instance.new('Trail',eloca1)
  7313. trl.Attachment0 = at1
  7314. trl.Attachment1 = at2
  7315. trl.Texture = "rbxassetid://1049219073"
  7316. trl.LightEmission = 1
  7317. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7318. trl.Color = ColorSequence.new(keptcolor.Color)
  7319. trl.Lifetime = 8
  7320. local eff = Instance.new("ParticleEmitter",eloca1)
  7321. eff.Texture = "rbxassetid://2273224484"
  7322. eff.LightEmission = 1
  7323. eff.Color = ColorSequence.new(keptcolor.Color)
  7324. eff.Rate = 500000
  7325. eff.Lifetime = NumberRange.new(0.5,1)
  7326. 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)})
  7327. 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)})
  7328. eff.Speed = NumberRange.new(20,250)
  7329. eff.Drag = 5
  7330. eff.Rotation = NumberRange.new(-500,500)
  7331. eff.VelocitySpread = 9000
  7332. eff.RotSpeed = NumberRange.new(-50,50)
  7333. local eloca2 = eloca1:Clone()
  7334. eloca2.Parent = elocacenter
  7335. local eloca3 = eloca1:Clone()
  7336. eloca3.Parent = elocacenter
  7337. local eloca4 = eloca1:Clone()
  7338. eloca4.Parent = elocacenter
  7339. coroutine.resume(coroutine.create(function()
  7340. for i = 0, 19, 0.1 do
  7341. swait()
  7342. mult = mult + 0.25
  7343. lookavec = lookavec + 0.05*mult
  7344. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(5*mult/10),0)
  7345. eloca1.CFrame = elocacenter.CFrame*CFrame.new(40+lookavec/5,-15+lookavec*2,0)
  7346. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-40-lookavec/5,-15+lookavec*2,0)
  7347. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,-15+lookavec*2,40+lookavec/5)
  7348. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,-15+lookavec*2,-40-lookavec/5)
  7349. end
  7350. for i,v in pairs(elocacenter:GetDescendants()) do
  7351. if v:IsA("ParticleEmitter") then
  7352. v.Enabled = false
  7353. end
  7354. end
  7355. wait(6)
  7356. elocacenter:Destroy()
  7357. end))
  7358. end))
  7359. CFuncs["Sound"].Create("rbxassetid://763717897", char, 3, 1)
  7360. CFuncs["Sound"].Create("rbxassetid://763717897", char, 3, 0.75)
  7361. CFuncs["Sound"].Create("rbxassetid://763717897", char, 4, 0.5)
  7362. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 6,0.5)
  7363. CFuncs["Sound"].Create("rbxassetid://1664711478", char, 2.5,1)
  7364. CFuncs["Sound"].Create("rbxassetid://763718160", char, 3, 0.75)
  7365. symbolizeBlink(elocacenter,0,144580273,keptcolor.Color,20,0,0,0,root,true,-5,3)
  7366. symbolizeBlink(elocacenter,0,144580273,keptcolor.Color,40,0,0,0,root,true,-5,3)
  7367. symbolizeBlink(elocacenter,0,144580273,keptcolor.Color,60,0,0,0,root,true,-5,3)
  7368. symbolizeBlink(elocacenter,0,144580273,keptcolor.Color,80,0,0,0,root,true,-5,3)
  7369. sphere2(2,"Add",elocacenter.CFrame,vt(10,10000,10),2,2,2,keptcolor)
  7370. sphere2(1,"Add",elocacenter.CFrame,vt(10,10000,10),2,2,2,keptcolor)
  7371. sphere2(2,"Add",elocacenter.CFrame,vt(10,10,10),5,5,5,keptcolor)
  7372. sphere2(2,"Add",elocacenter.CFrame,vt(10,10,10),7.5,7.5,7.5,keptcolor)
  7373. sphere2(2,"Add",elocacenter.CFrame,vt(10,10,10),10,10,10,keptcolor)
  7374. sphere2(2,"Add",elocacenter.CFrame,vt(10,10,10),2.5,2.5,2.5,keptcolor)
  7375. for i = 0, 29 do
  7376. slash(math.random(10,30)/10,5,true,"Round","Add","Out",elocacenter.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(500,1000)/250,BrickColor.new("White"))
  7377. end
  7378. for i = 0, 9, 0.1 do
  7379. swait()
  7380. mult = mult - 0.5
  7381. lookavec = lookavec - 0.06*mult
  7382. sphere2(5,"Add",elocacenter.CFrame,vt(1,1,1),0.05*lookavec/2,0.001,0.05*lookavec/2,keptcolor)
  7383. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(5*mult/20),0)
  7384. eloca1.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7385. eloca2.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(90),0)*CFrame.new(-lookavec,0,0)
  7386. eloca3.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(180),0)*CFrame.new(-lookavec,0,0)
  7387. eloca4.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(270),0)*CFrame.new(-lookavec,0,0)
  7388. end
  7389. for i,v in pairs(elocacenter:GetDescendants()) do
  7390. if v:IsA("ParticleEmitter") then
  7391. v.Enabled = false
  7392. end
  7393. end
  7394. wait(6)
  7395. elocacenter:Destroy()
  7396. end))
  7397. end
  7398. end)
  7399. end))
  7400. end
  7401.  
  7402. function ArcaneTaunt()
  7403. attack=true
  7404. Humanoid.WalkSpeed=0
  7405. local snd = NewInstance("Sound",Head,{
  7406. SoundId="rbxassetid://1535994137";
  7407. Volume=10;
  7408. Pitch=1;
  7409. })
  7410. snd:Play()
  7411. repeat swait() until GetClientProperty(snd,"IsPlaying");
  7412. for i = 0, 8, .1 do
  7413. swait()
  7414. RH.C0=clerp(RH.C0,cf(1,-.6,-.2)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6 - 3 * math.sin(sine / 16)),math.rad(0),math.rad(-3 - 3 * math.sin(sine / 16))),.1)
  7415. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6 - 3 * math.sin(sine / 16)),math.rad(0),math.rad(3 - 3 * math.sin(sine / 16))),.1)
  7416. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,.3 + .3 * math.cos(sine / 16))*angles(math.rad(1 - 1 * math.cos(sine / 16)),math.rad(0),math.rad(0 - 6 * math.cos(sine / 56))),.1)
  7417. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-3 - 5 * math.sin(sine / 16)),math.rad(-25),math.rad(0)),.1)
  7418. RW.C0=clerp(RW.C0,cf(1.2,0.5 + 0.2 * math.sin(sine / 16),0)*angles(math.rad(-5 - 5 * math.cos(sine / 74)),math.rad(0),math.rad(143 + 3 * math.cos(sine / 45))),.1)
  7419. LW.C0=clerp(LW.C0,cf(-1.2,0.5 + 0.2 * math.sin(sine / 16),0)*angles(math.rad(-5 + 3 * math.cos(sine / 73)),math.rad(0),math.rad(-143 - 3 * math.cos(sine / 45))),.1)
  7420. end
  7421. Humanoid.WalkSpeed=storehumanoidWS
  7422. attack=false
  7423. end
  7424. function WanderTaunt()
  7425. attack=true
  7426. Humanoid.WalkSpeed=0
  7427. local snd = NewInstance("Sound",Head,{
  7428. SoundId="rbxassetid://1535994669";
  7429. Volume=10;
  7430. Pitch=1;
  7431. })
  7432. snd:Play()
  7433. repeat swait() until GetClientProperty(snd,"IsPlaying");
  7434. for i = 0, 8, .1 do
  7435. swait()
  7436. local Alpha = .1
  7437. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0+0.1*math.cos(sine/14),0)*angles(math.rad(0),math.rad(-49.4),math.rad(0))*RootCF,Alpha)
  7438. LH.C0 = LH.C0:lerp(cf(-0.9,-1-0.1*math.cos(sine/14),0.2)*angles(math.rad(1.5),math.rad(20.9),math.rad(-4.1))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7439. RH.C0 = RH.C0:lerp(cf(1,-1-0.1*math.cos(sine/14),0.1)*angles(math.rad(0.1),math.rad(-6.2),math.rad(2.6))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7440. LW.C0 = LW.C0:lerp(cf(-1.4,0.5+0.1*math.sin(sine/14),-0.2)*angles(math.rad(90-1.5*math.sin(sine/14)),math.rad(0),math.rad(-49.4)),Alpha)
  7441. RW.C0 = RW.C0:lerp(cf(1.5,0.4+0.1*math.sin(sine/14),0.1)*angles(math.rad(56.9+1.5*math.sin(sine/14)),math.rad(0),math.rad(0)),Alpha)
  7442. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.1,0,0)*angles(math.rad(-8+3*math.sin(sine/14)),math.rad(49.2),math.rad(9.6))*necko,Alpha)
  7443. BladesWeld.C0 = BladesWeld.C0:lerp(cf(0.1,-0.8,-0.3)*angles(math.rad(167.2),math.rad(87.1),math.rad(-2.5)),Alpha)
  7444. end
  7445. Humanoid.WalkSpeed=storehumanoidWS
  7446. attack=false
  7447. end
  7448.  
  7449. function gassmack()
  7450. attack=true
  7451. Humanoid.WalkSpeed=3
  7452. for i = 0, 1, 0.1 do
  7453. swait()
  7454. local Alpha = .3
  7455. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-19.8),math.rad(0))*RootCF,Alpha)
  7456. LH.C0 = LH.C0:lerp(cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7457. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7458. LW.C0 = LW.C0:lerp(cf(-1.4,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10.7)),Alpha)
  7459. RW.C0 = RW.C0:lerp(cf(1.3,0.5,0.3)*angles(math.rad(88.8),math.rad(0),math.rad(129.1)),Alpha)
  7460. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(19.8),math.rad(0))*necko,Alpha)
  7461. gasW.C0 = gasW.C0:lerp(cf(0.9,-1.4,-0.1)*angles(math.rad(-93),math.rad(-47.3),math.rad(-180)),Alpha)
  7462. end
  7463. for i = 0, 2, 0.1 do
  7464. swait()
  7465. local Alpha = .3
  7466. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(52.8),math.rad(0))*RootCF,Alpha)
  7467. LH.C0 = LH.C0:lerp(cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7468. RH.C0 = RH.C0:lerp(cf(0.8,-1,0.4)*angles(math.rad(0),math.rad(-52.8),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7469. LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5.2)),Alpha)
  7470. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(107.7),math.rad(-33.1),math.rad(-33.2)),Alpha)
  7471. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(23.6),math.rad(0))*necko,Alpha)
  7472. gasW.C0 = gasW.C0:lerp(cf(-0.9,-1.4,-0.2)*angles(math.rad(-84.6),math.rad(63.2),math.rad(180)),Alpha)
  7473. coroutine.resume(coroutine.create(function()MagniDamage(GasCan, 2, 15, 25, .5, "Normal")end))
  7474. end
  7475. Humanoid.WalkSpeed=storehumanoidWS
  7476. attack=false
  7477. end
  7478.  
  7479. function balsplode()
  7480. attack=true
  7481. Humanoid.WalkSpeed=1
  7482. local orb = Instance.new("Part", char)
  7483. orb.Anchored = true
  7484. orb.BrickColor = MAINRUINCOLOR
  7485. orb.CanCollide = false
  7486. orb.FormFactor = 3
  7487. orb.Name = "Ring"
  7488. orb.Material = "Neon"
  7489. orb.Size = Vector3.new(1, 1, 1)
  7490. orb.Transparency = 0
  7491. orb.TopSurface = 0
  7492. orb.BottomSurface = 0
  7493. local orbm = Instance.new("SpecialMesh", orb)
  7494. orbm.MeshType = "Sphere"
  7495. orbm.Name = "SizeMesh"
  7496. orbm.Scale = vt(0, 0, 0)
  7497. local scaled = 0.1
  7498. local posid = 0
  7499. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1.2, .8)
  7500. for i = 0, 6, 0.1 do
  7501. swait()
  7502. scaled = scaled + 0.0001
  7503. posid = posid - scaled
  7504. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  7505. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  7506. sphereMKCharge(5, -0.25, "Add", orb.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, 10)
  7507. local Alpha = .3
  7508. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RootCF,Alpha)
  7509. LH.C0 = LH.C0:lerp(cf(-1,-0.9,0)*angles(math.rad(0),math.rad(0),math.rad(-5.5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7510. RH.C0 = RH.C0:lerp(cf(1,-0.9,0)*angles(math.rad(0),math.rad(0),math.rad(5.5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7511. LW.C0 = LW.C0:lerp(cf(-1.4,0.6,0)*angles(math.rad(0),math.rad(0),math.rad(-56.5)),Alpha)
  7512. RW.C0 = RW.C0:lerp(cf(1.4,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(28.1)),Alpha)
  7513. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  7514. gasW.C0 = gasW.C0:lerp(cf(-0.3,-1.5,0.3)*angles(math.rad(-90),math.rad(28.1),math.rad(-180)),Alpha)
  7515. end
  7516. attack=true
  7517. Humanoid.WalkSpeed=0
  7518. for i = 0, 1.25, 0.1 do
  7519. swait()
  7520. local Alpha = .4
  7521. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  7522. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(43.3),math.rad(0))*RootCF,Alpha)
  7523. LH.C0 = LH.C0:lerp(cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7524. RH.C0 = RH.C0:lerp(cf(0.9,-1,0.4)*angles(math.rad(0),math.rad(-43.3),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7525. LW.C0 = LW.C0:lerp(cf(-1.4,0.3,-0.3)*angles(math.rad(42.2),math.rad(-69.1),math.rad(-45.8)),Alpha)
  7526. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-42.9),math.rad(0)),Alpha)
  7527. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-43.3),math.rad(0))*necko,Alpha)
  7528. gasW.C0 = gasW.C0:lerp(cf(0.1,-1.7,-0.1)*angles(math.rad(-67.1),math.rad(-0.1),math.rad(179.8)),Alpha)
  7529. end
  7530.  
  7531. for i = 0, .5, 0.1 do
  7532. swait()
  7533. local Alpha = .4
  7534. orb.CFrame = larm.CFrame * CFrame.new(0,posid/1.5,0)
  7535. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-72.21),math.rad(0))*RootCF,Alpha)
  7536. LH.C0 = LH.C0:lerp(cf(-0.9,-0.9,0)*angles(math.rad(0),math.rad(21.3),math.rad(-9.1))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7537. RH.C0 = RH.C0:lerp(cf(0.9,-0.9,0)*angles(math.rad(0),math.rad(0),math.rad(9.6))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7538. LW.C0 = LW.C0:lerp(cf(-1.7,0.5,-0.1)*angles(math.rad(90),math.rad(0),math.rad(-72.2)),Alpha)
  7539. RW.C0 = RW.C0:lerp(cf(1.4,0.7,0.2)*angles(math.rad(-10.5),math.rad(-11.7),math.rad(49.5)),Alpha)
  7540. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(72.2),math.rad(0))*necko,Alpha)
  7541. gasW.C0 = gasW.C0:lerp(cf(0.2,-1.6,-0.1)*angles(math.rad(-85.6),math.rad(10.5),math.rad(-101.9)),Alpha)
  7542. end
  7543. orb.Transparency=1
  7544. shakes(0.4,0.4)
  7545. CFuncs["EchoSound"].Create("rbxassetid://2011915907", orb, 7, .9,0,10,0.15,0.5,1)
  7546. MagniDamage(orb, 15, 65,125, 0, "Burn")
  7547. sphere2(8,"Add",orb.CFrame,vt(10,1,10),1,0.1,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  7548. sphere2(4,"Add",orb.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  7549. sphere2(3,"Add",orb.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  7550. local explode = script.Explosion:Clone();
  7551. explode.Parent=orb;
  7552. explode:WaitForChild'Effects';explode.Effects:WaitForChild'Explosion';explode.Effects:WaitForChild'Smoke1';explode.Effects:WaitForChild'Smoke2'
  7553. explode.CFrame=orb.CFrame;
  7554. explode.Effects.Explosion:Emit(1500)
  7555. explode.Effects.Smoke1:Emit(1500)
  7556. explode.Effects.Smoke2:Emit(1500)
  7557. for i = 0, 3, 0.1 do
  7558. swait()
  7559. local Alpha = .3
  7560. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-72.21),math.rad(0))*RootCF,Alpha)
  7561. LH.C0 = LH.C0:lerp(cf(-0.9,-0.9,0)*angles(math.rad(0),math.rad(21.3),math.rad(-9.1))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7562. RH.C0 = RH.C0:lerp(cf(0.9,-0.9,0)*angles(math.rad(0),math.rad(0),math.rad(9.6))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7563. LW.C0 = LW.C0:lerp(cf(-1.7,0.5,-0.1)*angles(math.rad(90),math.rad(0),math.rad(-72.2)),Alpha)
  7564. RW.C0 = RW.C0:lerp(cf(1.4,0.7,0.2)*angles(math.rad(-10.5),math.rad(-11.7),math.rad(49.5)),Alpha)
  7565. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(72.2),math.rad(0))*necko,Alpha)
  7566. gasW.C0 = gasW.C0:lerp(cf(0.2,-1.6,-0.1)*angles(math.rad(-85.6),math.rad(10.5),math.rad(-101.9)),Alpha)
  7567. end
  7568. game:service'Debris':AddItem(orb,5)
  7569. Humanoid.WalkSpeed=storehumanoidWS
  7570. attack=false
  7571. end
  7572. function nebshamone()
  7573. attack=true
  7574. Humanoid.WalkSpeed=0
  7575. for i = 0, 4, 0.1 do
  7576. swait()
  7577. local Alpha = .1
  7578. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(47.2),math.rad(0))*RootCF,Alpha)
  7579. LH.C0 = LH.C0:lerp(cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7580. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7581. LW.C0 = LW.C0:lerp(cf(-1.4,0.9,-0.5)*angles(math.rad(122.3),math.rad(-5.3),math.rad(-31.8)),Alpha)
  7582. RW.C0 = RW.C0:lerp(cf(1,0.5,-0.1)*angles(math.rad(71.8),math.rad(60.3),math.rad(22.6)),Alpha)
  7583. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(21.6),math.rad(0))*necko,Alpha)
  7584. AeshW.C0 = AeshW.C0:lerp(cf(-0.4,-0.8,-2)*angles(math.rad(-178.9),math.rad(80.8),math.rad(5.7)),Alpha)
  7585. end
  7586. CFuncs.Sound.Create("rbxassetid://596439421", ra, 2, .5)
  7587. for i = 0, 4, 0.1 do
  7588. swait()
  7589. local Alpha = .2
  7590. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-61),math.rad(0))*RootCF,Alpha)
  7591. LH.C0 = LH.C0:lerp(cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7592. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7593. LW.C0 = LW.C0:lerp(cf(-1.3,0.4,-0.3)*angles(math.rad(21.5),math.rad(-23.8),math.rad(30.9)),Alpha)
  7594. RW.C0 = RW.C0:lerp(cf(1,0.5,-0.2)*angles(math.rad(14.9),math.rad(14.3),math.rad(61.9)),Alpha)
  7595. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-25.4),math.rad(0))*necko,Alpha)
  7596. AeshW.C0 = AeshW.C0:lerp(cf(-0.3,-1.5,-1.5)*angles(math.rad(-178.9),math.rad(80.8),math.rad(-25.9)),Alpha)
  7597. end
  7598. Humanoid.WalkSpeed=storehumanoidWS
  7599. attack=false
  7600. end
  7601.  
  7602. function hamone()
  7603. attack = true
  7604. hum.WalkSpeed = 3
  7605. for i = 0, 1.5, .1 do
  7606. swait()
  7607. local Alpha = .3
  7608. RootJoint.C0 = RootJoint.C0:lerp(cf(0.1,-0.3,0.1)*angles(math.rad(19.6),math.rad(43.3),math.rad(-13.7))*RootCF,Alpha)
  7609. LH.C0 = LH.C0:lerp(cf(-1,-0.9,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7610. RH.C0 = RH.C0:lerp(cf(1,-1.1,0.1)*angles(math.rad(-20),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7611. LW.C0 = LW.C0:lerp(cf(-1.4,0.9,-0.5)*angles(math.rad(122.3),math.rad(-5.3),math.rad(-31.8)),Alpha)
  7612. RW.C0 = RW.C0:lerp(cf(1,0.5,-0.1)*angles(math.rad(71.8),math.rad(60.3),math.rad(22.6)),Alpha)
  7613. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.1,0,0.3)*angles(math.rad(-7.1),math.rad(-45.7),math.rad(5))*necko,Alpha)
  7614. AeshW.C0 = AeshW.C0:lerp(cf(-0.4,-0.8,-2)*angles(math.rad(-178.9),math.rad(80.8),math.rad(5.7)),Alpha)
  7615. end
  7616. CFuncs.Sound.Create("rbxassetid://596439421", ra, 2, .5)
  7617. for i = 0, .8, .1 do
  7618. swait()
  7619. local Alpha = .5
  7620. RootJoint.C0 = RootJoint.C0:lerp(cf(0.1,0,-0.3)*angles(math.rad(-64),math.rad(-50.3),math.rad(-57.6))*RootCF,Alpha)
  7621. LH.C0 = LH.C0:lerp(cf(-1,-1,-0.4)*angles(math.rad(40),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7622. RH.C0 = RH.C0:lerp(cf(1,-1,0.2)*angles(math.rad(20),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7623. LW.C0 = LW.C0:lerp(cf(-1.6,0.4,-0.2)*angles(math.rad(90),math.rad(0),math.rad(-25)),Alpha)
  7624. RW.C0 = RW.C0:lerp(cf(1.5,0.4,-0.1)*angles(math.rad(75),math.rad(0),math.rad(30)),Alpha)
  7625. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.3,-0.6)*angles(math.rad(25.4),math.rad(64.8),math.rad(5.9))*necko,Alpha)
  7626. AeshW.C0 = AeshW.C0:lerp(cf(-2.8,0.6,-0.4)*angles(math.rad(-142.9),math.rad(18.9),math.rad(13.5)),Alpha)
  7627. coroutine.resume(coroutine.create(function()MagniDamage(hitbox, 4, 5, 10, 0.3, "Knockdown")end))
  7628. end
  7629. hum.WalkSpeed = storehumanoidWS
  7630. attack = false
  7631. end
  7632.  
  7633. function slashone()
  7634. attack = true
  7635. hum.WalkSpeed = 3
  7636.  
  7637. for i = 0, 10 do
  7638. swait()
  7639. local Alpha = .3
  7640. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-0.1,0.1)*angles(math.rad(5),math.rad(-25),math.rad(0))*RootCF,Alpha)
  7641. LH.C0 = LH.C0:lerp(cf(-1,-0.9,-0.4)*angles(math.rad(15),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7642. RH.C0 = RH.C0:lerp(cf(1,-0.9,-0.1)*angles(math.rad(-5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7643. LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0.1)*angles(math.rad(-14.6),math.rad(8.2),math.rad(-5.8)),Alpha)
  7644. RW.C0 = RW.C0:lerp(cf(1.2,0.7,0.2)*angles(math.rad(-151.5),math.rad(29.5),math.rad(5.7)),Alpha)
  7645. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(25),math.rad(0))*necko,Alpha)
  7646. BladesWeld.C0 = BladesWeld.C0:lerp(cf(0,-1,0.1)*angles(math.rad(-90),math.rad(0),math.rad(130)),Alpha)
  7647. end
  7648. CFuncs.Sound.Create("rbxassetid://596439421", ra, 2, 1.2)
  7649. for i = 0, 10 do
  7650. swait()
  7651. local Alpha = .5
  7652. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,-0.1)*angles(math.rad(-15),math.rad(0),math.rad(0))*RootCF,Alpha)
  7653. LH.C0 = LH.C0:lerp(cf(-1,-1.1,-0.5)*angles(math.rad(-45),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7654. RH.C0 = RH.C0:lerp(cf(1,-0.8,-0.2)*angles(math.rad(20),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7655. LW.C0 = LW.C0:lerp(cf(-1.5,0.4,0.5)*angles(math.rad(-55),math.rad(0),math.rad(0)),Alpha)
  7656. RW.C0 = RW.C0:lerp(cf(1.5,0.3,-0.2)*angles(math.rad(55),math.rad(0),math.rad(0)),Alpha)
  7657. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7658. BladesWeld.C0 = BladesWeld.C0:lerp(cf(0.1,-1,0.2)*angles(math.rad(-115),math.rad(0),math.rad(-180)),Alpha)
  7659. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 3, 20, 40, 5, "Normal")end))
  7660. end
  7661.  
  7662.  
  7663. hum.WalkSpeed = 16
  7664. attack = false
  7665. end
  7666.  
  7667. function slashtwo()
  7668. attack = true
  7669. hum.WalkSpeed = 3
  7670. for i = 0,3 do
  7671. swait()
  7672. CFuncs.Sound.Create("rbxassetid://596439421", ra, 2, 1)
  7673.  
  7674. for i = 0, 1 do
  7675. swait()
  7676. local Alpha = .7
  7677. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0))*RootCF,Alpha)
  7678. LH.C0 = LH.C0:lerp(cf(-1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7679. RH.C0 = RH.C0:lerp(cf(1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7680. LW.C0 = LW.C0:lerp(cf(-1.1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(40)),Alpha)
  7681. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(-40)),Alpha)
  7682. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7683. BladesWeld.C0 = BladesWeld.C0:lerp(cf(-0.1,-1,-0.1)*angles(math.rad(90),math.rad(-50),math.rad(60)),Alpha)
  7684. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 4, 5, 10, 0.3, "Knockdown")end))
  7685. end
  7686. for i = 0, 1 do
  7687. swait()
  7688. local Alpha = .7
  7689. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(-5),math.rad(45),math.rad(0))*RootCF,Alpha)
  7690. LH.C0 = LH.C0:lerp(cf(-1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7691. RH.C0 = RH.C0:lerp(cf(1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7692. LW.C0 = LW.C0:lerp(cf(-1.1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(40)),Alpha)
  7693. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(-40)),Alpha)
  7694. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7695. BladesWeld.C0 = BladesWeld.C0:lerp(cf(-0.1,-1,-0.1)*angles(math.rad(90),math.rad(-50),math.rad(60)),Alpha)
  7696. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 4, 5, 10, 0.3, "Knockdown")end))
  7697. end
  7698. for i = 0, 1 do
  7699. swait()
  7700. local Alpha = .7
  7701. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(-5),math.rad(90),math.rad(0))*RootCF,Alpha)
  7702. LH.C0 = LH.C0:lerp(cf(-1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7703. RH.C0 = RH.C0:lerp(cf(1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7704. LW.C0 = LW.C0:lerp(cf(-1.1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(40)),Alpha)
  7705. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(-40)),Alpha)
  7706. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7707. BladesWeld.C0 = BladesWeld.C0:lerp(cf(-0.1,-1,-0.1)*angles(math.rad(90),math.rad(-50),math.rad(60)),Alpha)
  7708. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 4, 5, 10, 0.3, "Knockdown")end))
  7709. end
  7710. for i = 0, 1 do
  7711. swait()
  7712. local Alpha = .7
  7713. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(-5),math.rad(135),math.rad(0))*RootCF,Alpha)
  7714. LH.C0 = LH.C0:lerp(cf(-1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7715. RH.C0 = RH.C0:lerp(cf(1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7716. LW.C0 = LW.C0:lerp(cf(-1.1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(40)),Alpha)
  7717. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(-40)),Alpha)
  7718. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7719. BladesWeld.C0 = BladesWeld.C0:lerp(cf(-0.1,-1,-0.1)*angles(math.rad(90),math.rad(-50),math.rad(60)),Alpha)
  7720. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 4, 5, 10, 0.3, "Knockdown")end))
  7721. end
  7722. for i = 0, 1 do
  7723. swait()
  7724. local Alpha = .7
  7725. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(-5),math.rad(180),math.rad(0))*RootCF,Alpha)
  7726. LH.C0 = LH.C0:lerp(cf(-1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7727. RH.C0 = RH.C0:lerp(cf(1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7728. LW.C0 = LW.C0:lerp(cf(-1.1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(40)),Alpha)
  7729. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(-40)),Alpha)
  7730. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7731. BladesWeld.C0 = BladesWeld.C0:lerp(cf(-0.1,-1,-0.1)*angles(math.rad(90),math.rad(-50),math.rad(60)),Alpha)
  7732. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 4, 5, 10, 0.3, "Knockdown")end))
  7733. end
  7734. for i = 0, 1 do
  7735. swait()
  7736. local Alpha = .7
  7737. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(-5),math.rad(225),math.rad(0))*RootCF,Alpha)
  7738. LH.C0 = LH.C0:lerp(cf(-1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7739. RH.C0 = RH.C0:lerp(cf(1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7740. LW.C0 = LW.C0:lerp(cf(-1.1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(40)),Alpha)
  7741. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(-40)),Alpha)
  7742. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7743. BladesWeld.C0 = BladesWeld.C0:lerp(cf(-0.1,-1,-0.1)*angles(math.rad(90),math.rad(-50),math.rad(60)),Alpha)
  7744. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 4, 5, 10, 0.3, "Knockdown")end))
  7745. end
  7746. for i = 0, 1 do
  7747. swait()
  7748. local Alpha = .7
  7749. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(-5),math.rad(270),math.rad(0))*RootCF,Alpha)
  7750. LH.C0 = LH.C0:lerp(cf(-1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7751. RH.C0 = RH.C0:lerp(cf(1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7752. LW.C0 = LW.C0:lerp(cf(-1.1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(40)),Alpha)
  7753. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(-40)),Alpha)
  7754. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7755. BladesWeld.C0 = BladesWeld.C0:lerp(cf(-0.1,-1,-0.1)*angles(math.rad(90),math.rad(-50),math.rad(60)),Alpha)
  7756. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 4, 5, 10, 0.3, "Knockdown")end))
  7757. end
  7758. for i = 0, 1 do
  7759. swait()
  7760. local Alpha = .7
  7761. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(-5),math.rad(315),math.rad(0))*RootCF,Alpha)
  7762. LH.C0 = LH.C0:lerp(cf(-1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7763. RH.C0 = RH.C0:lerp(cf(1.2,-1.1,-0.2)*angles(math.rad(15),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7764. LW.C0 = LW.C0:lerp(cf(-1.1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(40)),Alpha)
  7765. RW.C0 = RW.C0:lerp(cf(1,0.3,-0.6)*angles(math.rad(65),math.rad(0),math.rad(-40)),Alpha)
  7766. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*necko,Alpha)
  7767. BladesWeld.C0 = BladesWeld.C0:lerp(cf(-0.1,-1,-0.1)*angles(math.rad(90),math.rad(-50),math.rad(60)),Alpha)
  7768. coroutine.resume(coroutine.create(function()MagniDamage(WanderersBlade.Blade, 4, 5, 10, 0.3, "Knockdown")end))
  7769. end
  7770. end
  7771. hum.WalkSpeed = 16
  7772. attack = false
  7773. end
  7774. function slashthree()
  7775. attack = true
  7776. hum.WalkSpeed = 3
  7777. for i = 0, 15 do
  7778. swait()
  7779. local Alpha = .3
  7780. RootJoint.C0 = RootJoint.C0:lerp(cf(0,1.1,0.1)*angles(math.rad(10),math.rad(0),math.rad(0))*RootCF,Alpha)
  7781. LH.C0 = LH.C0:lerp(cf(-1,-1,-0.3)*angles(math.rad(-15),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7782. RH.C0 = RH.C0:lerp(cf(1,-0.8,-0.8)*angles(math.rad(-25),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7783. LW.C0 = LW.C0:lerp(cf(-1.5,0.4,-0.4)*angles(math.rad(25),math.rad(0),math.rad(0)),Alpha)
  7784. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0.8)*angles(math.rad(-70),math.rad(0),math.rad(0)),Alpha)
  7785. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  7786. BladesWeld.C0 = BladesWeld.C0:lerp(cf(0.1,-1.1,-0.3)*angles(math.rad(145),math.rad(0),math.rad(-180)),Alpha)
  7787. end
  7788. for i = 0, 3 do
  7789. swait()
  7790. local Alpha = .7
  7791. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,-0.1)*angles(math.rad(-15),math.rad(0),math.rad(0))*RootCF,Alpha)
  7792. LH.C0 = LH.C0:lerp(cf(-1,-0.7,-0.2)*angles(math.rad(-5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7793. RH.C0 = RH.C0:lerp(cf(1,-0.3,-0.9)*angles(math.rad(-40),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7794. LW.C0 = LW.C0:lerp(cf(-1.5,0.3,0.1)*angles(math.rad(20),math.rad(0),math.rad(0)),Alpha)
  7795. RW.C0 = RW.C0:lerp(cf(1.5,0.7,-0.3)*angles(math.rad(155),math.rad(0),math.rad(0)),Alpha)
  7796. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  7797. BladesWeld.C0 = BladesWeld.C0:lerp(cf(0.1,-1,0.4)*angles(math.rad(-125),math.rad(0),math.rad(-180)),Alpha)
  7798. end
  7799. coroutine.resume(coroutine.create(function()
  7800. swait(5)
  7801. CamShakeAll{
  7802. Intensity=1;
  7803. Duration=0.2;
  7804. Speed=10;
  7805. Rotation=Vector3.new(1,1,10);
  7806. Position=Vector3.new(.5,.5,.5);
  7807. DropDist=1000;
  7808. IneffectiveDist=2000;
  7809. }
  7810. CFuncs.Sound.Create("rbxassetid://567932471", ra, 2, 1)
  7811. MagniDamageWithEffect(WanderersBlade.Blade, 10, 5, 10, 1, "Up")
  7812. for i = 0,12 do
  7813. PixelBlock(7,1,"Add",WanderersBlade.Blade.CFrame*CFrame.new(0,math.random(-1,1),0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,.01,BrickColor.new("Deep blue"),0)
  7814. end
  7815. end))
  7816. for i = 0,20 do
  7817. swait()
  7818. local Alpha = .7
  7819. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-1.6,-0.4)*angles(math.rad(-30),math.rad(0),math.rad(0))*RootCF,Alpha)
  7820. LH.C0 = LH.C0:lerp(cf(-1.1,0.5,-0.9)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7821. RH.C0 = RH.C0:lerp(cf(1.1,-0.2,-1.2)*angles(math.rad(-45),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7822. LW.C0 = LW.C0:lerp(cf(-1.5,0.2,-0.2)*angles(math.rad(40),math.rad(0),math.rad(0)),Alpha)
  7823. RW.C0 = RW.C0:lerp(cf(1.5,0.3,-0.6)*angles(math.rad(105),math.rad(0),math.rad(0)),Alpha)
  7824. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  7825. BladesWeld.C0 = BladesWeld.C0:lerp(cf(0.1,-0.7,0.6)*angles(math.rad(-165),math.rad(0),math.rad(-180)),Alpha)
  7826. end
  7827. hum.WalkSpeed = 16
  7828. attack = false
  7829. end
  7830.  
  7831. function CrystalSlam()
  7832. attack = true
  7833. hum.WalkSpeed = 0
  7834. local DamageVal = 0
  7835. local KeyHolden = true
  7836. local nig;
  7837. nig=mouse.KeyUp:Connect(function(key)
  7838. if key == "z" then
  7839. KeyHolden = false
  7840. nig:disconnect()
  7841. end
  7842. end)
  7843.  
  7844. local Pillars=0;
  7845. repeat
  7846. local Alpha = .3
  7847. swait()
  7848. DamageVal = DamageVal + 1
  7849. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-0.9,-0.2)*angles(math.rad(-20),math.rad(-65),math.rad(0))*RootCF,Alpha)
  7850. LH.C0 = LH.C0:lerp(cf(-1.2,-0.2,0.3)*angles(math.rad(27.1),math.rad(67.8),math.rad(-23.6))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7851. RH.C0 = RH.C0:lerp(cf(0.6,-0.7,0.1)*angles(math.rad(-2),math.rad(-29.7),math.rad(24.1))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7852. LW.C0 = LW.C0:lerp(cf(-1.1,0.5+.1*math.cos(sine/20 -DamageVal),-0.6)*angles(math.rad(100),math.rad(-0.9),math.rad(-4.9)),Alpha)
  7853. RW.C0 = RW.C0:lerp(cf(1.1,0.4+.1*math.cos(sine/20 -DamageVal),-0.2)*angles(math.rad(115),math.rad(0),math.rad(30)),Alpha)
  7854. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(65),math.rad(0))*necko,Alpha)
  7855. AeshW.C0 = AeshW.C0:lerp(cf(-0.3,-0.4+.1*math.cos(sine/20 -DamageVal),0)*angles(math.rad(66.5),math.rad(-7.5),math.rad(168.8)),Alpha)
  7856. slash(3,3,true,"Round","Add","Out",hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),Vector3.new(.001,.001,.001),0.1,BrickColor.new("Royal purple"))
  7857. until KeyHolden == false or DamageVal > 200
  7858. for i = 0, 5 do
  7859. swait()
  7860. local Alpha = .5
  7861. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0.5,-0.6)*angles(math.rad(-65),math.rad(0),math.rad(0))*RootCF,Alpha)
  7862. LH.C0 = LH.C0:lerp(cf(-1,-0.9,0)*angles(math.rad(-15),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7863. RH.C0 = RH.C0:lerp(cf(1,-1.3,-0.3)*angles(math.rad(-80),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7864. LW.C0 = LW.C0:lerp(cf(-1.1,0.7,-1.1)*angles(math.rad(120),math.rad(0),math.rad(25)),Alpha)
  7865. RW.C0 = RW.C0:lerp(cf(0.9,0.7,-1.1)*angles(math.rad(120),math.rad(0),math.rad(-25)),Alpha)
  7866. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  7867. AeshW.C0 = AeshW.C0:lerp(cf(0.4,-2.9,-1.4)*angles(math.rad(-90),math.rad(65),math.rad(-153.9)),Alpha)
  7868. end
  7869. coroutine.resume(coroutine.create(function()
  7870. CamShakeAll{
  7871. Intensity=DamageVal/10;
  7872. Duration=0.2;
  7873. Speed=10;
  7874. Rotation=Vector3.new(1,1,10);
  7875. Position=Vector3.new(.5,.5,.5);
  7876. DropDist=1000;
  7877. IneffectiveDist=2000;
  7878. }
  7879. CFuncs.Sound.Create("rbxassetid://567932471", ra, 2, 1)
  7880. MagniDamageWithEffect(hitbox.CFrame, 2,1, 10, DamageVal/5, "Freeze")
  7881. for i = 0,12 do
  7882. PixelBlock(7,1,"Add",hitbox.CFrame*CFrame.new(0,math.random(-1,1),0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,.028,BrickColor.new("Dark indigo"),0,'Glass')
  7883. end
  7884. local points,parts = {},{}
  7885. local hit,pos,norm=CastRay(RootPart.Position,RootPart.Position-Vector3.new(0,1,0),6)
  7886. for i = 1, DamageVal/10 do
  7887. local lastPoint = points[i-1] or cf(pos,pos+RootPart.CFrame.lookVector)*cf(0,0,-1)
  7888. local thisPoint=lastPoint*cf(math.random(-200,200)/100,0,-math.random(200,500)/100)
  7889. local dist = (lastPoint.p-thisPoint.p).magnitude
  7890. local line = CreatePart(char, Enum.Material.Neon, 0, 0, BrickColor.new'Dark indigo', "CursedPillarPoint", Vector3.new(.2,.2,dist))
  7891. line.Anchored=true
  7892. line.CanCollide=false
  7893.  
  7894. line.CFrame=cf(lastPoint.p,thisPoint.p)*CFrame.new(0,0,-dist/2)
  7895. points[#points+1]=thisPoint
  7896. parts[#points]=line
  7897. swait()
  7898. end
  7899. swait(120)
  7900. for i = 1,#points do
  7901. parts[i]:destroy()
  7902. local cf = points[i]
  7903. sphere2(3,"Add",cf,vt(1,1,1),.1,.1,.1,BrickColor.new("Dark indigo"),BrickColor.new("Dark indigo").Color)
  7904. sphere2(3,"Add",cf,vt(5.5,.5,5.5),-0.02,2,-0.02,BrickColor.new("Dark indigo"))
  7905. MagniDamageWithEffect(cf, 4,1, 10, DamageVal/15, "Freeze")
  7906. for i = 0,12 do
  7907. PixelBlock(3,3,"Add",cf*CFrame.new(0,math.random(-1,1),0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,.028,BrickColor.new("Dark indigo"),0,'Glass')
  7908. end
  7909. swait(5)
  7910. end
  7911.  
  7912. end))
  7913. for i = 0, 15 do
  7914. swait()
  7915. local Alpha = .5
  7916. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0.5,-0.6)*angles(math.rad(-65),math.rad(0),math.rad(0))*RootCF,Alpha)
  7917. LH.C0 = LH.C0:lerp(cf(-1,-0.9,0)*angles(math.rad(-15),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7918. RH.C0 = RH.C0:lerp(cf(1,-1.3,-0.3)*angles(math.rad(-80),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7919. LW.C0 = LW.C0:lerp(cf(-1.1,0.7,-1.1)*angles(math.rad(120),math.rad(0),math.rad(25)),Alpha)
  7920. RW.C0 = RW.C0:lerp(cf(0.9,0.7,-1.1)*angles(math.rad(120),math.rad(0),math.rad(-25)),Alpha)
  7921. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  7922. AeshW.C0 = AeshW.C0:lerp(cf(0.4,-2.9,-1.4)*angles(math.rad(-90),math.rad(65),math.rad(-153.9)),Alpha)
  7923. end
  7924. hum.WalkSpeed = storehumanoidWS
  7925. attack = false
  7926. end
  7927.  
  7928. function YourLastPurpleSight()
  7929. attack = true
  7930. hum.WalkSpeed = 0
  7931. for i = 0, 20 do
  7932. swait()
  7933. local Alpha = .3
  7934. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-15),math.rad(0))*RootCF,Alpha)
  7935. LH.C0 = LH.C0:lerp(cf(-1.3,-1,-0.2)*angles(math.rad(0),math.rad(20),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7936. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7937. LW.C0 = LW.C0:lerp(cf(-1.6,0.5,-0.4)*angles(math.rad(138.4),math.rad(-17.2),math.rad(-10.3)),Alpha)
  7938. RW.C0 = RW.C0:lerp(cf(1.6,0.4,0.4)*angles(math.rad(-25.3),math.rad(9.1),math.rad(4.3)),Alpha)
  7939. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(-0.2,0.1,-0.5)*angles(math.rad(21.2),math.rad(18.7),math.rad(-7.1))*necko,Alpha)
  7940. AeshW.C0 = AeshW.C0:lerp(cf(0.4,-1.2,0.8)*angles(math.rad(25),math.rad(-85),math.rad(168.9)),Alpha)
  7941. SelectionBlock(12,0,"Add",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.rad(sine*2),math.rad(sine*2),math.rad(sine*2)),10,10,10,1,Color3.fromRGB(0, 0, 0),0,0)
  7942. PixelBlock(12,0,"Add",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.rad(sine*2),math.rad(sine*2),math.rad(sine*2)),0.9,0.9,0.9,0.001,BrickColor.new("Dark indigo"),0)
  7943. end
  7944. CFuncs.Sound.Create("rbxassetid://743499393", ra, 0.9, 2)
  7945. local CrystalHammie = script.GlassHammer:Clone()
  7946. CrystalHammie.Parent = char
  7947. local CrystalHammieBase = CrystalHammie.HammerPoint
  7948. CrystalHammieBase.CFrame = root.CFrame * CFrame.new(0,100,50) * CFrame.Angles(math.rad(-90),0,0)
  7949. local CrystalBase = CrystalHammie.Union
  7950. for i = 0, 270 do
  7951. swait()
  7952. local Alpha = .3
  7953. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-15),math.rad(0))*RootCF,Alpha)
  7954. LH.C0 = LH.C0:lerp(cf(-1.3,-1,-0.2)*angles(math.rad(0),math.rad(20),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7955. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7956. LW.C0 = LW.C0:lerp(cf(-1.6,0.5,-0.4)*angles(math.rad(138.4),math.rad(-17.2),math.rad(-10.3)),Alpha)
  7957. RW.C0 = RW.C0:lerp(cf(1.6,0.4,0.4)*angles(math.rad(-25.3),math.rad(9.1),math.rad(4.3)),Alpha)
  7958. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(-0.2,0.1,-0.5)*angles(math.rad(21.2),math.rad(18.7),math.rad(-7.1))*necko,Alpha)
  7959. AeshW.C0 = AeshW.C0:lerp(cf(0.4,-1.2,0.8)*angles(math.rad(25),math.rad(-85),math.rad(168.9)),Alpha)
  7960. SelectionBlock(12,0,"Add",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.rad(sine*2),math.rad(sine*2),math.rad(sine*2)),10,10,10,1,Color3.fromRGB(0, 0, 0),0,0)
  7961. PixelBlock(12,0,"Add",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.rad(sine*2),math.rad(sine*2),math.rad(sine*2)),0.9,0.9,0.9,0.001,BrickColor.new("Dark indigo"),0)
  7962. slash(3,3,true,"Round","Add","Out",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),Vector3.new(.001,.001,.001),0.1,BrickColor.new("Royal purple"))
  7963. CrystalBase.Transparency = 1.4 - (i/100)
  7964. end
  7965. for i = 0, 100 do
  7966. swait()
  7967. local Alpha = .2
  7968. CrystalHammieBase.CFrame = clerp(CrystalHammieBase.CFrame,root.CFrame * CFrame.new(0,120,70)* CFrame.Angles(math.rad(10),0,0),0.1)
  7969. RootJoint.C0 = RootJoint.C0:lerp(cf(-0.3,0,0.1)*angles(math.rad(0),math.rad(20),math.rad(0))*RootCF,Alpha)
  7970. LH.C0 = LH.C0:lerp(cf(-1.3,-1,-0.2)*angles(math.rad(0),math.rad(20),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7971. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  7972. LW.C0 = LW.C0:lerp(cf(-1,1.1,1.2)*angles(math.rad(-138.3),math.rad(-12.7),math.rad(35.6)),Alpha)
  7973. RW.C0 = RW.C0:lerp(cf(1.6,0.4,0.4)*angles(math.rad(-25.3),math.rad(9.1),math.rad(4.3)),Alpha)
  7974. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,-0.2)*angles(math.rad(7.4),math.rad(-22.6),math.rad(1))*necko,Alpha)
  7975. AeshW.C0 = AeshW.C0:lerp(cf(-0.8,-1.5,1.5)*angles(math.rad(-155),math.rad(-60),math.rad(-11.1)),Alpha)
  7976. end
  7977. coroutine.resume(coroutine.create(function()
  7978. swait(5)
  7979. CamShakeAll{
  7980. Intensity=10;
  7981. Duration=0.2;
  7982. Speed=10;
  7983. Rotation=Vector3.new(1,1,10);
  7984. Position=Vector3.new(.5,.5,.5);
  7985. DropDist=1000;
  7986. IneffectiveDist=2000;
  7987. }
  7988. CFuncs.Sound.Create("rbxassetid://567932471", ra, 2, 1)
  7989. --[[ for i = 0,12 do
  7990. PixelBlock(7,1,"Add",WanderersBlade.Blade.CFrame*CFrame.new(0,math.random(-1,1),0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,.01,BrickColor.new("Deep blue"),0)
  7991. end --]]
  7992. end))
  7993. for i = 0, 50 do
  7994. swait()
  7995. local Alpha = .2
  7996. CrystalHammieBase.CFrame = clerp(CrystalHammieBase.CFrame,root.CFrame * CFrame.new(0,10,0)* CFrame.Angles(math.rad(170),0,0),0.1)
  7997. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-15),math.rad(0))*RootCF,Alpha)
  7998. LH.C0 = LH.C0:lerp(cf(-1.3,-1,-0.2)*angles(math.rad(0),math.rad(20),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  7999. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  8000. LW.C0 = LW.C0:lerp(cf(-1.5,0.4,-0.1)*angles(math.rad(51.5),math.rad(9.8),math.rad(-17.5)),Alpha)
  8001. RW.C0 = RW.C0:lerp(cf(1.6,0.4,0.4)*angles(math.rad(-25.3),math.rad(9.1),math.rad(4.3)),Alpha)
  8002. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.1,0,0.2)*angles(math.rad(-10.6),math.rad(19.7),math.rad(3.6))*necko,Alpha)
  8003. AeshW.C0 = AeshW.C0:lerp(cf(0.4,-1.2,0.8)*angles(math.rad(25),math.rad(-85),math.rad(168.9)),Alpha)
  8004. coroutine.resume(coroutine.create(function()MagniDamageWithEffect(CrystalHammie.Union.Damage.CFrame, 10,1, 10, 1, "Freeze")end))
  8005. end
  8006. CrystalHammie:Destroy()
  8007. hum.WalkSpeed = storehumanoidWS
  8008. attack = false
  8009. end
  8010.  
  8011.  
  8012. function SuckySuckyImGonnaGiveYouAFuckiFucki()
  8013. hum.WalkSpeed = 0
  8014. attack = true
  8015. local Sharpie = script.SharpieOWO:Clone()
  8016. Sharpie.Parent = char
  8017. Sharpie:WaitForChild("MeshPart").Transparency = 1
  8018. Sharpie.Torso.Anchored = false
  8019. local KnifeWld = Instance.new("Weld",char)
  8020. KnifeWld.Part1 = tors
  8021. KnifeWld.Part0 = Sharpie:WaitForChild("Torso")
  8022. CFuncs.Sound.Create("rbxassetid://376107250", tors, 3, 0.8)
  8023. KnifeWld.C1 = CFrame.new(0,0,0.5)*CFrame.Angles(math.rad(75),math.rad(0),math.rad(0))
  8024. for i = 0, 100 do
  8025. swait()
  8026. local Alpha = .05
  8027. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-0.3,0)*angles(math.rad(-55),math.rad(0),math.rad(0))*RootCF,Alpha)
  8028. LH.C0 = LH.C0:lerp(cf(-1,-1.4,-0.4)*angles(math.rad(100),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  8029. RH.C0 = RH.C0:lerp(cf(1,-1.5,-0.4)*angles(math.rad(100),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  8030. LW.C0 = LW.C0:lerp(cf(-1.5,0.8,-0.6)*angles(math.rad(135),math.rad(0),math.rad(0)),Alpha)
  8031. RW.C0 = RW.C0:lerp(cf(1.5,0.8,-0.6)*angles(math.rad(135),math.rad(0),math.rad(0)),Alpha)
  8032. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.6,0.9)*angles(math.rad(-50),math.rad(0),math.rad(0))*necko,Alpha)
  8033. slash(3,3,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-1.3,-.5)*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),Vector3.new(.001,.001,.001),0.1,BrickColor.new("Pink"))
  8034. sphere2(12,"Add",root.CFrame*CFrame.new(0,-1.3,-.5),Vector3.new(1,1,1),0,0,0,BrickColor.new("Pink"))
  8035. end
  8036. Sharpie.MeshPart.Transparency = 0
  8037. CFuncs.Sound.Create("rbxassetid://179285891", tors, 3, 1.1)
  8038. for i = 0, 20 do
  8039. swait()
  8040. local Alpha = .3
  8041. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-0.3,0)*angles(math.rad(-55),math.rad(0),math.rad(0))*RootCF,Alpha)
  8042. LH.C0 = LH.C0:lerp(cf(-1,-1.4,-0.4)*angles(math.rad(100),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  8043. RH.C0 = RH.C0:lerp(cf(1,-1.5,-0.4)*angles(math.rad(100),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  8044. LW.C0 = LW.C0:lerp(cf(-1.5,0.8,-0.6)*angles(math.rad(135),math.rad(0),math.rad(0)),Alpha)
  8045. RW.C0 = RW.C0:lerp(cf(1.5,0.8,-0.6)*angles(math.rad(135),math.rad(0),math.rad(0)),Alpha)
  8046. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.3,-0.8)*angles(math.rad(40),math.rad(0),math.rad(0))*necko,Alpha)
  8047. end
  8048. local Dongo = Sound(tors,"rbxassetid://248138795",1,3,false,true,true)
  8049. Dongo.TimePosition = 0.3
  8050. local Dongie = Instance.new("PitchShiftSoundEffect",Dongo)
  8051. Dongie.Octave = 0.78
  8052. swait(100)
  8053. local Screech = Sound(tors,"rbxassetid://316891313",1,4,false,true,true)
  8054. local target = nil
  8055. local bv = Instance.new("BodyVelocity")
  8056. bv.maxForce = Vector3.new(1e9, 0, 1e9)
  8057. bv.velocity = root.CFrame.lookVector*75
  8058. bv.Parent = root
  8059. tors.Touched:Connect(function(Target)
  8060. if Target.Name ~= "Baseplate" or v.Name ~= "Base" then
  8061. target = Target
  8062. bv:Destroy()
  8063. tors.Touched:Disconnect()
  8064. end
  8065. end)
  8066. repeat
  8067. swait()
  8068. bv.velocity = root.CFrame.lookVector*75
  8069. local Alpha = .3
  8070. KnifeWld.C1 = clerp(KnifeWld.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),Alpha)
  8071. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0.3)*angles(math.rad(35),math.rad(0),math.rad(0))*RootCF,Alpha)
  8072. LH.C0 = LH.C0:lerp(cf(-1,-1.1,0.3)*angles(math.rad(-95.1),math.rad(0.7),math.rad(2.5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  8073. RH.C0 = RH.C0:lerp(cf(1,-1.1,0.3)*angles(math.rad(-95.1),math.rad(0.7),math.rad(2.5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  8074. LW.C0 = LW.C0:lerp(cf(-1.4,0.5,0.4)*angles(math.rad(0),math.rad(75),math.rad(-90)),Alpha)
  8075. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0.4)*angles(math.rad(0),math.rad(-80),math.rad(90)),Alpha)
  8076. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,-0.5)*angles(math.rad(10),math.rad(0),math.rad(0))*necko,Alpha)
  8077. until Screech.TimePosition > 20 or target ~= nil
  8078. sphere2(4,"Add",Sharpie.MeshPart.CFrame*CFrame.new(0,0,0),Vector3.new(1,1,1),1,1,1,BrickColor.new("Pink"))
  8079. coroutine.resume(coroutine.create(function() MagniDamage(Sharpie.MeshPart, 10, 5, 10, 1, "Up") end))
  8080. bv:Destroy()
  8081. Sharpie:Destroy()
  8082. Screech:Destroy()
  8083. attack = false
  8084. hum.WalkSpeed = 69
  8085. end
  8086.  
  8087. -------------------------------------
  8088.  
  8089. Humanoid.Animator.Parent = nil
  8090.  
  8091. -------------------------------------
  8092.  
  8093. local attacktype = 1
  8094. mouse.Button1Down:connect(function()
  8095. if attack == true then return end
  8096. if ModeOfGlitch == 201 then
  8097. if attack == false and attacktype == 1 then
  8098. slashone()
  8099. attacktype = 2
  8100. elseif attack == false and attacktype == 2 then
  8101. slashtwo()
  8102. attacktype = 3
  8103. elseif attack == false and attacktype == 3 then
  8104. slashthree()
  8105. attacktype = 1
  8106. end
  8107. elseif ModeOfGlitch==123666 then
  8108. hamone()
  8109. elseif ModeOfGlitch==666 then
  8110. if attack == false and attacktype == 1 then
  8111. attacktype = 2
  8112. gassmack()
  8113. elseif attack == false and attacktype == 2 then
  8114. attacktype = 3
  8115. attacktwo()
  8116. elseif attack == false and attacktype == 3 then
  8117. attacktype = 1
  8118. balsplode()
  8119. end
  8120. else
  8121. if attack == false and attacktype == 1 then
  8122. attacktype = 2
  8123. attackone()
  8124. elseif attack == false and attacktype == 2 then
  8125. attacktype = 3
  8126. attacktwo()
  8127. elseif attack == false and attacktype == 3 then
  8128. attacktype = 1
  8129. attackthree()
  8130. elseif attack == false and attacktype == 4 then
  8131. attacktype = 1
  8132. --attackfour()
  8133. end
  8134. end
  8135. end)
  8136.  
  8137. UserInputService.InputBegan:connect(function(io,gpe)
  8138. if(io.KeyCode==Enum.KeyCode.One and ModeOfGlitch ~= 1)then
  8139. ModeOfGlitch = 1
  8140. storehumanoidWS = 16
  8141. hum.WalkSpeed = 16
  8142. rainbowmode = false
  8143. chaosmode = false
  8144. newTheme("rbxassetid://495971354",48.6,1,1.25)
  8145. RecolorTextAndRename("POWER",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8146. MAINRUINCOLOR = BrickColor.new("Really red")
  8147. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false,false)
  8148. elseif(io.KeyCode==Enum.KeyCode.Two and ModeOfGlitch ~= 2)then
  8149. ModeOfGlitch = 2
  8150. storehumanoidWS = 16
  8151. hum.WalkSpeed = 16
  8152. rainbowmode = false
  8153. chaosmode = false
  8154. RecolorTextAndRename("INNOCENT",Color3.new(1,1,1),Color3.new(0,1,1),"Code")
  8155. newTheme("rbxassetid://1298467151",0,1.01,1.25)
  8156. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8157. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false,false)
  8158. elseif(io.KeyCode==Enum.KeyCode.Three and ModeOfGlitch ~= 3)then
  8159. ModeOfGlitch = 3
  8160. storehumanoidWS = 16
  8161. hum.WalkSpeed = 16
  8162. rainbowmode = false
  8163. chaosmode = false
  8164. RecolorTextAndRename("CORRUPTED",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8165. newTheme("rbxassetid://544291208",58.15,0.98,1.25)
  8166. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8167. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false,false)
  8168. elseif(io.KeyCode==Enum.KeyCode.Four and ModeOfGlitch ~= 4)then
  8169. ModeOfGlitch = 4
  8170. storehumanoidWS = 16
  8171. hum.WalkSpeed = 16
  8172. rainbowmode = false
  8173. chaosmode = true
  8174. RecolorTextAndRename("HOPELESS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8175. newTheme("rbxassetid://151476016",0,1.01,1.25)
  8176. MAINRUINCOLOR = BrickColor.new("Black")
  8177. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8178. elseif(io.KeyCode==Enum.KeyCode.Five and ModeOfGlitch ~= 5)then
  8179. ModeOfGlitch = 5
  8180. storehumanoidWS = 16
  8181. hum.WalkSpeed = 16
  8182. rainbowmode = false
  8183. chaosmode = false
  8184. RecolorTextAndRename("WILLFUL",Color3.new(.99,.89,.52),Color3.new(.97,.8,.42),"SciFi")
  8185. newTheme("rbxassetid://2659531944",0,.98,1.25)
  8186. MAINRUINCOLOR = BrickColor.new("Gold")
  8187. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8188. elseif(io.KeyCode==Enum.KeyCode.Six and ModeOfGlitch ~= 6)then
  8189. ModeOfGlitch = 6
  8190. storehumanoidWS = 100
  8191. hum.WalkSpeed = 100
  8192. rainbowmode = false
  8193. chaosmode = false
  8194. RecolorTextAndRename("GRACEFUL",Color3.new(1,1,1),Color3.new(.5,.5,.5),"Fantasy")
  8195. newTheme("rbxassetid://195916147",0,1.01,1.25)
  8196. MAINRUINCOLOR = BrickColor.new("White")
  8197. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8198. elseif(io.KeyCode==Enum.KeyCode.Seven and ModeOfGlitch ~= 7)then
  8199. ModeOfGlitch = 7
  8200. storehumanoidWS = 180
  8201. hum.WalkSpeed = 180
  8202. rainbowmode = true
  8203. chaosmode = false
  8204. RecolorTextAndRename("ELEVATED",Color3.new(1,1,1),Color3.new(1,1,1),"Cartoon")
  8205. newTheme("rbxassetid://410474991",0,1,1.25)
  8206. MAINRUINCOLOR = BrickColor.new("White")
  8207. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8208. elseif(io.KeyCode==Enum.KeyCode.Eight and ModeOfGlitch ~= 8)then
  8209. ModeOfGlitch = 8
  8210. storehumanoidWS = 180
  8211. hum.WalkSpeed = 180
  8212. rainbowmode = false
  8213. chaosmode = false
  8214. RecolorTextAndRename("ASCENDED",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  8215. newTheme("rbxassetid://904930498",0,1.25,1.5)
  8216. MAINRUINCOLOR = BrickColor.new("Lilac")
  8217. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8218. elseif(io.KeyCode==Enum.KeyCode.Nine and ModeOfGlitch ~= 9)then
  8219. ModeOfGlitch = 9
  8220. storehumanoidWS = 16
  8221. hum.WalkSpeed = 16
  8222. rainbowmode = false
  8223. chaosmode = false
  8224. RecolorTextAndRename("RADIOACTIVITY",BrickColor.new("Lime green").Color,Color3.new(0.1,1,0),"Antique")
  8225. newTheme("rbxassetid://1812212957",0,1.01,1.5)
  8226. MAINRUINCOLOR = BrickColor.new("Lime green")
  8227. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8228. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8229. elseif(io.KeyCode==Enum.KeyCode.Zero and ModeOfGlitch ~= 67966)then
  8230. ModeOfGlitch = 67966
  8231. storehumanoidWS = 16
  8232. hum.WalkSpeed = 16
  8233. rainbowmode = false
  8234. chaosmode = false
  8235. RecolorTextAndRename("ARCANE",Color3.new(.01,.42,.6),Color3.new(.45,.6,.8),"Highway")
  8236. newTheme("rbxassetid://1551788627",0,1,1.75)
  8237. MAINRUINCOLOR = BrickColor.new("Bright blue")
  8238. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8239.  
  8240. end
  8241. end)
  8242.  
  8243. mouse.KeyDown:connect(function(k)
  8244. if(k == '[' and ModeOfGlitch==666)then
  8245. if(currentThemePlaying=='rbxassetid://1975572914')then
  8246. currentThemePlaying='rbxassetid://2622961126'
  8247. elseif(currentThemePlaying=='rbxassetid://2622961126')then
  8248. currentThemePlaying='rbxassetid://2968561228'
  8249. else
  8250. currentThemePlaying='rbxassetid://1975572914'
  8251. end
  8252. elseif(k == ']' and ModeOfGlitch==666)then
  8253. if(currentThemePlaying=='rbxassetid://2622961126')then
  8254. currentThemePlaying='rbxassetid://1975572914'
  8255. elseif(currentThemePlaying=='rbxassetid://2968561228')then
  8256. currentThemePlaying='rbxassetid://2622961126'
  8257. else
  8258. currentThemePlaying='rbxassetid://2968561228'
  8259. end
  8260. end
  8261. if k == "q" and attack == false and ModeOfGlitch ~= 201 then
  8262. ModeOfGlitch = 201
  8263. storehumanoidWS = 16
  8264. hum.WalkSpeed = 16
  8265. rainbowmode = false
  8266. chaosmode = false
  8267. RecolorTextAndRename("WANDERER",Color3.fromRGB(33, 84, 185),Color3.new(1,1,1),"SciFi")
  8268. newTheme("rbxassetid://1557258673",0,1,1)
  8269. MAINRUINCOLOR = BrickColor.new("Deep blue")
  8270. RecolorThing(MAINRUINCOLOR,BrickColor.new("Deep blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false,true)
  8271. end
  8272. if(k=='m' and ModeOfGlitch == 5)then
  8273. ModeOfGlitch = 666666666
  8274. storehumanoidWS = 14
  8275. hum.WalkSpeed = 14
  8276. rainbowmode = false
  8277. chaosmode = false
  8278. RecolorTextAndRename("STRESSED",Color3.new(0,0,0),Color3.new(.5,.13,.13),"Fantasy")
  8279. newTheme("rbxassetid://2142995292",0,1.05,1.25)
  8280. MAINRUINCOLOR = BrickColor.new("Dark red")
  8281. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8282. elseif(k=='m' and ModeOfGlitch == 666666666)then
  8283. ModeOfGlitch = 123321.888
  8284. storehumanoidWS = 12
  8285. hum.WalkSpeed = 12
  8286. rainbowmode = false
  8287. chaosmode = false
  8288. RecolorTextAndRename("BROKEN",Color3.new(.5,0,0),Color3.new(0,0,0),"Antique")
  8289. newTheme("rbxassetid://803373182",0,.8,1.25)
  8290. MAINRUINCOLOR = BrickColor.new("Crimson")
  8291. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8292. end
  8293. if k == ";" and attack == false and ModeOfGlitch ~= 22666 then
  8294. ModeOfGlitch = 22666
  8295. storehumanoidWS = 16
  8296. hum.WalkSpeed = 16
  8297. rainbowmode = false
  8298. chaosmode = false
  8299. RecolorTextAndRename("sp00p",Color3.new(0,0,0),BrickColor.new("Deep orange").Color,"Antique")
  8300. newTheme("rbxassetid://211637330",0,1,1.5)
  8301. MAINRUINCOLOR = BrickColor.new("Black")
  8302. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8303. end
  8304. if k == "m" and attack == false and ModeOfGlitch == 22666 then
  8305. ModeOfGlitch = 666666
  8306. storehumanoidWS = 64
  8307. hum.WalkSpeed = 64
  8308. rainbowmode = false
  8309. chaosmode = false
  8310. RecolorTextAndRename("MEGALOMANIAC",Color3.new(0,0,1),Color3.new(0,0,0),"Cartoon")
  8311. newTheme("rbxassetid://1637719516",0,1,1.5)
  8312. MAINRUINCOLOR = BrickColor.new("Bright blue")
  8313. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8314. end
  8315. if k == "n" and attack == false and ModeOfGlitch == 22666 then
  8316. ModeOfGlitch = 696969
  8317. storehumanoidWS = 69
  8318. hum.WalkSpeed = 69
  8319. rainbowmode = false
  8320. chaosmode = false
  8321. RecolorTextAndRename("why do i exist",Color3.new(1,.4,.8),Color3.new(0.639216,0.635294,0.647059),"Cartoon")
  8322. newTheme("rbxassetid://338787394",0,1,1.5)
  8323. MAINRUINCOLOR = BrickColor.new("Pink")
  8324. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8325. end
  8326. if k == "e" and attack == false and ModeOfGlitch ~= 9032 then
  8327. ModeOfGlitch = 9032
  8328. storehumanoidWS = 45
  8329. hum.WalkSpeed = 45
  8330. rainbowmode = false
  8331. chaosmode = false
  8332. RecolorTextAndRename("DREAM", Color3.new(0,0,0),Color3.fromRGB(255, 0, 191),"Fantasy")
  8333. newTheme("rbxassetid://1273944801",0,1,1)
  8334. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8335. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8336. end
  8337. if k == "r" and attack == false and ModeOfGlitch ~= 0010 then
  8338. ModeOfGlitch = 0010
  8339. storehumanoidWS = 16
  8340. hum.WalkSpeed = 16
  8341. rainbowmode = false
  8342. chaosmode = false
  8343. RecolorTextAndRename("JACKAL", Color3.new(0,0,0),Color3.fromRGB(213, 115, 61),"Garamond")
  8344. newTheme("rbxassetid://701895896",0,1.01,1)
  8345. MAINRUINCOLOR = BrickColor.new("Really black")
  8346. RecolorThing(MAINRUINCOLOR,BrickColor.new("Neon orange"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8347. end
  8348. if k == "m" and attack == false and ModeOfGlitch == 201 then
  8349. ModeOfGlitch = 123666
  8350. storehumanoidWS = 16
  8351. hum.WalkSpeed = 16
  8352. rainbowmode = false
  8353. chaosmode = false
  8354. RecolorTextAndRename("THE DARK", Color3.new(0,0,0),Color3.new(.2,.2,.2),"SciFi")
  8355. newTheme("rbxassetid://563062677",0,1.01,1)
  8356. MAINRUINCOLOR = BrickColor.new("Black")
  8357. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false,false,true)
  8358. end
  8359. if k == "n" and attack == false and ModeOfGlitch == 0010 and ModeOfGlitch ~= 14234 then
  8360. ModeOfGlitch = 14234
  8361. storehumanoidWS = 16
  8362. hum.WalkSpeed = 16
  8363. rainbowmode = false
  8364. chaosmode = false
  8365. RecolorTextAndRename("PIONEER", Color3.new(0,0,0),Color3.fromRGB(170, 85, 0),"Fantasy")
  8366. newTheme("rbxassetid://478890315",0,1.01,1)
  8367. MAINRUINCOLOR = BrickColor.new("CGA brown")
  8368. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8369. end
  8370. if k == "n" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 110110100110 then
  8371. ModeOfGlitch = 110110100110
  8372. storehumanoidWS = 250
  8373. hum.WalkSpeed = 250
  8374. rainbowmode = false
  8375. chaosmode = false
  8376. RecolorTextAndRename("CHIMERA", Color3.new(0,0,0),Color3.fromRGB(89, 34, 89),"Fantasy")
  8377. newTheme("rbxassetid://2781731664",0,1.01,1)
  8378. MAINRUINCOLOR = BrickColor.new("Mulberry")
  8379. RecolorThing(MAINRUINCOLOR,BrickColor.new("Plum"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8380. end
  8381. if k == "m" and attack == false and ModeOfGlitch == 88893333388 and ModeOfGlitch ~= 808080808080808080808080 then
  8382. ModeOfGlitch = 808080808080808080808080
  8383. storehumanoidWS = 250
  8384. hum.WalkSpeed = 250
  8385. rainbowmode = false
  8386. chaosmode = false
  8387. RecolorTextAndRename("MYTHICAL",BrickColor.new("Dark indigo").Color,BrickColor.new("Really blue").Color,"Bodoni")
  8388. newThemeCust("rbxassetid://398455752",0,1.01,2)
  8389. MAINRUINCOLOR = BrickColor.new("Really blue")
  8390. bosschatfunc("Are you gonna stop now or what?",MAINRUINCOLOR.Color,1)
  8391. disably = false
  8392. warnedpeople("SYNTH ONBOUND!","Arcade",BrickColor.new("Alder").Color,BrickColor.new("Pastel light blue").Color)
  8393. disably = true
  8394. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,0,BrickColor.new("Alder"),0,BrickColor.new("Pastel light blue"),true)
  8395. end
  8396. if k == "m" and attack == false and ModeOfGlitch == 8889 then
  8397. ModeOfGlitch = 88893333388
  8398. storehumanoidWS = 200
  8399. hum.WalkSpeed = 200
  8400. rainbowmode = false
  8401. chaosmode = false
  8402. RecolorTextAndRename("CATASTROPHE",BrickColor.new("Royal purple").Color,BrickColor.new("Really blue").Color,"Bodoni")
  8403. newThemeCust("rbxassetid://1504604335",0,1.01,1.5)
  8404. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8405. bosschatfunc("Evenly with your rejections.",MAINRUINCOLOR.Color,1)
  8406. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8407. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8408. end
  8409. if k == "m" and attack == false and ModeOfGlitch == 3 then
  8410. ModeOfGlitch = 33666666666
  8411. storehumanoidWS = 12
  8412. hum.WalkSpeed = 12
  8413. rainbowmode = false
  8414. chaosmode = false
  8415. RecolorTextAndRename("CRIMSON",BrickColor.new("Crimson").Color,Color3.new(0.7,0,0),"Antique")
  8416. newTheme("rbxassetid://338871337",0,1.01,1.5)
  8417. MAINRUINCOLOR = BrickColor.new("Crimson")
  8418. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8419. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8420. end
  8421. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 664663666 then
  8422. ModeOfGlitch = 664663666
  8423. storehumanoidWS = 16
  8424. hum.WalkSpeed = 16
  8425. rainbowmode = false
  8426. chaosmode = false
  8427. RecolorTextAndRename("INFINITE POWER",Color3.new(0.1,0,0),Color3.new(0.25,0,0),"Antique")
  8428. newThemeCust("rbxassetid://697467525",0,1,1.5)
  8429. MAINRUINCOLOR = BrickColor.new("Maroon")
  8430. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8431. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8432. end
  8433. if k == "n" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 765688533321 then
  8434. ModeOfGlitch = 765688533321
  8435. storehumanoidWS = 260
  8436. hum.WalkSpeed = 260
  8437. rainbowmode = false
  8438. chaosmode = false
  8439. RecolorTextAndRename("UNSTABLE",Color3.new(1,1,1),Color3.new(1,0,0),"Arcade")
  8440. newTheme("rbxassetid://899090278",0,1.005,1.75)
  8441. MAINRUINCOLOR = BrickColor.new("Really black")
  8442. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8443. RecolorThing(BrickColor.new("Institutional white"),BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,0,BrickColor.new("Crimson"),0,BrickColor.new("Really black"),true,true)
  8444. end
  8445. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8446. ModeOfGlitch = 55469696922
  8447. storehumanoidWS = 275
  8448. hum.WalkSpeed = 275
  8449. rainbowmode = false
  8450. chaosmode = false
  8451. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8452. newTheme("rbxassetid://582020393",0,1.005,1.25)
  8453. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8454. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8455. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8456. end
  8457. if k == "n" and attack == false and ModeOfGlitch == 9032 then
  8458. ModeOfGlitch = 4367677813
  8459. storehumanoidWS = 50
  8460. hum.WalkSpeed = 50
  8461. rainbowmode = false
  8462. chaosmode = false
  8463. --RecolorTextAndRename("DREAMER",Color3.new(0,0,0),BrickColor.new("Pink").Color,"Garamond")
  8464. RecolorTextAndRename("EAR SPLITTER",Color3.new(0,1,1),BrickColor.new("Hot pink").Color,"Garamond")
  8465. newTheme("rbxassetid://634255007",0,1,1.25)
  8466.  
  8467. --newTheme("rbxassetid://2483763576",0,1.01,1.25)
  8468. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8469. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8470. RecolorThing(MAINRUINCOLOR,BrickColor.new("Toothpaste"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8471. end
  8472. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8473. ModeOfGlitch = 999999999556
  8474. storehumanoidWS = 500
  8475. hum.WalkSpeed = 500
  8476. rainbowmode = false
  8477. chaosmode = false
  8478. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8479. newTheme("rbxassetid://719008519",0,1.02,1.25)
  8480. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8481. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8482. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,0,BrickColor.new("Navy blue"),0,BrickColor.new("Really blue"),true,true)
  8483. end
  8484. --[[if k == "n" and attack == false and ModeOfGlitch == 5 then
  8485. ModeOfGlitch = 0.110110101100001011000110110100001101001011011100110010101110011 -- machines in binary
  8486. storehumanoidWS = 16
  8487. hum.WalkSpeed = 16
  8488. rainbowmode = false
  8489. chaosmode = false
  8490. RecolorTextAndRename("MECHANICAL",Color3.new(0,0,.3),BrickColor.new("Really black").Color,"SciFi")
  8491. newTheme("rbxassetid://539526132",0,1.01,1.5)
  8492. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8493. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8494. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  8495. end]]
  8496. if k == "n" and attack == false and ModeOfGlitch == 5 then
  8497. ModeOfGlitch = 666
  8498. storehumanoidWS = 16
  8499. hum.WalkSpeed = 16
  8500. rainbowmode = false
  8501. chaosmode = false
  8502. RecolorTextAndRename("ARSONIST",BrickColor.new("Flame reddish orange").Color,Color3.new(1,0,0),"SciFi")
  8503. newTheme("rbxassetid://2622961126",0,1,1.5)
  8504. MAINRUINCOLOR = BrickColor.new("Flame reddish orange")
  8505. warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  8506. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false,false,false,true)
  8507. end
  8508. if k == "l" and mutedtog == false then
  8509. mutedtog = true
  8510. kan.Volume = 0
  8511. elseif k == "l" and mutedtog == true then
  8512. mutedtog = false
  8513. kan.Volume = 1.25
  8514. end
  8515. if k == "p" and toggleTag == false then
  8516. toggleTag = true
  8517. modet.TextTransparency = 0
  8518. modet.TextStrokeTransparency = 0
  8519. elseif k == "p" and toggleTag == true then
  8520. toggleTag = false
  8521. modet.TextTransparency = 1
  8522. modet.TextStrokeTransparency = 1
  8523. end
  8524. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8525. ExtinctiveHeartbreak()
  8526. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8527. HeavenlyDisk()
  8528. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8529. CorruptionEvent()
  8530. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8531. RapidBurst()
  8532. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8533. --DivineLights()
  8534. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8535. EquinoxOrbs()
  8536. elseif k == "z" and attack == false and ModeOfGlitch == 7 then
  8537. roldbeam()
  8538. elseif k == "z" and attack == false and ModeOfGlitch == 123666 then
  8539. CrystalSlam()
  8540. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8541. FallenOrbs()
  8542. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8543. SHDTwist()
  8544. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8545. CalMets()
  8546. end
  8547. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8548. FallenDEMISE()
  8549. end
  8550. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8551. EndGROUND()
  8552. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8553. EternalChaosOrb()
  8554. elseif k == "x" and attack == false and ModeOfGlitch == 123666 then
  8555. YourLastPurpleSight()
  8556. elseif k == "x" and attack == false and ModeOfGlitch == 8 then
  8557. ExtCalbeam()
  8558. end
  8559. if k == "b" and attack == false and ModeOfGlitch==67966 then
  8560. ArcaneTaunt()
  8561. elseif k == "b" and attack == false and ModeOfGlitch==201 then
  8562. WanderTaunt()
  8563. elseif k == "b" and attack == false and ModeOfGlitch == 696969 then
  8564. SuckySuckyImGonnaGiveYouAFuckiFucki()
  8565. end
  8566. end)
  8567.  
  8568. coroutine.resume(coroutine.create(function()
  8569. while true do
  8570. swait()
  8571. if ModeOfGlitch == 2 or ModeOfGlitch == 3 or ModeOfGlitch == 7 or ModeOfGlitch == 67966 then
  8572. 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)
  8573. end
  8574. if ModeOfGlitch == 6 or ModeOfGlitch == 9 or ModeOfGlitch == 8 or ModeOfGlitch == 88893333388 or ModeOfGlitch == 664663666 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 765688533321 or ModeOfGlitch == 808080808080808080808080 then
  8575. sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,MAINRUINCOLOR,0)
  8576. if ModeOfGlitch == 765688533321 then
  8577. sphereMK(7.5,math.random(-50,-15)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),50,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,BrickColor.new("Really red"),0)
  8578. elseif ModeOfGlitch == 88893333388 then
  8579. sphereMK(7.5,math.random(-50,-15)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),50,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,BrickColor.new("Really blue"),0)
  8580. elseif ModeOfGlitch == 808080808080808080808080 then
  8581. sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-125,125),-10,math.random(-125,125))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),3,3,50,-0.03,BrickColor.new("Alder"),0)
  8582. end
  8583. end
  8584. end
  8585. end))
  8586. --[[coroutine.resume(coroutine.create(function()
  8587. while true do
  8588. swait(2)
  8589. if chaosmode == true then
  8590. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8591. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8592. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8593. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  8594. for i, v in pairs(mw1:GetChildren()) do
  8595. if v:IsA("BasePart") then
  8596. v.Transparency = 0.75
  8597. v.BrickColor = BrickColor.random()
  8598. v.Material = "Neon"
  8599. end
  8600. end
  8601. for i, v in pairs(m2:GetChildren()) do
  8602. if v:IsA("BasePart") then
  8603. v.BrickColor = BrickColor.random()
  8604. v.Material = "Neon"
  8605. end
  8606. end
  8607. end
  8608. end
  8609. end))]]--
  8610. Humanoid.Name = "STARGLITCHER"
  8611. Humanoid.MaxHealth = math.huge
  8612. Humanoid.Health = math.huge
  8613. Instance.new("ForceField",char).Visible = false
  8614.  
  8615. local bguis = Instance.new("BillboardGui",tors)
  8616. bguis.Size = UDim2.new(25, 0, 25, 0)
  8617. local imgca = Instance.new("ImageLabel",bguis)
  8618. imgca.BackgroundTransparency = 1
  8619. imgca.ImageTransparency = 1
  8620. imgca.Size = UDim2.new(1,0,1,0)
  8621. imgca.Image = "rbxassetid://2344830904" --997291547,521073910,2312119891,2344830904
  8622. imgca.ImageColor3 = Color3.new(0,0,0)
  8623.  
  8624. idleanim=.4
  8625. --[[coroutine.wrap(function()
  8626. while true do
  8627. swait()
  8628. local CFtoObjectSpace = CFrame.new().toObjectSpace
  8629. local CameraDirection = CFtoObjectSpace(root.CFrame, GetClientProperty('Camera','CFrame')).lookVector.unit
  8630. Neck.C1 = Neck.C1:lerp(cf(Neck.C1.p) * angles(0, math.asin(CameraDirection.x), 0)*angles(-math.pi/2-math.asin(CameraDirection.y),0,math.pi),.2)
  8631. end
  8632. end)()]]
  8633.  
  8634. haloRot=0
  8635. haloRot2=0
  8636.  
  8637.  
  8638.  
  8639. --[[coroutine.wrap(function()
  8640. while true do
  8641. swait(5)
  8642. local names = {"shd..","THE INFECTION..","IT SPREADS..","DREAMY","WHO AM I?","WHO ARE YOU?","...","NO...","MERCY..","WHAT IS THE WORLD?","THE NIGHTMARES..","THEY HAUNT ME","SAVE ME"}
  8643.  
  8644. if ModeOfGlitch == 4367677813 then
  8645. currentPitch=math.random(85,95)/100
  8646. RecolorTextAndRename(names[math.random(1,#names)],Color3.new(0,0,0),BrickColor.new("Pink").Color,"Garamond")
  8647. end
  8648. end
  8649. end)()]]
  8650.  
  8651. local glitchMeshes = {}
  8652.  
  8653. function genGlitches()
  8654. clearGlitches()
  8655. for _,v in next, char:children() do
  8656. if(v:IsA'Part' and v.Name~='Ring')then
  8657. local mesh = v:FindFirstChildOfClass'SpecialMesh'
  8658. if(mesh)then
  8659. mesh.Parent=nil
  8660. local glitched = mesh:Clone()
  8661. glitched.Parent=v
  8662. table.insert(glitchMeshes,{Part=v,Original=mesh,New=glitched;})
  8663. else
  8664. table.insert(glitchMeshes,{Part=v,New=Instance.new("BlockMesh",v);})
  8665. end
  8666. elseif(v:IsA'Accessory' and v:FindFirstChild'Handle')then
  8667. local mesh = v.Handle:FindFirstChildOfClass'SpecialMesh'
  8668. if(mesh)then
  8669. mesh.Parent=nil
  8670. local glitched = mesh:Clone()
  8671. glitched.Parent=v.Handle
  8672. table.insert(glitchMeshes,{Part=v.Handle,Original=mesh,New=glitched;})
  8673. else
  8674. table.insert(glitchMeshes,{Part=v.Handle,New=Instance.new("BlockMesh",v.Handle);})
  8675. end
  8676. end
  8677. end
  8678. end
  8679.  
  8680. function clearGlitches()
  8681. for _,v in next, glitchMeshes do
  8682. if(v.Original)then
  8683. v.Original.Parent=v.Part
  8684. end
  8685. v.New:destroy()
  8686. end
  8687. glitchMeshes={}
  8688. end
  8689.  
  8690. function causeGlitch(intensity)
  8691. local intensity = intensity or 1
  8692. for _,v in next, glitchMeshes do
  8693. v.New.Offset=Vector3.new((math.random(-1,1)/10)*intensity,(math.random(-1,1)/10)*intensity,(math.random(-1,1)/10)*intensity)
  8694. end
  8695. end
  8696.  
  8697. local Glitching=false
  8698. local lastGlitch=tick()
  8699. local static = Instance.new("Sound")
  8700. static.Volume=5
  8701. static.SoundId='rbxassetid://1588058260'
  8702. static.Playing=true
  8703.  
  8704. coroutine.wrap(function()
  8705. while true do
  8706. swait()
  8707. if(ModeOfGlitch==666666666 or ModeOfGlitch==123321.888 or ModeOfGlitch==4 or ModeOfGlitch==5 and math.random(1,125)<10)then
  8708. if(tick()-lastGlitch>=(math.random()*2) and math.random(0,30)==1 and not Glitching)then
  8709. local mode = ModeOfGlitch
  8710. local pit = currentPitch
  8711. genGlitches()
  8712. Glitching=true
  8713. static.Parent=tors
  8714. static.TimePosition=0
  8715. wait(.1)
  8716. static.Playing=true
  8717. local start=tick()
  8718. local pit = currentPitch
  8719. repeat swait()
  8720. if(ModeOfGlitch~=mode)then break end
  8721. kan.Pitch=pit-math.random(-5,5)/10
  8722. causeGlitch((ModeOfGlitch==5 and .5))
  8723. until tick()-start>=(math.random()*2)+0.3
  8724. if(ModeOfGlitch==mode)then currentPitch=pit end
  8725.  
  8726. lastGlitch=tick()
  8727. Glitching=false
  8728. clearGlitches()
  8729. static.Parent=nil
  8730. end
  8731. end
  8732. end
  8733. end)()
  8734.  
  8735.  
  8736. while true do
  8737. --Neck.C1 = CFNew(Neck.C1.p) * CFAng(0, -asin(CameraDirection.x), 0) * (R6 and CFAng(-hpi + asin(CameraDirection.y), 0, pi) or CFAng(asin(CameraDirection.y), 0, 0))
  8738.  
  8739. if(tick()-lastMachineBreathe>1)then
  8740. lastMachineBreathe=tick()
  8741. MachineBreathePhase=(MachineBreathePhase==0 and 1 or 0)
  8742. end
  8743.  
  8744. for i = 1,#vis.r do
  8745. local right = vis.r[i]
  8746. right:TweenSize(UDim2.new(0,25,GetClientProperty(kan,'PlaybackLoudness')/(630-(i*60)),math.random(225,365)),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.05,true)
  8747. end
  8748. for i = 1,#vis.l do
  8749. local left = vis.l[i]
  8750. left:TweenSize(UDim2.new(0,25,GetClientProperty(kan,'PlaybackLoudness')/(270+(i*60)),math.random(225,365)),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.05,true)
  8751. end
  8752. ned.Rotation=90+(2.5*math.cos(sine/64)+2.5*math.sin(sine/42))
  8753. ned:TweenPosition(UDim2.new(0.5,5*math.cos(sine/64)+7*math.sin(sine/42),0.7,15*math.cos(sine/79)+12*math.sin(sine/65)),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.05,true)
  8754.  
  8755. scr.Rotation=(2.5*math.cos(sine/49)+2.5*math.sin(sine/68))
  8756. scr:TweenPosition(UDim2.new(0.5,5*math.cos(sine/78)+7*math.sin(sine/61),0.7,15*math.cos(sine/69)+12*math.sin(sine/62)),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.05,true)
  8757.  
  8758. if(not chaosmode and ModeOfGlitch ~= 4367677813)then
  8759. modet.Rotation=5*math.cos(sine/64)
  8760. circl.Rotation=circl.Rotation-1+GetClientProperty(kan,'PlaybackLoudness')/25
  8761. circl2.Rotation=circl2.Rotation+1-GetClientProperty(kan,'PlaybackLoudness')/25
  8762. local rotto=math.rad(-1+GetClientProperty(kan,'PlaybackLoudness')/25)
  8763. local rotto2=math.rad(1-GetClientProperty(kan,'PlaybackLoudness')/25)
  8764. h1weld.C1=h1weld.C1:lerp(cf(0,0,0+.1*math.sin(sine/46))*angles(0,0,haloRot+rotto),.6)
  8765. h2weld.C1=h2weld.C1:lerp(cf(0,0,0+.1*math.sin(sine/46))*angles(0,0,haloRot2+rotto2),.6)
  8766. haloRot=haloRot+rotto
  8767. haloRot2=haloRot2+rotto2
  8768. else
  8769. modet.Rotation=5*math.cos(sine/64)+math.random(-5,5)
  8770. circl.Rotation=circl.Rotation-1+GetClientProperty(kan,'PlaybackLoudness')/25+math.random(-10,5)
  8771. circl2.Rotation=circl2.Rotation+1-GetClientProperty(kan,'PlaybackLoudness')/25+math.random(-5,10)
  8772. local rotto=math.rad(-1+GetClientProperty(kan,'PlaybackLoudness')/25+math.random(-10,5))
  8773. local rotto2=math.rad(1-GetClientProperty(kan,'PlaybackLoudness')/25+math.random(-5,10))
  8774. h1weld.C1=h1weld.C1:lerp(cf(0,0,0+.1*math.sin(sine/46))*angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),haloRot+rotto),.6)
  8775. h2weld.C1=h2weld.C1:lerp(cf(0,0,0+.1*math.sin(sine/46))*angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),haloRot2+rotto2),.6)
  8776. haloRot=haloRot+rotto
  8777. haloRot2=haloRot2+rotto2
  8778. end
  8779.  
  8780. if(not kan or not kan.Parent)then
  8781. pcall(game.Destroy,kan)
  8782. local tp=0
  8783. if(kan)then tp=kan.TimePosition end
  8784. kan=Instance.new("Sound")
  8785. kan.TimePosition=tp
  8786. end
  8787. if mutedtog == false then
  8788. kan.Volume = currentVol
  8789. elseif mutedtog == true then
  8790. kan.Volume = 0
  8791. end
  8792. kan:ClearAllChildren()
  8793. kan.PlaybackSpeed = currentPitch
  8794. kan.Pitch = currentPitch
  8795. kan.SoundId = currentThemePlaying
  8796. kan.Looped = true
  8797. kan.Parent = root
  8798. kan:Resume()
  8799. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 765688533321 and ModeOfGlitch ~= 88893333388 and ModeOfGlitch ~= 808080808080808080808080 then
  8800. imgca.ImageTransparency = 1
  8801. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 765688533321 or ModeOfGlitch == 88893333388 or ModeOfGlitch == 808080808080808080808080 then
  8802. imgca.ImageColor3 = MAINRUINCOLOR.Color
  8803. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  8804. end
  8805. imgca.Rotation = imgca.Rotation + 5 + GetClientProperty(kan,"PlaybackLoudness")/25
  8806. bguis.Size = UDim2.new(15 + 3 * math.cos(sine / 30),0, 15 + 3 * math.cos(sine / 30),0)
  8807. coroutine.resume(coroutine.create(function()
  8808. if chaosmode == true then
  8809. for i, v in pairs(mw1:GetChildren()) do
  8810. if v:IsA("BasePart") then
  8811. v.Transparency = 0
  8812. v.BrickColor = BrickColor.random()
  8813. v.Material = "Neon"
  8814. end
  8815. end
  8816. Halo1.Color=BrickColor.random().Color
  8817. Halo2.Color=BrickColor.random().Color
  8818. if(TcGauntlet)then
  8819. for i,v in pairs(TcGauntlet:GetChildren())do
  8820. if v.Name == "1" then
  8821. v.Color=BrickColor.random().Color
  8822. elseif v.Name == "2" then
  8823. v.Color=BrickColor.random().Color
  8824. end
  8825. end
  8826. end
  8827. if(NebBand)then
  8828. for i,v in pairs(NebBand:GetChildren())do
  8829. if v.Name == "1" then
  8830. v.Color=BrickColor.random().Color
  8831. elseif v.Name == "2" then
  8832. v.Color=BrickColor.random().Color
  8833. end
  8834. end
  8835. end
  8836. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8837. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8838. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8839. for i = 1,#vis.l do
  8840. local left = vis.l[i]
  8841. left.BackgroundColor3=BrickColor.random().Color
  8842. left.BorderColor3=BrickColor.random().Color
  8843. end
  8844. left.BackgroundColor3=BrickColor.random().Color
  8845.  
  8846. RecolorTextAndRename("HOPELESS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  8847. end
  8848. end))
  8849.  
  8850. if rainbowmode == true then
  8851. circl.ImageColor3 = Color3.new(r/255,g/255,b/255)
  8852. scr.TextStrokeColor3 = Color3.new(r/255,g/255,b/255)
  8853. modet.TextColor3 = Color3.new(r/255,g/255,b/255)
  8854. ned.TextColor3 = Color3.new(r/255,g/255,b/255)
  8855. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  8856. Halo1.Color=Color3.new(r/255,g/255,b/255)
  8857. Halo2.Color=Color3.new(r/255,g/255,b/255)
  8858. for i = 1,#vis.r do
  8859. local right = vis.r[i]
  8860. right.BackgroundColor3=Color3.new(r/255,g/255,b/255)
  8861. end
  8862. for i = 1,#vis.l do
  8863. local left = vis.l[i]
  8864. left.BackgroundColor3=Color3.new(r/255,g/255,b/255)
  8865. end
  8866. right.BackgroundColor3=Color3.new(r/255,g/255,b/255)
  8867. left.BackgroundColor3=Color3.new(r/255,g/255,b/255)
  8868. if(TcGauntlet)then
  8869. for i,v in pairs(TcGauntlet:GetChildren())do
  8870. if v.Name == "1" then
  8871. v.Color=Color3.new(r/255,g/255,b/255)
  8872. elseif v.Name == "2" then
  8873. v.Color=Color3.new(r/255,g/255,b/255)
  8874. end
  8875. end
  8876. end
  8877. if(NebBand)then
  8878. for i,v in pairs(NebBand:GetChildren())do
  8879. if v.Name == "1" then
  8880. v.Color=Color3.new(r/255,g/255,b/255)
  8881. elseif v.Name == "2" then
  8882. v.Color=Color3.new(r/255,g/255,b/255)
  8883. end
  8884. end
  8885. end
  8886.  
  8887. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  8888. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  8889. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  8890. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  8891. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  8892. for i, v in pairs(mw1:GetChildren()) do
  8893. if v:IsA("BasePart") then
  8894. v.Color = Color3.new(r/255,g/255,b/255)
  8895. end
  8896. end
  8897. for i, v in pairs(mw2:GetChildren()) do
  8898. if v:IsA("BasePart") then
  8899. v.Color = Color3.new(r/255,g/255,b/255)
  8900. end
  8901. end
  8902. end
  8903.  
  8904.  
  8905. CameraManager()
  8906. swait()
  8907. if ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 then
  8908. 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)
  8909. 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)
  8910. 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)
  8911. 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)
  8912. 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)
  8913. 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)
  8914. elseif ModeOfGlitch == 808080808080808080808080 or ModeOfGlitch == 765688533321 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 999999999556 then
  8915. 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)
  8916. 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)
  8917. 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)
  8918. 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)
  8919. 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)
  8920. 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)
  8921. lwing4weld.C1=clerp(lwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*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)
  8922. lwing5weld.C1=clerp(lwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*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)
  8923. lwing6weld.C1=clerp(lwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*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)
  8924. rwing4weld.C1=clerp(rwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*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)
  8925. rwing5weld.C1=clerp(rwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*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)
  8926. rwing6weld.C1=clerp(rwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*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)
  8927. else
  8928. lwing1weld.C1 = clerp(lwing1weld.C1, cf(-1, 1 + .3 * math.cos(sine/36), 0) * cf(-1, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(85)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(12.5 + 5 * math.cos(sine / 32))), 0.3)
  8929. lwing2weld.C1 = clerp(lwing2weld.C1, cf(1, 2 + .3 * math.cos(sine/36), 0) * cf(-1, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(85)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(25 + 7.5 * math.cos(sine / 32))), 0.3)
  8930. lwing3weld.C1 = clerp(lwing3weld.C1, cf(2.75, 2 + .3 * math.cos(sine/36), 0) * cf(-1, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(85)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(37.5 + 10 * math.cos(sine / 32))), 0.3)
  8931. lwing4weld.C1 = clerp(lwing4weld.C1, cf(4.75, 3 + .3 * math.cos(sine/36), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(50 + 12.5 * math.cos(sine / 32))), 0.3)
  8932. lwing5weld.C1 = clerp(lwing5weld.C1, cf(5.75, 4 + .3 * math.cos(sine/36), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(62.5 + 15 * math.cos(sine / 32))), 0.3)
  8933. lwing6weld.C1 = clerp(lwing6weld.C1, cf(6.75, 5 + .3 * math.cos(sine/36), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(75 + 17.5 * math.cos(sine / 32))), 0.3)
  8934.  
  8935. rwing1weld.C1 = clerp(rwing1weld.C1, cf(1, 1 + .3 * math.cos(sine/36), 0) * cf(1, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-85)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(-12.5 - 5 * math.cos(sine / 32))), 0.3)
  8936. rwing2weld.C1 = clerp(rwing2weld.C1, cf(-1, 2 + .3 * math.cos(sine/36), 0) * cf(1, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-85)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(-25 - 7.5 * math.cos(sine / 32))), 0.3)
  8937. rwing3weld.C1 = clerp(rwing3weld.C1, cf(-2.75, 2 + .3 * math.cos(sine/36), 0) * cf(1, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-85)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(-37.5 - 10 * math.cos(sine / 32))), 0.3)
  8938. rwing4weld.C1 = clerp(rwing4weld.C1, cf(-4.75, 3 + .3 * math.cos(sine/36), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(-50 - 12.5 * math.cos(sine / 32))), 0.3)
  8939. rwing5weld.C1 = clerp(rwing5weld.C1, cf(-5.75, 4 + .3 * math.cos(sine/36), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(-62.5 - 15 * math.cos(sine / 32))), 0.3)
  8940. rwing6weld.C1 = clerp(rwing6weld.C1, cf(-6.75, 5 + .3 * math.cos(sine/36), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(-75 - 17.5 * math.cos(sine / 32))), 0.3)
  8941.  
  8942. end
  8943. sine = sine + change
  8944. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  8945. local velderp=RootPart.Velocity.y
  8946. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  8947. coroutine.resume(coroutine.create(function()
  8948. if ModeOfGlitch == 9 then
  8949. if hitfloor ~= nil then
  8950. sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
  8951. end
  8952. end
  8953. if ModeOfGlitch == 123321.888 or ModeOfGlitch==666666666 then
  8954. if hitfloor ~= nil then
  8955. sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Crimson"),'Granite')
  8956. end
  8957. end
  8958. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 664663666 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 765688533321 or ModeOfGlitch == 88893333388 or ModeOfGlitch == 808080808080808080808080 then
  8959. if hitfloor ~= nil then
  8960. effar.Enabled = true
  8961. effar.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8962. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,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.01,0.01),math.random(5,50)/250,BrickColor.new("White"))
  8963. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 88893333388 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 765688533321 or ModeOfGlitch == 808080808080808080808080 then
  8964. slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,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.01,0.01),math.random(5,150)/250,MAINRUINCOLOR)
  8965. end
  8966. if ModeOfGlitch == 808080808080808080808080 then
  8967. slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,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.01,0.01),math.random(5,350)/250,BrickColor.new("Alder"))
  8968. elseif ModeOfGlitch == 765688533321 then
  8969. slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,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.01,0.01),math.random(5,350)/250,BrickColor.new("Really red"))
  8970. elseif ModeOfGlitch == 1264532489 then
  8971. slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,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.01,0.01),math.random(5,350)/250,BrickColor.new("Deep orange"))
  8972. elseif ModeOfGlitch == 999999999556 then
  8973. slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,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.01,0.01),math.random(5,350)/250,BrickColor.new("Really blue"))
  8974. end
  8975. elseif hitfloor == nil then
  8976. effar.Enabled = false
  8977. end
  8978. elseif ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 664663666 and ModeOfGlitch ~= 88893333388 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 and ModeOfGlitch ~= 765688533321 and ModeOfGlitch ~= 808080808080808080808080 then
  8979. effar.Enabled = false
  8980. end
  8981. end))
  8982. if equipped==true or equipped==false then
  8983. if attack==false then
  8984. idle=idle+1
  8985. else
  8986. idle=0
  8987. end
  8988. if idle>=500 then
  8989. if attack==false then
  8990. --Sheath()
  8991. end
  8992. end
  8993. if RootPart.Velocity.y > 1 and hitfloor==nil then
  8994. Anim="Jump"
  8995. change=1
  8996. if attack==false then
  8997. 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)
  8998. 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)
  8999. 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)
  9000. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9001. 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)
  9002. 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)
  9003. BladesWeld.C0 = clerp(BladesWeld.C0,CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),0.1)
  9004. end
  9005. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9006. Anim="Fall"
  9007. change=1
  9008. if attack==false then
  9009. 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)
  9010. 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)
  9011. 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)
  9012. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9013. 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)
  9014. 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)
  9015. BladesWeld.C0 = clerp(BladesWeld.C0,CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),0.1)
  9016. end
  9017. elseif torvel<1 and hitfloor~=nil then
  9018. Anim="Idle"
  9019. change=1
  9020. if attack==false then
  9021. if ModeOfGlitch == 1 then
  9022. local snap = math.random(1,10)
  9023. local Alpha = .1
  9024. RootJoint.C0 = RootJoint.C0:lerp(cf(0,.5+.3*math.cos(sine/32),0)*angles(math.rad(0),math.rad(10),math.rad(0))*RootCF,Alpha)
  9025. LH.C0 = LH.C0:lerp(cf(-0.9,-0.7+0.05*math.cos(sine/32),-0.2)*angles(math.rad(-6.3),math.rad(26.1),math.rad(-6.3))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9026. RH.C0 = RH.C0:lerp(cf(1,-0.1+0.05*math.cos(sine/32),-1)*angles(math.rad(-14.8),math.rad(-2.6),math.rad(-0.3))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9027. LW.C0 = LW.C0:lerp(cf(-1.3,0.4+0.05*math.cos(sine/32),0.7)*angles(math.rad(-35),math.rad(0),math.rad(40+2*math.cos(sine/32))),Alpha)
  9028. RW.C0 = RW.C0:lerp(cf(1.5,0.7+0.05*math.cos(sine/32),0.1)*angles(math.rad(9.1),math.rad(-23.4),math.rad(21.9+2*math.cos(sine/32))),Alpha)
  9029. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.1,0,0.2)*angles(math.rad(-5.9),math.rad(-10.4),math.rad(3.9))*necko,Alpha)
  9030.  
  9031. elseif ModeOfGlitch == 2 then
  9032. 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(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  9033. 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(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1)
  9035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1)
  9036. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9037. 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)
  9038. elseif ModeOfGlitch == 3 then
  9039. 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))), 0.1)
  9040. 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 + 1 * math.cos(sine / 34))), 0.1)
  9041. 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(-20)), 0.1)
  9042. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1)
  9043. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(-20), math.rad(30 + 2.5 * math.cos(sine / 25))), 0.1)
  9044. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
  9045. elseif ModeOfGlitch == 4 then
  9046. local snap = math.random(1,5)
  9047. if snap == 1 then
  9048. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  9049. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9050. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9051. end
  9052. 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(25 - 2 * math.cos(sine / 32))),.1)
  9053. 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(-25 + 2 * math.cos(sine / 32))),.1)
  9054. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9055. 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)
  9056. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
  9057. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  9058. elseif ModeOfGlitch == 5 then
  9059. 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)
  9060. 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)
  9061. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 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(-10)),.1)
  9062. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
  9063. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1)
  9064. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  9065. elseif ModeOfGlitch == 6 then
  9066. 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)
  9067. 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)
  9068. 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(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9069. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9070. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  9071. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
  9072. elseif ModeOfGlitch == 7 then
  9073. 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(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  9074. 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(-0.5),math.rad(10 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9075. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10 + 3 * math.cos(sine / 42))),.1)
  9076. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(10 + 1 * math.cos(sine / 53))),.1)
  9077. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9078. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(170 - 7 * math.cos(sine / 66)),math.rad(2 - 1 * math.cos(sine / 56)),math.rad(12 - 1 * math.cos(sine / 45))),.1)
  9079. elseif ModeOfGlitch == 67966 then
  9080. RH.C0=clerp(RH.C0,cf(1,-.6,-.2)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6 - 3 * math.sin(sine / 16)),math.rad(0),math.rad(-3 - 3 * math.sin(sine / 16))),.1)
  9081. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6 - 3 * math.sin(sine / 16)),math.rad(0),math.rad(3 - 3 * math.sin(sine / 16))),.1)
  9082. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,.3 + .3 * math.cos(sine / 16))*angles(math.rad(1 - 1 * math.cos(sine / 16)),math.rad(0),math.rad(0 - 6 * math.cos(sine / 56))),.1)
  9083. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-3 - 5 * math.sin(sine / 16)),math.rad(0),math.rad(0)),.1)
  9084. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.2 * math.sin(sine / 16),0.45)*angles(math.rad(-33 - 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  9085. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.2 * math.sin(sine / 16),0.45)*angles(math.rad(-23 + 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  9086. elseif ModeOfGlitch == 123666 then
  9087. local Alpha = .1
  9088. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0+.1*math.cos(sine/52),0)*angles(math.rad(14.9),math.rad(-20.1),math.rad(5.2))*RootCF,Alpha)
  9089. LH.C0 = LH.C0:lerp(cf(-1,-0.9-.1*math.cos(sine/52),0.3)*angles(math.rad(-14),math.rad(20.7),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9090. RH.C0 = RH.C0:lerp(cf(1,-1-.1*math.cos(sine/52),-0.2)*angles(math.rad(-27.4),math.rad(-13.4),math.rad(10))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9091. LW.C0 = LW.C0:lerp(cf(-1.5,0.6+.1*math.sin(sine/52),0.2)*angles(math.rad(-14),math.rad(20.7),math.rad(-7.1)),Alpha)
  9092. RW.C0 = RW.C0:lerp(cf(1.5,0.1+.05*math.cos(sine/52),-0.1)*angles(math.rad(-166-3*math.cos(sine/52)-3*math.sin(sine/52)),math.rad(0),math.rad(0)),Alpha)
  9093. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.1,0.3)*angles(math.rad(-14),math.rad(20.7),math.rad(0))*necko,Alpha)
  9094. AeshW.C0 = AeshW.C0:lerp(cf(0.1,-1.1+(.1*math.sin(sine/52))+(.1*math.cos(sine/52)),-1.5)*angles(math.rad(174.9+3*math.cos(sine/52)+3*math.sin(sine/52)),math.rad(90),math.rad(0)),Alpha)
  9095. elseif ModeOfGlitch == 9 then
  9096. local snap = math.random(1,32)
  9097. if snap == 1 then
  9098. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 + math.random(-3,3)),math.rad(math.random(-3,3)),math.rad(-53 + math.random(-3,3))),1)
  9099. end
  9100. local colors = {BrickColor.new'Earth green',BrickColor.new'Bright green',BrickColor.new'Lime green',BrickColor.new'Forest green',BrickColor.new'Camo'}
  9101. PixelBlockX(5,0.25,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,colors[math.random(1,#colors)],0)
  9102. 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(-20),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  9103. 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(9),math.rad(8 + 2 * math.cos(sine / 32))),.1)
  9104. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 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(43)),.1)
  9105. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 55)),math.rad(-43)),.1)
  9106. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 11 * math.cos(sine / 73)),math.rad(18 - 6 * math.cos(sine / 57)),math.rad(17 + 5 * math.cos(sine / 52))),.1)
  9107. LW.C0=clerp(LW.C0,cf(-1.2,0.85 + 0.025 * math.cos(sine / 45),-0.65)*angles(math.rad(170 - 1 * math.cos(sine / 70)),math.rad(-3 - 1 * math.cos(sine / 59)),math.rad(47 - 1 * math.cos(sine / 60))),.1)
  9108. elseif ModeOfGlitch == 666666666 then
  9109. local Alpha = .1
  9110. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0+ 0.02 * math.cos(sine / 32),0)*angles(math.rad(-29.2-1 * math.cos(sine / 54)),math.rad(0),math.rad(0))*RootCF,Alpha)
  9111. LH.C0 = LH.C0:lerp(cf(-1,-1.1- 0.02 * math.cos(sine / 32),-0.1)*angles(math.rad(29.2+1 * math.cos(sine / 54)),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9112. RH.C0 = RH.C0:lerp(cf(1,-1.1- 0.02 * math.cos(sine / 32),-0.1)*angles(math.rad(29.2+1 * math.cos(sine / 54)),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9113. LW.C0 = LW.C0:lerp(cf(-1.4,1+ 0.05 * math.sin(sine / 32),-0.1)*angles(math.rad(180),math.rad(0),math.rad(50)),Alpha)
  9114. RW.C0 = RW.C0:lerp(cf(1.4,1+ 0.05 * math.sin(sine / 32),-0.1)*angles(math.rad(180),math.rad(0),math.rad(-50)),Alpha)
  9115. if math.random(1,32) == 1 then
  9116. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(math.random(-15,15)),0),1)
  9117. else
  9118. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  9119. end
  9120. elseif ModeOfGlitch == 666 then
  9121. local Alpha = .1
  9122. local val = math.random(50,75)/100
  9123. SphereX(math.random(15,55)/10,math.random(3,30)/100,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),val,val,val,val/100,MAINRUINCOLOR,0)
  9124. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0+ 0.05 * math.cos(sine / 36),0)*angles(math.rad(0),math.rad(0),math.rad(0))*RootCF,Alpha)
  9125. LH.C0 = LH.C0:lerp(cf(-1,-1-0.05 * math.cos(sine / 36),0.1)*angles(math.rad(0.7),math.rad(9),math.rad(-4.7))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9126. RH.C0 = RH.C0:lerp(cf(1,-1-0.05 * math.cos(sine / 36),0.1)*angles(math.rad(0.5),math.rad(-8.8),math.rad(3.5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9127. LW.C0 = LW.C0:lerp(cf(-0.7,0.7+ 0.1 * math.sin(sine / 36),-0.6)*angles(math.rad(107.7+2*math.sin(sine/36)),math.rad(-4.8),math.rad(75.9)),Alpha)
  9128. RW.C0 = RW.C0:lerp(cf(1.4,0.6+ 0.1 * math.sin(sine / 36),0)*angles(math.rad(0+2*math.sin(sine/36)),math.rad(0),math.rad(13.3)),Alpha)
  9129. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0.1)*angles(math.rad(-2.7+2*math.sin(sine/36)),math.rad(0),math.rad(0))*necko,Alpha)
  9130. gasW.C0 = gasW.C0:lerp(cf(0,-1.6,0.2)*angles(math.rad(-90+2*math.sin(sine/36)),math.rad(13.3),math.rad(-180)),Alpha)
  9131.  
  9132. elseif ModeOfGlitch == 123321.888 then
  9133. local Alpha = .1
  9134. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0.6+ 0.2 * math.cos(sine / 32),0)*angles(math.rad(-41.6+ 3 * math.sin(sine / 32)),math.rad(0),math.rad(0))*RootCF,Alpha)
  9135. LH.C0 = LH.C0:lerp(cf(-1,-0.9,-0.2)*angles(math.rad(-34.7+ 7 * math.sin(sine / 32)),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9136. RH.C0 = RH.C0:lerp(cf(1,0,-0.6)*angles(math.rad(-3.2+ 7 * math.sin(sine / 32)),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9137. LW.C0 = LW.C0:lerp(cf(-0.9,0.5+ 0.05 * math.sin(sine / 38),-0.2)*angles(math.rad(163.8+ 2 * math.sin(sine / 38)),math.rad(0),math.rad(30)),Alpha)
  9138. RW.C0 = RW.C0:lerp(cf(0.9,0.5+ 0.05 * math.sin(sine / 38),-0.2)*angles(math.rad(163.8+ 2 * math.sin(sine / 38)),math.rad(0),math.rad(-30)),Alpha)
  9139. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0.5)*angles(math.rad(-24.2+ 2 * math.sin(sine / 38)),math.rad(0),math.rad(0))*necko,Alpha)
  9140.  
  9141. elseif ModeOfGlitch == 8 then
  9142. 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 - 5 * math.cos(sine / 51))),.1)
  9143. 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 / 44))),.1)
  9144. 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(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  9145. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
  9146. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1)
  9147. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1)
  9148. elseif ModeOfGlitch == 0010 then
  9149. local Alpha = .1
  9150. RootJoint.C0 = RootJoint.C0:lerp(cf(-0.1,0 + 0.05 * math.cos(sine/20),-0.1)*angles(math.rad(-3.7),math.rad(60.1 + (2*math.cos(sine/32))),math.rad(1.3 + (2*math.cos(sine/64))))*RootCF,Alpha)
  9151. LH.C0 = LH.C0:lerp(cf(-1,-1- 0.05 * math.cos(sine/20),-0.1)*angles(math.rad(0),math.rad(0),math.rad(2))*angles(math.rad(0),math.rad(-90- (2*math.cos(sine/32))),math.rad(0-(2*math.cos(sine/64)))),Alpha)
  9152. RH.C0 = RH.C0:lerp(cf(1.1,-0.9- 0.05 * math.cos(sine/20),0.1)*angles(math.rad(0.7),math.rad(-20),math.rad(2.2))*angles(math.rad(0),math.rad(90- (2*math.cos(sine/32))),math.rad(0-(2*math.cos(sine/64)))),Alpha)
  9153. LW.C0 = LW.C0:lerp(cf(-0.8+0.1*math.cos(sine/32),0.1-0.1*math.cos(sine/64),-0.6)*angles(math.rad(82.9),math.rad(-10.3),math.rad(72.1)),Alpha)
  9154. RW.C0 = RW.C0:lerp(cf(1.1-0.1*math.cos(sine/32),0.3-0.1*math.cos(sine/64),-0.4)*angles(math.rad(60),math.rad(0),math.rad(-80)),Alpha)
  9155. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.2,0,0)*angles(math.rad(9.9),math.rad(-59.6),math.rad(13.6))*necko,Alpha)
  9156. elseif ModeOfGlitch == 14234 then
  9157. local Alpha = .1
  9158. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0 + 0.03 * math.cos(sine/20),0.2)*angles(math.rad(5-2*math.cos(sine/32)),math.rad(10),math.rad(0))*RootCF,Alpha)
  9159. LH.C0 = LH.C0:lerp(cf(-1,-1,-0.1)*angles(math.rad(-5+2*math.cos(sine/32)),math.rad(0),math.rad(-0.9))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9160. RH.C0 = RH.C0:lerp(cf(1,-1- 0.03 * math.cos(sine/20),0)*angles(math.rad(-5+2*math.cos(sine/32)),math.rad(-5),math.rad(-0.9))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9161. LW.C0 = LW.C0:lerp(cf(-1.5,0.4- 0.03 * math.cos(sine/20),0)*angles(math.rad(5.1-2*math.cos(sine/32)),math.rad(-0.1),math.rad(3.9)),Alpha)
  9162. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(math.rad(-9.9+4.5*math.cos(sine/32)),math.rad(0.1),math.rad(-3.9)),Alpha)
  9163. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0.3)*angles(math.rad(-10.2),math.rad(-9.8),math.rad(-1.8))*necko,Alpha)
  9164. elseif ModeOfGlitch == 33666666666 then
  9165. local Alpha = .1
  9166. RootJoint.C0 = RootJoint.C0:lerp(cf(0,3+.5*math.cos(sine/32),0.1)*angles(math.rad(32-5*math.sin(sine/32)),math.rad(0),math.rad(0))*RootCF,Alpha)
  9167. LH.C0 = LH.C0:lerp(cf(-1,-1-.1*math.sin(sine/32),0)*angles(math.rad(-14.3+15*math.sin(sine/32)),math.rad(7.6+2.5*math.sin(sine/32)),math.rad(-7.8-5*math.sin(sine/32)))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9168. RH.C0 = RH.C0:lerp(cf(0.9,-0.7-.1*math.sin(sine/32),-0.5)*angles(math.rad(-14.3+15*math.sin(sine/32)),math.rad(-12.7-2.5*math.sin(sine/32)),math.rad(7+5*math.sin(sine/32)))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9169. LW.C0 = LW.C0:lerp(cf(-1.2,0.5-.075*math.sin(sine/32),-0.1)*angles(math.rad(7.1+3*math.cos(sine/32)),math.rad(10.2),math.rad(24.2)),Alpha)
  9170. RW.C0 = RW.C0:lerp(cf(1.3,1-.075*math.sin(sine/32),-0.2)*angles(math.rad(150.3+5*math.cos(sine/32)),math.rad(0),math.rad(-32.7)),Alpha)
  9171. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0.1)*angles(math.rad(-14.3-3*math.sin(sine/32)),math.rad(0),math.rad(0))*necko,Alpha)
  9172. elseif ModeOfGlitch == 88893333388 then
  9173. 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 - 9 * math.cos(sine / 51))),.1)
  9174. 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 + 7 * math.cos(sine / 44))),.1)
  9175. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1.5 + 0.25 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(13)),.1)
  9176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(24 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-13 + 2 * math.cos(sine / 53))),.1)
  9177. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(68 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9178. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(82 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9179. elseif ModeOfGlitch == 808080808080808080808080 then
  9180. sphere2(8,"Add",rleg.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("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  9181. sphere2(8,"Add",lleg.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("Alder"),BrickColor.new("Alder").Color)
  9182. 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 - 9 * math.cos(sine / 51))),.1)
  9183. 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 + 7 * math.cos(sine / 44))),.1)
  9184. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.25 * math.cos(sine / 47),0 + 0.25 * math.cos(sine / 35),7 + 1 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(13)),.1)
  9185. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(24 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-13 + 2 * math.cos(sine / 53))),.1)
  9186. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(68 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9187. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(82 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9188. elseif ModeOfGlitch == 1264532489 then
  9189. sphere2(8,"Add",rleg.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("Deep orange"),BrickColor.new("Deep orange").Color)
  9190. sphere2(8,"Add",lleg.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("Toothpaste"),BrickColor.new("Toothpaste").Color)
  9191. sphere2(8,"Add",rarm.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,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  9192. 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(-14 - 5 * math.cos(sine / 48))),.1)
  9193. 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(15 + 7 * math.cos(sine / 51))),.1)
  9194. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.25 * math.cos(sine / 43),0 - 0.25 * math.cos(sine / 53),6 + 1 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9195. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9196. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1)
  9197. 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)
  9198. elseif ModeOfGlitch == 9999999921111 then
  9199. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  9200. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  9201. 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(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1)
  9202. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9203. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1)
  9204. LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1)
  9205. elseif ModeOfGlitch == 201 then
  9206. local Alpha = .1
  9207. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0+0.2*math.cos(sine/14),0)*angles(math.rad(0),math.rad(-65),math.rad(-1+(2*math.cos(sine/28))))*RootCF,Alpha)
  9208. LH.C0 = LH.C0:lerp(cf(-0.8,-1-0.2*math.cos(sine/14),0.3)*angles(math.rad(3.5),math.rad(34.8),math.rad(-6.1))*angles(math.rad(0),math.rad(-90),math.rad(0-(2*math.cos(sine/28)))),Alpha)
  9209. RH.C0 = RH.C0:lerp(cf(0.9,-0.8-0.2*math.cos(sine/14),0.2)*angles(math.rad(0),math.rad(-25),math.rad(15))*angles(math.rad(0),math.rad(90),math.rad(0-(2*math.cos(sine/28)))),Alpha)
  9210. LW.C0 = LW.C0:lerp(cf(-1.6,0.4,0)*angles(math.rad(25),math.rad(0),math.rad(10-5*math.cos(sine/14))),Alpha)
  9211. RW.C0 = RW.C0:lerp(cf(1.4,0.5,0.1)*angles(math.rad(11.5),math.rad(-29.5),math.rad(10.7+5*math.cos(sine/14))),Alpha)
  9212. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.1,0,0)*angles(math.rad(-8.4),math.rad(54.7),math.rad(8.1))*necko,Alpha)
  9213. BladesWeld.C0 = clerp(BladesWeld.C0,CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),0.1)
  9214. elseif ModeOfGlitch == 666666 then
  9215. local Alpha = .1
  9216. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0+0.3*math.cos(sine/12),-0.1)*angles(math.rad(-10),math.rad(0),math.rad(0))*RootCF,Alpha)
  9217. LH.C0 = LH.C0:lerp(cf(-1.1,-1.1-0.3*math.cos(sine/12),0.2)*angles(math.rad(10),math.rad(20),math.rad(-5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9218. RH.C0 = RH.C0:lerp(cf(1.1,-1.1-0.3*math.cos(sine/12),0.1)*angles(math.rad(10),math.rad(-10),math.rad(5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9219. LW.C0 = LW.C0:lerp(cf(-1.6,0.5,-0.1)*angles(math.rad(15),math.rad(0),math.rad(-25-5*math.cos(sine/12))),Alpha)
  9220. RW.C0 = RW.C0:lerp(cf(1.6,0.5,-0.1)*angles(math.rad(15),math.rad(0),math.rad(25+5*math.cos(sine/12))),Alpha)
  9221. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.3,0.5)*angles(math.rad(-30+2*math.cos(sine/12)),math.rad(0),math.rad(0))*necko,Alpha)
  9222. elseif ModeOfGlitch == 22666 then
  9223. local Alpha = .1
  9224. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0.2)*angles(math.rad(10+20*math.cos(sine/22)),math.rad(0),math.rad(0))*RootCF,Alpha)
  9225. LH.C0 = LH.C0:lerp(cf(-1,-1,0.2+.2*math.cos(sine/22))*angles(math.rad(-10-20*math.cos(sine/22)),math.rad(15),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9226. RH.C0 = RH.C0:lerp(cf(1,-1,0.2+.2*math.cos(sine/22))*angles(math.rad(-10-20*math.cos(sine/22)),math.rad(-20),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9227. LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0.1)*angles(math.rad(-15+70*math.cos(sine/22)),math.rad(0),math.rad(0)),Alpha)
  9228. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0.1)*angles(math.rad(-15+70*math.cos(sine/22)),math.rad(0),math.rad(0)),Alpha)
  9229. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  9230. elseif ModeOfGlitch == 110110100110 then
  9231. local Alpha = .1
  9232. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0 + 0.3 * math.cos(sine/10),0)*angles(math.rad(-5),math.rad(0),math.rad(0))*RootCF,Alpha)
  9233. LH.C0 = LH.C0:lerp(cf(-1,-1-.3 * math.cos(sine/10),-0.1)*angles(math.rad(5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9234. RH.C0 = RH.C0:lerp(cf(1,-1-.3 * math.cos(sine/10),0.1)*angles(math.rad(5),math.rad(-20),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9235. LW.C0 = LW.C0:lerp(cf(-1,0.5+ 0.2 * math.cos(sine/10),-0.6)*angles(math.rad(-22.6),math.rad(7.8),math.rad(118.7)),Alpha)
  9236. RW.C0 = RW.C0:lerp(cf(1.2,0.2+ 0.2 * math.cos(sine/10),0.4)*angles(math.rad(-35),math.rad(0),math.rad(-30)),Alpha)
  9237. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.2,0.2)*angles(math.rad(-15),math.rad(0),math.rad(0))*necko,Alpha)
  9238. elseif ModeOfGlitch == 0.110110101100001011000110110100001101001011011100110010101110011 then
  9239. local Alpha = .03
  9240. if(MachineBreathePhase==0)then
  9241. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(6.6),math.rad(0),math.rad(0))*RootCF,Alpha)
  9242. LH.C0 = LH.C0:lerp(cf(-1,-1,-0.2)*angles(math.rad(-6.6),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9243. RH.C0 = RH.C0:lerp(cf(1,-1,-0.2)*angles(math.rad(-6.6),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9244. LW.C0 = LW.C0:lerp(cf(-1.5,0.6,0.1)*angles(math.rad(-9.4),math.rad(0),math.rad(-5)),Alpha)
  9245. RW.C0 = RW.C0:lerp(cf(1.5,0.6,0.1)*angles(math.rad(-9.4),math.rad(0),math.rad(5)),Alpha)
  9246. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,-0.1)*angles(math.rad(4.6),math.rad(0),math.rad(0))*necko,Alpha)
  9247. else
  9248. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0.1,0)*angles(math.rad(-3.1),math.rad(0),math.rad(0))*RootCF,Alpha)
  9249. LH.C0 = LH.C0:lerp(cf(-1,-1.1,0)*angles(math.rad(3.1),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9250. RH.C0 = RH.C0:lerp(cf(1,-1.1,0)*angles(math.rad(3.1),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9251. LW.C0 = LW.C0:lerp(cf(-1.4,0.4,-0.1)*angles(math.rad(14),math.rad(0),math.rad(5)),Alpha)
  9252. RW.C0 = RW.C0:lerp(cf(1.5,0.4,-0.1)*angles(math.rad(14),math.rad(0),math.rad(-5)),Alpha)
  9253. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  9254. end
  9255.  
  9256. elseif ModeOfGlitch == 696969 then
  9257. local Alpha = .15
  9258. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-1-1.4*math.cos(sine/6),0-1.4*math.cos(sine/12))*angles(math.rad(0+70*math.cos(sine/12)),math.rad(0),math.rad(0))*RootCF,Alpha)
  9259. LH.C0 = LH.C0:lerp(cf(-1,-1,0)*angles(math.rad(0-140*math.cos(sine/12)),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9260. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0-140*math.cos(sine/12)),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9261. LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*angles(math.rad(0-140*math.cos(sine/12)),math.rad(0),math.rad(0)),Alpha)
  9262. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(math.rad(0-140*math.cos(sine/12)),math.rad(0),math.rad(0)),Alpha)
  9263. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  9264. elseif ModeOfGlitch == 9032 then
  9265. local Alpha = .1
  9266. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0 + 0.1 * math.cos(sine/10),0)*angles(math.rad(0),math.rad(-10),math.rad(0))*RootCF,Alpha)
  9267. LH.C0 = LH.C0:lerp(cf(-1,-1- 0.1 * math.cos(sine/10),0)*angles(math.rad(0),math.rad(0),math.rad(-5))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9268. RH.C0 = RH.C0:lerp(cf(1,-1- 0.1 * math.cos(sine/10),0)*angles(math.rad(0),math.rad(0),math.rad(5))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9269. LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5-3*math.cos(sine/10))),Alpha)
  9270. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5+3*math.cos(sine/10))),Alpha)
  9271. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0+2*math.cos(sine/10)),math.rad(10),math.rad(0))*necko,Alpha)
  9272. elseif ModeOfGlitch == 765688533321 then
  9273. local snap = math.random(1,32)
  9274. if snap == 1 then
  9275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  9276. end
  9277. sphere2(8,"Add",rleg.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("Really red"),BrickColor.new("Really red").Color)
  9278. sphere2(8,"Add",lleg.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("Really black"),BrickColor.new("Really black").Color)
  9279. 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 - 2 * math.cos(sine / 39))),.1)
  9280. 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 + 6 * math.cos(sine / 31))),.1)
  9281. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.25 * math.cos(sine / 50),0 + 0.25 * math.cos(sine / 43),6 + 1 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9282. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9283. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(2 - 4 * math.cos(sine / 58)),math.rad(-65 + 1 * math.cos(sine / 45))),.1)
  9284. 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(6 - 5 * math.cos(sine / 59)),math.rad(73 - 3 * math.cos(sine / 45))),.1)
  9285. elseif ModeOfGlitch == 55469696922 then
  9286. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
  9287. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
  9288. 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(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  9289. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  9290. 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 + 14 * math.cos(sine / 45))),.1)
  9291. 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(35 - 8 * math.cos(sine / 51))),.1)
  9292. elseif ModeOfGlitch == 664663666 then
  9293. local Alpha = .1
  9294. MagicCharge(7, 0, "Add", ra.CFrame * CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 1.5, -0.005, MAINRUINCOLOR, 0, "Brick")
  9295. MagicCharge(7, 0, "Add", la.CFrame * CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 1.5, -0.005, MAINRUINCOLOR, 0, "Brick")
  9296. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0+ 0.1 * math.cos(sine/24),0)*angles(math.rad(0),math.rad(47.9),math.rad(0))*RootCF,Alpha)
  9297. LH.C0 = LH.C0:lerp(cf(-1,-1-0.1 * math.cos(sine/24),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  9298. RH.C0 = RH.C0:lerp(cf(0.8,-1-0.1 * math.cos(sine/24),0.4)*angles(math.rad(0),math.rad(-47.9),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  9299. LW.C0 = LW.C0:lerp(cf(-0.9,0.2+ 0.1 * math.sin(sine/24),0.3)*angles(math.rad(-23.4),math.rad(0),math.rad(48-5*math.cos(sine/32))),Alpha)
  9300. RW.C0 = RW.C0:lerp(cf(1.5,0.5+ 0.1 * math.sin(sine/24),-0.1)*angles(math.rad(15.5),math.rad(0),math.rad(12.5+10*math.cos(sine/32))),Alpha)
  9301. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0+1*math.sin(sine/24)),math.rad(-47.9),math.rad(0))*necko,Alpha)
  9302. elseif ModeOfGlitch == 4367677813 then
  9303. local snap = math.random(1,32)
  9304. if snap == 1 then
  9305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(32 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  9306. end
  9307. 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(-4 - 7 * math.cos(sine / 39))),.1)
  9308. 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(15 + 8 * math.cos(sine / 31))),.1)
  9309. 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(32 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9310. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9311. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 + 6 * math.cos(sine / 72)),math.rad(2 - 4 * math.cos(sine / 58)),math.rad(14 + 1 * math.cos(sine / 45))),.1)
  9312. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 - 7 * math.cos(sine / 66)),math.rad(6 - 5 * math.cos(sine / 59)),math.rad(-9 - 3 * math.cos(sine / 45))),.1)
  9313. elseif ModeOfGlitch == 999999999556 then
  9314. sphere2(8,"Add",rleg.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("Navy blue"),BrickColor.new("Navy blue").Color)
  9315. sphere2(8,"Add",lleg.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("Really black"),BrickColor.new("Really black").Color)
  9316. 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 - 6 * math.cos(sine / 39))),.1)
  9317. 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 / 45))),.1)
  9318. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.25 * math.cos(sine / 47),0 - 0.25 * math.cos(sine / 40),7 + 1 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  9319. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
  9320. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9321. 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)
  9322. end
  9323. end
  9324. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9325. Anim="Walk"
  9326. if attack==false then
  9327. if ModeOfGlitch == 201 then
  9328. change=1
  9329. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.10 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(3 - 2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(4 * math.cos(sine / 7))), 0.15)
  9330. tors.Neck.C0 = clerp(tors.Neck.C0, necko* cf(0, 0, 0 + ((1) - 1)) * angles(math.rad(0), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  9331. RH.C0 = clerp(RH.C0, cf(1, -0.8 - 0.5 * math.cos(sine / 7) / 2, 0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 25 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  9332. LH.C0 = clerp(LH.C0, cf(-1, -0.8 + 0.5 * math.cos(sine / 7) / 2, -0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 25 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  9333. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.05 * math.cos(sine / 20), 0) * angles(math.rad(65), math.rad(13 + 4.5 * math.sin(sine / 20)), math.rad(24 + 4.5 * math.sin(sine / 20))), 0.1)
  9334. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.05 * math.sin(sine / 7), 0) * angles(math.rad(-55) * math.cos(sine / 7) , math.rad(8 * math.cos(sine / 7)) , math.rad(-6) + la.RotVelocity.Y / 75), 0.1)
  9335. BladesWeld.C0 = clerp(BladesWeld.C0,CFrame.new(0,-1,-.2)*CFrame.Angles(math.rad(155),math.rad(90),math.rad(0)),0.1)
  9336. elseif ModeOfGlitch == 123666 then
  9337. change=1
  9338. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.10 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(3 - 2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(4 * math.cos(sine / 7))), 0.15)
  9339. tors.Neck.C0 = clerp(tors.Neck.C0, necko* cf(0, 0, 0 + ((1) - 1)) * angles(math.rad(0), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  9340. RH.C0 = clerp(RH.C0, cf(1, -0.8 - 0.5 * math.cos(sine / 7) / 2, 0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 25 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  9341. LH.C0 = clerp(LH.C0, cf(-1, -0.8 + 0.5 * math.cos(sine / 7) / 2, -0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 25 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  9342. RW.C0 = RW.C0:lerp(cf(1.5,0.1+.1*math.sin(sine/3.5),-0.1)*angles(math.rad(-160-3*math.sin(sine/3.5)),math.rad(0),math.rad(0)),.3)
  9343. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.05 * math.sin(sine / 7), 0) * angles(math.rad(-55) * math.cos(sine / 7) , math.rad(8 * math.cos(sine / 7)) , math.rad(-6) + la.RotVelocity.Y / 75), 0.1)
  9344. AeshW.C0 = AeshW.C0:lerp(cf(0.1,-.85+(.1*math.sin(sine/3.5)),-1.5)*angles(math.rad(190+3*math.sin(sine/3.5)),math.rad(90),math.rad(0)),.3)
  9345. elseif ModeOfGlitch == 123321.888 then
  9346. change=1
  9347. 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))),.1)
  9348. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.1)
  9349. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.1)
  9350. LW.C0 = LW.C0:lerp(cf(-0.9,0.5+ 0.05 * math.sin(sine / 38),-0.2)*angles(math.rad(163.8+ 2 * math.sin(sine / 38)),math.rad(0),math.rad(30)),.1)
  9351. RW.C0 = RW.C0:lerp(cf(0.9,0.5+ 0.05 * math.sin(sine / 38),-0.2)*angles(math.rad(163.8+ 2 * math.sin(sine / 38)),math.rad(0),math.rad(-30)),.1)
  9352. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0.5)*angles(math.rad(-24.2+ 2 * math.sin(sine / 38)),math.rad(0),math.rad(0))*necko,.1)
  9353. elseif ModeOfGlitch == 666 then
  9354. change=1
  9355. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.10 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(3 - 2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(4 * math.cos(sine / 7))), 0.15)
  9356. tors.Neck.C0 = clerp(tors.Neck.C0, necko* cf(0, 0, 0 + ((1) - 1)) * angles(math.rad(0), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  9357. RH.C0 = clerp(RH.C0, cf(1, -0.8 - 0.5 * math.cos(sine / 7) / 2, 0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 25 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  9358. LH.C0 = clerp(LH.C0, cf(-1, -0.8 + 0.5 * math.cos(sine / 7) / 2, -0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 25 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  9359. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.05 * math.sin(sine / 7), 0) * angles(math.rad(55) * math.cos(sine / 7) , math.rad(-8 * math.cos(sine / 7)) , math.rad(6) - ra.RotVelocity.Y / 75), 0.1)
  9360. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.05 * math.sin(sine / 7), 0) * angles(math.rad(-55) * math.cos(sine / 7) , math.rad(8 * math.cos(sine / 7)) , math.rad(-6) + la.RotVelocity.Y / 75), 0.1)
  9361. gasW.C0 = gasW.C0:lerp(cf(0,-1.6,0.2)*angles(math.rad(-90+25*math.cos(sine/7)),math.rad(0),math.rad(-180)),.1)
  9362. local val = math.random(50,75)/100
  9363. SphereX(math.random(15,55)/10,math.random(3,30)/100,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),val,val,val,val/100,MAINRUINCOLOR,0)
  9364.  
  9365. else
  9366. change=1
  9367. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.10 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(3 - 2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(4 * math.cos(sine / 7))), 0.15)
  9368. tors.Neck.C0 = clerp(tors.Neck.C0, necko* cf(0, 0, 0 + ((1) - 1)) * angles(math.rad(0), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  9369. RH.C0 = clerp(RH.C0, cf(1, -0.8 - 0.5 * math.cos(sine / 7) / 2, 0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 25 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  9370. LH.C0 = clerp(LH.C0, cf(-1, -0.8 + 0.5 * math.cos(sine / 7) / 2, -0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 25 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  9371. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.05 * math.sin(sine / 7), 0) * angles(math.rad(55) * math.cos(sine / 7) , math.rad(-8 * math.cos(sine / 7)) , math.rad(6) - ra.RotVelocity.Y / 75), 0.1)
  9372. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.05 * math.sin(sine / 7), 0) * angles(math.rad(-55) * math.cos(sine / 7) , math.rad(8 * math.cos(sine / 7)) , math.rad(-6) + la.RotVelocity.Y / 75), 0.1)
  9373. end
  9374. end
  9375. elseif torvel>=22 and hitfloor~=nil then
  9376. Anim="Run"
  9377. change=1
  9378. if attack==false then
  9379. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 and ModeOfGlitch ~= 765688533321 and ModeOfGlitch ~= 664663666 and ModeOfGlitch ~= 88893333388 and ModeOfGlitch ~= 808080808080808080808080 then
  9380. --[[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)
  9381. 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)
  9382. 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)
  9383. 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)
  9384. RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
  9385. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
  9386. ]]
  9387. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.10 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(20 - 5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(4 * math.cos(sine / 4.5))), 0.15)
  9388. tors.Neck.C0 = clerp(tors.Neck.C0, necko* cf(0, 0, 0 + ((1) - 1)) * angles(math.rad(0), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  9389. RH.C0 = clerp(RH.C0, cf(1, -0.8 - 0.5 * math.cos(sine / 4.5) / 2, 0.6 * math.cos(sine / 4.5) / 2) * angles(math.rad(-5 - 65 * math.cos(sine / 4.5)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 4.5) / 2.5, math.rad(90 - 10 * math.cos(sine / 4.5)), math.rad(0)) * angles(math.rad(0 + 2 * math.cos(sine / 4.5)), math.rad(0), math.rad(0)), 0.3)
  9390. LH.C0 = clerp(LH.C0, cf(-1, -0.8 + 0.5 * math.cos(sine / 4.5) / 2, -0.6 * math.cos(sine / 4.5) / 2) * angles(math.rad(-5 + 65 * math.cos(sine / 4.5)) + ll.RotVelocity.Y / 75 + math.sin(sine / 4.5) / 2.5, math.rad(-90 - 10 * math.cos(sine / 4.5)), math.rad(0)) * angles(math.rad(0 - 2 * math.cos(sine / 4.5)), math.rad(0), math.rad(0)), 0.3)
  9391. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.05 * math.sin(sine / 4.5), 0) * angles(math.rad(125) * math.cos(sine / 4.5) , math.rad(-8 * math.cos(sine / 4.5)) , math.rad(6) - ra.RotVelocity.Y / 75), 0.1)
  9392. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.05 * math.sin(sine / 4.5), 0) * angles(math.rad(-125) * math.cos(sine / 4.5) , math.rad(8 * math.cos(sine / 4.5)) , math.rad(-6) + la.RotVelocity.Y / 75), 0.1)
  9393.  
  9394. if ModeOfGlitch == 7 then
  9395. sphereMK(5,-1,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),-8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,10,-0.005,MAINRUINCOLOR,0)
  9396. end
  9397. else
  9398. 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)
  9399. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  9400. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  9401. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  9402. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  9403. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  9404. if ModeOfGlitch == 765688533321 then
  9405. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  9406. end
  9407. end
  9408. end
  9409. end
  9410. end
  9411. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement