Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 463.13 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. ------------------
  153. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  154. The super switcher.
  155. Velnorum is one of the first wielders.
  156.  
  157. Created, Reworked by NoobyGames12
  158. Edited by GodzPlaysRB
  159. Edited by wanTH092 (Gam_Filano CH)
  160. SpectrumGlitcher Developers ^^^
  161. ]])
  162.  
  163.  
  164. ------------- ORIGINAL WIELDER OC: Velnorum
  165. print([[Icons:
  166. ! = New
  167. ? = Spoilers
  168. * = Exclusivity
  169. C = Changes
  170.  
  171. ]])
  172. warn([[V 4.35 Update Log:
  173. ! - Added Betrayal mode (Chaos M)
  174.  
  175. !? - Added z move to destiny
  176. !c? = Added calamity transition
  177. !? - upcoming transition for some mode..
  178. - Removed some voice sound effects because they didnt sound right
  179. ]])
  180. --- its obs smooth af do not touch
  181. ---- Sources and functions might be taken from others
  182. plr = game:GetService("Players").BlindParsley157
  183. char = plr.Character
  184. hum = char.Humanoid
  185. local cam = game.Workspace.CurrentCamera
  186. Camera = cam
  187. local CamInterrupt = false
  188. local TwoD = false
  189. local TargetInfo = {nil, nil}
  190. cam.CameraType = "Custom"
  191. t = char.Torso
  192. h = char.Head
  193. ra = char["Right Arm"]
  194. la = char["Left Arm"]
  195. rl = char["Right Leg"]
  196. ll = char["Left Leg"]
  197. tors = char.Torso
  198. lleg = char["Left Leg"]
  199. root = char.HumanoidRootPart
  200. hed = char.Head
  201. rleg = char["Right Leg"]
  202. rarm = char["Right Arm"]
  203. larm = char["Left Arm"]
  204. radian = math.rad
  205. random = math.random
  206. Vec3 = Vector3.new
  207. Inst = Instance.new
  208. cFrame = CFrame.new
  209. Euler = CFrame.fromEulerAnglesXYZ
  210. vt = Vector3.new
  211. bc = BrickColor.new
  212. br = BrickColor.random
  213. it = Instance.new
  214. cf = CFrame.new
  215. local Player_Size = 0
  216. cam = game.Workspace.CurrentCamera
  217. CF = CFrame.new
  218. angles = CFrame.Angles
  219. attack = false
  220. Euler = CFrame.fromEulerAnglesXYZ
  221. Rad = math.rad
  222. IT = Instance.new
  223. BrickC = BrickColor.new
  224. Cos = math.cos
  225. Acos = math.acos
  226. Sin = math.sin
  227. Asin = math.asin
  228. Abs = math.abs
  229. Mrandom = math.random
  230. Floor = math.floor
  231. IT = Instance.new
  232. CF = CFrame.new
  233. VT = Vector3.new
  234. RAD = math.rad
  235. C3 = Color3.new
  236. UD2 = UDim2.new
  237. BRICKC = BrickColor.new
  238. ANGLES = CFrame.Angles
  239. EULER = CFrame.fromEulerAnglesXYZ
  240. COS = math.cos
  241. ACOS = math.acos
  242. SIN = math.sin
  243. ASIN = math.asin
  244. ABS = math.abs
  245. MRANDOM = math.random
  246. FLOOR = math.floor
  247. local SINE = 0
  248.  
  249. local Booleans = {
  250. CamFollow = true,
  251. GyroUse = true
  252. }
  253.  
  254. function lerp(object, newCFrame, alpha)
  255. return object:lerp(newCFrame, alpha)
  256. end
  257.  
  258. local Directer = Inst("BodyGyro", root)
  259. Directer.MaxTorque = Vec3(0, 0, 0)
  260. Directer.P = 600000
  261. local CPart = Inst("Part")
  262. CPart.Anchored = true
  263. CPart.CanCollide = false
  264. CPart.Locked = true
  265. CPart.Transparency = 1
  266.  
  267. local rainbowmode = false
  268. local chaosmode = false
  269.  
  270. local kan = Instance.new("Sound",tors)
  271. kan.Volume = 0.85
  272. kan.TimePosition = 0
  273. kan.PlaybackSpeed = 1
  274. kan.Pitch = 1
  275. kan.SoundId = "rbxassetid://1255569288"
  276. kan.Name = "wrecked"
  277. kan.Looped = true
  278. kan:Play()
  279.  
  280. local currentThemePlaying = kan.SoundId
  281. local currentPitch = kan.Pitch
  282. local currentVol = kan.Volume
  283. function newTheme(ID,timepos,pitch,vol)
  284. local kanz = kan
  285. --kanz:Stop()
  286. kanz.Volume = vol
  287. --kanz.TimePosition = timepos
  288. kanz.PlaybackSpeed = pitch
  289. kanz.Pitch = pitch
  290. kanz.SoundId = ID
  291. kanz.Name = "wrecked"
  292. kanz.Looped = true
  293. currentThemePlaying = kanz.SoundId
  294. currentVol = kanz.Volume
  295. currentPitch = kanz.Pitch
  296. --kanz:Play()
  297. --coroutine.resume(coroutine.create(function()
  298. --wait(0.05)
  299. --end))
  300. end
  301.  
  302.  
  303. function newThemeCust(ID,timepos,pitch,vol)
  304. local kanz = kan
  305. kanz:Stop()
  306. kanz.Volume = vol
  307. kanz.TimePosition = timepos
  308. kanz.PlaybackSpeed = pitch
  309. kanz.Pitch = pitch
  310. kanz.SoundId = ID
  311. kanz.Name = "wrecked"
  312. kanz.Looped = true
  313. currentThemePlaying = kanz.SoundId
  314. currentVol = kanz.Volume
  315. currentPitch = kanz.Pitch
  316. kanz:Play()
  317. coroutine.resume(coroutine.create(function()
  318. wait(0.05)
  319. end))
  320. end
  321.  
  322. local mutedtog = false
  323.  
  324. function CameraEnshaking(Length,Intensity)
  325. coroutine.resume(coroutine.create(function()
  326. local intensity = 1*Intensity
  327. local rotM = 0.01*Intensity
  328. for i = 0, Length, 0.1 do
  329. swait()
  330. intensity = intensity - 0.05*Intensity/Length
  331. rotM = rotM - 0.0005*Intensity/Length
  332. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  333. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  334. end
  335. Humanoid.CameraOffset = Vec3(0, 0, 0)
  336. end))
  337. end
  338. CamShake=function(Part,Distan,Power,Times)
  339. local de=Part.Position
  340. for i,v in pairs(workspace:children()) do
  341. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  342. for _,c in pairs(v:children()) do
  343. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  344. local Noob=v.Humanoid
  345. if Noob~=nil then
  346. coroutine.resume(coroutine.create(function()
  347. FV = Instance.new("BoolValue", Noob)
  348. FV.Name = "CameraShake"
  349. for ShakeNum=1,Times do
  350. swait()
  351. local ef=Power
  352. if ef>=1 then
  353. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  354. else
  355. ef=Power*10
  356. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  357. end
  358. end
  359. Humanoid.CameraOffset = Vector3.new(0,0,0)
  360. FV:Destroy()
  361. end))
  362. CameraShake(Times, Power, Noob)
  363. end
  364. end
  365. end
  366. end
  367. end
  368. end
  369.  
  370. local toggleTag = true
  371. local bilguit = Instance.new("BillboardGui", hed)
  372. bilguit.Adornee = nil
  373. bilguit.Name = "ModeName"
  374. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  375. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  376. local modet = Instance.new("TextLabel", bilguit)
  377. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  378. modet.FontSize = "Size8"
  379. modet.TextScaled = true
  380. modet.TextTransparency = 0
  381. modet.BackgroundTransparency = 1
  382. modet.TextTransparency = 0
  383. modet.TextStrokeTransparency = 0
  384. modet.Font = "Antique"
  385. modet.TextStrokeColor3 = Color3.new(0,1,0)
  386. modet.TextColor3 = Color3.new(0,0.25,0)
  387. modet.Text = "CODED REALITY"
  388.  
  389.  
  390. function chatfunc(text,color,typet,font,timeex)
  391. local chat = coroutine.wrap(function()
  392. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  393. Character:FindFirstChild("TalkingBillBoard"):destroy()
  394. end
  395. local naeeym2 = Instance.new("BillboardGui",Character)
  396. naeeym2.Size = UDim2.new(0,100,0,40)
  397. naeeym2.StudsOffset = Vector3.new(0,3,0)
  398. naeeym2.Adornee = Character.Head
  399. naeeym2.Name = "TalkingBillBoard"
  400. local tecks2 = Instance.new("TextLabel",naeeym2)
  401. tecks2.BackgroundTransparency = 1
  402. tecks2.BorderSizePixel = 0
  403. tecks2.Text = ""
  404. tecks2.Font = font
  405. tecks2.TextSize = 30
  406. tecks2.TextStrokeTransparency = 0
  407. tecks2.TextColor3 = color
  408. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  409. tecks2.Size = UDim2.new(1,0,0.5,0)
  410. local tecks3 = Instance.new("TextLabel",naeeym2)
  411. tecks3.BackgroundTransparency = 1
  412. tecks3.BorderSizePixel = 0
  413. tecks3.Text = ""
  414. tecks3.Font = font
  415. tecks3.TextSize = 30
  416. tecks3.TextStrokeTransparency = 0
  417. if typet == "Inverted" then
  418. tecks3.TextColor3 = Color3.new(0,0,0)
  419. tecks3.TextStrokeColor3 = color
  420. elseif typet == "Normal" then
  421. tecks3.TextColor3 = color
  422. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  423. end
  424. tecks3.Size = UDim2.new(1,0,0.5,0)
  425. coroutine.resume(coroutine.create(function()
  426. while true do
  427. swait(1)
  428. if chaosmode == true then
  429. tecks2.TextColor3 = BrickColor.random().Color
  430. tecks3.TextStrokeColor3 = BrickColor.random().Color
  431. end
  432. end
  433. end))
  434. modet.TextTransparency = modet.TextTransparency + 1
  435. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  436. for i = 0, 74*timeex do
  437. swait()
  438. modet.TextTransparency = 1
  439. modet.TextStrokeTransparency = 1
  440. tecks2.Text = text
  441. tecks3.Text = text
  442. end
  443. local randomrot = math.random(1,2)
  444. if randomrot == 1 then
  445. for i = 1, 50 do
  446. swait()
  447. tecks2.Text = text
  448. tecks3.Text = text
  449. modet.TextTransparency = modet.TextTransparency - .02
  450. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  451. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  452. tecks2.TextTransparency = tecks2.TextTransparency + .04
  453. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  454. tecks3.TextTransparency = tecks2.TextTransparency + .04
  455. end
  456. elseif randomrot == 2 then
  457. for i = 1, 50 do
  458. swait()
  459. tecks2.Text = text
  460. tecks3.Text = text
  461. modet.TextTransparency = modet.TextTransparency - .02
  462. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  463. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  464. tecks2.TextTransparency = tecks2.TextTransparency + .04
  465. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  466. tecks3.TextTransparency = tecks2.TextTransparency + .04
  467. end
  468. end
  469. modet.TextTransparency = 0
  470. modet.TextStrokeTransparency = 0
  471. if toggleTag == false then
  472. modet.TextTransparency = 1
  473. modet.TextStrokeTransparency = 1
  474. end
  475. naeeym2:Destroy()
  476. end)
  477. chat()
  478. end
  479.  
  480. function bosschatfunc(text,color,watval)
  481. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  482. coroutine.resume(coroutine.create(function()
  483. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  484. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  485. end
  486. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  487. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  488. scrg.Name = "Dialog"
  489. local txtlb = Instance.new("TextLabel",scrg)
  490. txtlb.Text = ""
  491. txtlb.Font = "Bodoni"
  492. txtlb.TextColor3 = Color3.new(0,0,0)
  493. txtlb.TextStrokeTransparency = 0
  494. txtlb.BackgroundTransparency = 0.75
  495. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  496. txtlb.TextStrokeColor3 = color
  497. txtlb.TextScaled = true
  498. txtlb.Size = UDim2.new(1,0,0.25,0)
  499. txtlb.TextXAlignment = "Left"
  500. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  501. local txtlb2 = Instance.new("TextLabel",scrg)
  502. txtlb2.Text = plr.Name.." The Coder:"
  503. txtlb2.Font = "Arcade"
  504. txtlb2.TextColor3 = Color3.new(0,0,0)
  505. txtlb2.TextStrokeTransparency = 0
  506. txtlb2.BackgroundTransparency = 1
  507. txtlb2.TextStrokeColor3 = color
  508. txtlb2.TextSize = 40
  509. txtlb2.Size = UDim2.new(1,0,0.25,0)
  510. txtlb2.TextXAlignment = "Left"
  511. txtlb2.Position = UDim2.new(0,0,1,0)
  512. local fvalen = 0.55
  513. local fval = -0.49
  514. coroutine.resume(coroutine.create(function()
  515. while true do
  516. swait()
  517. if chaosmode == true then
  518. txtlb.Rotation = math.random(-1,1)
  519. txtlb2.Rotation = math.random(-1,1)
  520. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  521. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  522. txtlb.TextStrokeColor3 = BrickColor.random().Color
  523. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  524. end
  525. end
  526. end))
  527. coroutine.resume(coroutine.create(function()
  528. while true do
  529. swait()
  530. if scrg.Parent ~= nil then
  531. fvalen = fvalen - 0.0001
  532. elseif scrg.Parent == nil then
  533. break
  534. end
  535. end
  536. end))
  537. local flol = 1.75
  538. local flil = 1.6
  539. coroutine.resume(coroutine.create(function()
  540. for i = 0, 9 do
  541. swait()
  542. fval = fval + 0.05
  543. flol = flol - 0.1
  544. flil = flil - 0.1
  545. txtlb.Text = ""
  546. txtlb.Position = UDim2.new(0,0,flol,0)
  547. txtlb2.Position = UDim2.new(0,0,flil,0)
  548. end
  549. txtlb.Text = text
  550. wait(watval)
  551. local valinc = 0
  552. for i = 0, 99 do
  553. swait()
  554. valinc = valinc + 0.0001
  555. flol = flol + valinc
  556. flil = flil + valinc
  557. txtlb.Rotation = txtlb.Rotation + valinc*20
  558. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  559. txtlb.Position = UDim2.new(0,0,flol,0)
  560. txtlb2.Position = UDim2.new(0,0,flil,0)
  561. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  562. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  563. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  564. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  565. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  566. end
  567. scrg:Destroy()
  568. end))
  569. end))
  570. end
  571. end
  572.  
  573.  
  574. local Create = LoadLibrary("RbxUtility").Create
  575.  
  576. CFuncs = {
  577. ["Part"] = {
  578. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  579. local Part = Create("Part"){
  580. Parent = Parent,
  581. Reflectance = Reflectance,
  582. Transparency = Transparency,
  583. CanCollide = false,
  584. Locked = true,
  585. BrickColor = BrickColor.new(tostring(BColor)),
  586. Name = Name,
  587. Size = Size,
  588. Material = Material,
  589. }
  590. RemoveOutlines(Part)
  591. return Part
  592. end;
  593. };
  594.  
  595. ["Mesh"] = {
  596. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  597. local Msh = Create(Mesh){
  598. Parent = Part,
  599. Offset = OffSet,
  600. Scale = Scale,
  601. }
  602. if Mesh == "SpecialMesh" then
  603. Msh.MeshType = MeshType
  604. Msh.MeshId = MeshId
  605. end
  606. return Msh
  607. end;
  608. };
  609.  
  610. ["Mesh"] = {
  611. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  612. local Msh = Create(Mesh){
  613. Parent = Part,
  614. Offset = OffSet,
  615. Scale = Scale,
  616. }
  617. if Mesh == "SpecialMesh" then
  618. Msh.MeshType = MeshType
  619. Msh.MeshId = MeshId
  620. end
  621. return Msh
  622. end;
  623. };
  624.  
  625. ["Weld"] = {
  626. Create = function(Parent, Part0, Part1, C0, C1)
  627. local Weld = Create("Weld"){
  628. Parent = Parent,
  629. Part0 = Part0,
  630. Part1 = Part1,
  631. C0 = C0,
  632. C1 = C1,
  633. }
  634. return Weld
  635. end;
  636. };
  637.  
  638. ["Sound"] = {
  639. Create = function(id, par, vol, pit)
  640. coroutine.resume(coroutine.create(function()
  641. local S = Create("Sound"){
  642. Volume = vol,
  643. Name = "EffectSoundo",
  644. Pitch = pit or 1,
  645. SoundId = id,
  646. Parent = par or workspace,
  647. }
  648. wait()
  649. S:play()
  650. game:GetService("Debris"):AddItem(S, 10)
  651. end))
  652. end;
  653. };
  654.  
  655. ["TimeSound"] = {
  656. Create = function(id, par, vol, pit, timepos)
  657. coroutine.resume(coroutine.create(function()
  658. local S = Create("Sound"){
  659. Volume = vol,
  660. Name = "EffectSoundo",
  661. Pitch = pit or 1,
  662. SoundId = id,
  663. TimePosition = timepos,
  664. Parent = par or workspace,
  665. }
  666. wait()
  667. S:play()
  668. game:GetService("Debris"):AddItem(S, 10)
  669. end))
  670. end;
  671. };
  672. ["EchoSound"] = {
  673. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  674. coroutine.resume(coroutine.create(function()
  675. local Sas = Create("Sound"){
  676. Volume = vol,
  677. Name = "EffectSoundo",
  678. Pitch = pit or 1,
  679. SoundId = id,
  680. TimePosition = timepos,
  681. Parent = par or workspace,
  682. }
  683. local E = Create("EchoSoundEffect"){
  684. Delay = echodelay,
  685. Name = "Echo",
  686. Feedback = fedb,
  687. DryLevel = dryl,
  688. Parent = Sas,
  689. }
  690. wait()
  691. Sas:play()
  692. game:GetService("Debris"):AddItem(Sas, delays)
  693. end))
  694. end;
  695. };
  696.  
  697. ["LongSound"] = {
  698. Create = function(id, par, vol, pit)
  699. coroutine.resume(coroutine.create(function()
  700. local S = Create("Sound"){
  701. Volume = vol,
  702. Pitch = pit or 1,
  703. SoundId = id,
  704. Parent = par or workspace,
  705. }
  706. wait()
  707. S:play()
  708. game:GetService("Debris"):AddItem(S, 60)
  709. end))
  710. end;
  711. };
  712.  
  713. ["ParticleEmitter"] = {
  714. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  715. local fp = Create("ParticleEmitter"){
  716. Parent = Parent,
  717. Color = ColorSequence.new(Color1, Color2),
  718. LightEmission = LightEmission,
  719. Size = Size,
  720. Texture = Texture,
  721. Transparency = Transparency,
  722. ZOffset = ZOffset,
  723. Acceleration = Accel,
  724. Drag = Drag,
  725. LockedToPart = LockedToPart,
  726. VelocityInheritance = VelocityInheritance,
  727. EmissionDirection = EmissionDirection,
  728. Enabled = Enabled,
  729. Lifetime = LifeTime,
  730. Rate = Rate,
  731. Rotation = Rotation,
  732. RotSpeed = RotSpeed,
  733. Speed = Speed,
  734. VelocitySpread = VelocitySpread,
  735. }
  736. return fp
  737. end;
  738. };
  739.  
  740. CreateTemplate = {
  741.  
  742. };
  743. }
  744.  
  745.  
  746.  
  747. New = function(Object, Parent, Name, Data)
  748. local Object = Instance.new(Object)
  749. for Index, Value in pairs(Data or {}) do
  750. Object[Index] = Value
  751. end
  752. Object.Parent = Parent
  753. Object.Name = Name
  754. return Object
  755. end
  756. local halocolor = BrickColor.new("Pastel light blue")
  757. local halocolor2 = BrickColor.new("Cool yellow")
  758. local starcolor = BrickColor.new("Bright yellow")
  759. local lunacolor = BrickColor.new("Navy blue")
  760. local lunacolor2 = BrickColor.new("Bright blue")
  761. local wepcolor = BrickColor.new("Really black")
  762. local maincolor = BrickColor.new("Really black")
  763. local m = Instance.new("Model",char)
  764. local m2 = Instance.new("Model",char)
  765. local m3 = Instance.new("Model",char)
  766. local mw1 = Instance.new("Model",char)
  767. local mw2 = Instance.new("Model",char)
  768.  
  769.  
  770. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  771. local gui = it(GuiType)
  772. gui.Parent = parent
  773. gui.Text = text
  774. gui.BackgroundTransparency = backtrans
  775. gui.BackgroundColor3 = backcol
  776. gui.SizeConstraint = "RelativeXY"
  777. gui.TextXAlignment = "Center"
  778. gui.TextYAlignment = "Center"
  779. gui.Position = pos
  780. gui.Size = size
  781. gui.Font = "SourceSans"
  782. gui.FontSize = "Size14"
  783. gui.TextWrapped = false
  784. gui.TextStrokeTransparency = 0
  785. gui.TextColor = BrickColor.new("White")
  786. return gui
  787. end
  788. --------------------------- GUI STUFF
  789. local basgui = it("GuiMain")
  790. basgui.Parent = plr.PlayerGui
  791. basgui.Name = "VISgui"
  792. local fullscreenz = it("Frame")
  793. fullscreenz.Parent = basgui
  794. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  795. fullscreenz.BackgroundTransparency = 1
  796. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  797. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  798. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  799. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  800. imgl2.BackgroundTransparency = 1
  801. imgl2.BorderSizePixel = 0
  802. imgl2.ImageTransparency = 0.5
  803. imgl2.ImageColor3 = Color3.new(1,0,0)
  804. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  805. imgl2.Size = UDim2.new(0,1000,0,1000)
  806. imgl2.Image = "rbxassetid://2325939897"
  807. local techc = imgl2:Clone()
  808. techc.Parent = fullscreenz
  809. techc.ImageTransparency = 0
  810. techc.Size = UDim2.new(0,900,0,900)
  811. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  812. techc.ImageColor3 = Color3.new(1,0,0)
  813. techc.Image = "rbxassetid://2273224484"
  814. local circl = imgl2:Clone()
  815. circl.Parent = fullscreenz
  816. circl.ImageTransparency = 0
  817. circl.Size = UDim2.new(0,550,0,550)
  818. circl.Position = UDim2.new(0.75,25,0.55,25)
  819. circl.ImageColor3 = Color3.new(0,0,0)
  820. circl.Image = "rbxassetid://2312119891"
  821. local circl2 = imgl2:Clone()
  822. circl2.Parent = fullscreenz
  823. circl2.ImageTransparency = 0
  824. circl2.Size = UDim2.new(0,700,0,700)
  825. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  826. circl2.ImageColor3 = Color3.new(1,0,0)
  827. circl2.Image = "rbxassetid://2312119891"
  828. local imgl2b = imgl2:Clone()
  829. imgl2b.Parent = fullscreenz
  830. imgl2b.ImageTransparency = 0
  831. imgl2b.Size = UDim2.new(0,800,0,800)
  832. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  833. imgl2b.ImageColor3 = Color3.new(0,0,0)
  834. local ned = Instance.new("TextLabel",fullscreenz)
  835. ned.ZIndex = 2
  836. ned.Font = "Arcade"
  837. ned.BackgroundTransparency = 1
  838. ned.BorderSizePixel = 0.65
  839. ned.Size = UDim2.new(0.3,0,0.2,0)
  840. ned.Position = UDim2.new(0.7,0,0.8,0)
  841. ned.TextColor3 = BrickColor.new("Bright green").Color
  842. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  843. ned.TextScaled = true
  844. ned.TextStrokeTransparency = 0
  845. ned.Text = "CODED REALITY"
  846. ned.TextSize = 24
  847. ned.Rotation = 1
  848. ned.TextXAlignment = "Right"
  849. ned.TextYAlignment = "Bottom"
  850.  
  851. local extrawingmod1 = Instance.new("Model",char)
  852. local extrawingmod2 = Instance.new("Model",char)
  853.  
  854. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  855. local p = Instance.new("Part")
  856. p.TopSurface = 0
  857. p.BottomSurface = 0
  858. p.Parent = parent
  859. p.Size = Vector3.new(0.1,0.1,0.1)
  860. p.Transparency = transparency
  861. p.Reflectance = reflectance
  862. p.CanCollide = false
  863. p.Locked = true
  864. p.BrickColor = brickcolor
  865. p.Material = material
  866. return p
  867. end
  868.  
  869. function CreateMesh(parent,meshtype,x1,y1,z1)
  870. local mesh = Instance.new("SpecialMesh",parent)
  871. mesh.MeshType = meshtype
  872. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  873. return mesh
  874. end
  875.  
  876. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  877. local mesh = Instance.new("SpecialMesh",parent)
  878. mesh.MeshType = "FileMesh"
  879. mesh.MeshId = meshid
  880. mesh.Scale = Vector3.new(x1,y1,z1)
  881. return mesh
  882. end
  883.  
  884.  
  885. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  886. local mesh = Instance.new("SpecialMesh",parent)
  887. mesh.MeshType = "FileMesh"
  888. mesh.MeshId = meshid
  889. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  890. mesh.Scale = Vector3.new(x1,y1,z1)
  891. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  892. return mesh
  893. end
  894.  
  895. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  896. local weld = Instance.new("Weld")
  897. weld.Parent = parent
  898. weld.Part0 = part0
  899. weld.Part1 = part1
  900. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  901. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  902. return weld
  903. end
  904.  
  905.  
  906. --------------
  907. --------------
  908. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  909. 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))
  910. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  911. 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))
  912.  
  913. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  914. CreateMesh(handle,"Brick",0,0,0)
  915. 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))
  916. local valuaring = 10
  917. for i = 0, 49 do
  918. valuaring = valuaring + 10
  919. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  920. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  921. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  922. end
  923.  
  924. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  925. CreateMesh(handle,"Brick",0,0,0)
  926. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  927. local valuaring = 10
  928. for i = 0, 49 do
  929. valuaring = valuaring + 10
  930. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  931. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  932. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  933. end
  934.  
  935.  
  936. local handle = CreateParta(m,1,1,"Neon",maincolor)
  937. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  938. 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))
  939.  
  940. --- Left wing.
  941.  
  942. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  943. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  944. 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))
  945.  
  946. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  947. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  948. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  949. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  951. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  952. A0 = Instance.new('Attachment',wed)
  953. A0.Position = vt(0,0.25,0.25)
  954. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  955. CreateMesh(wed,"Wedge",0.05,0.5,3)
  956. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  957. A1 = Instance.new('Attachment',wed)
  958. A1.Position = vt(0,-0.25,-2)
  959. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  960. CreateMesh(wed,"Wedge",0.05,3,0.5)
  961. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  962.  
  963. tl1 = Instance.new('Trail',wed)
  964. tl1.Attachment0 = A1
  965. tl1.Attachment1 = A0
  966. tl1.Texture = "rbxassetid://2108945559"
  967. tl1.LightEmission = 1
  968. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  969. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  970. tl1.Lifetime = 0.6
  971.  
  972.  
  973. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  974. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  975. 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))
  976.  
  977. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  979. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  980. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  982. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  983. A0 = Instance.new('Attachment',wed)
  984. A0.Position = vt(0,0.25,0.25)
  985. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  986. CreateMesh(wed,"Wedge",0.05,0.5,3)
  987. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  988. A1 = Instance.new('Attachment',wed)
  989. A1.Position = vt(0,-0.25,-2)
  990. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,3,0.5)
  992. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  993.  
  994. tl2 = Instance.new('Trail',wed)
  995. tl2.Attachment0 = A1
  996. tl2.Attachment1 = A0
  997. tl2.Texture = "rbxassetid://2108945559"
  998. tl2.LightEmission = 1
  999. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1000. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1001. tl2.Lifetime = 0.6
  1002.  
  1003. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1004. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1005. 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))
  1006.  
  1007. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1009. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1010. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1012. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1013. A0 = Instance.new('Attachment',wed)
  1014. A0.Position = vt(0,0.25,0.25)
  1015. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1016. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1017. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1018. A1 = Instance.new('Attachment',wed)
  1019. A1.Position = vt(0,-0.25,-2)
  1020. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1021. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1022. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1023.  
  1024. tl3 = Instance.new('Trail',wed)
  1025. tl3.Attachment0 = A1
  1026. tl3.Attachment1 = A0
  1027. tl3.Texture = "rbxassetid://2108945559"
  1028. tl3.LightEmission = 1
  1029. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1030. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1031. tl3.Lifetime = 0.6
  1032.  
  1033. tl1.Enabled = false
  1034. tl2.Enabled = false
  1035. tl3.Enabled = false
  1036. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1037. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1038. 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))
  1039.  
  1040. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1041. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1042. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1043. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1045. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1046. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1048. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1049. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1050. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1051. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1052.  
  1053. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1054. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1055. 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))
  1056.  
  1057. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1058. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1059. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1060. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1062. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1063. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1064. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1065. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1066. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1067. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1068. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1069.  
  1070. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1071. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1072. 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))
  1073.  
  1074. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1075. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1076. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1077. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1078. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1079. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1080. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1081. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1082. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1083. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1084. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1085. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1086.  
  1087. -- Right wing.
  1088.  
  1089. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1090. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1091. 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))
  1092.  
  1093. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1094. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1095. 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))
  1096. A0 = Instance.new('Attachment',wed)
  1097. A0.Position = vt(0,0.25,0.25)
  1098. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1099. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1100. 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))
  1101. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1102. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1103. 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))
  1104. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1105. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1106. 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))
  1107. A1 = Instance.new('Attachment',wed)
  1108. A1.Position = vt(0,2,0.25)
  1109.  
  1110. tr1 = Instance.new('Trail',wed)
  1111. tr1.Attachment0 = A1
  1112. tr1.Attachment1 = A0
  1113. tr1.Texture = "rbxassetid://2108945559"
  1114. tr1.LightEmission = 1
  1115. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1116. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1117. tr1.Lifetime = 0.6
  1118.  
  1119. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1120. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1121. 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))
  1122.  
  1123. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1124. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1125. 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))
  1126. A0 = Instance.new('Attachment',wed)
  1127. A0.Position = vt(0,0.25,0.25)
  1128. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1129. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1130. 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))
  1131. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1132. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1133. 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))
  1134. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1136. 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))
  1137. A1 = Instance.new('Attachment',wed)
  1138. A1.Position = vt(0,2,0.25)
  1139.  
  1140. tr2 = Instance.new('Trail',wed)
  1141. tr2.Attachment0 = A1
  1142. tr2.Attachment1 = A0
  1143. tr2.Texture = "rbxassetid://2108945559"
  1144. tr2.LightEmission = 1
  1145. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1146. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1147. tr2.Lifetime = 0.6
  1148.  
  1149. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1150. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1151. 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))
  1152.  
  1153. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1154. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1155. 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))
  1156. A0 = Instance.new('Attachment',wed)
  1157. A0.Position = vt(0,0.25,0.25)
  1158. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1159. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1160. 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))
  1161. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1162. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1163. 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))
  1164. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1165. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1166. 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))
  1167. A1 = Instance.new('Attachment',wed)
  1168. A1.Position = vt(0,2,0.25)
  1169.  
  1170. tr3 = Instance.new('Trail',wed)
  1171. tr3.Attachment0 = A1
  1172. tr3.Attachment1 = A0
  1173. tr3.Texture = "rbxassetid://2108945559"
  1174. tr3.LightEmission = 1
  1175. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1176. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1177. tr3.Lifetime = 0.6
  1178.  
  1179.  
  1180. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1181. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1182. 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))
  1183.  
  1184. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1185. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1186. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1187. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1188. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1189. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1190. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1191. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1192. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1193. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1194. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1195. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1196.  
  1197. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1198. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1199. 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))
  1200.  
  1201. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1202. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1203. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1204. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1205. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1206. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1207. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1208. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1209. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1210. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1211. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1212. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1213.  
  1214. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1215. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1216. 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))
  1217.  
  1218. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1219. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1220. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1221. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1222. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1223. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1224. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1225. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1226. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1227. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1228. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1229. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1230.  
  1231. --HERES THE RING
  1232.  
  1233.  
  1234. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1235. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1236. 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))
  1237. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1238. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1239. 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))
  1240. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1241. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1242. 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))
  1243.  
  1244.  
  1245. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1246. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1247. 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))
  1248.  
  1249. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1250. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1251. 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))
  1252.  
  1253.  
  1254.  
  1255. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1256. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1257. 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))
  1258.  
  1259. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1260. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1261. 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))
  1262.  
  1263. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1264. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1265. 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))
  1266.  
  1267. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1268. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1269. 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))
  1270. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1271. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1272. 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))]]--
  1273.  
  1274. --- second ring
  1275.  
  1276.  
  1277. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1278. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1279. 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))
  1280.  
  1281. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1282. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1283. 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))
  1284.  
  1285.  
  1286.  
  1287. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1288. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1289. 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))
  1290.  
  1291. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1292. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1293. 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))
  1294.  
  1295. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1296. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1297. 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))
  1298.  
  1299. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1300. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1301. 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))
  1302. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1303. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1304. 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))
  1305.  
  1306.  
  1307.  
  1308. for i, v in pairs(m:GetChildren()) do
  1309. if v:IsA("Part") then
  1310. v.BrickColor = BrickColor.new("Really black")
  1311. v.Material = "Glass"
  1312. end
  1313. end
  1314. for i, v in pairs(m2:GetChildren()) do
  1315. if v:IsA("Part") then
  1316. v.BrickColor = BrickColor.new("Crimson")
  1317. v.Material = "Granite"
  1318. end
  1319. end
  1320. for i, v in pairs(m3:GetChildren()) do
  1321. if v:IsA("Part") then
  1322. v.BrickColor = BrickColor.new("Really red")
  1323. v.Material = "Neon"
  1324. end
  1325. end
  1326. for i, v in pairs(mw2:GetChildren()) do
  1327. if v:IsA("Part") then
  1328. v.BrickColor = BrickColor.new("Really red")
  1329. v.Material = "Neon"
  1330. end
  1331. end
  1332. for i, v in pairs(mw1:GetChildren()) do
  1333. if v:IsA("Part") then
  1334. v.Transparency = 1
  1335. v.BrickColor = BrickColor.new("Really red")
  1336. v.Material = "Neon"
  1337. end
  1338. end
  1339. for i, v in pairs(extrawingmod1:GetChildren()) do
  1340. if v:IsA("Part") then
  1341. v.Transparency = 1
  1342. v.BrickColor = BrickColor.new("White")
  1343. v.Material = "Neon"
  1344. end
  1345. end
  1346. for i, v in pairs(extrawingmod2:GetChildren()) do
  1347. if v:IsA("Part") then
  1348. v.Transparency = 1
  1349. v.BrickColor = BrickColor.new("White")
  1350. v.Material = "Neon"
  1351. end
  1352. end
  1353. local MAINRUINCOLOR = BrickColor.new("Really red")
  1354. ------
  1355.  
  1356.  
  1357. function RemoveOutlines(part)
  1358. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1359. end
  1360. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1361. local Part = Create("Part")({
  1362. Parent = Parent,
  1363. Reflectance = Reflectance,
  1364. Transparency = Transparency,
  1365. CanCollide = false,
  1366. Locked = true,
  1367. BrickColor = BrickColor.new(tostring(BColor)),
  1368. Name = Name,
  1369. Size = Size,
  1370. Material = Material
  1371. })
  1372. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1373. RemoveOutlines(Part)
  1374. return Part
  1375. end
  1376. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1377. local Msh = Create(Mesh)({
  1378. Parent = Part,
  1379. Offset = OffSet,
  1380. Scale = Scale
  1381. })
  1382. if Mesh == "SpecialMesh" then
  1383. Msh.MeshType = MeshType
  1384. Msh.MeshId = MeshId
  1385. end
  1386. return Msh
  1387. end
  1388. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1389. local Weld = Create("Weld")({
  1390. Parent = Parent,
  1391. Part0 = Part0,
  1392. Part1 = Part1,
  1393. C0 = C0,
  1394. C1 = C1
  1395. })
  1396. return Weld
  1397. end
  1398.  
  1399. Player = plr
  1400. Character=Player.Character
  1401. PlayerGui=Player.PlayerGui
  1402. Backpack=Player.Backpack
  1403. Torso=Character.Torso
  1404. Head=Character.Head
  1405. Humanoid=Character.Humanoid
  1406. m=Instance.new('Model',Character)
  1407. LeftArm=Character["Left Arm"]
  1408. LeftLeg=Character["Left Leg"]
  1409. RightArm=Character["Right Arm"]
  1410. RightLeg=Character["Right Leg"]
  1411. LS=Torso["Left Shoulder"]
  1412. LH=Torso["Left Hip"]
  1413. RS=Torso["Right Shoulder"]
  1414. RH=Torso["Right Hip"]
  1415. Face = Head.face
  1416. Neck=Torso.Neck
  1417. it=Instance.new
  1418. attacktype=1
  1419. vt=Vector3.new
  1420. cf=CFrame.new
  1421. euler=CFrame.fromEulerAnglesXYZ
  1422. angles=CFrame.Angles
  1423. cloaked=false
  1424. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1425. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1426. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1427. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1428. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1429. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1430. RootPart=Character.HumanoidRootPart
  1431. RootJoint=RootPart.RootJoint
  1432. RootCF=euler(-1.57,0,3.14)
  1433. attack = false
  1434. attackdebounce = false
  1435. deb=false
  1436. equipped=true
  1437. hand=false
  1438. combo=0
  1439. mana=0
  1440. trispeed=.2
  1441. attackmode='none'
  1442. local idle=0
  1443. local Anim="Idle"
  1444. local Effects={}
  1445. local gun=false
  1446. local shoot=false
  1447. local sine = 0
  1448. local change = 1
  1449.  
  1450. function RecolorTextAndRename(name,col1,col2,font)
  1451. modet.TextStrokeColor3 = col2
  1452. modet.TextColor3 = col1
  1453. modet.Font = font
  1454. modet.Text = name
  1455. techc.ImageColor3 = col2
  1456. circl.ImageColor3 = col2
  1457. circl2.ImageColor3 = col1
  1458. imgl2.ImageColor3 = col1
  1459. imgl2b.ImageColor3 = col2
  1460. ned.Text = name
  1461. ned.TextColor3 = col1
  1462. ned.TextStrokeColor3 = col2
  1463. end
  1464. --save shoulders
  1465. RSH, LSH=nil, nil
  1466. --welds
  1467. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1468. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1469. LH=Torso["Left Hip"]
  1470. RH=Torso["Right Hip"]
  1471. TorsoColor=Torso.BrickColor
  1472. function NoOutline(Part)
  1473. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1474. end
  1475. ch=Character
  1476. RSH=ch.Torso["Right Shoulder"]
  1477. LSH=ch.Torso["Left Shoulder"]
  1478. --
  1479. RSH.Parent=nil
  1480. LSH.Parent=nil
  1481. --
  1482. RW.Name="Right Shoulder"
  1483. RW.Part0=ch.Torso
  1484. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1485. RW.C1=cf(0, 0.5, 0)
  1486. RW.Part1=ch["Right Arm"]
  1487. RW.Parent=ch.Torso
  1488. --
  1489. LW.Name="Left Shoulder"
  1490. LW.Part0=ch.Torso
  1491. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1492. LW.C1=cf(0, 0.5, 0)
  1493. LW.Part1=ch["Left Arm"]
  1494. LW.Parent=ch.Torso
  1495.  
  1496. local Stats=Instance.new("BoolValue")
  1497. Stats.Name="Stats"
  1498. Stats.Parent=Character
  1499. local Atk=Instance.new("NumberValue")
  1500. Atk.Name="Damage"
  1501. Atk.Parent=Stats
  1502. Atk.Value=1
  1503. local Def=Instance.new("NumberValue")
  1504. Def.Name="Defense"
  1505. Def.Parent=Stats
  1506. Def.Value=1
  1507. local Speed=Instance.new("NumberValue")
  1508. Speed.Name="Speed"
  1509. Speed.Parent=Stats
  1510. Speed.Value=1
  1511. local Mvmt=Instance.new("NumberValue")
  1512. Mvmt.Name="Movement"
  1513. Mvmt.Parent=Stats
  1514. Mvmt.Value=1
  1515.  
  1516. local donum=0
  1517. local ast = {744586075,385254610}
  1518.  
  1519. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1520. local fp=it("Part")
  1521. fp.formFactor=formfactor
  1522. fp.Parent=parent
  1523. fp.Reflectance=reflectance
  1524. fp.Transparency=transparency
  1525. fp.CanCollide=false
  1526. fp.Locked=true
  1527. fp.BrickColor=brickcolor
  1528. fp.Name=name
  1529. fp.Size=size
  1530. fp.Position=Torso.Position
  1531. NoOutline(fp)
  1532. fp.Material="SmoothPlastic"
  1533. fp:BreakJoints()
  1534. return fp
  1535. end
  1536.  
  1537. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1538. local mesh=it(Mesh)
  1539. mesh.Parent=part
  1540. if Mesh=="SpecialMesh" then
  1541. mesh.MeshType=meshtype
  1542. if meshid~="nil" then
  1543. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1544. end
  1545. end
  1546. mesh.Offset=offset
  1547. mesh.Scale=scale
  1548. return mesh
  1549. end
  1550.  
  1551. function weld(parent,part0,part1,c0)
  1552. local weld=it("Weld")
  1553. weld.Parent=parent
  1554. weld.Part0=part0
  1555. weld.Part1=part1
  1556. weld.C0=c0
  1557. return weld
  1558. end
  1559.  
  1560. local Color1=Torso.BrickColor
  1561.  
  1562. local bodvel=Instance.new("BodyVelocity")
  1563. local bg=Instance.new("BodyGyro")
  1564.  
  1565. --------- SazEreno's Artificial HB --------------
  1566. ArtificialHB = Instance.new("BindableEvent", script)
  1567. ArtificialHB.Name = "ArtificialHB"
  1568.  
  1569. script:WaitForChild("ArtificialHB")
  1570. Frame_Speed = 1 / 60
  1571. frame = Frame_Speed
  1572. tf = 0
  1573. allowframeloss = false
  1574. tossremainder = false
  1575. lastframe = tick()
  1576. script.ArtificialHB:Fire()
  1577.  
  1578. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1579. tf = tf + s
  1580. if tf >= frame then
  1581. if allowframeloss then
  1582. script.ArtificialHB:Fire()
  1583. lastframe = tick()
  1584. else
  1585. for i = 1, math.floor(tf / frame) do
  1586. script.ArtificialHB:Fire()
  1587. end
  1588. lastframe = tick()
  1589. end
  1590. if tossremainder then
  1591. tf = 0
  1592. else
  1593. tf = tf - frame * math.floor(tf / frame)
  1594. end
  1595. end
  1596. end)
  1597.  
  1598. ------------------
  1599. function swait(num)
  1600. if num == 0 or num == nil then
  1601. ArtificialHB.Event:wait()
  1602. else
  1603. for i = 1, num do
  1604. ArtificialHB.Event:wait()
  1605. end
  1606. end
  1607. end
  1608. -------- RAINBOW LEAVE IT TO ME
  1609. local r = 255
  1610. local g = 0
  1611. local b = 0
  1612. coroutine.resume(coroutine.create(function()
  1613. while wait() do
  1614. for i = 0, 254/5 do
  1615. swait()
  1616. g = g + 5
  1617. end
  1618. for i = 0, 254/5 do
  1619. swait()
  1620. r = r - 5
  1621. end
  1622. for i = 0, 254/5 do
  1623. swait()
  1624. b = b + 5
  1625. end
  1626. for i = 0, 254/5 do
  1627. swait()
  1628. g = g - 5
  1629. end
  1630. for i = 0, 254/5 do
  1631. swait()
  1632. r = r + 5
  1633. end
  1634. for i = 0, 254/5 do
  1635. swait()
  1636. b = b - 5
  1637. end
  1638. end
  1639. end))
  1640.  
  1641.  
  1642. so = function(id,par,vol,pit)
  1643. coroutine.resume(coroutine.create(function()
  1644. local sou = Instance.new("Sound",par or workspace)
  1645. sou.Volume=vol
  1646. sou.Pitch=pit or 1
  1647. sou.SoundId=id
  1648. swait()
  1649. sou:play()
  1650. game:GetService("Debris"):AddItem(sou,6)
  1651. end))
  1652. end
  1653.  
  1654. function clerp(a,b,t)
  1655. local qa = {QuaternionFromCFrame(a)}
  1656. local qb = {QuaternionFromCFrame(b)}
  1657. local ax, ay, az = a.x, a.y, a.z
  1658. local bx, by, bz = b.x, b.y, b.z
  1659. local _t = 1-t
  1660. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1661. end
  1662.  
  1663. function QuaternionFromCFrame(cf)
  1664. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1665. local trace = m00 + m11 + m22
  1666. if trace > 0 then
  1667. local s = math.sqrt(1 + trace)
  1668. local recip = 0.5/s
  1669. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1670. else
  1671. local i = 0
  1672. if m11 > m00 then
  1673. i = 1
  1674. end
  1675. if m22 > (i == 0 and m00 or m11) then
  1676. i = 2
  1677. end
  1678. if i == 0 then
  1679. local s = math.sqrt(m00-m11-m22+1)
  1680. local recip = 0.5/s
  1681. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1682. elseif i == 1 then
  1683. local s = math.sqrt(m11-m22-m00+1)
  1684. local recip = 0.5/s
  1685. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1686. elseif i == 2 then
  1687. local s = math.sqrt(m22-m00-m11+1)
  1688. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1689. end
  1690. end
  1691. end
  1692.  
  1693. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1694. local xs, ys, zs = x + x, y + y, z + z
  1695. local wx, wy, wz = w*xs, w*ys, w*zs
  1696. local xx = x*xs
  1697. local xy = x*ys
  1698. local xz = x*zs
  1699. local yy = y*ys
  1700. local yz = y*zs
  1701. local zz = z*zs
  1702. 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))
  1703. end
  1704.  
  1705. function QuaternionSlerp(a, b, t)
  1706. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1707. local startInterp, finishInterp;
  1708. if cosTheta >= 0.0001 then
  1709. if (1 - cosTheta) > 0.0001 then
  1710. local theta = math.acos(cosTheta)
  1711. local invSinTheta = 1/math.sin(theta)
  1712. startInterp = math.sin((1-t)*theta)*invSinTheta
  1713. finishInterp = math.sin(t*theta)*invSinTheta
  1714. else
  1715. startInterp = 1-t
  1716. finishInterp = t
  1717. end
  1718. else
  1719. if (1+cosTheta) > 0.0001 then
  1720. local theta = math.acos(-cosTheta)
  1721. local invSinTheta = 1/math.sin(theta)
  1722. startInterp = math.sin((t-1)*theta)*invSinTheta
  1723. finishInterp = math.sin(t*theta)*invSinTheta
  1724. else
  1725. startInterp = t-1
  1726. finishInterp = t
  1727. end
  1728. end
  1729. 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
  1730. end
  1731.  
  1732. local function CFrameFromTopBack(at, top, back)
  1733. local right = top:Cross(back)
  1734. return CFrame.new(at.x, at.y, at.z,
  1735. right.x, top.x, back.x,
  1736. right.y, top.y, back.y,
  1737. right.z, top.z, back.z)
  1738. end
  1739.  
  1740. function Triangle(a, b, c)
  1741. local edg1 = (c-a):Dot((b-a).unit)
  1742. local edg2 = (a-b):Dot((c-b).unit)
  1743. local edg3 = (b-c):Dot((a-c).unit)
  1744. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1745. a, b, c = a, b, c
  1746. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1747. a, b, c = b, c, a
  1748. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1749. a, b, c = c, a, b
  1750. else
  1751. assert(false, "unreachable")
  1752. end
  1753.  
  1754. local len1 = (c-a):Dot((b-a).unit)
  1755. local len2 = (b-a).magnitude - len1
  1756. local width = (a + (b-a).unit*len1 - c).magnitude
  1757.  
  1758. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1759.  
  1760. local list = {}
  1761.  
  1762. if len1 > 0.01 then
  1763. local w1 = Instance.new('WedgePart', m)
  1764. game:GetService("Debris"):AddItem(w1,5)
  1765. w1.Material = "SmoothPlastic"
  1766. w1.FormFactor = 'Custom'
  1767. w1.BrickColor = BrickColor.new("Really red")
  1768. w1.Transparency = 0
  1769. w1.Reflectance = 0
  1770. w1.Material = "SmoothPlastic"
  1771. w1.CanCollide = false
  1772. local l1 = Instance.new("PointLight",w1)
  1773. l1.Color = Color3.new(170,0,0)
  1774. NoOutline(w1)
  1775. local sz = Vector3.new(0.2, width, len1)
  1776. w1.Size = sz
  1777. local sp = Instance.new("SpecialMesh",w1)
  1778. sp.MeshType = "Wedge"
  1779. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1780. w1:BreakJoints()
  1781. w1.Anchored = true
  1782. w1.Parent = workspace
  1783. w1.Transparency = 0.7
  1784. table.insert(Effects,{w1,"Disappear",.01})
  1785. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1786. table.insert(list,w1)
  1787. end
  1788.  
  1789. if len2 > 0.01 then
  1790. local w2 = Instance.new('WedgePart', m)
  1791. game:GetService("Debris"):AddItem(w2,5)
  1792. w2.Material = "SmoothPlastic"
  1793. w2.FormFactor = 'Custom'
  1794. w2.BrickColor = BrickColor.new("Really red")
  1795. w2.Transparency = 0
  1796. w2.Reflectance = 0
  1797. w2.Material = "SmoothPlastic"
  1798. w2.CanCollide = false
  1799. local l2 = Instance.new("PointLight",w2)
  1800. l2.Color = Color3.new(170,0,0)
  1801. NoOutline(w2)
  1802. local sz = Vector3.new(0.2, width, len2)
  1803. w2.Size = sz
  1804. local sp = Instance.new("SpecialMesh",w2)
  1805. sp.MeshType = "Wedge"
  1806. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1807. w2:BreakJoints()
  1808. w2.Anchored = true
  1809. w2.Parent = workspace
  1810. w2.Transparency = 0.7
  1811. table.insert(Effects,{w2,"Disappear",.01})
  1812. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1813. table.insert(list,w2)
  1814. end
  1815. return unpack(list)
  1816. end
  1817.  
  1818.  
  1819. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1820. if hit.Parent == nil then
  1821. return
  1822. end
  1823. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1824. for _, v in pairs(hit.Parent:children()) do
  1825. if v:IsA("Humanoid") then
  1826. h = v
  1827. end
  1828. end
  1829. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1830. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1831. return
  1832. end
  1833. local c = Create("ObjectValue")({
  1834. Name = "creator",
  1835. Value = game:GetService("Players").EzzyCrafts2,
  1836. Parent = h
  1837. })
  1838. game:GetService("Debris"):AddItem(c, 0.5)
  1839. if HitSound ~= nil and HitPitch ~= nil then
  1840. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1841. end
  1842. local Damage = math.random(minim, maxim)
  1843. local blocked = false
  1844. local block = hit.Parent:findFirstChild("Block")
  1845. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1846. blocked = true
  1847. block.Value = block.Value - 1
  1848. print(block.Value)
  1849. end
  1850. if blocked == false then
  1851. HitHealth = h.Health
  1852. h.MaxHealth = 100
  1853. h.Health = h.Health - Damage
  1854. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1855. print("gained kill")
  1856. dmg(h.Parent)
  1857. end
  1858. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1859. else
  1860. h.Health = h.Health - Damage / 2
  1861. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1862. end
  1863. if Type == "Knockdown" then
  1864. local hum = hit.Parent.Humanoid
  1865. hum.PlatformStand = true
  1866. coroutine.resume(coroutine.create(function(HHumanoid)
  1867. swait(1)
  1868. HHumanoid.PlatformStand = false
  1869. end), hum)
  1870. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1871. local bodvol = Create("BodyVelocity")({
  1872. velocity = angle * knockback,
  1873. P = 5000,
  1874. maxForce = Vector3.new(8000, 8000, 8000),
  1875. Parent = hit
  1876. })
  1877. local rl = Create("BodyAngularVelocity")({
  1878. P = 3000,
  1879. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1880. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1881. Parent = hit
  1882. })
  1883. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1884. game:GetService("Debris"):AddItem(rl, 0.5)
  1885. elseif Type == "Normal" then
  1886. local vp = Create("BodyVelocity")({
  1887. P = 500,
  1888. maxForce = Vector3.new(math.huge, 0, math.huge),
  1889. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1890. })
  1891. if knockback > 0 then
  1892. vp.Parent = hit.Parent.Head
  1893. end
  1894. game:GetService("Debris"):AddItem(vp, 0.5)
  1895. elseif Type == "Up" then
  1896. local bodyVelocity = Create("BodyVelocity")({
  1897. velocity = Vector3.new(0, 20, 0),
  1898. P = 5000,
  1899. maxForce = Vector3.new(8000, 8000, 8000),
  1900. Parent = hit
  1901. })
  1902. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1903. local bodyVelocity = Create("BodyVelocity")({
  1904. velocity = Vector3.new(0, 20, 0),
  1905. P = 5000,
  1906. maxForce = Vector3.new(8000, 8000, 8000),
  1907. Parent = hit
  1908. })
  1909. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1910. elseif Type == "Leech" then
  1911. local hum = hit.Parent.Humanoid
  1912. if hum ~= nil then
  1913. for i = 0, 2 do
  1914. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1915. end
  1916. Humanoid.Health = Humanoid.Health + 10
  1917. end
  1918. elseif Type == "UpKnock" then
  1919. local hum = hit.Parent.Humanoid
  1920. hum.PlatformStand = true
  1921. if hum ~= nil then
  1922. hitr = true
  1923. end
  1924. coroutine.resume(coroutine.create(function(HHumanoid)
  1925. swait(5)
  1926. HHumanoid.PlatformStand = false
  1927. hitr = false
  1928. end), hum)
  1929. local bodyVelocity = Create("BodyVelocity")({
  1930. velocity = Vector3.new(0, 20, 0),
  1931. P = 5000,
  1932. maxForce = Vector3.new(8000, 8000, 8000),
  1933. Parent = hit
  1934. })
  1935. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1936. local bodyVelocity = Create("BodyVelocity")({
  1937. velocity = Vector3.new(0, 20, 0),
  1938. P = 5000,
  1939. maxForce = Vector3.new(8000, 8000, 8000),
  1940. Parent = hit
  1941. })
  1942. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1943. elseif Type == "Snare" then
  1944. local bp = Create("BodyPosition")({
  1945. P = 2000,
  1946. D = 100,
  1947. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1948. position = hit.Parent.Torso.Position,
  1949. Parent = hit.Parent.Torso
  1950. })
  1951. game:GetService("Debris"):AddItem(bp, 1)
  1952. elseif Type == "Slashnare" then
  1953. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1954. for i = 1, math.random(4, 5) do
  1955. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1956. end
  1957. local bp = Create("BodyPosition")({
  1958. P = 2000,
  1959. D = 100,
  1960. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1961. position = hit.Parent.Torso.Position,
  1962. Parent = hit.Parent.Torso
  1963. })
  1964. game:GetService("Debris"):AddItem(bp, 1)
  1965. elseif Type == "Spike" then
  1966. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1967. local bp = Create("BodyPosition")({
  1968. P = 2000,
  1969. D = 100,
  1970. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1971. position = hit.Parent.Torso.Position,
  1972. Parent = hit.Parent.Torso
  1973. })
  1974. game:GetService("Debris"):AddItem(bp, 1)
  1975. elseif Type == "Freeze" then
  1976. local BodPos = Create("BodyPosition")({
  1977. P = 50000,
  1978. D = 1000,
  1979. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1980. position = hit.Parent.Torso.Position,
  1981. Parent = hit.Parent.Torso
  1982. })
  1983. local BodGy = Create("BodyGyro")({
  1984. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1985. P = 20000,
  1986. Parent = hit.Parent.Torso,
  1987. cframe = hit.Parent.Torso.CFrame
  1988. })
  1989. hit.Parent.Torso.Anchored = true
  1990. coroutine.resume(coroutine.create(function(Part)
  1991. swait(1.5)
  1992. Part.Anchored = false
  1993. end), hit.Parent.Torso)
  1994. game:GetService("Debris"):AddItem(BodPos, 3)
  1995. game:GetService("Debris"):AddItem(BodGy, 3)
  1996. end
  1997. local debounce = Create("BoolValue")({
  1998. Name = "DebounceHit",
  1999. Parent = hit.Parent,
  2000. Value = true
  2001. })
  2002. game:GetService("Debris"):AddItem(debounce, Delay)
  2003. c = Instance.new("ObjectValue")
  2004. c.Name = "creator"
  2005. c.Value = Player
  2006. c.Parent = h
  2007. game:GetService("Debris"):AddItem(c, 0.5)
  2008. end
  2009. end
  2010. function ShowDamage(Pos, Text, Time, Color)
  2011. local Rate = 0.03333333333333333
  2012. local Pos = Pos or Vector3.new(0, 0, 0)
  2013. local Text = Text or ""
  2014. local Time = Time or 2
  2015. local Color = Color or Color3.new(1, 0, 1)
  2016. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2017. EffectPart.Anchored = true
  2018. local BillboardGui = Create("BillboardGui")({
  2019. Size = UDim2.new(3, 0, 3, 0),
  2020. Adornee = EffectPart,
  2021. Parent = EffectPart
  2022. })
  2023. local TextLabel = Create("TextLabel")({
  2024. BackgroundTransparency = 1,
  2025. Size = UDim2.new(1, 0, 1, 0),
  2026. Text = Text,
  2027. TextColor3 = Color,
  2028. TextScaled = true,
  2029. Font = Enum.Font.ArialBold,
  2030. Parent = BillboardGui
  2031. })
  2032. game.Debris:AddItem(EffectPart, Time + 0.1)
  2033. EffectPart.Parent = game:GetService("Workspace")
  2034. delay(0, function()
  2035. local Frames = Time / Rate
  2036. for Frame = 1, Frames do
  2037. wait(Rate)
  2038. local Percent = Frame / Frames
  2039. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2040. TextLabel.TextTransparency = Percent
  2041. end
  2042. if EffectPart and EffectPart.Parent then
  2043. EffectPart:Destroy()
  2044. end
  2045. end)
  2046. end
  2047. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2048. for _, c in pairs(workspace:children()) do
  2049. local hum = c:findFirstChildOfClass("Humanoid")
  2050. if hum ~= nil then
  2051. local head = c:findFirstChild("Head")
  2052. if head ~= nil then
  2053. local targ = head.Position - Part.Position
  2054. local mag = targ.magnitude
  2055. if magni >= mag and c.Name ~= Player.Name then
  2056. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2057. end
  2058. end
  2059. end
  2060. end
  2061. end
  2062.  
  2063. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2064. for _, c in pairs(workspace:children()) do
  2065. local hum = c:findFirstChild("Humanoid")
  2066. if hum ~= nil then
  2067. local head = c:findFirstChild("Torso")
  2068. if head ~= nil then
  2069. local targ = head.Position - Part.Position
  2070. local mag = targ.magnitude
  2071. if magni >= mag and c.Name ~= Player.Name then
  2072. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2073. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2074. end
  2075. end
  2076. end
  2077. end
  2078. end
  2079.  
  2080. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2081. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2082. end
  2083.  
  2084. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2085. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2086. prt.Anchored=true
  2087. prt.CFrame=cframe
  2088. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2089. --http://www.roblox.com/asset/?id=4770560
  2090. game:GetService("Debris"):AddItem(prt,2)
  2091. CF=prt.CFrame
  2092. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2093. for i=0,1,0.2 do
  2094. wait()
  2095. Part.CFrame=CF*cf(0,0,-0.4)
  2096. end
  2097. for i=0,1,delay do
  2098. wait()
  2099. --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)
  2100. Mesh.Scale=Mesh.Scale
  2101. end
  2102. for i=0,1,0.1 do
  2103. wait()
  2104. Part.Transparency=i
  2105. end
  2106. Part.Parent=nil
  2107. end),prt,msh,CF)
  2108. end
  2109.  
  2110. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2111. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2112. prt.Anchored=true
  2113. prt.Material = "Neon"
  2114. prt.CFrame=cframe
  2115. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2116. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2117. game:GetService("Debris"):AddItem(prt,5)
  2118. coroutine.resume(coroutine.create(function(Part,Mesh)
  2119. for i=0,1,delay do
  2120. swait()
  2121. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2122. Part.Transparency=i
  2123. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2124. end
  2125. Part.Parent=nil
  2126. end),prt,msh)
  2127. end
  2128.  
  2129. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2130. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2131. prt.Anchored=true
  2132. prt.Material = "Neon"
  2133. prt.CFrame=cframe
  2134. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2135. game:GetService("Debris"):AddItem(prt,5)
  2136. coroutine.resume(coroutine.create(function(Part,Mesh)
  2137. local rtype = rottype
  2138. for i=0,1,delay do
  2139. swait()
  2140. if rtype == 1 then
  2141. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2142. elseif rtype == 2 then
  2143. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2144. end
  2145. Part.Transparency=i
  2146. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2147. end
  2148. Part.Parent=nil
  2149. end),prt,msh)
  2150. end
  2151.  
  2152. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2153. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2154. prt.Anchored=true
  2155. prt.CFrame=cframe
  2156. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2157. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2158. game:GetService("Debris"):AddItem(prt,5)
  2159. coroutine.resume(coroutine.create(function(Part,Mesh)
  2160. for i=0,1,delay do
  2161. wait()
  2162. Part.Transparency=i
  2163. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2164. end
  2165. Part.Parent=nil
  2166. end),prt,msh)
  2167. end
  2168.  
  2169. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2170. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2171. prt.Anchored=true
  2172. prt.Material = "Neon"
  2173. prt.CFrame=cframe
  2174. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2175. game:GetService("Debris"):AddItem(prt,5)
  2176. coroutine.resume(coroutine.create(function(Part,Mesh)
  2177. local rtype = rottype
  2178. for i=0,1,delay do
  2179. swait()
  2180. if rtype == 1 then
  2181. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2182. elseif rtype == 2 then
  2183. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2184. end
  2185. Part.Transparency=i
  2186. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2187. end
  2188. Part.Parent=nil
  2189. end),prt,msh)
  2190. end
  2191.  
  2192. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2193. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2194. prt.Anchored=true
  2195. prt.Material = "Neon"
  2196. prt.CFrame=cframe
  2197. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2198. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2199. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2200. game:GetService("Debris"):AddItem(prt,5)
  2201. coroutine.resume(coroutine.create(function(Part,Mesh)
  2202. local rtype = rottype
  2203. for i=0,1,delay do
  2204. swait()
  2205. if rtype == 1 then
  2206. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2207. elseif rtype == 2 then
  2208. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2209. end
  2210. dec.Transparency=i
  2211. dec2.Transparency=i
  2212. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2213. end
  2214. Part.Parent=nil
  2215. end),prt,msh)
  2216. end
  2217.  
  2218. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2219. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2220. prt.Anchored=true
  2221. prt.Material = "Neon"
  2222. prt.CFrame=cframe
  2223. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2224. game:GetService("Debris"):AddItem(prt,5)
  2225. coroutine.resume(coroutine.create(function(Part,Mesh)
  2226. local rtype = rottype
  2227. for i=0,1,delay do
  2228. swait()
  2229. if rtype == 1 then
  2230. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2231. elseif rtype == 2 then
  2232. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2233. end
  2234. prt.Transparency=i
  2235. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2236. end
  2237. Part.Parent=nil
  2238. end),prt,msh)
  2239. end
  2240.  
  2241. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2242. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2243. prt.Anchored=true
  2244. prt.Material = "Neon"
  2245. prt.CFrame=cframe
  2246. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2247. game:GetService("Debris"):AddItem(prt,5)
  2248. coroutine.resume(coroutine.create(function(Part,Mesh)
  2249. local rtype = rottype
  2250. for i=0,1,delay do
  2251. swait()
  2252. if rtype == 1 then
  2253. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2254. elseif rtype == 2 then
  2255. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2256. end
  2257. prt.Transparency=i
  2258. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2259. end
  2260. Part.Parent=nil
  2261. end),prt,msh)
  2262. end
  2263.  
  2264. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2265. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2266. prt.Anchored=true
  2267. prt.Material = "Neon"
  2268. prt.CFrame=cframe
  2269. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2270. game:GetService("Debris"):AddItem(prt,5)
  2271. coroutine.resume(coroutine.create(function(Part,Mesh)
  2272. local rtype = rottype
  2273. for i=0,1,delay do
  2274. swait()
  2275. if rtype == 1 then
  2276. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2277. elseif rtype == 2 then
  2278. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2279. end
  2280. prt.Transparency=i
  2281. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2282. end
  2283. Part.Parent=nil
  2284. end),prt,msh)
  2285. end
  2286.  
  2287. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2288. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2289. prt.Anchored=true
  2290. prt.Material = "Neon"
  2291. prt.CFrame=cframe
  2292. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2293. game:GetService("Debris"):AddItem(prt,5)
  2294. coroutine.resume(coroutine.create(function(Part,Mesh)
  2295. local rtype = rottype
  2296. for i=0,1,delay do
  2297. swait()
  2298. if rtype == 1 then
  2299. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2300. elseif rtype == 2 then
  2301. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2302. end
  2303. prt.Transparency=i
  2304. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2305. end
  2306. Part.Parent=nil
  2307. end),prt,msh)
  2308. end
  2309.  
  2310. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2311. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2312. prt.Anchored=false
  2313. prt.CFrame=cframe
  2314. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2315. local wld=weld(prt,prt,Parent,cframe)
  2316. game:GetService("Debris"):AddItem(prt,5)
  2317. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2318. for i=0,1,delay do
  2319. wait()
  2320. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2321. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2322. Part.Transparency=i
  2323. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2324. end
  2325. Part.Parent=nil
  2326. end),prt,msh,wld)
  2327. end
  2328.  
  2329. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2330. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2331. prt.Anchored=false
  2332. prt.CFrame=cframe
  2333. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2334. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2335. game:GetService("Debris"):AddItem(prt,5)
  2336. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2337. for i=0,1,delay do
  2338. wait()
  2339. Weld.C0=euler(i*20,0,0)
  2340. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2341. Part.Transparency=i
  2342. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2343. end
  2344. Part.Parent=nil
  2345. end),prt,msh,wld)
  2346. end
  2347.  
  2348. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2349. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2350. prt.Anchored=true
  2351. prt.CFrame=cframe
  2352. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2353. game:GetService("Debris"):AddItem(prt,2)
  2354. coroutine.resume(coroutine.create(function(Part,Mesh)
  2355. for i=0,1,delay do
  2356. wait()
  2357. Part.CFrame=Part.CFrame
  2358. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2359. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2360. prt2.Anchored=true
  2361. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2362. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2363. game:GetService("Debris"):AddItem(prt2,2)
  2364. coroutine.resume(coroutine.create(function(Part,Mesh)
  2365. for i=0,1,0.1 do
  2366. wait()
  2367. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2368. end
  2369. Part.Parent=nil
  2370. end),prt2,msh2)
  2371. end
  2372. for i=0,1,delay*2 do
  2373. wait()
  2374. Part.CFrame=Part.CFrame
  2375. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2376. end
  2377. Part.Parent=nil
  2378. end),prt,msh)
  2379. end
  2380.  
  2381. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2382. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2383. prt.Anchored=true
  2384. prt.CFrame=cframe
  2385. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2386. game:GetService("Debris"):AddItem(prt,2)
  2387. coroutine.resume(coroutine.create(function(Part,Mesh)
  2388. for i=0,1,delay do
  2389. wait()
  2390. Part.CFrame=Part.CFrame
  2391. Part.Transparency=i
  2392. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2393. end
  2394. Part.Parent=nil
  2395. end),prt,msh)
  2396. end
  2397.  
  2398. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2399. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2400. prt.Anchored=true
  2401. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2402. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2403. game:GetService("Debris"):AddItem(prt,2)
  2404. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2405. CF=Part.CFrame
  2406. Numbb=0
  2407. randnumb=math.random()/10
  2408. rand1=math.random()/10
  2409. for i=0,1,rand1 do
  2410. wait()
  2411. CF=CF*cf(0,math.random()/2,0)
  2412. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2413. Part.CFrame=CF*euler(Numbb,0,0)
  2414. Part.Transparency=i
  2415. Numbb=Numbb+randnumb
  2416. end
  2417. Part.Parent=nil
  2418. end),prt,CF,Numbb,randnumb)
  2419. end
  2420.  
  2421. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2422. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2423. prt.Anchored=true
  2424. prt.CFrame=cframe
  2425. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2426. game:GetService("Debris"):AddItem(prt,5)
  2427. coroutine.resume(coroutine.create(function(Part,Mesh)
  2428. for i=0,1,delay do
  2429. wait()
  2430. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2431. Part.Transparency=i
  2432. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2433. end
  2434. Part.Parent=nil
  2435. end),prt,msh)
  2436. end
  2437.  
  2438. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2439. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2440. prt.Anchored=true
  2441. prt.CFrame=cframe
  2442. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2443. game:GetService("Debris"):AddItem(prt,2)
  2444. coroutine.resume(coroutine.create(function(Part,Mesh)
  2445. for i=0,1,delay do
  2446. wait()
  2447. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2448. Part.Transparency=i
  2449. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2450. end
  2451. Part.Parent=nil
  2452. end),prt,msh)
  2453. end
  2454.  
  2455. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2456. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2457. prt.Anchored=true
  2458. prt.CFrame=cframe*cf(x,y,z)
  2459. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2460. game:GetService("Debris"):AddItem(prt,5)
  2461. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2462. local num=math.random()
  2463. local num2=math.random(-3,2)+math.random()
  2464. local numm=0
  2465. for i=0,1,delay*2 do
  2466. swait()
  2467. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2468. Part.Transparency=i
  2469. numm=numm+0.01
  2470. end
  2471. Part.Parent=nil
  2472. Mesh.Parent=nil
  2473. end),prt,msh,x,y,z)
  2474. end
  2475.  
  2476. function dmgstart(dmg,what)
  2477. hitcon = what.Touched:connect(function(hit)
  2478. local hum = hit.Parent:FindFirstChild("Humanoid")
  2479. if hum and not hum:IsDescendantOf(Character) then
  2480. hum:TakeDamage(dmg)
  2481. end
  2482. end)
  2483. end
  2484.  
  2485. function dmgstop()
  2486. hitcon:disconnect()
  2487. end
  2488.  
  2489. function Cloak()
  2490. Face.Parent=nil
  2491. cloaked=true
  2492. for _,v in pairs(Torso.Parent:children()) do
  2493. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2494. coroutine.resume(coroutine.create(function()
  2495. for i=0,1,0.2 do
  2496. wait()
  2497. v.Transparency=i
  2498. end
  2499. v.Transparency=1
  2500. end))
  2501. end
  2502. if v.className=="Hat" then
  2503. hatp=v.Handle
  2504. coroutine.resume(coroutine.create(function(derp)
  2505. for i=0,1,0.2 do
  2506. wait()
  2507. derp.Transparency=i
  2508. end
  2509. derp.Transparency=1
  2510. end),hatp)
  2511. end
  2512. end
  2513. for _,v in pairs(m:children()) do
  2514. if v.className=="Part" then
  2515. coroutine.resume(coroutine.create(function()
  2516. for i=0,1,0.2 do
  2517. wait()
  2518. v.Transparency=i
  2519. end
  2520. v.Transparency=1
  2521. end))
  2522. end
  2523. end
  2524. end
  2525.  
  2526. function UnCloak()
  2527. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2528. Face.Parent=Head
  2529. cloaked=false
  2530. for _,v in pairs(Torso.Parent:children()) do
  2531. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2532. coroutine.resume(coroutine.create(function()
  2533. for i=0,1,0.1 do
  2534. wait()
  2535. v.Transparency=v.Transparency-0.1
  2536. end
  2537. v.Transparency=0
  2538. end))
  2539. end
  2540. if v.className=="Hat" then
  2541. hatp=v.Handle
  2542. coroutine.resume(coroutine.create(function(derp)
  2543. for i=0,1,0.1 do
  2544. wait()
  2545. derp.Transparency=derp.Transparency-0.1
  2546. end
  2547. derp.Transparency=0
  2548. end),hatp)
  2549. end
  2550. end
  2551. for _,v in pairs(m:children()) do
  2552. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2553. coroutine.resume(coroutine.create(function()
  2554. for i=0,1,0.1 do
  2555. wait()
  2556. v.Transparency=v.Transparency-0.1
  2557. end
  2558. v.Transparency=0
  2559. end))
  2560. v.Transparency=0
  2561. end
  2562. end
  2563. end
  2564.  
  2565. local origcolor = BrickColor.new("Pastel light blue")
  2566. ---- This section of explosions.
  2567.  
  2568. ----
  2569.  
  2570.  
  2571. function ring(type,pos,scale,value)
  2572. local type = type
  2573. local rng = Instance.new("Part", char)
  2574. rng.Anchored = true
  2575. rng.BrickColor = origcolor
  2576. rng.CanCollide = false
  2577. rng.FormFactor = 3
  2578. rng.Name = "Ring"
  2579. rng.Size = Vector3.new(1, 1, 1)
  2580. rng.Transparency = 0
  2581. rng.TopSurface = 0
  2582. rng.BottomSurface = 0
  2583. rng.CFrame = pos
  2584. local rngm = Instance.new("SpecialMesh", rng)
  2585. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2586. rngm.Scale = scale
  2587. local scaler2 = 1
  2588. if type == "Add" then
  2589. scaler2 = 1*value
  2590. elseif type == "Divide" then
  2591. scaler2 = 1/value
  2592. end
  2593. coroutine.resume(coroutine.create(function()
  2594. for i = 0,10,0.1 do
  2595. swait()
  2596. if type == "Add" then
  2597. scaler2 = scaler2 - 0.01*value
  2598. elseif type == "Divide" then
  2599. scaler2 = scaler2 - 0.01/value
  2600. end
  2601. rng.Transparency = rng.Transparency + 0.01
  2602. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2603. end
  2604. rng:Destroy()
  2605. end))
  2606. end
  2607.  
  2608.  
  2609. function wave(type,pos,scale,value)
  2610. local type = type
  2611. local rng = Instance.new("Part", char)
  2612. rng.Anchored = true
  2613. rng.BrickColor = origcolor
  2614. rng.CanCollide = false
  2615. rng.FormFactor = 3
  2616. rng.Name = "Ring"
  2617. rng.Size = Vector3.new(1, 1, 1)
  2618. rng.Transparency = 0
  2619. rng.TopSurface = 0
  2620. rng.BottomSurface = 0
  2621. rng.CFrame = pos
  2622. local rngm = Instance.new("SpecialMesh", rng)
  2623. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2624. rngm.Scale = scale
  2625. local scaler2 = 1
  2626. if type == "Add" then
  2627. scaler2 = 1*value
  2628. elseif type == "Divide" then
  2629. scaler2 = 1/value
  2630. end
  2631. coroutine.resume(coroutine.create(function()
  2632. for i = 0,10,0.1 do
  2633. swait()
  2634. if type == "Add" then
  2635. scaler2 = scaler2 - 0.01*value
  2636. elseif type == "Divide" then
  2637. scaler2 = scaler2 - 0.01/value
  2638. end
  2639. rng.Transparency = rng.Transparency + 0.01
  2640. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2641. end
  2642. rng:Destroy()
  2643. end))
  2644. end
  2645.  
  2646. function wind(type,pos,scale,value,speed)
  2647. local type = type
  2648. local rng = Instance.new("Part", char)
  2649. rng.Anchored = true
  2650. rng.BrickColor = origcolor
  2651. rng.CanCollide = false
  2652. rng.FormFactor = 3
  2653. rng.Name = "Ring"
  2654. rng.Size = Vector3.new(1, 1, 1)
  2655. rng.Transparency = 0
  2656. rng.TopSurface = 0
  2657. rng.BottomSurface = 0
  2658. rng.CFrame = pos
  2659. local rngm = Instance.new("SpecialMesh", rng)
  2660. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2661. rngm.Scale = scale
  2662. local scaler2 = 1
  2663. if type == "Add" then
  2664. scaler2 = 1*value
  2665. elseif type == "Divide" then
  2666. scaler2 = 1/value
  2667. end
  2668. coroutine.resume(coroutine.create(function()
  2669. for i = 0,10,0.1 do
  2670. swait()
  2671. if type == "Add" then
  2672. scaler2 = scaler2 - 0.01*value
  2673. elseif type == "Divide" then
  2674. scaler2 = scaler2 - 0.01/value
  2675. end
  2676. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2677. rng.Transparency = rng.Transparency + 0.01
  2678. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2679. end
  2680. rng:Destroy()
  2681. end))
  2682. end
  2683.  
  2684. function groundwind(type,pos,scale,value,speed)
  2685. local type = type
  2686. local rng = Instance.new("Part", char)
  2687. rng.Anchored = true
  2688. rng.BrickColor = origcolor
  2689. rng.CanCollide = false
  2690. rng.FormFactor = 3
  2691. rng.Name = "Ring"
  2692. rng.Size = Vector3.new(1, 1, 1)
  2693. rng.Transparency = 0
  2694. rng.TopSurface = 0
  2695. rng.BottomSurface = 0
  2696. rng.CFrame = pos
  2697. local rngm = Instance.new("SpecialMesh", rng)
  2698. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2699. rngm.Scale = scale
  2700. local scaler2 = 1
  2701. if type == "Add" then
  2702. scaler2 = 1*value
  2703. elseif type == "Divide" then
  2704. scaler2 = 1/value
  2705. end
  2706. coroutine.resume(coroutine.create(function()
  2707. for i = 0,10,0.1 do
  2708. swait()
  2709. if type == "Add" then
  2710. scaler2 = scaler2 - 0.01*value
  2711. elseif type == "Divide" then
  2712. scaler2 = scaler2 - 0.01/value
  2713. end
  2714. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2715. rng.Transparency = rng.Transparency + 0.01
  2716. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2717. end
  2718. rng:Destroy()
  2719. end))
  2720. end
  2721.  
  2722. function CameraManager()
  2723. if TwoD and not CamInterrupt then
  2724. if Humanoid.Health > 0 then
  2725. Camera.CameraSubject = Humanoid
  2726. Camera.CameraType = "Scriptable"
  2727. Humanoid.AutoRotate = false
  2728. if Booleans.GyroUse then
  2729. Directer.MaxTorque = Vec3(0, huge, 0)
  2730. else
  2731. Directer.MaxTorque = Vec3(0, 0, 0)
  2732. end
  2733. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2734. if Booleans.CamFollow then
  2735. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2736. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2737. else
  2738. CPart.Position = RootPart.Position
  2739. end
  2740. else
  2741. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2742. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2743. end
  2744. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2745. else
  2746. Camera.CameraSubject = Humanoid
  2747. Camera.CameraType = "Custom"
  2748. Controller.Disabled = false
  2749. end
  2750. end
  2751. end
  2752.  
  2753. function ring(type,pos,scale,value)
  2754. local type = type
  2755. local rng = Instance.new("Part", char)
  2756. rng.Anchored = true
  2757. rng.BrickColor = origcolor
  2758. rng.CanCollide = false
  2759. rng.FormFactor = 3
  2760. rng.Name = "Ring"
  2761. rng.Size = Vector3.new(1, 1, 1)
  2762. rng.Transparency = 0
  2763. rng.TopSurface = 0
  2764. rng.BottomSurface = 0
  2765. rng.CFrame = pos
  2766. local rngm = Instance.new("SpecialMesh", rng)
  2767. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2768. rngm.Scale = scale
  2769. local scaler2 = 1
  2770. if type == "Add" then
  2771. scaler2 = 1*value
  2772. elseif type == "Divide" then
  2773. scaler2 = 1/value
  2774. end
  2775. coroutine.resume(coroutine.create(function()
  2776. for i = 0,10,0.1 do
  2777. swait()
  2778. if type == "Add" then
  2779. scaler2 = scaler2 - 0.01*value
  2780. elseif type == "Divide" then
  2781. scaler2 = scaler2 - 0.01/value
  2782. end
  2783. rng.Transparency = rng.Transparency + 0.01
  2784. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2785. end
  2786. rng:Destroy()
  2787. end))
  2788. end
  2789.  
  2790.  
  2791. function wave(type,pos,scale,value)
  2792. local type = type
  2793. local rng = Instance.new("Part", char)
  2794. rng.Anchored = true
  2795. rng.BrickColor = origcolor
  2796. rng.CanCollide = false
  2797. rng.FormFactor = 3
  2798. rng.Name = "Ring"
  2799. rng.Size = Vector3.new(1, 1, 1)
  2800. rng.Transparency = 0
  2801. rng.TopSurface = 0
  2802. rng.BottomSurface = 0
  2803. rng.CFrame = pos
  2804. local rngm = Instance.new("SpecialMesh", rng)
  2805. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2806. rngm.Scale = scale
  2807. local scaler2 = 1
  2808. if type == "Add" then
  2809. scaler2 = 1*value
  2810. elseif type == "Divide" then
  2811. scaler2 = 1/value
  2812. end
  2813. coroutine.resume(coroutine.create(function()
  2814. for i = 0,10,0.1 do
  2815. swait()
  2816. if type == "Add" then
  2817. scaler2 = scaler2 - 0.01*value
  2818. elseif type == "Divide" then
  2819. scaler2 = scaler2 - 0.01/value
  2820. end
  2821. rng.Transparency = rng.Transparency + 0.01
  2822. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2823. end
  2824. rng:Destroy()
  2825. end))
  2826. end
  2827.  
  2828. function sphere(bonuspeed,type,pos,scale,value,color)
  2829. local type = type
  2830. local rng = Instance.new("Part", char)
  2831. rng.Anchored = true
  2832. if ModeOfGlitch ~= 9 then
  2833. rng.BrickColor = color
  2834. elseif ModeOfGlitch == 9 then
  2835. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2836. end
  2837. rng.CanCollide = false
  2838. rng.FormFactor = 3
  2839. rng.Name = "Ring"
  2840. rng.Material = "Neon"
  2841. rng.Size = Vector3.new(1, 1, 1)
  2842. rng.Transparency = 0
  2843. rng.TopSurface = 0
  2844. rng.BottomSurface = 0
  2845. rng.CFrame = pos
  2846. local rngm = Instance.new("SpecialMesh", rng)
  2847. rngm.MeshType = "Sphere"
  2848. rngm.Scale = scale
  2849. if rainbowmode == true then
  2850. rng.Color = Color3.new(r/255,g/255,b/255)
  2851. end
  2852. if ModeOfGlitch == 9 then
  2853. coroutine.resume(coroutine.create(function()
  2854. while true do
  2855. swait()
  2856. if rng.Parent ~= nil then
  2857. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2858. else
  2859. break
  2860. end
  2861. end
  2862. end))
  2863. end
  2864. local scaler2 = 1
  2865. if type == "Add" then
  2866. scaler2 = 1*value
  2867. elseif type == "Divide" then
  2868. scaler2 = 1/value
  2869. end
  2870. coroutine.resume(coroutine.create(function()
  2871. for i = 0,10/bonuspeed,0.1 do
  2872. swait()
  2873. if rainbowmode == true then
  2874. rng.Color = Color3.new(r/255,g/255,b/255)
  2875. end
  2876. if type == "Add" then
  2877. scaler2 = scaler2 - 0.01*value/bonuspeed
  2878. elseif type == "Divide" then
  2879. scaler2 = scaler2 - 0.01/value*bonuspeed
  2880. end
  2881. if chaosmode == true then
  2882. rng.BrickColor = BrickColor.random()
  2883. end
  2884. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2885. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2886. end
  2887. rng:Destroy()
  2888. end))
  2889. end
  2890.  
  2891. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2892. local type = type
  2893. local rng = Instance.new("Part", char)
  2894. rng.Anchored = true
  2895. if ModeOfGlitch ~= 9 then
  2896. rng.BrickColor = color
  2897. elseif ModeOfGlitch == 9 then
  2898. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2899. end
  2900. rng.CanCollide = false
  2901. rng.FormFactor = 3
  2902. rng.Name = "Ring"
  2903. rng.Material = "Neon"
  2904. rng.Size = Vector3.new(1, 1, 1)
  2905. rng.Transparency = 0
  2906. rng.TopSurface = 0
  2907. rng.BottomSurface = 0
  2908. rng.CFrame = pos
  2909. local rngm = Instance.new("SpecialMesh", rng)
  2910. rngm.MeshType = "Sphere"
  2911. rngm.Scale = scale
  2912. local scaler2 = 1
  2913. local scaler2b = 1
  2914. local scaler2c = 1
  2915. if type == "Add" then
  2916. scaler2 = 1*value
  2917. scaler2b = 1*value2
  2918. scaler2c = 1*value3
  2919. elseif type == "Divide" then
  2920. scaler2 = 1/value
  2921. scaler2b = 1/value2
  2922. scaler2c = 1/value3
  2923. end
  2924. if ModeOfGlitch == 9 then
  2925. coroutine.resume(coroutine.create(function()
  2926. while true do
  2927. swait()
  2928. if rng.Parent ~= nil then
  2929. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2930. else
  2931. break
  2932. end
  2933. end
  2934. end))
  2935. end
  2936. coroutine.resume(coroutine.create(function()
  2937. for i = 0,10/bonuspeed,0.1 do
  2938. swait()
  2939. if type == "Add" then
  2940. scaler2 = scaler2 - 0.01*value/bonuspeed
  2941. scaler2b = scaler2b - 0.01*value/bonuspeed
  2942. scaler2c = scaler2c - 0.01*value/bonuspeed
  2943. elseif type == "Divide" then
  2944. scaler2 = scaler2 - 0.01/value*bonuspeed
  2945. scaler2b = scaler2b - 0.01/value*bonuspeed
  2946. scaler2c = scaler2c - 0.01/value*bonuspeed
  2947. end
  2948. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2949. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2950. end
  2951. rng:Destroy()
  2952. end))
  2953. end
  2954.  
  2955. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2956. local type = type
  2957. local rotenable = rotatingop
  2958. local rng = Instance.new("Part", char)
  2959. rng.Anchored = true
  2960. rng.BrickColor = color
  2961. rng.CanCollide = false
  2962. rng.FormFactor = 3
  2963. rng.Name = "Ring"
  2964. rng.Material = "Neon"
  2965. rng.Size = Vector3.new(1, 1, 1)
  2966. rng.Transparency = 0
  2967. if typeoftrans == "In" then
  2968. rng.Transparency = 1
  2969. end
  2970. rng.TopSurface = 0
  2971. rng.BottomSurface = 0
  2972. rng.CFrame = pos
  2973. local rngm = Instance.new("SpecialMesh", rng)
  2974. rngm.MeshType = "FileMesh"
  2975. if typeofshape == "Normal" then
  2976. rngm.MeshId = "rbxassetid://662586858"
  2977. elseif typeofshape == "Round" then
  2978. rngm.MeshId = "rbxassetid://662585058"
  2979. end
  2980. rngm.Scale = scale
  2981. local scaler2 = 1/10
  2982. if type == "Add" then
  2983. scaler2 = 1*value/10
  2984. elseif type == "Divide" then
  2985. scaler2 = 1/value/10
  2986. end
  2987. local randomrot = math.random(1,2)
  2988. coroutine.resume(coroutine.create(function()
  2989. for i = 0,10/bonuspeed,0.1 do
  2990. swait()
  2991. if type == "Add" then
  2992. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2993. elseif type == "Divide" then
  2994. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2995. end
  2996. if rotenable == true then
  2997. if randomrot == 1 then
  2998. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2999. elseif randomrot == 2 then
  3000. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3001. end
  3002. end
  3003. if typeoftrans == "Out" then
  3004. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3005. elseif typeoftrans == "In" then
  3006. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3007. end
  3008. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3009. end
  3010. rng:Destroy()
  3011. end))
  3012. end
  3013.  
  3014. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3015. local type = type
  3016. local rng = Instance.new("Part", char)
  3017. rng.Anchored = true
  3018. rng.BrickColor = color
  3019. rng.CanCollide = false
  3020. rng.FormFactor = 3
  3021. rng.Name = "Ring"
  3022. rng.Material = "Neon"
  3023. rng.Size = Vector3.new(1, 1, 1)
  3024. rng.Transparency = 0
  3025. rng.TopSurface = 0
  3026. rng.BottomSurface = 0
  3027. rng.CFrame = pos
  3028. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3029. local rngm = Instance.new("SpecialMesh", rng)
  3030. rngm.MeshType = "Brick"
  3031. rngm.Scale = vt(x1,y1,z1)
  3032. if rainbowmode == true then
  3033. rng.Color = Color3.new(r/255,g/255,b/255)
  3034. end
  3035. local scaler2 = 1
  3036. local speeder = FastSpeed/10
  3037. if type == "Add" then
  3038. scaler2 = 1*value
  3039. elseif type == "Divide" then
  3040. scaler2 = 1/value
  3041. end
  3042. coroutine.resume(coroutine.create(function()
  3043. for i = 0,10/bonuspeed,0.1 do
  3044. swait()
  3045. if rainbowmode == true then
  3046. rng.Color = Color3.new(r/255,g/255,b/255)
  3047. end
  3048. if type == "Add" then
  3049. scaler2 = scaler2 - 0.01*value/bonuspeed
  3050. elseif type == "Divide" then
  3051. scaler2 = scaler2 - 0.01/value*bonuspeed
  3052. end
  3053. if chaosmode == true then
  3054. rng.BrickColor = BrickColor.random()
  3055. end
  3056. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3057. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3058. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3059. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3060. end
  3061. rng:Destroy()
  3062. end))
  3063. end
  3064.  
  3065. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3066. local type = type
  3067. local rng = Instance.new("Part", char)
  3068. rng.Anchored = true
  3069. rng.BrickColor = color
  3070. rng.CanCollide = false
  3071. rng.FormFactor = 3
  3072. rng.Name = "Ring"
  3073. rng.Material = "Neon"
  3074. rng.Size = Vector3.new(1, 1, 1)
  3075. rng.Transparency = 0
  3076. rng.TopSurface = 0
  3077. rng.BottomSurface = 0
  3078. rng.CFrame = pos
  3079. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3080. local rngm = Instance.new("SpecialMesh", rng)
  3081. rngm.MeshType = "Brick"
  3082. rngm.Scale = vt(x1,y1,z1)
  3083. if rainbowmode == true then
  3084. rng.Color = Color3.new(r/255,g/255,b/255)
  3085. end
  3086. local scaler2 = 1
  3087. local speeder = FastSpeed/10
  3088. if type == "Add" then
  3089. scaler2 = 1*value
  3090. elseif type == "Divide" then
  3091. scaler2 = 1/value
  3092. end
  3093. coroutine.resume(coroutine.create(function()
  3094. for i = 0,10/bonuspeed,0.1 do
  3095. swait()
  3096. if rainbowmode == true then
  3097. rng.Color = Color3.new(r/255,g/255,b/255)
  3098. end
  3099. if type == "Add" then
  3100. scaler2 = scaler2 - 0.01*value/bonuspeed
  3101. elseif type == "Divide" then
  3102. scaler2 = scaler2 - 0.01/value*bonuspeed
  3103. end
  3104. if chaosmode == true then
  3105. rng.BrickColor = BrickColor.random()
  3106. end
  3107. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3108. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3109. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3110. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3111. end
  3112. rng:Destroy()
  3113. end))
  3114. end
  3115.  
  3116. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3117. local type = type
  3118. local rng = Instance.new("Part", char)
  3119. rng.Anchored = true
  3120. rng.BrickColor = color
  3121. rng.CanCollide = false
  3122. rng.FormFactor = 3
  3123. rng.Name = "Ring"
  3124. rng.Material = "Neon"
  3125. rng.Size = Vector3.new(1, 1, 1)
  3126. rng.Transparency = 0
  3127. rng.TopSurface = 0
  3128. rng.BottomSurface = 0
  3129. rng.CFrame = pos
  3130. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3131. local rngm = Instance.new("SpecialMesh", rng)
  3132. rngm.MeshType = "Brick"
  3133. rngm.Scale = vt(x1,y1,z1)
  3134. if rainbowmode == true then
  3135. rng.Color = Color3.new(r/255,g/255,b/255)
  3136. end
  3137. local scaler2 = 0
  3138. local speeder = FastSpeed/10
  3139. if type == "Add" then
  3140. scaler2 = 1*value
  3141. elseif type == "Divide" then
  3142. scaler2 = 1/value
  3143. end
  3144. coroutine.resume(coroutine.create(function()
  3145. for i = 0,10/bonuspeed,0.1 do
  3146. swait()
  3147. if rainbowmode == true then
  3148. rng.Color = Color3.new(r/255,g/255,b/255)
  3149. end
  3150. if type == "Add" then
  3151. scaler2 = scaler2 - 0.01*value/bonuspeed
  3152. elseif type == "Divide" then
  3153. scaler2 = scaler2 - 0.01/value*bonuspeed
  3154. end
  3155. if chaosmode == true then
  3156. rng.BrickColor = BrickColor.random()
  3157. end
  3158. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3159. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3160. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3161. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3162. end
  3163. rng:Destroy()
  3164. end))
  3165. end
  3166.  
  3167. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3168. local type = type
  3169. local rng = Instance.new("Part", char)
  3170. rng.Anchored = true
  3171. rng.BrickColor = color
  3172. rng.Color = color3
  3173. rng.CanCollide = false
  3174. rng.FormFactor = 3
  3175. rng.Name = "Ring"
  3176. rng.Material = "Neon"
  3177. rng.Size = Vector3.new(1, 1, 1)
  3178. rng.Transparency = 0
  3179. rng.TopSurface = 0
  3180. rng.BottomSurface = 0
  3181. rng.CFrame = pos
  3182. local rngm = Instance.new("SpecialMesh", rng)
  3183. rngm.MeshType = "Brick"
  3184. rngm.Scale = scale
  3185. local scaler2 = 1
  3186. local scaler2b = 1
  3187. local scaler2c = 1
  3188. if type == "Add" then
  3189. scaler2 = 1*value
  3190. scaler2b = 1*value2
  3191. scaler2c = 1*value3
  3192. elseif type == "Divide" then
  3193. scaler2 = 1/value
  3194. scaler2b = 1/value2
  3195. scaler2c = 1/value3
  3196. end
  3197. coroutine.resume(coroutine.create(function()
  3198. for i = 0,10/bonuspeed,0.1 do
  3199. swait()
  3200. if type == "Add" then
  3201. scaler2 = scaler2 - 0.01*value/bonuspeed
  3202. scaler2b = scaler2b - 0.01*value/bonuspeed
  3203. scaler2c = scaler2c - 0.01*value/bonuspeed
  3204. elseif type == "Divide" then
  3205. scaler2 = scaler2 - 0.01/value*bonuspeed
  3206. scaler2b = scaler2b - 0.01/value*bonuspeed
  3207. scaler2c = scaler2c - 0.01/value*bonuspeed
  3208. end
  3209. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3210. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3211. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3212. end
  3213. rng:Destroy()
  3214. end))
  3215. end
  3216.  
  3217. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3218. local type = type
  3219. local rng = Instance.new("Part", char)
  3220. rng.Anchored = true
  3221. if ModeOfGlitch ~= 9 then
  3222. rng.BrickColor = color
  3223. elseif ModeOfGlitch == 9 then
  3224. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3225. end
  3226. rng.CanCollide = false
  3227. rng.FormFactor = 3
  3228. rng.Name = "Ring"
  3229. rng.Material = "Neon"
  3230. rng.Size = Vector3.new(1, 1, 1)
  3231. rng.Transparency = 0
  3232. rng.TopSurface = 0
  3233. rng.BottomSurface = 0
  3234. rng.CFrame = pos
  3235. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3236. local rngm = Instance.new("SpecialMesh", rng)
  3237. rngm.MeshType = "Sphere"
  3238. rngm.Scale = vt(x1,y1,z1)
  3239. if rainbowmode == true then
  3240. rng.Color = Color3.new(r/255,g/255,b/255)
  3241. end
  3242. if ModeOfGlitch == 9 then
  3243. coroutine.resume(coroutine.create(function()
  3244. while true do
  3245. swait()
  3246. if rng.Parent ~= nil then
  3247. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3248. else
  3249. break
  3250. end
  3251. end
  3252. end))
  3253. end
  3254. local scaler2 = 1
  3255. local speeder = FastSpeed
  3256. if type == "Add" then
  3257. scaler2 = 1*value
  3258. elseif type == "Divide" then
  3259. scaler2 = 1/value
  3260. end
  3261. coroutine.resume(coroutine.create(function()
  3262. for i = 0,10/bonuspeed,0.1 do
  3263. swait()
  3264. if rainbowmode == true then
  3265. rng.Color = Color3.new(r/255,g/255,b/255)
  3266. end
  3267. if type == "Add" then
  3268. scaler2 = scaler2 - 0.01*value/bonuspeed
  3269. elseif type == "Divide" then
  3270. scaler2 = scaler2 - 0.01/value*bonuspeed
  3271. end
  3272. if chaosmode == true then
  3273. rng.BrickColor = BrickColor.random()
  3274. end
  3275. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3276. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3277. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3278. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3279. end
  3280. rng:Destroy()
  3281. end))
  3282. end
  3283.  
  3284.  
  3285. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3286. local type = type
  3287. local rng = Instance.new("Part", char)
  3288. rng.Anchored = true
  3289. if ModeOfGlitch ~= 9 then
  3290. rng.BrickColor = color
  3291. elseif ModeOfGlitch == 9 then
  3292. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3293. end
  3294. rng.CanCollide = false
  3295. rng.FormFactor = 3
  3296. rng.Name = "Ring"
  3297. rng.Material = "Neon"
  3298. rng.Size = Vector3.new(1, 1, 1)
  3299. rng.Transparency = 1
  3300. rng.TopSurface = 0
  3301. rng.BottomSurface = 0
  3302. rng.CFrame = pos
  3303. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3304. local rngm = Instance.new("SpecialMesh", rng)
  3305. rngm.MeshType = "Sphere"
  3306. rngm.Scale = vt(x1,y1,z1)
  3307. if rainbowmode == true then
  3308. rng.Color = Color3.new(r/255,g/255,b/255)
  3309. end
  3310. if ModeOfGlitch == 9 then
  3311. coroutine.resume(coroutine.create(function()
  3312. while true do
  3313. swait()
  3314. if rng.Parent ~= nil then
  3315. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3316. else
  3317. break
  3318. end
  3319. end
  3320. end))
  3321. end
  3322. local scaler2 = 1
  3323. local speeder = FastSpeed
  3324. if type == "Add" then
  3325. scaler2 = 1*value
  3326. elseif type == "Divide" then
  3327. scaler2 = 1/value
  3328. end
  3329. coroutine.resume(coroutine.create(function()
  3330. for i = 0,10/bonuspeed,0.1 do
  3331. swait()
  3332. if rainbowmode == true then
  3333. rng.Color = Color3.new(r/255,g/255,b/255)
  3334. end
  3335. if type == "Add" then
  3336. scaler2 = scaler2 - 0.01*value/bonuspeed
  3337. elseif type == "Divide" then
  3338. scaler2 = scaler2 - 0.01/value*bonuspeed
  3339. end
  3340. if chaosmode == true then
  3341. rng.BrickColor = BrickColor.random()
  3342. end
  3343. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3344. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3345. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3346. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3347. end
  3348. rng:Destroy()
  3349. end))
  3350. end
  3351.  
  3352. function dmg(dude)
  3353. if dude.Name ~= Character then
  3354. local keptcolor = MAINRUINCOLOR
  3355. local bgf = Instance.new("BodyGyro",dude.Head)
  3356. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3357. --[[local val = Instance.new("BoolValue",dude)
  3358. val.Name = "IsHit"]]--
  3359. local ds = coroutine.wrap(function()
  3360. dude:WaitForChild("Head"):BreakJoints()
  3361. for i, v in pairs(dude:GetChildren()) do
  3362. if v:IsA("Part") or v:IsA("MeshPart") then
  3363. v.Name = "DEMINISHED"
  3364. end
  3365. end
  3366. wait(0.5)
  3367. targetted = nil
  3368. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3369. coroutine.resume(coroutine.create(function()
  3370. for i, v in pairs(dude:GetChildren()) do
  3371. if v:IsA("Accessory") then
  3372. v:Destroy()
  3373. end
  3374. if v:IsA("Humanoid") then
  3375. v:Destroy()
  3376. end
  3377. if v:IsA("CharacterMesh") then
  3378. v:Destroy()
  3379. end
  3380. if v:IsA("Model") then
  3381. v:Destroy()
  3382. end
  3383. if v:IsA("Part") or v:IsA("MeshPart") then
  3384. for x, o in pairs(v:GetChildren()) do
  3385. if o:IsA("Decal") then
  3386. o:Destroy()
  3387. end
  3388. end
  3389. coroutine.resume(coroutine.create(function()
  3390. v.Material = "Neon"
  3391. v.CanCollide = false
  3392. v.Anchored = false
  3393. local bld = Instance.new("ParticleEmitter",v)
  3394. bld.LightEmission = 0.75
  3395. bld.Texture = "rbxassetid://363275192" ---284205403
  3396. bld.Color = ColorSequence.new(keptcolor.Color)
  3397. bld.Rate = 500
  3398. bld.Lifetime = NumberRange.new(1)
  3399. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3400. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3401. bld.Speed = NumberRange.new(2,5)
  3402. bld.VelocitySpread = 50000
  3403. bld.Rotation = NumberRange.new(-500,500)
  3404. bld.RotSpeed = NumberRange.new(-500,500)
  3405. local sbs = Instance.new("BodyPosition", v)
  3406. sbs.P = 3000
  3407. sbs.D = 1000
  3408. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3409. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3410. v.Color = keptcolor.Color
  3411. coroutine.resume(coroutine.create(function()
  3412. for i = 0, 49 do
  3413. swait(1)
  3414. v:BreakJoints()
  3415. v.Transparency = v.Transparency + 0.02
  3416. end
  3417. v:BreakJoints()
  3418. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3419. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3420. bld.Speed = NumberRange.new(10,25)
  3421. bld.Drag = 5
  3422. bld.Acceleration = vt(0,2,0)
  3423. wait(0.5)
  3424. bld.Enabled = false
  3425. wait(8)
  3426. v:Destroy()
  3427. dude:Destroy()
  3428. end))
  3429. end))
  3430. end
  3431. end
  3432. end))
  3433. end)
  3434. ds()
  3435. end
  3436. end
  3437.  
  3438.  
  3439. function FindNearestHead(Position, Distance, SinglePlayer)
  3440. if SinglePlayer then
  3441. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3442. end
  3443. local List = {}
  3444. for i, v in pairs(workspace:GetChildren()) do
  3445. if v:IsA("Model") then
  3446. if v:findFirstChild("Head") then
  3447. if v ~= Character then
  3448. if (v.Head.Position - Position).magnitude <= Distance then
  3449. table.insert(List, v)
  3450. end
  3451. end
  3452. end
  3453. end
  3454. end
  3455. return List
  3456. end
  3457.  
  3458. function FaceMouse()
  3459. Cam = workspace.CurrentCamera
  3460. return {
  3461. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3462. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3463. }
  3464. end
  3465.  
  3466. function FaceMouse2()
  3467. Cam = workspace.CurrentCamera
  3468. return {
  3469. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3470. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3471. }
  3472. end
  3473.  
  3474. local ModeOfGlitch = 1
  3475. -- Functions are ready.
  3476. local storehumanoidWS = 16
  3477.  
  3478. function CorruptBlink()
  3479. for i = 0, 14 do
  3480. PixelBlock(3,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.03,MAINRUINCOLOR,0)
  3481. end
  3482. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3483. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3484. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3485. CameraEnshaking(2,10)
  3486. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3487. if v:FindFirstChild('Head') then
  3488. dmg(v)
  3489. end
  3490. end
  3491. for i = 0, 14 do
  3492. PixelBlock(3,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.03,MAINRUINCOLOR,0)
  3493. end
  3494. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3495. end
  3496. function PureBomb()
  3497. attack = true
  3498. hum.WalkSpeed = 0
  3499. local orb = Instance.new("Part", char)
  3500. orb.Anchored = true
  3501. orb.BrickColor = BrickColor.new("Toothpaste")
  3502. orb.CanCollide = false
  3503. orb.FormFactor = 3
  3504. orb.Name = "Ring"
  3505. orb.Material = "Neon"
  3506. orb.Size = Vector3.new(1, 1, 1)
  3507. orb.Transparency = 0
  3508. orb.TopSurface = 0
  3509. orb.BottomSurface = 0
  3510. local orbm = Instance.new("SpecialMesh", orb)
  3511. orbm.MeshType = "Sphere"
  3512. orbm.Name = "SizeMesh"
  3513. orbm.Scale = vt(0,0,0)
  3514. local scaled = 0.1
  3515. local posid = 0
  3516. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3517. for i = 0, 5, 0.1 do
  3518. swait()
  3519. scaled = scaled - 0.001
  3520. posid = posid - scaled
  3521. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3522. local scaled = 0.1
  3523. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3524. 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,BrickColor.new("Toothpaste"),10)
  3525. PixelBlockNeg(2,1,"Add",orb.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.01,BrickColor.new("Toothpaste"),0)
  3526. 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))),.1)
  3527. 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)),.1)
  3528. 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)),.1)
  3529. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3530. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3531. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3532. end
  3533. for i = 0, 2, 0.1 do
  3534. swait()
  3535. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3536. 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))),.4)
  3537. 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)),.4)
  3538. 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(-50)),.4)
  3539. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3540. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3541. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3542. end
  3543. coroutine.resume(coroutine.create(function()
  3544. orb.Anchored = false
  3545. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3546. local a = Instance.new("Part",workspace)
  3547. a.Name = "Direction"
  3548. a.Anchored = true
  3549. a.BrickColor = bc("Bright red")
  3550. a.Material = "Neon"
  3551. a.Transparency = 1
  3552. a.CanCollide = false
  3553. local ray = Ray.new(
  3554. orb.CFrame.p, -- origin
  3555. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3556. )
  3557. local ignore = orb
  3558. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3559. a.BottomSurface = 10
  3560. a.TopSurface = 10
  3561. local distance = (orb.CFrame.p - position).magnitude
  3562. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3563. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3564. orb.CFrame = a.CFrame
  3565. a:Destroy()
  3566. local bv = Instance.new("BodyVelocity")
  3567. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3568. bv.velocity = orb.CFrame.lookVector*125
  3569. bv.Parent = orb
  3570. local hitted = false
  3571. game:GetService("Debris"):AddItem(orb, 15)
  3572. wait()
  3573. local hit =orb.Touched:connect(function(hit)
  3574. if hitted == false then
  3575. hitted = true
  3576. CameraEnshaking(10,2.5)
  3577. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3578. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3579. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3580. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3581. for i = 0, 49 do
  3582. PixelBlock(1,math.random(1,30),"Add",orb.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)
  3583. end
  3584. for i = 0, 9 do
  3585. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3586. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3587. end
  3588. orb.Anchored = true
  3589. orb.Transparency = 1
  3590. wait(8)
  3591. orb:Destroy()
  3592. end
  3593. end)
  3594. end))
  3595. for i = 0, 1, 0.1 do
  3596. swait()
  3597. 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))),.4)
  3598. 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)),.4)
  3599. 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(50)),.4)
  3600. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3601. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3602. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3603. end
  3604. hum.WalkSpeed = storehumanoidWS
  3605. attack = false
  3606. end
  3607.  
  3608. function BanishingOrb()
  3609. attack = true
  3610. hum.WalkSpeed = 0
  3611. local radm = math.random(1,3)
  3612. if radm == 1 then
  3613. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3614. elseif radm == 2 then
  3615. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3616. elseif radm == 3 then
  3617. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3618. end
  3619. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3620. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3621. local orb = Instance.new("Part", char)
  3622. orb.Anchored = true
  3623. orb.BrickColor = BrickColor.new("Lime green")
  3624. orb.CanCollide = false
  3625. orb.FormFactor = 3
  3626. orb.Name = "Ring"
  3627. orb.Material = "Neon"
  3628. orb.Size = Vector3.new(1, 1, 1)
  3629. orb.Transparency = 0
  3630. orb.TopSurface = 0
  3631. orb.BottomSurface = 0
  3632. local orbm = Instance.new("SpecialMesh", orb)
  3633. orbm.MeshType = "Sphere"
  3634. orbm.Name = "SizeMesh"
  3635. orbm.Scale = vt(0,0,0)
  3636. local scaled = 0.1
  3637. local posid = 0
  3638. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3639. for i = 0, 5, 0.1 do
  3640. swait()
  3641. scaled = scaled - 0.001
  3642. posid = posid - scaled
  3643. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3644. local scaled = 0.1
  3645. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3646. 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,BrickColor.new("Cool yellow"),10)
  3647. 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))),.1)
  3648. 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)),.1)
  3649. 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)),.1)
  3650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3651. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3652. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3653. end
  3654. for i = 0, 2, 0.1 do
  3655. swait()
  3656. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3657. 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))),.4)
  3658. 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)),.4)
  3659. 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(-50)),.4)
  3660. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3661. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3662. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3663. end
  3664. coroutine.resume(coroutine.create(function()
  3665. orb.Anchored = false
  3666. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3667. local a = Instance.new("Part",workspace)
  3668. a.Name = "Direction"
  3669. a.Anchored = true
  3670. a.BrickColor = bc("Lime green")
  3671. a.Material = "Neon"
  3672. a.Transparency = 1
  3673. a.CanCollide = false
  3674. local ray = Ray.new(
  3675. orb.CFrame.p, -- origin
  3676. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3677. )
  3678. local ignore = orb
  3679. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3680. a.BottomSurface = 10
  3681. a.TopSurface = 10
  3682. local distance = (orb.CFrame.p - position).magnitude
  3683. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3684. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3685. orb.CFrame = a.CFrame
  3686. a:Destroy()
  3687. local bv = Instance.new("BodyVelocity")
  3688. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3689. bv.velocity = orb.CFrame.lookVector*0
  3690. bv.Parent = orb
  3691. local hitted = false
  3692. local rate = 0
  3693. coroutine.resume(coroutine.create(function()
  3694. for i = 0, 24 do
  3695. wait(0.1)
  3696. rate = rate + 0.25
  3697. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3698. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3699. if v:FindFirstChild('Head') then
  3700. dmg(v)
  3701. end
  3702. end
  3703. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3704. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3705. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3706. end
  3707. orb.Anchored = true
  3708. orb.Transparency = 1
  3709. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3710. if v:FindFirstChild('Head') then
  3711. dmg(v)
  3712. end
  3713. end
  3714. local eff = Instance.new("ParticleEmitter",orb)
  3715. eff.Texture = "rbxassetid://296874871"
  3716. eff.LightEmission = 0.95
  3717. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3718. eff.Rate = 1000000000
  3719. eff.Lifetime = NumberRange.new(3)
  3720. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3721. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3722. eff.Speed = NumberRange.new(30)
  3723. eff.Acceleration = vt(0,-15,0)
  3724. eff.Rotation = NumberRange.new(-500,500)
  3725. eff.VelocitySpread = 100000
  3726. eff.RotSpeed = NumberRange.new(-500,500)
  3727. coroutine.resume(coroutine.create(function()
  3728. wait(0.6)
  3729. eff.Enabled = false
  3730. end))
  3731. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3732. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3733. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3734. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3735. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3736. game:GetService("Debris"):AddItem(orb, 15)
  3737. end))
  3738. end))
  3739. for i = 0, 1, 0.1 do
  3740. swait()
  3741. 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))),.4)
  3742. 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)),.4)
  3743. 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(50)),.4)
  3744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3745. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3746. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3747. end
  3748. hum.WalkSpeed = storehumanoidWS
  3749. attack = false
  3750. end
  3751.  
  3752.  
  3753. function ChaosGroundStrike()
  3754. attack = true
  3755. for i = 0, 2, 0.1 do
  3756. swait()
  3757. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3758. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3759. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3760. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3761. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3762. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3763. end
  3764. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3765. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3766. CameraEnshaking(4,12)
  3767. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3768. if v:FindFirstChild('Head') then
  3769. dmg(v)
  3770. end
  3771. end
  3772. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3773. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3774. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3775. for i = 0, 2, 0.1 do
  3776. swait()
  3777. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3778. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3779. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3780. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3781. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3782. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3783. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3784. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3785. end
  3786. attack = false
  3787. end
  3788.  
  3789.  
  3790.  
  3791. function Starfall()
  3792. attack = true
  3793. hum.WalkSpeed = 0
  3794. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3795. for i = 0, 5, 0.1 do
  3796. swait()
  3797. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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,MAINRUINCOLOR,0)
  3798. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.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,MAINRUINCOLOR,0)
  3799. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3800. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3801. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3802. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3803. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3804. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3805. end
  3806. local Overed = false
  3807. CameraEnshaking(2,20)
  3808. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3809. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3810. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3811. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3812. local orb = Instance.new("Part", char)
  3813. orb.Anchored = true
  3814. orb.BrickColor = BrickColor.new("Toothpaste")
  3815. orb.CanCollide = false
  3816. orb.FormFactor = 3
  3817. orb.Name = "Remenant"
  3818. orb.Material = "Neon"
  3819. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3820. orb.Size = Vector3.new(1, 1, 1)
  3821. orb.Transparency = 1
  3822. orb.TopSurface = 0
  3823. orb.BottomSurface = 0
  3824. hum.WalkSpeed = storehumanoidWS
  3825. coroutine.resume(coroutine.create(function()
  3826. for i = 0, 9 do
  3827. swait(10)
  3828. local lb = Instance.new("Part")
  3829. lb.Color = MAINRUINCOLOR.Color
  3830. lb.CanCollide = false
  3831. lb.Material = "Neon"
  3832. lb.Anchored = true
  3833. lb.TopSurface = 0
  3834. lb.BottomSurface = 0
  3835. lb.Transparency = 0
  3836. lb.Size = vt(1,1,1)
  3837. lb.CFrame = orb.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)))
  3838. lb.Anchored = false
  3839. lb.Parent = char
  3840. local thingery = Instance.new("SpecialMesh",lb)
  3841. thingery.MeshType = "Sphere"
  3842. thingery.Scale = vt(20,20,20)
  3843. game:GetService("Debris"):AddItem(lb, 10)
  3844. local bv = Instance.new("BodyVelocity")
  3845. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3846. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3847. bv.Parent = lb
  3848. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3849. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3850. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3851. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3852. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3853. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3854. local hitted = false
  3855. coroutine.resume(coroutine.create(function()
  3856. while true do
  3857. swait(1)
  3858. if lb.Parent ~= nil and hitted == false then
  3859. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3860. elseif lb.Parent == nil then
  3861. break
  3862. end
  3863. end
  3864. end))
  3865.  
  3866. game:GetService("Debris"):AddItem(a, 0.1)
  3867.  
  3868. coroutine.resume(coroutine.create(function()
  3869. swait(1)
  3870. lb.Touched:connect(function(hit)
  3871. if hitted == false then
  3872. hitted = true
  3873. lb.Transparency = 1
  3874. lb.Anchored = true
  3875. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3876. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3877. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3878. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3879. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3880. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3881. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3882. CameraEnshaking(1,5)
  3883. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3884. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3885. for i = 0, 9 do
  3886. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3887. end
  3888. for i = 0, 49 do
  3889. swait()
  3890. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3891. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3892. end
  3893. end
  3894. end)
  3895. end))
  3896. end
  3897. Overed = true
  3898. orb:Destroy()
  3899. end))
  3900.  
  3901. attack = false
  3902. end
  3903.  
  3904. function StarfallEX()
  3905. attack = true
  3906. hum.WalkSpeed = 0
  3907. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3908. for i = 0, 10, 0.1 do
  3909. swait()
  3910. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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,MAINRUINCOLOR,0)
  3911. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.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,MAINRUINCOLOR,0)
  3912. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3913. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3914. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3915. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3916. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3917. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3918. end
  3919. local Overed = false
  3920. CameraEnshaking(2,20)
  3921. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3922. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3923. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3924. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3925. local orb = Instance.new("Part", char)
  3926. orb.Anchored = true
  3927. orb.BrickColor = BrickColor.new("Toothpaste")
  3928. orb.CanCollide = false
  3929. orb.FormFactor = 3
  3930. orb.Name = "Remenant"
  3931. orb.Material = "Neon"
  3932. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3933. orb.Size = Vector3.new(1, 1, 1)
  3934. orb.Transparency = 1
  3935. orb.TopSurface = 0
  3936. orb.BottomSurface = 0
  3937. hum.WalkSpeed = storehumanoidWS
  3938. coroutine.resume(coroutine.create(function()
  3939. for i = 0, 4 do
  3940. swait(15)
  3941. local lb = Instance.new("Part")
  3942. lb.Color = MAINRUINCOLOR.Color
  3943. lb.CanCollide = false
  3944. lb.Material = "Neon"
  3945. lb.Anchored = true
  3946. lb.TopSurface = 0
  3947. lb.BottomSurface = 0
  3948. lb.Transparency = 0
  3949. lb.Size = vt(1,1,1)
  3950. lb.CFrame = orb.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)))
  3951. lb.Anchored = false
  3952. lb.Parent = char
  3953. local thingery = Instance.new("SpecialMesh",lb)
  3954. thingery.MeshType = "Sphere"
  3955. thingery.Scale = vt(50,50,50)
  3956. game:GetService("Debris"):AddItem(lb, 10)
  3957. local bv = Instance.new("BodyVelocity")
  3958. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3959. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3960. bv.Parent = lb
  3961. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3962. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3963. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3964. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3965. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3966. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3967. local hitted = false
  3968. coroutine.resume(coroutine.create(function()
  3969. while true do
  3970. swait(1)
  3971. if lb.Parent ~= nil and hitted == false then
  3972. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2)
  3973. elseif lb.Parent == nil then
  3974. break
  3975. end
  3976. end
  3977. end))
  3978.  
  3979. game:GetService("Debris"):AddItem(a, 0.1)
  3980.  
  3981. coroutine.resume(coroutine.create(function()
  3982. swait(1)
  3983. lb.Touched:connect(function(hit)
  3984. if hitted == false then
  3985. hitted = true
  3986. lb.Transparency = 1
  3987. lb.Anchored = true
  3988. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3989. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3990. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3991. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3992. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3993. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3994. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3995. CameraEnshaking(1,5)
  3996. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3997. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3998. for i = 0, 9 do
  3999. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0)
  4000. end
  4001. for i = 0, 99 do
  4002. swait()
  4003. MagniDamage(lb, 30, 6,18, 0, "Normal")
  4004. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0)
  4005. end
  4006. end
  4007. end)
  4008. end))
  4009. end
  4010. Overed = true
  4011. orb:Destroy()
  4012. end))
  4013.  
  4014. attack = false
  4015. end
  4016.  
  4017. function DivineBlast()
  4018. attack = true
  4019. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  4020. hum.WalkSpeed = 0
  4021. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  4022. elocacenter.Anchored = true
  4023. elocacenter.CFrame = sorb.CFrame
  4024. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4025. eloca1.Anchored = true
  4026. eloca1.CFrame = elocacenter.CFrame
  4027. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4028. eloca2.Anchored = true
  4029. eloca2.CFrame = elocacenter.CFrame
  4030. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4031. eloca3.Anchored = true
  4032. eloca3.CFrame = elocacenter.CFrame
  4033. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4034. eloca4.Anchored = true
  4035. eloca4.CFrame = elocacenter.CFrame
  4036. local lookavec = 0
  4037. local speeds = 0
  4038. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  4039. for i = 0, 3, 0.1 do
  4040. swait()
  4041. ---
  4042. lookavec = lookavec + 0.1
  4043. speeds = speeds + 10
  4044. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4045. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4046. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4047.  
  4048. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4049. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4050.  
  4051. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4052. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4053.  
  4054. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4055. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4056. ---
  4057. root.CFrame = FaceMouse()[1]
  4058. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4059. 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))),.1)
  4060. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4061. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4062. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4063. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4064. end
  4065. for i = 0, 3, 0.1 do
  4066. swait()
  4067. ---
  4068. speeds = speeds + 10
  4069. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4070. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4071. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4072.  
  4073. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4074. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4075.  
  4076. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4077. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4078.  
  4079. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4080. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4081. ---
  4082. root.CFrame = FaceMouse()[1]
  4083. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4084. 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))),.1)
  4085. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4086. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4087. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4088. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4089. end
  4090. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4091. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4092. for i = 0, 3, 0.1 do
  4093. swait()
  4094. ---
  4095. speeds = speeds + 10
  4096. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4097. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4098. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4099.  
  4100. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4101. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4102.  
  4103. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4104. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4105.  
  4106. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4107. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4108. ---
  4109. root.CFrame = FaceMouse()[1]
  4110. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4111. 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))),.1)
  4112. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  4113. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
  4114. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4115. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4116. end
  4117. coroutine.resume(coroutine.create(function()
  4118. local a = Instance.new("Part",Character)
  4119. a.Name = "Direction"
  4120. a.Anchored = true
  4121. a.BrickColor = bc("White")
  4122. a.Material = "Neon"
  4123. a.Transparency = 0
  4124. a.Shape = "Cylinder"
  4125. a.CanCollide = false
  4126. local a2 = Instance.new("Part",Character)
  4127. a2.Name = "Direction"
  4128. a2.Anchored = true
  4129. a2.BrickColor = bc("Bright yellow")
  4130. a2.Material = "Neon"
  4131. a2.Transparency = 0
  4132. a2.Shape = "Cylinder"
  4133. a2.CanCollide = false
  4134. local b = Instance.new("Part",Character)
  4135. b.Name = "HitDirect"
  4136. b.Anchored = true
  4137. b.BrickColor = bc("Cool yellow")
  4138. b.Material = "Neon"
  4139. b.Transparency = 1
  4140. b.CanCollide = false
  4141. local ray = Ray.new(
  4142. elocacenter.CFrame.p, -- origin
  4143. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4144. )
  4145. local ignore = Character
  4146. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4147. a.BottomSurface = 10
  4148. a.TopSurface = 10
  4149. a2.BottomSurface = 10
  4150. a2.TopSurface = 10
  4151. local distance = (elocacenter.CFrame.p - position).magnitude
  4152. a.Size = Vector3.new(distance, 1, 1)
  4153. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4154. a2.Size = Vector3.new(distance, 1, 1)
  4155. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4156. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4157. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4158. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4159. game:GetService("Debris"):AddItem(a, 10)
  4160. game:GetService("Debris"):AddItem(a2, 10)
  4161. game:GetService("Debris"):AddItem(b, 10)
  4162. local eff = Instance.new("ParticleEmitter",b)
  4163. eff.Texture = "rbxassetid://2273224484"
  4164. eff.LightEmission = 1
  4165. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4166. eff.Rate = 500000
  4167. eff.Lifetime = NumberRange.new(0.5,2)
  4168. 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)})
  4169. 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)})
  4170. eff.Speed = NumberRange.new(20,250)
  4171. eff.Drag = 5
  4172. eff.Rotation = NumberRange.new(-500,500)
  4173. eff.VelocitySpread = 9000
  4174. eff.RotSpeed = NumberRange.new(-50,50)
  4175. coroutine.resume(coroutine.create(function()
  4176. wait(0.25)
  4177. eff.Enabled = false
  4178. end))
  4179. local msh = Instance.new("SpecialMesh",a)
  4180. msh.MeshType = "Cylinder"
  4181. msh.Scale = vt(1,2,2)
  4182. local msh2 = Instance.new("SpecialMesh",a2)
  4183. msh2.MeshType = "Cylinder"
  4184. msh2.Scale = vt(1,2.5,2.5)
  4185. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4186. coroutine.resume(coroutine.create(function()
  4187. for i = 0,10,0.1 do
  4188. swait()
  4189. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4190. a.Transparency = a.Transparency + 0.025
  4191. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4192. a2.Transparency = a2.Transparency + 0.05
  4193. end
  4194. a:Destroy()
  4195. a2:Destroy()
  4196. end))
  4197. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4198. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4199. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4200. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4201. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4202. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4203. MagniDamage(b, 25, 40,65, 0, "Normal")
  4204. for i = 0, 49 do
  4205. PixelBlock(2,math.random(10,20),"Add",b.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.04,BrickColor.new("Bright yellow"),0)
  4206. PixelBlock(1,math.random(1,10),"Add",b.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("Bright yellow"),0)
  4207. end
  4208. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4209. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4210. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4211. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4212. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4213. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4214. end))
  4215. game:GetService("Debris"):AddItem(elocacenter, 5)
  4216. hum.WalkSpeed = storehumanoidWS
  4217. attack = false
  4218. end
  4219.  
  4220. function StarDivision()
  4221. attack = true
  4222. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4223. for i = 0, 2, 0.1 do
  4224. swait()
  4225. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4226. 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))),.1)
  4227. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4228. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4229. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4230. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4231. end
  4232. local orb = Instance.new("Part", char)
  4233. orb.BrickColor = MAINRUINCOLOR
  4234. orb.CanCollide = false
  4235. orb.FormFactor = 3
  4236. orb.Name = "Ring"
  4237. orb.Material = "Neon"
  4238. orb.Size = Vector3.new(1, 1, 1)
  4239. orb.Transparency = 0
  4240. orb.TopSurface = 0
  4241. orb.BottomSurface = 0
  4242. local orbm = Instance.new("SpecialMesh", orb)
  4243. orbm.MeshType = "Sphere"
  4244. orbm.Name = "SizeMesh"
  4245. orbm.Scale = vt(2,2,2)
  4246. local a = Instance.new("Part",workspace)
  4247. a.Name = "Direction"
  4248. a.Anchored = true
  4249. a.BrickColor = bc("Bright red")
  4250. a.Material = "Neon"
  4251. a.Transparency = 1
  4252. a.CanCollide = false
  4253. local ray = Ray.new(
  4254. sorb.CFrame.p, -- origin
  4255. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4256. )
  4257. local ignore = sorb
  4258. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4259. a.BottomSurface = 10
  4260. a.TopSurface = 10
  4261. local distance = (sorb.CFrame.p - position).magnitude
  4262. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4263. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4264. orb.CFrame = a.CFrame
  4265. a:Destroy()
  4266. local bv = Instance.new("BodyVelocity")
  4267. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4268. bv.velocity = orb.CFrame.lookVector*100
  4269. bv.Parent = orb
  4270. local hitted = false
  4271. game:GetService("Debris"):AddItem(orb, 10)
  4272. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4273. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4274. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4275. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4276. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4277. coroutine.resume(coroutine.create(function()
  4278. while true do
  4279. swait(1)
  4280. if orb.Parent ~= nil and hitted == false then
  4281. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  4282. elseif orb.Parent == nil then
  4283. break
  4284. end
  4285. end
  4286. end))
  4287. coroutine.resume(coroutine.create(function()
  4288. swait(1)
  4289. orb.Touched:connect(function(hit)
  4290. if hitted == false then
  4291. hitted = true
  4292. game:GetService("Debris"):AddItem(orb, 5)
  4293. orb.Transparency = 1
  4294. orb.Anchored = true
  4295. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4296. elocacenter.Anchored = true
  4297. elocacenter.CFrame = orb.CFrame
  4298. elocacenter.Orientation = vt(0,0,0)
  4299. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4300. eloca1.Anchored = true
  4301. eloca1.CFrame = elocacenter.CFrame
  4302. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4303. eloca2.Anchored = true
  4304. eloca2.CFrame = elocacenter.CFrame
  4305. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4306. eloca3.Anchored = true
  4307. eloca3.CFrame = elocacenter.CFrame
  4308. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4309. eloca4.Anchored = true
  4310. eloca4.CFrame = elocacenter.CFrame
  4311. local lookavec = 0
  4312. local speeds = 0
  4313. CameraEnshaking(1,1)
  4314. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4315. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4316. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4317. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4318. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4319. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4320. for i = 0, 99 do
  4321. swait()
  4322. lookavec = lookavec + 1
  4323. speeds = speeds + 0.1
  4324. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4325. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4326. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4327.  
  4328. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4329. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4330.  
  4331. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4332. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4333.  
  4334. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4335. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4336. end
  4337.  
  4338. for i = 0, 149 do
  4339. swait()
  4340. speeds = speeds + 0.1
  4341. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4342. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4343. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4344.  
  4345. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4346. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4347.  
  4348. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4349. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4350.  
  4351. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4352. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4353. end
  4354. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4355. if v:FindFirstChild('Head') then
  4356. dmg(v)
  4357. end
  4358. end
  4359. CameraEnshaking(7,30)
  4360. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4361. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4362. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4363. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4364. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4365. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4366. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4367. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4368. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4369. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4370. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4371. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4372. for i = 0, 24 do
  4373. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4374. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4375. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4376. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4377. end
  4378. coroutine.resume(coroutine.create(function()
  4379. for i = 0, 499 do
  4380. swait(1)
  4381. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4382. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4383. end
  4384. elocacenter:Destroy()
  4385. eloca1:Destroy()
  4386. eloca2:Destroy()
  4387. eloca3:Destroy()
  4388. eloca4:Destroy()
  4389. end))
  4390. end
  4391. end)
  4392. end))
  4393. attack = false
  4394. end
  4395.  
  4396.  
  4397. function THE_TRUE_POWER_OF_VIOLENCE()
  4398. attack = true
  4399. hum.WalkSpeed = 0
  4400. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4401. for i = 0, 10, 0.1 do
  4402. swait()
  4403. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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,MAINRUINCOLOR,0)
  4404. 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)
  4405. 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)
  4406. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4407. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4408. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4409. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  4410. end
  4411. local orb = Instance.new("Part", char)
  4412. orb.BrickColor = MAINRUINCOLOR
  4413. orb.CanCollide = false
  4414. orb.FormFactor = 3
  4415. orb.Name = "Ring"
  4416. orb.Material = "Neon"
  4417. orb.Size = Vector3.new(1, 1, 1)
  4418. orb.Transparency = 0
  4419. orb.TopSurface = 0
  4420. orb.BottomSurface = 0
  4421. orb.CFrame = sorb.CFrame
  4422. local orbm = Instance.new("SpecialMesh", orb)
  4423. orbm.MeshType = "Sphere"
  4424. orbm.Name = "SizeMesh"
  4425. orbm.Scale = vt(0,0,0)
  4426. local sbs = Instance.new("BodyPosition", orb)
  4427. sbs.P = 3000
  4428. sbs.D = 1000
  4429. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4430. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4431. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4432. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4433. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4434. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4435. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4436. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4437. for i = 0, 10, 0.1 do
  4438. swait()
  4439. PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0)
  4440. 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)
  4441. 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)
  4442. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4443. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4444. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4445. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4446. end
  4447. orb.Anchored = true
  4448. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4449. elocacenter.Anchored = true
  4450. elocacenter.CFrame = orb.CFrame
  4451. elocacenter.Orientation = vt(0,0,0)
  4452. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4453. eloca1.Anchored = true
  4454. eloca1.CFrame = elocacenter.CFrame
  4455. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4456. eloca2.Anchored = true
  4457. eloca2.CFrame = elocacenter.CFrame
  4458. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4459. eloca3.Anchored = true
  4460. eloca3.CFrame = elocacenter.CFrame
  4461. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4462. eloca4.Anchored = true
  4463. eloca4.CFrame = elocacenter.CFrame
  4464. local lookavec = 0
  4465. local speeds = 0
  4466. CameraEnshaking(1,1)
  4467. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4468. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4469. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4470. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4471. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4472. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4473. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4474. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4475. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4476. for i = 0, 99 do
  4477. swait()
  4478. lookavec = lookavec + 2.5
  4479. speeds = speeds + 0.25
  4480. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4481. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4482. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4483.  
  4484. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4485. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4486.  
  4487. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4488. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4489.  
  4490. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4491. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4492. end
  4493.  
  4494. for i = 0, 149 do
  4495. swait()
  4496. speeds = speeds + 0.25
  4497. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4498. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4499. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4500.  
  4501. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4502. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4503.  
  4504. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4505. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4506.  
  4507. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4508. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4509. end
  4510. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4511. for i = 0, 99 do
  4512. swait()
  4513. lookavec = lookavec - 2.5
  4514. speeds = speeds + 0.25
  4515. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4516. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4517. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4518.  
  4519. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4520. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4521.  
  4522. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4523. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4524.  
  4525. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4526. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4527. end
  4528. local scaled = 0.1*75
  4529. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4530. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4531. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4532. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4533. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4534. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4535. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4536. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4537. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4538. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4539. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4540.  
  4541. for i = 0, 10, 0.1 do
  4542. swait()
  4543. scaled = scaled - 0.001*75
  4544. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4545. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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,MAINRUINCOLOR,0)
  4546. 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)
  4547. 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)
  4548. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4549. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4550. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4551. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4552. end
  4553. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4554. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4555. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4556. for x = 0, 4 do
  4557. for i = 0, 9 do
  4558. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4559. end
  4560. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4561. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4562. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4563. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4564. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4565. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4566. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4567. for i = 0, 5, 0.1 do
  4568. swait()
  4569. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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,MAINRUINCOLOR,0)
  4570. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.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,MAINRUINCOLOR,0)
  4571. 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)
  4572. 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)
  4573. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4574. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4575. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4576. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4577. end
  4578. end
  4579. local speedearn = 0
  4580. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4581. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4582. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4583. for i = 0, 30, 0.1 do
  4584. swait()
  4585. scaled = scaled - 0.001*75/10
  4586. speedearn = speedearn + 0.5
  4587. for i = 0, 4 do
  4588. sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4589. end
  4590. PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0)
  4591. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4592. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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,MAINRUINCOLOR,0)
  4593. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.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,MAINRUINCOLOR,0)
  4594. 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)
  4595. 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)
  4596. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4598. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4599. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4600. end
  4601. orb.Transparency = 1
  4602. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4603. if v:FindFirstChild('Head') then
  4604. dmg(v)
  4605. end
  4606. end
  4607. CameraEnshaking(7,30)
  4608. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4609. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4610. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4611. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4612. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4613. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4614. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4615. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4616. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4617. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4618. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4619. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4620. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4621. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4622. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4623. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4624. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4625. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4626. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4627. for i = 0, 99 do
  4628. PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4629. PixelBlock(2,math.random(250,1000),"Add",elocacenter.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,MAINRUINCOLOR,0)
  4630. end
  4631. for i = 0, 24 do
  4632. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4633. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4634. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4635. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4636. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4637. end
  4638. game:GetService("Debris"):AddItem(orb, 10)
  4639. hum.WalkSpeed = storehumanoidWS
  4640. attack = false
  4641. end
  4642.  
  4643.  
  4644. function ViolentRing()
  4645. attack = true
  4646. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4647. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4648. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4649. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4650. for i = 0, 2, 0.1 do
  4651. swait()
  4652. local snap = math.random(1,10)
  4653. if snap == 1 then
  4654. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1)
  4655. end
  4656. PixelBlockX(5,0.5,"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))),1,1,1,0.01,MAINRUINCOLOR,0)
  4657. PixelBlockNeg(5,0.5,"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))),1,1,1,0.01,MAINRUINCOLOR,0)
  4658. PixelBlockX(5,0.25,"Add",larm.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.65,0.65,0.65,0.0065,MAINRUINCOLOR,0)
  4659. 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))),.6)
  4660. 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(0)),.6)
  4661. 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(50)),.6)
  4662. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4663. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4664. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4665. RootPart.CFrame = FaceMouse()[1]
  4666. end
  4667. local orb = Instance.new("Part", char)
  4668. orb.BrickColor = MAINRUINCOLOR
  4669. orb.CanCollide = false
  4670. orb.FormFactor = 3
  4671. orb.Name = "Ring"
  4672. orb.Material = "Neon"
  4673. orb.Size = Vector3.new(1, 1, 1)
  4674. orb.Transparency = 0
  4675. orb.TopSurface = 0
  4676. orb.BottomSurface = 0
  4677. local orbm = Instance.new("SpecialMesh", orb)
  4678. orbm.MeshType = "Sphere"
  4679. orbm.Name = "SizeMesh"
  4680. orbm.Scale = vt(2,2,2)
  4681. orb.CFrame = mouse.Hit
  4682. local bv = Instance.new("BodyVelocity")
  4683. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4684. bv.velocity = orb.CFrame.lookVector*100
  4685. bv.Parent = orb
  4686. local hitted = false
  4687. coroutine.resume(coroutine.create(function()
  4688. game:GetService("Debris"):AddItem(orb, 5)
  4689. orb.Transparency = 1
  4690. orb.Anchored = true
  4691. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4692. elocacenter.Anchored = true
  4693. elocacenter.CFrame = orb.CFrame
  4694. elocacenter.Orientation = vt(0,0,0)
  4695. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4696. eloca1.Anchored = true
  4697. eloca1.CFrame = elocacenter.CFrame
  4698. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4699. eloca2.Anchored = true
  4700. eloca2.CFrame = elocacenter.CFrame
  4701. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4702. eloca3.Anchored = true
  4703. eloca3.CFrame = elocacenter.CFrame
  4704. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4705. eloca4.Anchored = true
  4706. eloca4.CFrame = elocacenter.CFrame
  4707. local lookavec = 0
  4708. local speeds = 0
  4709. CameraEnshaking(1,1)
  4710. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4711. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4712. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4713. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4714. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4715. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4716. for i = 0, 24 do
  4717. swait()
  4718. lookavec = lookavec + 3.5
  4719. speeds = speeds + 1
  4720. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4721. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4722. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4723.  
  4724. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4725. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4726.  
  4727. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4728. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4729.  
  4730. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4731. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4732. end
  4733.  
  4734. local risen = 0
  4735. for i = 0, 49 do
  4736. swait()
  4737. risen = risen + 0.05
  4738. speeds = speeds + 0.1
  4739. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4740. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4741. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4742.  
  4743. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4744. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4745.  
  4746. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4747. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4748.  
  4749. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4750. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4751. end
  4752. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4753. if v:FindFirstChild('Head') then
  4754. dmg(v)
  4755. end
  4756. end
  4757. CameraEnshaking(4,10)
  4758. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4759. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4760. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4761. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4762. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4763. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4764. local eff = Instance.new("ParticleEmitter",elocacenter)
  4765. eff.Texture = "rbxassetid://2273224484"
  4766. eff.LightEmission = 1
  4767. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4768. eff.Rate = 1000000
  4769. eff.Lifetime = NumberRange.new(0.5,2)
  4770. 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)})
  4771. 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)})
  4772. eff.Speed = NumberRange.new(20,250)
  4773. eff.Drag = 5
  4774. eff.Rotation = NumberRange.new(-500,500)
  4775. eff.VelocitySpread = 5000000
  4776. eff.RotSpeed = NumberRange.new(-50,50)
  4777. coroutine.resume(coroutine.create(function()
  4778. wait(1)
  4779. eff.Enabled = false
  4780. end))
  4781. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4782. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4783. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4784. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4785. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4786. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4787. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4788. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4789. for i = 0, 24 do
  4790. sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0)
  4791. sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4792. sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4793. sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4794. end
  4795. coroutine.resume(coroutine.create(function()
  4796. wait(10)
  4797. elocacenter:Destroy()
  4798. eloca1:Destroy()
  4799. eloca2:Destroy()
  4800. eloca3:Destroy()
  4801. eloca4:Destroy()
  4802. end))
  4803. end))
  4804. attack = false
  4805. end
  4806.  
  4807. function UniversalCollapse()
  4808. attack = true
  4809. local speedearn = 0
  4810. hum.WalkSpeed = 0
  4811. local sbs = Instance.new("BodyPosition", root)
  4812. sbs.P = 3000
  4813. sbs.D = 1000
  4814. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4815. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4816. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4817. for i = 0, 85, 0.1 do
  4818. swait()
  4819. speedearn = speedearn + 0.1
  4820. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4821. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4822. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4823. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4824. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4825. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4826. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4827. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4828. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4829. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4830. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4831. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4832. end
  4833. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4834. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4835. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4836. for i = 0, 25, 0.1 do
  4837. swait()
  4838. speedearn = speedearn + 0.1
  4839. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4840. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4841. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4842. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4843. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4844. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4845. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4846. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4847. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4848. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4849. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4850. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4851. end
  4852. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4853. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4854. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4855. CameraEnshaking(5,50)
  4856. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4857. for i = 0, 2 do
  4858. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4859. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4860. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4861. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4862. end
  4863. for i = 0, 49 do
  4864. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  4865. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  4866. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  4867. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  4868. end
  4869. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4870. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4871. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4872. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4873. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4874. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4875. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4876. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4877. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4878. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4879. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4880. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4881. for i = 0, 99 do
  4882. PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4883. PixelBlock(2,math.random(250,1000),"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,10,0.2,MAINRUINCOLOR,0)
  4884. end
  4885. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4886. if v:FindFirstChild('Head') then
  4887. dmg(v)
  4888. end
  4889. end
  4890. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4891. sbs:Destroy()
  4892. hum.WalkSpeed = storehumanoidWS
  4893. attack = false
  4894. end
  4895.  
  4896.  
  4897. function ChaosEND()
  4898. attack = true
  4899. local speedearn = 0
  4900. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4901. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4902. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4903. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4904. for i = 0, 15, 0.1 do
  4905. swait()
  4906. speedearn = speedearn + 0.25
  4907. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4908. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4909. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4910. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4911. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4912. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4913. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4914. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4915. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4916. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4917. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4918. end
  4919. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4920. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4921. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4922. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4923. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4924. CameraEnshaking(5,25)
  4925. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4926. if v:FindFirstChild('Head') then
  4927. dmg(v)
  4928. end
  4929. end
  4930. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4931. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4932. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4933. for i = 0, 3, 0.1 do
  4934. swait()
  4935. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4936. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4937. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4938. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4939. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4940. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4941. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4942. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4943. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4944. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4945. end
  4946. attack = false
  4947. end
  4948.  
  4949. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4950. local orb = Instance.new("Part", char)
  4951. orb.Anchored = true
  4952. orb.BrickColor = color
  4953. orb.CanCollide = false
  4954. orb.FormFactor = 3
  4955. orb.Name = "Ring"
  4956. orb.Material = "Neon"
  4957. orb.Size = Vector3.new(1, 1, 1)
  4958. orb.Transparency = 0
  4959. orb.TopSurface = 0
  4960. orb.BottomSurface = 0
  4961. local orbm = Instance.new("SpecialMesh", orb)
  4962. orbm.MeshType = "Sphere"
  4963. orb.CFrame = positted
  4964. orbm.Name = "SizeMesh"
  4965. orbm.Scale = vt(1,1,1)
  4966. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4967. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4968. --[[for i = 0, 2 do
  4969. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4970. end]]--
  4971. coroutine.resume(coroutine.create(function()
  4972. wait(timer)
  4973. CameraEnshaking(3,ShakePower)
  4974. orb.Transparency = 1
  4975. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4976. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4977. --[[for i = 0, 4 do
  4978. sphereMK(5,0.15*MagniBoost,"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,orb.BrickColor,0)
  4979. end]]--
  4980. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4981. wait(3)
  4982. orb:Destroy()
  4983. end))
  4984. end
  4985.  
  4986. function orb_spawn(positted,timer)
  4987. local randomcol = math.random(1,2)
  4988. local orb = Instance.new("Part", char)
  4989. orb.Anchored = true
  4990. if randomcol == 1 then
  4991. orb.BrickColor = BrickColor.new("White")
  4992. elseif randomcol == 2 then
  4993. orb.BrickColor = BrickColor.new("Really black")
  4994. end
  4995. orb.CanCollide = false
  4996. orb.FormFactor = 3
  4997. orb.Name = "Ring"
  4998. orb.Material = "Neon"
  4999. orb.Size = Vector3.new(1, 1, 1)
  5000. orb.Transparency = 0
  5001. orb.TopSurface = 0
  5002. orb.BottomSurface = 0
  5003. local orbm = Instance.new("SpecialMesh", orb)
  5004. orbm.MeshType = "Sphere"
  5005. orb.CFrame = positted
  5006. orbm.Name = "SizeMesh"
  5007. orbm.Scale = vt(1,1,1)
  5008. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  5009. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5010. for i = 0, 2 do
  5011. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  5012. end
  5013. coroutine.resume(coroutine.create(function()
  5014. wait(timer)
  5015. CameraEnshaking(3,2)
  5016. orb.Transparency = 1
  5017. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5018. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5019. for i = 0, 4 do
  5020. sphereMK(5,0.65,"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,orb.BrickColor,0)
  5021. end
  5022. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  5023. wait(3)
  5024. orb:Destroy()
  5025. end))
  5026. end
  5027.  
  5028. function scattercorrupt()
  5029. attack = true
  5030. hum.WalkSpeed = 0
  5031. for i = 0, 2, 0.1 do
  5032. swait()
  5033. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5034. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5035. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5036. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5037. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  5038. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  5039. end
  5040. local rot = 0
  5041. local randomrotations = math.random(1,2)
  5042. local lookv = 2.5
  5043. local power = 7
  5044. local radm = math.random(1,3)
  5045. if radm == 1 then
  5046. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  5047. elseif radm == 2 then
  5048. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  5049. elseif radm == 3 then
  5050. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  5051. end
  5052. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  5053. for i = 0, 1, 0.1 do
  5054. swait()
  5055. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  5056. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  5057. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  5058. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  5059. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  5060. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  5061. end
  5062. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  5063. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  5064. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5065. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5066. for i = 0, 9 do
  5067. 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)
  5068. end
  5069. local hite = Instance.new("Part", char)
  5070. hite.Anchored = true
  5071. hite.CanCollide = false
  5072. hite.FormFactor = 3
  5073. hite.Name = "Ring"
  5074. hite.Material = "Neon"
  5075. hite.Size = Vector3.new(1, 1, 1)
  5076. hite.Transparency = 1
  5077. hite.TopSurface = 0
  5078. hite.BottomSurface = 0
  5079. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5080. local rem = Instance.new("Part", char)
  5081. rem.Anchored = true
  5082. rem.CanCollide = false
  5083. rem.FormFactor = 3
  5084. rem.Name = "Ring"
  5085. rem.Material = "Neon"
  5086. rem.Size = Vector3.new(1, 1, 1)
  5087. rem.Transparency = 1
  5088. rem.TopSurface = 0
  5089. rem.BottomSurface = 0
  5090. rem.CFrame = hite.CFrame
  5091. local rem2 = rem:Clone()
  5092. rem2.Parent = char
  5093. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5094. local rem3 = rem:Clone()
  5095. rem3.Parent = char
  5096. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5097. local rem4 = rem:Clone()
  5098. rem4.Parent = char
  5099. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5100. hite:Destroy()
  5101. coroutine.resume(coroutine.create(function()
  5102. for i = 0, 24 do
  5103. swait(1)
  5104. if randomrotations == 1 then
  5105. rot = rot + 1
  5106. elseif randomrotations == 2 then
  5107. rot = rot - 1
  5108. end
  5109. power = power + 0.5
  5110. lookv = lookv + 7.5
  5111. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5112. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5113. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5114. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5115. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5116. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5117. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5118. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5119. end
  5120. end))
  5121. wait(2)
  5122. hum.WalkSpeed = storehumanoidWS
  5123. attack = false
  5124. end
  5125. function yinyangi()
  5126. attack = true
  5127. for i = 0, 2, 0.1 do
  5128. swait()
  5129. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  5130. 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(20)),.2)
  5131. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  5132. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5133. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5134. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5135. end
  5136. local bv = Instance.new("BodyVelocity")
  5137. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5138. bv.velocity = root.CFrame.lookVector*175
  5139. bv.Parent = root
  5140. for Rotations = 0, 9 do
  5141. for i = 0, 1, 0.5 do
  5142. swait()
  5143. bv.velocity = root.CFrame.lookVector*175
  5144. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5145. 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(20)),.5)
  5146. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  5147. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5148. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5149. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5150. end
  5151. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5152. for i = 0, 1, 0.5 do
  5153. swait()
  5154. bv.velocity = root.CFrame.lookVector*175
  5155. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5156. 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(20)),.5)
  5157. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  5158. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5159. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5160. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5161. end
  5162. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5163. for i = 0, 1, 0.5 do
  5164. swait()
  5165. bv.velocity = root.CFrame.lookVector*175
  5166. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5167. 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(20)),.5)
  5168. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  5169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5170. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5171. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5172. end
  5173. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5174. for i = 0, 1, 0.5 do
  5175. swait()
  5176. bv.velocity = root.CFrame.lookVector*175
  5177. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5178. 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(20)),.5)
  5179. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  5180. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5181. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5182. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5183. end
  5184. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5185. end
  5186. bv:Destroy()
  5187. attack = false
  5188. end
  5189.  
  5190. function createBGCircle(size,parent,color)
  5191. local bgui = Instance.new("BillboardGui",parent)
  5192. bgui.Size = UDim2.new(size, 0, size, 0)
  5193. local imgc = Instance.new("ImageLabel",bgui)
  5194. imgc.BackgroundTransparency = 1
  5195. imgc.ImageTransparency = 0
  5196. imgc.Size = UDim2.new(1,0,1,0)
  5197. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5198. imgc.ImageColor3 = color
  5199. return bgui,imgc
  5200. end
  5201.  
  5202. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5203. local bgui,imgc = createBGCircle(size,guipar,color)
  5204. bgui.AlwaysOnTop = true
  5205. imgc.Image = "rbxassetid://" ..img
  5206. local rrot = math.random(1,2)
  5207. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5208. coroutine.resume(coroutine.create(function()
  5209. for i = 0, 24*delay do
  5210. swait()
  5211. if rotationenabled == true then
  5212. if rrot == 1 then
  5213. imgc.Rotation = imgc.Rotation + rotsp
  5214. elseif rrot == 2 then
  5215. imgc.Rotation = imgc.Rotation - rotsp
  5216. end
  5217. end
  5218. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5219. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5220. end
  5221. bgui:Destroy()
  5222. end))
  5223. end
  5224. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5225. for i, v in pairs(mw2:GetChildren()) do
  5226. if v:IsA("Part") then
  5227. v.BrickColor = one
  5228. v.Material = "Neon"
  5229. end
  5230. end
  5231. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5232. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5233. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5234. tr1.Color = ColorSequence.new(one.Color)
  5235. tr2.Color = ColorSequence.new(one.Color)
  5236. tr3.Color = ColorSequence.new(one.Color)
  5237. for i, v in pairs(mw1:GetChildren()) do
  5238. if v:IsA("Part") then
  5239. if secondaryenabled == false then
  5240. v.Transparency = 1
  5241. elseif secondaryenabled == true then
  5242. v.Transparency = 0
  5243. end
  5244. v.BrickColor = two
  5245. v.Material = "Neon"
  5246. end
  5247. end
  5248. if secondaryenabled == false then
  5249. tl1.Enabled = false
  5250. tl2.Enabled = false
  5251. tl3.Enabled = false
  5252. elseif secondaryenabled == true then
  5253. tl1.Enabled = true
  5254. tl2.Enabled = true
  5255. tl3.Enabled = true
  5256. end
  5257. tl1.Color = ColorSequence.new(two.Color)
  5258. tl2.Color = ColorSequence.new(two.Color)
  5259. tl3.Color = ColorSequence.new(two.Color)
  5260. for i, v in pairs(m:GetChildren()) do
  5261. if v:IsA("Part") then
  5262. v.BrickColor = three
  5263. v.Material = "Ice"
  5264. end
  5265. end
  5266. for i, v in pairs(m2:GetChildren()) do
  5267. if v:IsA("Part") then
  5268. v.BrickColor = four
  5269. v.Material = "Ice"
  5270. end
  5271. end
  5272. for i, v in pairs(m3:GetChildren()) do
  5273. if v:IsA("Part") then
  5274. v.BrickColor = five
  5275. v.Material = "Neon"
  5276. end
  5277. end
  5278. for i, v in pairs(extrawingmod1:GetChildren()) do
  5279. if v:IsA("Part") then
  5280. v.Transparency = exonetran
  5281. v.BrickColor = exone
  5282. v.Material = "Neon"
  5283. end
  5284. end
  5285. for i, v in pairs(extrawingmod2:GetChildren()) do
  5286. if v:IsA("Part") then
  5287. v.Transparency = extwotran
  5288. v.BrickColor = extwo
  5289. v.Material = "Neon"
  5290. end
  5291. end
  5292. end
  5293.  
  5294.  
  5295. function normalmog()
  5296. attack = true
  5297. hum.WalkSpeed = 0
  5298. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5299. for i = 0,6,0.1 do
  5300. swait()
  5301. 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)
  5302. 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)
  5303. 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)
  5304. 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)
  5305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5306. 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)
  5307. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5308. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5309. end
  5310. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5311. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5312. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5313. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5314. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5315. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5316. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5317. rainbowmode = false
  5318. chaosmode = false
  5319. ModeOfGlitch = 1
  5320. storehumanoidWS = 16
  5321. newTheme("rbxassetid://769693973",48.6,1,30)
  5322. RecolorTextAndRename("CODED REALITY",Color3.new(0,0.25,0),Color3.new(0,1,0),"Antique")
  5323. CameraEnshaking(5,2.5)
  5324. MAINRUINCOLOR = BrickColor.new("Bright green")
  5325. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5326. for i = 0, 49 do
  5327. 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)
  5328. end
  5329. for i = 0, 24 do
  5330. 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)
  5331. 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"))
  5332. end
  5333. for i = 0,3,0.1 do
  5334. 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)
  5335. end
  5336. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5337. for i = 0,2,0.1 do
  5338. swait()
  5339. 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)
  5340. 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)
  5341. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5342. 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)
  5343. 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)
  5344. 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)
  5345. end
  5346. hum.WalkSpeed = storehumanoidWS
  5347. attack = false
  5348. end
  5349.  
  5350. function attackone()
  5351. attack = true
  5352. local keptcolor = MAINRUINCOLOR
  5353. for i = 0,1,0.1 do
  5354. swait()
  5355. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5356. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5357. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5358. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5359. 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)
  5360. 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)
  5361. end
  5362. local distlook = 5
  5363. coroutine.resume(coroutine.create(function()
  5364. for i = 0, 4 do
  5365. swait(2)
  5366. CameraEnshaking(2,3)
  5367. local hite = Instance.new("Part", char)
  5368. hite.Anchored = true
  5369. hite.CanCollide = false
  5370. hite.FormFactor = 3
  5371. hite.Name = "Ring"
  5372. hite.Material = "Neon"
  5373. hite.Size = Vector3.new(1, 1, 1)
  5374. hite.Transparency = 1
  5375. hite.TopSurface = 0
  5376. hite.BottomSurface = 0
  5377. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5378. 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)
  5379. 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)
  5380. 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)
  5381. 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)
  5382. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5383. for i = 0, 14 do
  5384. local rsiz = math.random(5,20)
  5385. 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)
  5386. end
  5387. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5388. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5389. game:GetService("Debris"):AddItem(hite, 5)
  5390. distlook = distlook + 10
  5391. end
  5392. end))
  5393. for i = 0,1,0.1 do
  5394. swait()
  5395. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5396. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5397. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5398. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5399. 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)
  5400. 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)
  5401. end
  5402. attack = false
  5403. end
  5404.  
  5405. function attacktwo()
  5406. attack = true
  5407. hum.WalkSpeed = 2
  5408. local keptcolor = MAINRUINCOLOR
  5409. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5410. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5411. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5412. for i = 0, 14 do
  5413. PixelBlock(1,math.random(1,3),"Add",rarm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,keptcolor,0)
  5414. end
  5415. for i = 0,1,0.1 do
  5416. swait()
  5417. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5418. 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)
  5419. 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)
  5420. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5422. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5423. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5424. end
  5425. for i = 0, 1 do
  5426. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5427. for i = 0,1,0.6 do
  5428. swait()
  5429. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5430. 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"))
  5431. 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)
  5432. 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)
  5433. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5434. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5435. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5436. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5437. end
  5438. for i = 0,1,0.6 do
  5439. swait()
  5440. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5441. 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"))
  5442. 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)
  5443. 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)
  5444. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5446. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5447. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5448. end
  5449. for i = 0,1,0.6 do
  5450. swait()
  5451. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5452. 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"))
  5453. 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)
  5454. 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)
  5455. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5456. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5457. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5458. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5459. end
  5460. for i = 0,1,0.6 do
  5461. swait()
  5462. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5463. 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"))
  5464. 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)
  5465. 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)
  5466. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5467. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5468. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5469. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5470. end
  5471. local rot = 0
  5472. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5473. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5474. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5475. CreateMesh(dis,"Sphere",10,1,10)
  5476. local at1 = Instance.new("Attachment",dis)
  5477. at1.Position = vt(-5,0,0)
  5478. local at2 = Instance.new("Attachment",dis)
  5479. at2.Position = vt(5,0,0)
  5480. local trl = Instance.new('Trail',wed)
  5481. trl.Attachment0 = at1
  5482. trl.Attachment1 = at2
  5483. trl.Texture = "rbxassetid://1049219073"
  5484. trl.LightEmission = 1
  5485. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5486. trl.Color = ColorSequence.new(dis.Color)
  5487. trl.Lifetime = 0.6
  5488. local a = Instance.new("Part",workspace)
  5489. a.Name = "Direction"
  5490. a.Anchored = true
  5491. a.BrickColor = bc("Bright red")
  5492. a.Material = "Neon"
  5493. a.Transparency = 1
  5494. a.CanCollide = false
  5495. local ray = Ray.new(
  5496. dis.CFrame.p, -- origin
  5497. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5498. )
  5499. local ignore = dis
  5500. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5501. a.BottomSurface = 10
  5502. a.TopSurface = 10
  5503. local distance = (dis.CFrame.p - position).magnitude
  5504. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5505. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5506. dis.CFrame = a.CFrame
  5507. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5508. a:Destroy()
  5509. local bv = Instance.new("BodyVelocity")
  5510. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5511. bv.velocity = dis.CFrame.lookVector*250
  5512. bv.Parent = dis
  5513. game:GetService("Debris"):AddItem(dis, 5)
  5514. local hitted = false
  5515. coroutine.resume(coroutine.create(function()
  5516. dis.Touched:connect(function(hit)
  5517. if hitted == false and hit.Parent ~= char then
  5518. hitted = true
  5519. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5520. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5521. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5522. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5523. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5524. coroutine.resume(coroutine.create(function()
  5525. for i = 0, 9 do
  5526. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5527. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5528. local at1 = Instance.new("Attachment",disr)
  5529. at1.Position = vt(-5,0,0)
  5530. local at2 = Instance.new("Attachment",disr)
  5531. at2.Position = vt(5,0,0)
  5532. local trl = Instance.new('Trail',disr)
  5533. trl.Attachment0 = at1
  5534. trl.FaceCamera = true
  5535. trl.Attachment1 = at2
  5536. trl.Texture = "rbxassetid://2342682798"
  5537. trl.LightEmission = 1
  5538. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5539. trl.Color = ColorSequence.new(keptcolor.Color)
  5540. trl.Lifetime = 0.5
  5541. local bv = Instance.new("BodyVelocity")
  5542. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5543. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5544. bv.Parent = disr
  5545. local val = 0
  5546. coroutine.resume(coroutine.create(function()
  5547. swait(30)
  5548. for i = 0, 9 do
  5549. swait()
  5550. val = val + 0.1
  5551. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5552. end
  5553. game:GetService("Debris"):AddItem(disr, 3)
  5554. end))
  5555. end
  5556. local eff = Instance.new("ParticleEmitter",dis)
  5557. eff.Texture = "rbxassetid://2273224484"
  5558. eff.LightEmission = 1
  5559. eff.Color = ColorSequence.new(keptcolor.Color)
  5560. eff.Rate = 500000
  5561. eff.Lifetime = NumberRange.new(0.5,2)
  5562. 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)})
  5563. 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)})
  5564. eff.Speed = NumberRange.new(20,250)
  5565. eff.Drag = 5
  5566. eff.Rotation = NumberRange.new(-500,500)
  5567. eff.VelocitySpread = 9000
  5568. eff.RotSpeed = NumberRange.new(-50,50)
  5569. wait(0.25)
  5570. eff.Enabled = false
  5571. end))
  5572. for i = 0, 9 do
  5573. 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"))
  5574. end
  5575. for i = 0, 19 do
  5576. 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)
  5577. end
  5578. coroutine.resume(coroutine.create(function()
  5579. for i = 0, 19 do
  5580. swait()
  5581. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5582. end
  5583. hum.CameraOffset = vt(0,0,0)
  5584. end))
  5585. dis.Anchored = true
  5586. dis.Transparency = 1
  5587. wait(8)
  5588. dis:Destroy()
  5589. end
  5590. end)
  5591. end))
  5592. rot = rot - 15
  5593. end
  5594. for i = 0,2,0.1 do
  5595. swait()
  5596. 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)
  5597. 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)
  5598. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5599. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5600. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5601. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5602. end
  5603. attack = false
  5604. hum.WalkSpeed = storehumanoidWS
  5605. end
  5606.  
  5607. function attackthree()
  5608. attack = true
  5609. local keptcolor = MAINRUINCOLOR
  5610. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5611. for i = 0,2,0.1 do
  5612. swait()
  5613. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5614. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5615. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5616. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5617. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5618. 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)
  5619. 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)
  5620. end
  5621. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5622. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5623. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5624. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5625. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5626. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5627. for i = 0, 24 do
  5628. 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"))
  5629. end
  5630. for i = 0,4,0.1 do
  5631. swait()
  5632. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5633. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5634. CreateMesh(dis,"Sphere",1,1,1)
  5635. dis.Anchored = true
  5636. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5637. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5638. coroutine.resume(coroutine.create(function()
  5639. swait(30)
  5640. dis.Transparency = 1
  5641. coroutine.resume(coroutine.create(function()
  5642. for i = 0, 19 do
  5643. swait()
  5644. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5645. end
  5646. hum.CameraOffset = vt(0,0,0)
  5647. end))
  5648. coroutine.resume(coroutine.create(function()
  5649. local eff = Instance.new("ParticleEmitter",dis)
  5650. eff.Texture = "rbxassetid://2273224484"
  5651. eff.LightEmission = 1
  5652. eff.Color = ColorSequence.new(dis.Color)
  5653. eff.Rate = 500000
  5654. eff.Lifetime = NumberRange.new(0.5,2)
  5655. 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)})
  5656. 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)})
  5657. eff.Speed = NumberRange.new(50,450)
  5658. eff.Drag = 5
  5659. eff.Rotation = NumberRange.new(-500,500)
  5660. eff.VelocitySpread = 9000
  5661. eff.RotSpeed = NumberRange.new(-50,50)
  5662. wait(0.125)
  5663. eff.Enabled = false
  5664. end))
  5665. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5666. for i = 0, 2 do
  5667. 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)
  5668. end
  5669. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5670. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5671. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5672. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5673. end))
  5674. game:GetService("Debris"):AddItem(dis, 5)
  5675. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5676. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5677. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5678. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5679. 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)
  5680. 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)
  5681. end
  5682. attack = false
  5683. end
  5684. ----------------------------------- Abilities
  5685.  
  5686. function ExtinctiveHeartbreak()
  5687. local targetted = nil
  5688. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5689. targetted = mouse.Target.Parent
  5690. end
  5691. if targetted ~= nil then
  5692. attack = true
  5693. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5694. for i = 0, 9 do
  5695. 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)
  5696. end
  5697. for i = 0, 24 do
  5698. 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)
  5699. end
  5700. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5701. local originalpos = root.CFrame
  5702. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5703. for i = 0, 9 do
  5704. 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)
  5705. end
  5706. for i = 0, 24 do
  5707. 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)
  5708. end
  5709. hum.WalkSpeed = 0
  5710. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5711. local radm = math.random(1,3)
  5712. if radm == 1 then
  5713. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5714. elseif radm == 2 then
  5715. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5716. elseif radm == 3 then
  5717. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5718. end
  5719. for i = 0,2,0.1 do
  5720. swait()
  5721. 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)
  5722. 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)
  5723. 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)
  5724. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5725. 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)
  5726. 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)
  5727. end
  5728. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5729. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5730. for i = 0,2,0.1 do
  5731. swait()
  5732. coroutine.resume(coroutine.create(function()
  5733. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5734. for i,v in pairs(targetted:GetChildren()) do
  5735. if v:IsA("Part") or v:IsA("MeshPart") then
  5736. v.Velocity = vt(0,0,0)
  5737. end
  5738. end
  5739. end))
  5740. 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)
  5741. 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)
  5742. 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)
  5743. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5744. 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)
  5745. 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)
  5746. end
  5747. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5748. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5749. for i = 0, 1 do
  5750. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5751. end
  5752. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5753. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5754. for i = 0,4,0.1 do
  5755. swait()
  5756. coroutine.resume(coroutine.create(function()
  5757. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5758. 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)))
  5759. local at1 = Instance.new("Attachment",dis)
  5760. at1.Position = vt(-25000,0,0)
  5761. local at2 = Instance.new("Attachment",dis)
  5762. at2.Position = vt(25000,0,0)
  5763. local trl = Instance.new('Trail',dis)
  5764. trl.Attachment0 = at1
  5765. trl.FaceCamera = true
  5766. trl.Attachment1 = at2
  5767. trl.Texture = "rbxassetid://1049219073"
  5768. trl.LightEmission = 1
  5769. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5770. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5771. trl.Lifetime = 5
  5772. local bv = Instance.new("BodyVelocity")
  5773. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5774. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5775. bv.Parent = dis
  5776. game:GetService("Debris"):AddItem(dis, 5)
  5777. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5778. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5779. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5780. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5781. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5782. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5783. 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)
  5784. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5785. for i = 0, 2 do
  5786. 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"))
  5787. end
  5788. 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)
  5789. for i,v in pairs(targetted:GetChildren()) do
  5790. if v:IsA("Part") or v:IsA("MeshPart") then
  5791. v.Velocity = vt(0,0,0)
  5792. end
  5793. end
  5794. end))
  5795. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5796. 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)
  5797. 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)
  5798. 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)
  5799. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5800. 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)
  5801. 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)
  5802. end
  5803. hum.CameraOffset = vt(0,0,0)
  5804. for i = 0, 49 do
  5805. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5806. 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)))
  5807. local at1 = Instance.new("Attachment",dis)
  5808. at1.Position = vt(-50000,0,0)
  5809. local at2 = Instance.new("Attachment",dis)
  5810. at2.Position = vt(50000,0,0)
  5811. local trl = Instance.new('Trail',dis)
  5812. trl.Attachment0 = at1
  5813. trl.FaceCamera = true
  5814. trl.Attachment1 = at2
  5815. trl.Texture = "rbxassetid://1049219073"
  5816. trl.LightEmission = 1
  5817. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5818. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5819. trl.Lifetime = 5
  5820. local bv = Instance.new("BodyVelocity")
  5821. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5822. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5823. bv.Parent = dis
  5824. game:GetService("Debris"):AddItem(dis, 5)
  5825. end
  5826. for i = 0, 49 do
  5827. 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)
  5828. 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"))
  5829. end
  5830. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5831. for i = 0, 1 do
  5832. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5833. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5834. end
  5835. for i = 0, 4 do
  5836. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5837. end
  5838. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5839. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5840. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5841. dmg(targetted)
  5842. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5843. for i = 0, 9 do
  5844. 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)
  5845. end
  5846. for i = 0, 24 do
  5847. 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)
  5848. end
  5849. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5850. root.CFrame = originalpos
  5851. for i = 0, 9 do
  5852. 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)
  5853. end
  5854. for i = 0, 24 do
  5855. 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)
  5856. end
  5857. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5858. attack = false
  5859. hum.WalkSpeed = storehumanoidWS
  5860. end
  5861. end
  5862.  
  5863. function CorruptionEvent()
  5864. attack = true
  5865. hum.WalkSpeed = 0
  5866. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5867. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5868. local keptcolor = MAINRUINCOLOR
  5869. for i = 0,4,0.1 do
  5870. swait()
  5871. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5872. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5873. 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)
  5874. 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)
  5875. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5876. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5877. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5878. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5879. end
  5880. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5881. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5882. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5883. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5884. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5885. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5886. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5887. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5888. hum.CameraOffset = vt(0,0,0)
  5889. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5890. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5891. for i = 0, 24 do
  5892. 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"))
  5893. end
  5894. local rrot = 0
  5895. coroutine.resume(coroutine.create(function()
  5896. for i = 0, 4 do
  5897. rrot = rrot + 45
  5898. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5899. xa.Anchored = true
  5900. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5901. xb.Anchored = true
  5902. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5903. xc.Anchored = true
  5904. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5905. xd.Anchored = true
  5906. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5907. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5908. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5909. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5910. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5911. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5912. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5913. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5914. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5915. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5916. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5917. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5918. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5919. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5920. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5921. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5922. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5923. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5924. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5925. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5926. for i = 0, 9 do
  5927. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5928. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5929. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5930. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5931. end
  5932. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5933. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5934. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5935. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5936. 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,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5937. sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5938. sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5939. sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5940. 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,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5941. sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5942. sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5943. sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5944. game:GetService("Debris"):AddItem(xa, 5)
  5945. game:GetService("Debris"):AddItem(xb, 5)
  5946. game:GetService("Debris"):AddItem(xc, 5)
  5947. game:GetService("Debris"):AddItem(xd, 5)
  5948. coroutine.resume(coroutine.create(function()
  5949. for i = 0, 19 do
  5950. swait()
  5951. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5952. end
  5953. hum.CameraOffset = vt(0,0,0)
  5954. end))
  5955. swait(9)
  5956. end
  5957. end))
  5958. for i = 0,2,0.1 do
  5959. swait()
  5960. 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)
  5961. 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)
  5962. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5963. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5964. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5965. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5966. end
  5967. attack = false
  5968. hum.WalkSpeed = storehumanoidWS
  5969. end
  5970.  
  5971. function EndGROUND()
  5972. attack = true
  5973. hum.WalkSpeed = 0
  5974. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5975. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5976. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5977. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5978. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5979. local keptcolor = MAINRUINCOLOR
  5980. for i = 0,4,0.1 do
  5981. swait()
  5982. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5983. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5984. 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"))
  5985. 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)
  5986. 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)
  5987. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5988. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5989. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5990. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5991. end
  5992. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5993. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5994. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5995. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5996. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5997. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5998. coroutine.resume(coroutine.create(function()
  5999. local shval = 10
  6000. for i = 0, 99 do
  6001. swait()
  6002. shval = shval - 0.1
  6003. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6004. end
  6005. hum.CameraOffset = vt(0,0,0)
  6006. end))
  6007. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6008. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6009. for i = 0, 24 do
  6010. 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"))
  6011. end
  6012. local rrot = 0
  6013. local xam = 1
  6014. coroutine.resume(coroutine.create(function()
  6015. for i = 0, 14 do
  6016. --swait()
  6017. rrot = rrot + 40*xam
  6018. xam = xam + 0.25
  6019. local bonus = xam
  6020. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6021. xa.Anchored = true
  6022. xa.Color = Color3.new(0,0,0)
  6023. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6024. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6025. local xc = 0
  6026. coroutine.resume(coroutine.create(function()
  6027. for i = 0, 99 do
  6028. swait()
  6029. xc = xc + 0.01
  6030. xa.Color = Color3.new(xc,0,0)
  6031. end
  6032. xa.Transparency = 1
  6033. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6034. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6035. for i = 0, 9 do
  6036. 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"))
  6037. end
  6038. 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)
  6039. 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)
  6040. 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))
  6041. game:GetService("Debris"):AddItem(xa, 5)
  6042. coroutine.resume(coroutine.create(function()
  6043. for i = 0, 19 do
  6044. swait()
  6045. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6046. end
  6047. hum.CameraOffset = vt(0,0,0)
  6048. end))
  6049. end))
  6050. end
  6051. end))
  6052. for i = 0,2,0.1 do
  6053. swait()
  6054. 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)
  6055. 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)
  6056. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6057. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6058. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6059. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6060. end
  6061. attack = false
  6062. hum.WalkSpeed = storehumanoidWS
  6063. end
  6064.  
  6065. function HeavenlyDisk()
  6066. attack = true
  6067. hum.WalkSpeed = 2
  6068. local keptcolor = MAINRUINCOLOR
  6069. local radm = math.random(1,3)
  6070. if radm == 1 then
  6071. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  6072. elseif radm == 2 then
  6073. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6074. elseif radm == 3 then
  6075. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6076. end
  6077. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6078. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  6079. 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)
  6080. 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)
  6081. for i = 0, 14 do
  6082. 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)
  6083. end
  6084. for i = 0,2,0.1 do
  6085. swait()
  6086. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6087. 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)
  6088. 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)
  6089. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6090. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6091. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6092. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6093. end
  6094. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6095. for i = 0,1,0.6 do
  6096. swait()
  6097. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6098. 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"))
  6099. 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)
  6100. 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)
  6101. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6103. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6104. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6105. end
  6106. for i = 0,1,0.6 do
  6107. swait()
  6108. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6109. 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"))
  6110. 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)
  6111. 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)
  6112. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6113. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6114. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6115. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6116. end
  6117. for i = 0,1,0.6 do
  6118. swait()
  6119. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6120. 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"))
  6121. 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)
  6122. 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)
  6123. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6124. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6126. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6127. end
  6128. for i = 0,1,0.6 do
  6129. swait()
  6130. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6131. 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"))
  6132. 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)
  6133. 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)
  6134. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6135. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6136. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6137. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6138. end
  6139. local rot = 15
  6140. for i = 0, 2 do
  6141. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6142. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6143. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6144. CreateMesh(dis,"Sphere",10,1,10)
  6145. local at1 = Instance.new("Attachment",dis)
  6146. at1.Position = vt(-5,0,0)
  6147. local at2 = Instance.new("Attachment",dis)
  6148. at2.Position = vt(5,0,0)
  6149. local trl = Instance.new('Trail',wed)
  6150. trl.Attachment0 = at1
  6151. trl.Attachment1 = at2
  6152. trl.Texture = "rbxassetid://1049219073"
  6153. trl.LightEmission = 1
  6154. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6155. trl.Color = ColorSequence.new(dis.Color)
  6156. trl.Lifetime = 0.6
  6157. local a = Instance.new("Part",workspace)
  6158. a.Name = "Direction"
  6159. a.Anchored = true
  6160. a.BrickColor = bc("Bright red")
  6161. a.Material = "Neon"
  6162. a.Transparency = 1
  6163. a.CanCollide = false
  6164. local ray = Ray.new(
  6165. dis.CFrame.p, -- origin
  6166. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6167. )
  6168. local ignore = dis
  6169. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6170. a.BottomSurface = 10
  6171. a.TopSurface = 10
  6172. local distance = (dis.CFrame.p - position).magnitude
  6173. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6174. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6175. dis.CFrame = a.CFrame
  6176. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6177. a:Destroy()
  6178. local bv = Instance.new("BodyVelocity")
  6179. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6180. bv.velocity = dis.CFrame.lookVector*250
  6181. bv.Parent = dis
  6182. game:GetService("Debris"):AddItem(dis, 5)
  6183. local hitted = false
  6184. coroutine.resume(coroutine.create(function()
  6185. dis.Touched:connect(function(hit)
  6186. if hitted == false and hit.Parent ~= char then
  6187. hitted = true
  6188. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6189. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6190. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6191. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6192. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6193. coroutine.resume(coroutine.create(function()
  6194. for i = 0, 9 do
  6195. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6196. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6197. local at1 = Instance.new("Attachment",disr)
  6198. at1.Position = vt(-2,0,0)
  6199. local at2 = Instance.new("Attachment",disr)
  6200. at2.Position = vt(2,0,0)
  6201. local trl = Instance.new('Trail',disr)
  6202. trl.Attachment0 = at1
  6203. trl.FaceCamera = true
  6204. trl.Attachment1 = at2
  6205. trl.Texture = "rbxassetid://2342682798"
  6206. trl.LightEmission = 1
  6207. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6208. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6209. trl.Lifetime = 0.5
  6210. local bv = Instance.new("BodyVelocity")
  6211. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6212. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6213. bv.Parent = disr
  6214. local val = 0
  6215. coroutine.resume(coroutine.create(function()
  6216. swait(30)
  6217. for i = 0, 9 do
  6218. swait()
  6219. val = val + 0.1
  6220. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6221. end
  6222. game:GetService("Debris"):AddItem(disr, 3)
  6223. end))
  6224. end
  6225. local eff = Instance.new("ParticleEmitter",dis)
  6226. eff.Texture = "rbxassetid://2273224484"
  6227. eff.LightEmission = 1
  6228. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6229. eff.Rate = 500000
  6230. eff.Lifetime = NumberRange.new(0.5,2)
  6231. 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)})
  6232. 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)})
  6233. eff.Speed = NumberRange.new(20,250)
  6234. eff.Drag = 5
  6235. eff.Rotation = NumberRange.new(-500,500)
  6236. eff.VelocitySpread = 9000
  6237. eff.RotSpeed = NumberRange.new(-50,50)
  6238. wait(0.25)
  6239. eff.Enabled = false
  6240. end))
  6241. for i = 0, 9 do
  6242. 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"))
  6243. end
  6244. for i = 0, 19 do
  6245. 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)
  6246. end
  6247. coroutine.resume(coroutine.create(function()
  6248. for i = 0, 19 do
  6249. swait()
  6250. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6251. end
  6252. hum.CameraOffset = vt(0,0,0)
  6253. end))
  6254. dis.Anchored = true
  6255. dis.Transparency = 1
  6256. wait(8)
  6257. dis:Destroy()
  6258. end
  6259. end)
  6260. end))
  6261. rot = rot - 15
  6262. end
  6263. for i = 0,2,0.1 do
  6264. swait()
  6265. 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)
  6266. 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)
  6267. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6268. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6269. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6270. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6271. end
  6272. attack = false
  6273. hum.WalkSpeed = storehumanoidWS
  6274. end
  6275.  
  6276. function FuckMeSidewaysAndCallMeGay()
  6277. local whom = (mouse.Target and mouse.Target.Parent)
  6278. --[[local fuckThisBoi = false
  6279. if(whom and whom:FindFirstChildOfClass'Humanoid')then
  6280. for _,v in next, ODers do
  6281. if(v == whom)then
  6282. fuckThisBoi = false
  6283. end
  6284. end
  6285. end
  6286. if(not fuckThisBoi)then
  6287. attack = false
  6288. warn'to fuck that boi you need to target them with z'
  6289. else]]
  6290. if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then
  6291. local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso'
  6292. local hum = whom:FindFirstChildOfClass'Humanoid'
  6293. local ocf = RootPart.CFrame
  6294. hum.WalkSpeed = 0
  6295.  
  6296. hed.Anchored = true
  6297. RootPart.Anchored = true
  6298. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6299. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6300. for i = 0, 9 do
  6301. 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("Pink"),0)
  6302. end
  6303. for i = 0, 24 do
  6304. 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("Pink"),0)
  6305. end
  6306. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6307. attack = true
  6308. bosschatfunc("I love you <3",MAINRUINCOLOR.Color,1)
  6309. local speed = 1
  6310. local heck;
  6311. local stopitlol = false;
  6312. heck = mouse.KeyUp:connect(function(k)
  6313. if(k:lower() == 'x')then
  6314. stopitlol = true
  6315. heck:disconnect()
  6316. end
  6317. end)
  6318. local times = 0
  6319. repeat swait()
  6320. speed = speed - .01
  6321. times = times + 1
  6322. if(speed < .1)then
  6323. speed = .1
  6324. end
  6325. for i = 0, speed, .05 do
  6326. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6327. swait()
  6328. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6329. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6330. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6331. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6332. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6333. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6334. end
  6335. CameraEnshaking(5,5)
  6336.  
  6337. CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1)
  6338.  
  6339. for i = 0, speed, .05 do
  6340. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6341. swait()
  6342. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6343. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6344. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6345. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6346. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6347. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6348. end
  6349. until stopitlol and times >= 3
  6350. for i = 1, 3 do
  6351. for i = 0, 1.5, .05 do
  6352. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6353. swait()
  6354. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6355. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6356. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6357. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6358. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6359. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6360. end
  6361. CameraEnshaking(5,25)
  6362.  
  6363. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6364.  
  6365.  
  6366. coroutine.resume(coroutine.create(function()
  6367. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6368. bld.LightEmission = 0.1
  6369. bld.Texture = "rbxassetid://284205403"
  6370. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6371. bld.Rate = 500
  6372. bld.Lifetime = NumberRange.new(1)
  6373. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6374. bld.Acceleration = vt(0,-25,0)
  6375. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6376. bld.Speed = NumberRange.new(10,50)
  6377. bld.EmissionDirection = "Back"
  6378. bld.VelocitySpread = 25
  6379. bld.Rotation = NumberRange.new(-500,500)
  6380. bld.RotSpeed = NumberRange.new(-500,500)
  6381. bld.Enabled = false
  6382. bld:Emit(250)
  6383. end))
  6384. coroutine.resume(coroutine.create(function()
  6385. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6386. bld.LightEmission = 0.1
  6387. bld.Texture = "rbxassetid://284205403"
  6388. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6389. bld.Rate = 500
  6390. bld.Lifetime = NumberRange.new(1)
  6391. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6392. bld.Acceleration = vt(0,-25,0)
  6393. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6394. bld.Speed = NumberRange.new(10,50)
  6395. bld.EmissionDirection = "Back"
  6396. bld.VelocitySpread = 25
  6397. bld.Rotation = NumberRange.new(-500,500)
  6398. bld.RotSpeed = NumberRange.new(-500,500)
  6399. bld.Enabled = false
  6400. bld:Emit(250)
  6401. end))
  6402. for i = 0, 1.5, .05 do
  6403. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6404. swait()
  6405. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6406. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6407. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6408. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6409. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6410. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6411. end
  6412. end
  6413. for i = 0, 4, .05 do
  6414. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6415. swait()
  6416. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1)
  6417. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  6418. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1)
  6419. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  6420. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6421. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6422. end
  6423. CameraEnshaking(5,25)
  6424. CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1)
  6425. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6426.  
  6427. dmg(whom)
  6428. coroutine.resume(coroutine.create(function()
  6429. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6430. bld.LightEmission = 0.1
  6431. bld.Texture = "rbxassetid://284205403"
  6432. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6433. bld.Rate = 500
  6434. bld.Lifetime = NumberRange.new(1)
  6435. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6436. bld.Acceleration = vt(0,-25,0)
  6437. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6438. bld.Speed = NumberRange.new(10,50)
  6439. bld.EmissionDirection = "Back"
  6440. bld.VelocitySpread = 25
  6441. bld.Rotation = NumberRange.new(-500,500)
  6442. bld.RotSpeed = NumberRange.new(-500,500)
  6443. bld.Enabled = true
  6444. end))
  6445. coroutine.resume(coroutine.create(function()
  6446. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6447. bld.LightEmission = 0.1
  6448. bld.Texture = "rbxassetid://284205403"
  6449. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6450. bld.Rate = 500
  6451. bld.Lifetime = NumberRange.new(1)
  6452. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6453. bld.Acceleration = vt(0,-25,0)
  6454. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6455. bld.Speed = NumberRange.new(10,50)
  6456. bld.EmissionDirection = "Back"
  6457. bld.VelocitySpread = 25
  6458. bld.Rotation = NumberRange.new(-500,500)
  6459. bld.RotSpeed = NumberRange.new(-500,500)
  6460. bld.Enabled = true
  6461. end))
  6462. for i = 0, 3, .05 do
  6463. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6464. swait()
  6465. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4)
  6466. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6467. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4)
  6468. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6469. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6470. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6471. end
  6472.  
  6473. RootPart.CFrame = ocf
  6474. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6475. for i = 0, 9 do
  6476. 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("Pink"),0)
  6477. end
  6478. for i = 0, 24 do
  6479. 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("Pink"),0)
  6480. end
  6481. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6482. RootPart.Anchored = false
  6483. Humanoid.WalkSpeed = storehumanoidWS
  6484. bosschatfunc("Hehehehehe <3",MAINRUINCOLOR.Color,0.5)
  6485. attack = false
  6486. end
  6487. end
  6488.  
  6489. function RapidBurst()
  6490. attack = true
  6491. hum.WalkSpeed = 0
  6492. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6493. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6494. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6495. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6496. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6497. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6498. local keptcolor = MAINRUINCOLOR
  6499. for i = 0,8,0.1 do
  6500. swait()
  6501. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6502. 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())
  6503. 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)
  6504. 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)
  6505. 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)
  6506. 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)
  6507. 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)
  6508. 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)
  6509. 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)
  6510. end
  6511. for i = 0, 99 do
  6512. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6513. 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)))
  6514. local at1 = Instance.new("Attachment",dis)
  6515. at1.Position = vt(-25000,0,0)
  6516. local at2 = Instance.new("Attachment",dis)
  6517. at2.Position = vt(25000,0,0)
  6518. local trl = Instance.new('Trail',dis)
  6519. trl.Attachment0 = at1
  6520. trl.FaceCamera = true
  6521. trl.Attachment1 = at2
  6522. trl.Texture = "rbxassetid://1049219073"
  6523. trl.LightEmission = 1
  6524. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6525. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6526. trl.Lifetime = 5
  6527. local bv = Instance.new("BodyVelocity")
  6528. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6529. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6530. bv.Parent = dis
  6531. game:GetService("Debris"):AddItem(dis, 5)
  6532. end
  6533. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6534. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6535. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6536. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6537. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6538. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6539. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6540. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6541. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6542. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6543. hum.CameraOffset = vt(0,0,0)
  6544. for i = 0, 24 do
  6545. 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())
  6546. end
  6547. local distam = 0
  6548. coroutine.resume(coroutine.create(function()
  6549. for i = 0, 99 do
  6550. wait()
  6551. distam = distam + 1
  6552. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6553. xa.Anchored = true
  6554. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6555. game:GetService("Debris"):AddItem(xa, 5)
  6556. for i = 0, 4 do
  6557. 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())
  6558. end
  6559. coroutine.resume(coroutine.create(function()
  6560. local eff = Instance.new("ParticleEmitter",xa)
  6561. eff.Texture = "rbxassetid://2273224484"
  6562. eff.LightEmission = 1
  6563. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6564. eff.Rate = 500000
  6565. eff.Lifetime = NumberRange.new(1,3)
  6566. 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)})
  6567. 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)})
  6568. eff.Speed = NumberRange.new(50,500)
  6569. eff.Drag = 5
  6570. eff.Rotation = NumberRange.new(-500,500)
  6571. eff.VelocitySpread = 9000
  6572. eff.RotSpeed = NumberRange.new(-50,50)
  6573. wait(0.25)
  6574. eff.Enabled = false
  6575. end))
  6576. coroutine.resume(coroutine.create(function()
  6577. for i = 0, 19 do
  6578. swait()
  6579. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6580. end
  6581. hum.CameraOffset = vt(0,0,0)
  6582. end))
  6583. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6584. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6585. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6586. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6587. end
  6588. end))
  6589. attack = false
  6590. hum.WalkSpeed = storehumanoidWS
  6591. end
  6592.  
  6593.  
  6594. function FallenOrbs()
  6595. attack = true
  6596. hum.WalkSpeed = 2
  6597. local keptcolor = MAINRUINCOLOR
  6598. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6599. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6600. local radm = math.random(1,3)
  6601. if radm == 1 then
  6602. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6603. elseif radm == 2 then
  6604. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6605. elseif radm == 3 then
  6606. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6607. end
  6608. coroutine.resume(coroutine.create(function()
  6609. for i = 0, 29 do
  6610. swait(2)
  6611. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6612. dis.Anchored = true
  6613. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6614. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6615. CreateMesh(dis,"Sphere",2,2,2)
  6616. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6617. 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"))
  6618. coroutine.resume(coroutine.create(function()
  6619. wait(0.5)
  6620. dis.Anchored = false
  6621. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6622. local at1 = Instance.new("Attachment",dis)
  6623. at1.Position = vt(-1,0,0)
  6624. local at2 = Instance.new("Attachment",dis)
  6625. at2.Position = vt(1,0,0)
  6626. local trl = Instance.new('Trail',dis)
  6627. trl.Attachment0 = at1
  6628. trl.FaceCamera = true
  6629. trl.Attachment1 = at2
  6630. trl.Texture = "rbxassetid://1049219073"
  6631. trl.LightEmission = 1
  6632. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6633. trl.Color = ColorSequence.new(dis.Color)
  6634. trl.Lifetime = 0.6
  6635. local a = Instance.new("Part",workspace)
  6636. a.Name = "Direction"
  6637. a.Anchored = true
  6638. a.BrickColor = bc("Bright red")
  6639. a.Material = "Neon"
  6640. a.Transparency = 1
  6641. a.CanCollide = false
  6642. local ray = Ray.new(
  6643. dis.CFrame.p, -- origin
  6644. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6645. )
  6646. local ignore = dis
  6647. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6648. a.BottomSurface = 10
  6649. a.TopSurface = 10
  6650. local distance = (dis.CFrame.p - position).magnitude
  6651. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6652. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6653. dis.CFrame = a.CFrame
  6654. a:Destroy()
  6655. local bv = Instance.new("BodyVelocity")
  6656. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6657. bv.velocity = dis.CFrame.lookVector*500
  6658. bv.Parent = dis
  6659. game:GetService("Debris"):AddItem(dis, 5)
  6660. local hitted = false
  6661. coroutine.resume(coroutine.create(function()
  6662. dis.Touched:connect(function(hit)
  6663. if hitted == false and hit.Parent ~= char then
  6664. hitted = true
  6665. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6666. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6667. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6668. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6669. coroutine.resume(coroutine.create(function()
  6670. for i = 0, 4 do
  6671. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6672. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6673. local at1 = Instance.new("Attachment",disr)
  6674. at1.Position = vt(-10,0,0)
  6675. local at2 = Instance.new("Attachment",disr)
  6676. at2.Position = vt(10,0,0)
  6677. local trl = Instance.new('Trail',disr)
  6678. trl.Attachment0 = at1
  6679. trl.FaceCamera = true
  6680. trl.Attachment1 = at2
  6681. trl.Texture = "rbxassetid://2342682798"
  6682. trl.LightEmission = 1
  6683. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6684. trl.Color = ColorSequence.new(disr.Color)
  6685. trl.Lifetime = 0.5
  6686. local bv = Instance.new("BodyVelocity")
  6687. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6688. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6689. bv.Parent = disr
  6690. local val = 0
  6691. coroutine.resume(coroutine.create(function()
  6692. swait(30)
  6693. for i = 0, 9 do
  6694. swait()
  6695. val = val + 0.1
  6696. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6697. end
  6698. game:GetService("Debris"):AddItem(disr, 3)
  6699. end))
  6700. end
  6701. local eff = Instance.new("ParticleEmitter",dis)
  6702. eff.Texture = "rbxassetid://1049219073"
  6703. eff.LightEmission = 1
  6704. eff.Color = ColorSequence.new(dis.Color)
  6705. eff.Rate = 500000
  6706. eff.Lifetime = NumberRange.new(0.5,2)
  6707. 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)})
  6708. 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)})
  6709. eff.Speed = NumberRange.new(20,250)
  6710. eff.Drag = 5
  6711. eff.Rotation = NumberRange.new(-500,500)
  6712. eff.VelocitySpread = 9000
  6713. eff.RotSpeed = NumberRange.new(-50,50)
  6714. wait(0.5)
  6715. eff.Enabled = false
  6716. end))
  6717. for i = 0, 4 do
  6718. 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"))
  6719. end
  6720. coroutine.resume(coroutine.create(function()
  6721. for i = 0, 19 do
  6722. swait()
  6723. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6724. end
  6725. hum.CameraOffset = vt(0,0,0)
  6726. end))
  6727. dis.Anchored = true
  6728. dis.Transparency = 1
  6729. wait(8)
  6730. dis:Destroy()
  6731. end
  6732. end)
  6733. end))
  6734. end))
  6735. end
  6736. end))
  6737. for i = 0,9,0.1 do
  6738. swait()
  6739. 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)
  6740. 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)
  6741. 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)
  6742. 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(90)),.3)
  6743. 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)
  6744. 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)
  6745. 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)
  6746. end
  6747. attack = false
  6748. hum.WalkSpeed = storehumanoidWS
  6749. end
  6750.  
  6751. function CyberSlash()
  6752. local posit = -2
  6753. attack = true
  6754. hum.WalkSpeed = 5
  6755. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6756. local radm = math.random(1,3)
  6757. if radm == 1 then
  6758. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6759. elseif radm == 2 then
  6760. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6761. elseif radm == 3 then
  6762. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6763. end
  6764. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6765. for i = 0,2,0.1 do
  6766. swait()
  6767. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6768. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6769. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6770. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6771. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6772. 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)
  6773. 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)
  6774. end
  6775. for i = 0, 2 do
  6776. CameraEnshaking(1,2)
  6777. local hite = Instance.new("Part", char)
  6778. hite.Anchored = true
  6779. hite.CanCollide = false
  6780. hite.FormFactor = 3
  6781. hite.Name = "Ring"
  6782. hite.Material = "Neon"
  6783. hite.Size = Vector3.new(1, 1, 1)
  6784. hite.Transparency = 1
  6785. hite.TopSurface = 0
  6786. hite.BottomSurface = 0
  6787. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6788. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6789. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6790. coroutine.resume(coroutine.create(function()
  6791. for i = 0, 1 do
  6792. swait()
  6793. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6794. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6795. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6796. end
  6797. end))
  6798. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
  6799. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6800. game:GetService("Debris"):AddItem(hite, 5)
  6801. posit = posit + 2
  6802. end
  6803. for i = 0,1,0.1 do
  6804. swait()
  6805. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6806. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6807. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6808. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6809. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6810. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  6811. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  6812. end
  6813. for i = 0,1,0.1 do
  6814. swait()
  6815. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6816. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6817. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6818. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6819. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6820. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5)
  6821. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5)
  6822. end
  6823. posit = -6
  6824. for i = 0, 6 do
  6825. CameraEnshaking(1,3)
  6826. local hite = Instance.new("Part", char)
  6827. hite.Anchored = true
  6828. hite.CanCollide = false
  6829. hite.FormFactor = 3
  6830. hite.Name = "Ring"
  6831. hite.Material = "Neon"
  6832. hite.Size = Vector3.new(1, 1, 1)
  6833. hite.Transparency = 1
  6834. hite.TopSurface = 0
  6835. hite.BottomSurface = 0
  6836. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6837. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6838. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6839. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
  6840. coroutine.resume(coroutine.create(function()
  6841. for i = 0, 2 do
  6842. swait()
  6843. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6844. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6845. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6846. end
  6847. end))
  6848. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6849. game:GetService("Debris"):AddItem(hite, 5)
  6850. posit = posit + 2
  6851. end
  6852. for i = 0,1,0.1 do
  6853. swait()
  6854. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6855. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6856. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6857. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6858. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6859. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5)
  6860. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5)
  6861. end
  6862. hum.WalkSpeed = storehumanoidWS
  6863. attack = false
  6864. end
  6865.  
  6866. function EquinoxOrbs()
  6867. hum.WalkSpeed = 0
  6868. attack = true
  6869. local radm = math.random(1,3)
  6870. if radm == 1 then
  6871. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6872. elseif radm == 2 then
  6873. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6874. elseif radm == 3 then
  6875. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6876. end
  6877. for i = 0,1,0.1 do
  6878. swait()
  6879. 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)
  6880. 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)
  6881. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6882. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6883. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6884. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6885. end
  6886. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6887. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6888. for i = 0, 24 do
  6889. 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"))
  6890. end
  6891. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6892. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6893. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6894. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6895. for i = 0,4,0.1 do
  6896. swait()
  6897. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6898. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6899. CreateMesh(dis,"Sphere",1,1,1)
  6900. dis.Anchored = true
  6901. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6902. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6903. CreateMesh(dis2,"Sphere",1,1,1)
  6904. dis2.Anchored = true
  6905. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6906. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6907. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6908. coroutine.resume(coroutine.create(function()
  6909. swait(60)
  6910. dis.Transparency = 1
  6911. dis2.Transparency = 1
  6912. coroutine.resume(coroutine.create(function()
  6913. for i = 0, 19 do
  6914. swait()
  6915. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6916. end
  6917. hum.CameraOffset = vt(0,0,0)
  6918. end))
  6919. coroutine.resume(coroutine.create(function()
  6920. local eff = Instance.new("ParticleEmitter",dis)
  6921. eff.Texture = "rbxassetid://2273224484"
  6922. eff.LightEmission = 1
  6923. eff.Color = ColorSequence.new(dis.Color)
  6924. eff.Rate = 500000
  6925. eff.Lifetime = NumberRange.new(0.5,2)
  6926. 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)})
  6927. 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)})
  6928. eff.Speed = NumberRange.new(50,450)
  6929. eff.Drag = 5
  6930. eff.Rotation = NumberRange.new(-500,500)
  6931. eff.VelocitySpread = 9000
  6932. eff.RotSpeed = NumberRange.new(-50,50)
  6933. local eff2 = eff:Clone()
  6934. eff2.Parent = dis2
  6935. eff2.LightEmission = 0
  6936. eff2.Color = ColorSequence.new(dis2.Color)
  6937. wait(0.25)
  6938. eff.Enabled = false
  6939. eff2.Enabled = false
  6940. end))
  6941. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6942. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6943. for i = 0, 2 do
  6944. 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)
  6945. 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)
  6946. end
  6947. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6948. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6949. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6950. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6951. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6952. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6953. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6954. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6955. end))
  6956. game:GetService("Debris"):AddItem(dis, 5)
  6957. game:GetService("Debris"):AddItem(dis2, 5)
  6958. 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)
  6959. 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)
  6960. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6961. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6962. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6963. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6964. end
  6965. attack = false
  6966. hum.WalkSpeed = storehumanoidWS
  6967. end
  6968. function FallenDEMISE()
  6969. attack = true
  6970. hum.WalkSpeed = 0
  6971. local keptcolor = MAINRUINCOLOR
  6972. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6973. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6974. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6975. for i = 0, 15, 0.1 do
  6976. swait()
  6977. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6978. 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)))
  6979. local at1 = Instance.new("Attachment",dis)
  6980. at1.Position = vt(-25000,0,0)
  6981. local at2 = Instance.new("Attachment",dis)
  6982. at2.Position = vt(25000,0,0)
  6983. local trl = Instance.new('Trail',dis)
  6984. trl.Attachment0 = at1
  6985. trl.FaceCamera = true
  6986. trl.Attachment1 = at2
  6987. trl.Texture = "rbxassetid://1049219073"
  6988. trl.LightEmission = 1
  6989. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6990. trl.Color = ColorSequence.new(dis.Color)
  6991. trl.Lifetime = 5
  6992. local bv = Instance.new("BodyVelocity")
  6993. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6994. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6995. bv.Parent = dis
  6996. game:GetService("Debris"):AddItem(dis, 1)
  6997. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6998. 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"))
  6999. 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"))
  7000. 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)
  7001. 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)
  7002. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7003. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7004. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7005. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7006. end
  7007. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  7008. for i = 0, 30, 0.1 do
  7009. swait()
  7010. coroutine.resume(coroutine.create(function()
  7011. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  7012. if v:FindFirstChild('Head') then
  7013. dmg(v)
  7014. end
  7015. end
  7016. end))
  7017. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7018. 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)))
  7019. local at1 = Instance.new("Attachment",dis)
  7020. at1.Position = vt(-50000,0,0)
  7021. local at2 = Instance.new("Attachment",dis)
  7022. at2.Position = vt(50000,0,0)
  7023. local trl = Instance.new('Trail',dis)
  7024. trl.Attachment0 = at1
  7025. trl.FaceCamera = true
  7026. trl.Attachment1 = at2
  7027. trl.Texture = "rbxassetid://1049219073"
  7028. trl.LightEmission = 1
  7029. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7030. trl.Color = ColorSequence.new(dis.Color)
  7031. trl.Lifetime = 10
  7032. local bv = Instance.new("BodyVelocity")
  7033. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7034. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  7035. bv.Parent = dis
  7036. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  7037. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  7038. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  7039. 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"))
  7040. 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"))
  7041. 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"))
  7042. 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"))
  7043. for i = 0, 2 do
  7044. 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)
  7045. end
  7046. 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)
  7047. 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)
  7048. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7049. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7050. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7051. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7052. end
  7053. attack = false
  7054. hum.WalkSpeed = storehumanoidWS
  7055. end
  7056.  
  7057. function SpeedDrop()
  7058. attack = true
  7059. hum.WalkSpeed = 0
  7060. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  7061. local poste = 3
  7062. local rotation = 0
  7063. local rate = 0
  7064. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  7065. for i = 0, 124 do
  7066. swait()
  7067. rotation = rotation + rate
  7068. poste = poste + 0.1
  7069. rate = rate + 0.1
  7070. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  7071. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  7072. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7073. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7074. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7075. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7076. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  7077. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5)
  7078. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  7079. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  7080. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  7081. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  7082. end
  7083. CameraEnshaking(3,7)
  7084. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  7085. local loc = Instance.new("Part", char)
  7086. loc.BrickColor = MAINRUINCOLOR
  7087. loc.CanCollide = false
  7088. loc.FormFactor = 3
  7089. loc.Name = "Ring"
  7090. loc.Material = "Neon"
  7091. loc.Size = Vector3.new(1, 1, 1)
  7092. loc.Transparency = 1
  7093. loc.TopSurface = 0
  7094. loc.BottomSurface = 0
  7095. loc.Anchored = true
  7096. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7097. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7098. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7099. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7100. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7101. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7102. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7103. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7104. coroutine.resume(coroutine.create(function()
  7105. local eff = Instance.new("ParticleEmitter",loc)
  7106. eff.Texture = "rbxassetid://363275192"
  7107. eff.LightEmission = 0.95
  7108. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7109. eff.Rate = 10000
  7110. eff.Lifetime = NumberRange.new(1)
  7111. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7112. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7113. eff.Speed = NumberRange.new(100,500)
  7114. eff.Drag = 5
  7115. eff.Rotation = NumberRange.new(-500,500)
  7116. eff.VelocitySpread = 9000
  7117. eff.RotSpeed = NumberRange.new(-50,50)
  7118. wait(0.5)
  7119. eff.Enabled = false
  7120. end))
  7121. for i = 0, 49 do
  7122. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  7123. end
  7124. for i = 0, 9 do
  7125. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  7126. end
  7127. game:GetService("Debris"):AddItem(loc, 5)
  7128. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7129. hum.WalkSpeed = storehumanoidWS
  7130. attack = false
  7131. end
  7132.  
  7133. function cutesigh()
  7134. attack = true
  7135. hum.WalkSpeed = 0
  7136. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7137. local blush = Instance.new("Decal",hed)
  7138. blush.Texture = "rbxassetid://898404027"
  7139. blush.Face = "Front"
  7140. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7141. for i = 0, 9, 0.1 do
  7142. swait()
  7143. 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)
  7144. 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)
  7145. 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)
  7146. 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)
  7147. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 + 0 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 5 * math.cos(sine / 51))),.1)
  7148. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0 * math.cos(sine / 73)),math.rad(2 - 3 * math.cos(sine / 53)),math.rad(-33 - 5 * math.cos(sine / 51))),.1)
  7149. end
  7150. coroutine.resume(coroutine.create(function()
  7151. for i = 0, 49 do
  7152. swait()
  7153. blush.Transparency = blush.Transparency + 0.02
  7154. end
  7155. blush:Destroy()
  7156. end))
  7157. hum.WalkSpeed = storehumanoidWS
  7158. attack = false
  7159. end
  7160.  
  7161. function smiter()
  7162. local targetted = nil
  7163. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7164. targetted = mouse.Target.Parent
  7165. end
  7166. if targetted ~= nil then
  7167. RootPart.CFrame = FaceMouse()[1]
  7168. attack = true
  7169. local radm = math.random(1,3)
  7170. if radm == 1 then
  7171. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7172. elseif radm == 2 then
  7173. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7174. elseif radm == 3 then
  7175. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7176. end
  7177. hum.WalkSpeed = 0
  7178. coroutine.resume(coroutine.create(function()
  7179. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7180. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7181. local vel = Instance.new("BodyPosition", targetted.Head)
  7182. vel.P = 12500
  7183. vel.D = 1000
  7184. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7185. vel.position = targetted.Head.CFrame.p
  7186. end))
  7187. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7188. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7189. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7190. for i = 0,4,0.1 do
  7191. swait()
  7192. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.125,-0.01,MAINRUINCOLOR)
  7193. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7194. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7195. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  7196. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7197. 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))),.1)
  7198. 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))),.1)
  7199. end
  7200. coroutine.resume(coroutine.create(function()
  7201. CameraEnshaking(6,5)
  7202. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7203. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7204. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7205. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7206. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7207. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7208. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7209. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7210. coroutine.resume(coroutine.create(function()
  7211. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7212. eff.Texture = "rbxassetid://2273224484"
  7213. eff.LightEmission = 1
  7214. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7215. eff.Rate = 500000
  7216. eff.Lifetime = NumberRange.new(0.5,2)
  7217. 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)})
  7218. 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)})
  7219. eff.Speed = NumberRange.new(20,250)
  7220. eff.Drag = 5
  7221. eff.Rotation = NumberRange.new(-500,500)
  7222. eff.VelocitySpread = 9000
  7223. eff.RotSpeed = NumberRange.new(-50,50)
  7224. wait(0.25)
  7225. eff.Enabled = false
  7226. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7227. eff.Texture = "rbxassetid://363275192"
  7228. eff.LightEmission = 0.95
  7229. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7230. eff.Rate = 10000
  7231. eff.Lifetime = NumberRange.new(1.5)
  7232. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7233. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7234. eff.Speed = NumberRange.new(25,150)
  7235. eff.Drag = 5
  7236. eff.Rotation = NumberRange.new(-500,500)
  7237. eff.VelocitySpread = 9000
  7238. eff.RotSpeed = NumberRange.new(-50,50)
  7239. local eff2 = eff:Clone()
  7240. eff2.Parent = targetted.Head
  7241. eff2.Texture = "rbxassetid://284205403"
  7242. eff2.Rate = 10000
  7243. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7244. eff2.Drag = 5
  7245. eff2.Rotation = NumberRange.new(-500,500)
  7246. eff2.VelocitySpread = 9000
  7247. wait(0.5)
  7248. eff2.Enabled = false
  7249. eff.Enabled = false
  7250. end))
  7251. for i = 0, 9 do
  7252. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  7253. end
  7254. for i = 0, 49 do
  7255. local rsiz = math.random(10,50)
  7256. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  7257. end
  7258. game:GetService("Debris"):AddItem(vel,1)
  7259. dmg(targetted)
  7260. end))
  7261. for i = 0,1,0.1 do
  7262. swait()
  7263. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7264. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7265. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  7266. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7267. 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))),.1)
  7268. 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))),.1)
  7269. end
  7270. attack = false
  7271. hum.WalkSpeed = storehumanoidWS
  7272. end
  7273. end
  7274.  
  7275. function shytaunty()
  7276. attack = true
  7277. hum.WalkSpeed = 0
  7278. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7279. local blush = Instance.new("Decal",hed)
  7280. blush.Texture = "rbxassetid://898404027"
  7281. blush.Face = "Front"
  7282. for i = 0, 13, 0.1 do
  7283. swait()
  7284. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  7285. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  7286. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  7287. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
  7288. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
  7289. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
  7290. end
  7291. coroutine.resume(coroutine.create(function()
  7292. for i = 0, 49 do
  7293. swait()
  7294. blush.Transparency = blush.Transparency + 0.02
  7295. end
  7296. blush:Destroy()
  7297. end))
  7298. hum.WalkSpeed = storehumanoidWS
  7299. attack = false
  7300. end
  7301.  
  7302. function PureBomb()
  7303. attack = true
  7304. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7305. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7306. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7307. local orb = Instance.new("Part", char)
  7308. orb.Anchored = true
  7309. orb.BrickColor = BrickColor.new("Toothpaste")
  7310. orb.CanCollide = false
  7311. orb.FormFactor = 3
  7312. orb.Name = "Ring"
  7313. orb.Material = "Neon"
  7314. orb.Size = Vector3.new(1, 1, 1)
  7315. orb.Transparency = 0
  7316. orb.TopSurface = 0
  7317. orb.BottomSurface = 0
  7318. local orbm = Instance.new("SpecialMesh", orb)
  7319. orbm.MeshType = "Sphere"
  7320. orbm.Name = "SizeMesh"
  7321. orbm.Scale = vt(0,0,0)
  7322. local scaled = 0.1
  7323. local posid = 0
  7324. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7325. for i = 0, 5, 0.1 do
  7326. swait()
  7327. scaled = scaled - 0.001
  7328. posid = posid - scaled
  7329. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7330. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7331. 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,BrickColor.new("Toothpaste"),10)
  7332. PixelBlockNeg(2,1,"Add",orb.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.01,BrickColor.new("Toothpaste"),0)
  7333. 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))),.1)
  7334. 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)),.1)
  7335. 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)),.1)
  7336. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7337. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7338. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  7339. end
  7340. for i = 0, 2, 0.1 do
  7341. swait()
  7342. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7343. 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))),.4)
  7344. 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)),.4)
  7345. 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(-50)),.4)
  7346. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7347. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7348. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  7349. end
  7350. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7351. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7352. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7353. coroutine.resume(coroutine.create(function()
  7354. orb.Anchored = false
  7355. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7356. local a = Instance.new("Part",workspace)
  7357. a.Name = "Direction"
  7358. a.Anchored = true
  7359. a.BrickColor = bc("Bright red")
  7360. a.Material = "Neon"
  7361. a.Transparency = 1
  7362. a.CanCollide = false
  7363. local ray = Ray.new(
  7364. orb.CFrame.p, -- origin
  7365. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7366. )
  7367. local ignore = orb
  7368. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7369. a.BottomSurface = 10
  7370. a.TopSurface = 10
  7371. local distance = (orb.CFrame.p - position).magnitude
  7372. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7373. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7374. orb.CFrame = a.CFrame
  7375. a:Destroy()
  7376. local bv = Instance.new("BodyVelocity")
  7377. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7378. bv.velocity = orb.CFrame.lookVector*125
  7379. bv.Parent = orb
  7380. local hitted = false
  7381. game:GetService("Debris"):AddItem(orb, 15)
  7382. wait()
  7383. local hit =orb.Touched:connect(function(hit)
  7384. if hitted == false then
  7385. hitted = true
  7386. CameraEnshaking(10,2.5)
  7387. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7388. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7389. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7390. for i = 0, 49 do
  7391. PixelBlock(1,math.random(1,30),"Add",orb.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)
  7392. end
  7393. local eff = Instance.new("ParticleEmitter",orb)
  7394. eff.Texture = "rbxassetid://2273224484"
  7395. eff.LightEmission = 1
  7396. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7397. eff.Rate = 500000
  7398. eff.Lifetime = NumberRange.new(0.5,2)
  7399. 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)})
  7400. 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)})
  7401. eff.Speed = NumberRange.new(20,250)
  7402. eff.Drag = 5
  7403. eff.Rotation = NumberRange.new(-500,500)
  7404. eff.VelocitySpread = 9000
  7405. eff.RotSpeed = NumberRange.new(-50,50)
  7406. coroutine.resume(coroutine.create(function()
  7407. wait(0.25)
  7408. eff.Enabled = false
  7409. end))
  7410. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7411. for i = 0, 9 do
  7412. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  7413. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  7414. end
  7415. orb.Anchored = true
  7416. orb.Transparency = 1
  7417. local eff = Instance.new("ParticleEmitter",orb)
  7418. eff.Texture = "rbxassetid://2273224484"
  7419. eff.LightEmission = 1
  7420. eff.Color = ColorSequence.new(Color3.new(M))
  7421. eff.Rate = 500000
  7422. eff.Lifetime = NumberRange.new(0.5,2)
  7423. 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)})
  7424. 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)})
  7425. eff.Speed = NumberRange.new(20,250)
  7426. eff.Drag = 5
  7427. eff.Rotation = NumberRange.new(-500,500)
  7428. eff.VelocitySpread = 9000
  7429. eff.RotSpeed = NumberRange.new(-50,50)
  7430. coroutine.resume(coroutine.create(function()
  7431. wait(1)
  7432. eff.Enabled = false
  7433. end))
  7434. wait(8)
  7435. orb:Destroy()
  7436. end
  7437. end)
  7438. end))
  7439. for i = 0, 1, 0.1 do
  7440. swait()
  7441. 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))),.4)
  7442. 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)),.4)
  7443. 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(50)),.4)
  7444. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7445. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7446. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  7447. end
  7448. attack = false
  7449. end
  7450.  
  7451.  
  7452. function BeamOfDeath()
  7453. coroutine.resume(coroutine.create(function()
  7454. attack = true
  7455. hum.WalkSpeed = 0
  7456. for i = 0, 11, 0.1 do
  7457. swait()
  7458. 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)
  7459. 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)
  7460. 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(-16 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7461. 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)
  7462. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(125 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1)
  7463. 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)
  7464. end
  7465. for i = 0, 1, 0.1 do
  7466. swait()
  7467. 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)
  7468. 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)
  7469. 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(16 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7470. 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)
  7471. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(-5 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1)
  7472. 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)
  7473. end
  7474. hum.WalkSpeed = storehumanoidWS
  7475. attack = false
  7476. end))
  7477. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7478. local radm = math.random(1,3)
  7479. if radm == 1 then
  7480. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7481. elseif radm == 2 then
  7482. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7483. elseif radm == 3 then
  7484. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7485. end
  7486. local keptcolor = MAINRUINCOLOR
  7487. local orb = Instance.new("Part", char)
  7488. orb.BrickColor = keptcolor
  7489. orb.CanCollide = false
  7490. orb.FormFactor = 3
  7491. orb.Name = "Ring"
  7492. orb.Material = "Neon"
  7493. orb.Size = Vector3.new(1, 1, 1)
  7494. orb.Transparency = 1
  7495. orb.TopSurface = 0
  7496. orb.BottomSurface = 0
  7497. local orbm = Instance.new("SpecialMesh", orb)
  7498. orbm.MeshType = "Sphere"
  7499. orbm.Name = "SizeMesh"
  7500. orbm.Scale = vt(22.5,10000,22.5)
  7501. orb.CFrame = mouse.Hit
  7502. orb.Anchored = true
  7503. orb.Orientation = vt(0,0,0)
  7504. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7505. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7506. coroutine.resume(coroutine.create(function()
  7507. coroutine.resume(coroutine.create(function()
  7508. for i = 0, 175 do
  7509. swait()
  7510. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7511. orb.Transparency = orb.Transparency - 0.005
  7512. end
  7513. end))
  7514. wait(2)
  7515. coroutine.resume(coroutine.create(function()
  7516. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7517. if hfr ~= nil then
  7518. for i = 0, 24.5 do
  7519. local deb = Instance.new("Part", char)
  7520. deb.Anchored = true
  7521. deb.CanCollide = false
  7522. deb.FormFactor = 3
  7523. deb.Name = "Ring"
  7524. deb.Material = hitfloor.Material
  7525. deb.Color = hitfloor.Color
  7526. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7527. deb.Transparency = 0
  7528. deb.TopSurface = 0
  7529. deb.BottomSurface = 0
  7530. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  7531. local deb2 = Instance.new("Part", char)
  7532. deb2.CanCollide = false
  7533. deb2.FormFactor = 3
  7534. deb2.Name = "Ring"
  7535. deb2.Material = hitfloor.Material
  7536. deb2.Color = hitfloor.Color
  7537. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7538. deb2.Transparency = 0
  7539. deb2.TopSurface = 0
  7540. deb2.BottomSurface = 0
  7541. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7542. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  7543. local eff = Instance.new("ParticleEmitter",deb)
  7544. eff.Texture = "rbxassetid://363275192"
  7545. eff.LightEmission = 0.95
  7546. eff.Color = ColorSequence.new(keptcolor.Color)
  7547. eff.Rate = 100
  7548. eff.Lifetime = NumberRange.new(1)
  7549. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7550. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7551. eff.Speed = NumberRange.new(0,5)
  7552. eff.Rotation = NumberRange.new(-500,500)
  7553. eff.VelocitySpread = 9000
  7554. eff.RotSpeed = NumberRange.new(-10,10)
  7555. local at1 = Instance.new('Attachment',deb2)
  7556. at1.Position = vt(0,15,0)
  7557. local at2 = Instance.new('Attachment',deb2)
  7558. at2.Position = vt(0,-15,0)
  7559. local tl = Instance.new('Trail',deb2)
  7560. tl.Attachment0 = at1
  7561. tl.Attachment1 = at2
  7562. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7563. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7564. tl.Lifetime = 1
  7565. game:GetService("Debris"):AddItem(deb,30)
  7566. game:GetService("Debris"):AddItem(deb2,30)
  7567. coroutine.resume(coroutine.create(function()
  7568. wait(15)
  7569. eff.Enabled = false
  7570. for i = 0, 49 do
  7571. swait()
  7572. deb.Transparency = deb.Transparency + 0.02
  7573. end
  7574. wait(1)
  7575. deb:Destroy()
  7576. end))
  7577. end
  7578. end
  7579. end))
  7580. for i = 0, 199 do
  7581. swait(1.5)
  7582. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7583. if v:FindFirstChild('Head') then
  7584. dmg(v)
  7585. end
  7586. end
  7587. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7588. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  7589. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  7590. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  7591. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7592. end
  7593. orb:Destroy()
  7594. end))
  7595. end
  7596.  
  7597. function Beams()
  7598. attack = true
  7599. hum.WalkSpeed = 0
  7600. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7601. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7602. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7603. local keptcolor = MAINRUINCOLOR
  7604. coroutine.resume(coroutine.create(function()
  7605. for i = 0, 96 do
  7606. swait(5)
  7607. local orb = Instance.new("Part", char)
  7608. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7609. orb.BrickColor = keptcolor
  7610. orb.CanCollide = false
  7611. orb.FormFactor = 3
  7612. orb.Name = "Ring"
  7613. orb.Material = "Neon"
  7614. orb.Size = Vector3.new(1, 1, 1)
  7615. orb.Transparency = 0
  7616. orb.TopSurface = 0
  7617. orb.BottomSurface = 0
  7618. orb.Anchored = true
  7619. local orbm = Instance.new("SpecialMesh", orb)
  7620. orbm.MeshType = "Sphere"
  7621. orbm.Name = "SizeMesh"
  7622. orbm.Scale = vt(1.25,1.25,1.25)
  7623. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7624. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7625. coroutine.resume(coroutine.create(function()
  7626. wait(0.5)
  7627. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7628. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7629. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7630. orb.Transparency = 1
  7631. local a = Instance.new("Part",char)
  7632. a.Name = "Direction"
  7633. a.Anchored = true
  7634. a.BrickColor = keptcolor
  7635. a.Material = "Neon"
  7636. a.Transparency = 0.25
  7637. a.Shape = "Cylinder"
  7638. local ht = Instance.new("Part",char)
  7639. ht.Name = "DirectionHit"
  7640. ht.Anchored = true
  7641. ht.BrickColor = keptcolor
  7642. ht.CanCollide = false
  7643. ht.Transparency = 1
  7644. ht.Size = vt(0.1,0.1,0.1)
  7645. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7646. a.CanCollide = false
  7647. local ray = Ray.new(
  7648. orb.CFrame.p, -- origin
  7649. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7650. )
  7651. local ignore = char
  7652. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7653. a.BottomSurface = 10
  7654. a.TopSurface = 10
  7655. local distance = (orb.CFrame.p - position).magnitude
  7656. a.Size = Vector3.new(distance,1,1)
  7657. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7658. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7659. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7660. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7661. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7662. coroutine.resume(coroutine.create(function()
  7663. local eff = Instance.new("ParticleEmitter",ht)
  7664. eff.Texture = "rbxassetid://284205403"
  7665. eff.LightEmission = 0.95
  7666. eff.Color = ColorSequence.new(keptcolor.Color)
  7667. eff.Rate = 500
  7668. eff.Lifetime = NumberRange.new(0.5)
  7669. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7670. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7671. eff.Speed = NumberRange.new(10,50)
  7672. eff.Drag = 5
  7673. eff.Rotation = NumberRange.new(-500,500)
  7674. eff.VelocitySpread = 9000
  7675. eff.RotSpeed = NumberRange.new(-500,500)
  7676. wait(0.25)
  7677. eff.Enabled = false
  7678. end))
  7679. for i = 0, 4 do
  7680. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor)
  7681. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  7682. local rsiz = math.random(10,30)
  7683. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  7684. end
  7685. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7686. local msh = Instance.new("SpecialMesh",a)
  7687. msh.MeshType = "Cylinder"
  7688. msh.Scale = vt(1,1,1)
  7689. for i = 0, 49 do
  7690. swait()
  7691. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7692. a.Transparency = a.Transparency + 0.02
  7693. end
  7694. orb:Destroy()
  7695. a:Destroy()
  7696. ht:Destroy()
  7697. end))
  7698. game:GetService("Debris"):AddItem(orb, 10)
  7699. end
  7700. end))
  7701. for i = 0,6,0.1 do
  7702. swait()
  7703. sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor)
  7704. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.2 * math.cos(sine / 35))* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  7705. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7706. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7707. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7708. 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)
  7709. 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)
  7710. end
  7711. hum.WalkSpeed = storehumanoidWS
  7712. attack = false
  7713. end
  7714.  
  7715. function CalamityTrans()
  7716. attack = true
  7717. rainbowmode = false
  7718. chaosmode = false
  7719. ModeOfGlitch = 8889
  7720. hum.WalkSpeed = 0
  7721. newThemeCust("rbxassetid://1359036559",0,1,1.25)
  7722. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7723. elocacenter.Anchored = true
  7724. elocacenter.CFrame = root.CFrame
  7725. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7726. eloca1.Anchored = true
  7727. eloca1.CFrame = elocacenter.CFrame
  7728. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7729. eloca2.Anchored = true
  7730. eloca2.CFrame = elocacenter.CFrame
  7731. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7732. eloca3.Anchored = true
  7733. eloca3.CFrame = elocacenter.CFrame
  7734. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7735. eloca4.Anchored = true
  7736. eloca4.CFrame = elocacenter.CFrame
  7737. local lookavec = 0
  7738. local speeds = 0
  7739. CameraEnshaking(3,2.5)
  7740. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7741. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7742. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7743. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7744. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7745. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7746. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7747. for i = 0, 5, 0.1 do
  7748. swait()
  7749. ---
  7750. lookavec = lookavec + 1
  7751. speeds = speeds + 10
  7752. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7753. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7754. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7755. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7756. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7757. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7758. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7759. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7760. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7761. ---
  7762. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7763. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7764. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7765. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7766. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7767. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7768. end
  7769. for i = 0, 5, 0.1 do
  7770. swait()
  7771. ---
  7772. speeds = speeds + 10
  7773. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7774. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7775. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7776. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7777. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7778. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7779. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7780. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7781. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7782. ---
  7783. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7784. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7785. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7786. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7787. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7788. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7789. end
  7790. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7791. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7792. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7793. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7794. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7795. CameraEnshaking(1,3)
  7796. for i = 0, 24 do
  7797. PixelBlock(1,math.random(5,25),"Add",eloca1.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.1,MAINRUINCOLOR,0)
  7798. PixelBlock(1,math.random(5,25),"Add",eloca2.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.1,MAINRUINCOLOR,0)
  7799. PixelBlock(1,math.random(5,25),"Add",eloca3.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.1,MAINRUINCOLOR,0)
  7800. PixelBlock(1,math.random(5,25),"Add",eloca4.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.1,MAINRUINCOLOR,0)
  7801. end
  7802. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7803. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7804. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7805. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7806. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7807. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7808. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7809. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7810. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7811. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7812. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7813. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7814. for i = 0, 5, 0.1 do
  7815. swait()
  7816. ---
  7817. lookavec = lookavec - 1
  7818. speeds = speeds + 10
  7819. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7820. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7821. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7822. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7823. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7824. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7825. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7826. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7827. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7828. ---
  7829. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7830. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7831. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7832. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7833. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7834. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7835. end
  7836. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7837. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7838. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7839. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7840. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7841. for i = 0, 49 do
  7842. PixelBlock(1,math.random(8,16),"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,10,0.2,MAINRUINCOLOR,0)
  7843. PixelBlock(2,math.random(16,32),"Add",root.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,MAINRUINCOLOR,0)
  7844. end
  7845. CameraEnshaking(5,6)
  7846. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7847. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7848. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7849. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7850. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7851. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7852. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7853. storehumanoidWS = 100
  7854. hum.WalkSpeed = 100
  7855. rainbowmode = false
  7856. chaosmode = false
  7857. tl1.Enabled = true
  7858. tl2.Enabled = true
  7859. tl3.Enabled = true
  7860. RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7861. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7862. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7863. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7864. for i, v in pairs(mw2:GetChildren()) do
  7865. if v:IsA("Part") then
  7866. v.BrickColor = MAINRUINCOLOR
  7867. v.Material = "Neon"
  7868. end
  7869. end
  7870. for i, v in pairs(mw1:GetChildren()) do
  7871. if v:IsA("Part") then
  7872. v.Transparency = 0
  7873. v.BrickColor = MAINRUINCOLOR
  7874. v.Material = "Neon"
  7875. end
  7876. end
  7877. for i, v in pairs(m:GetChildren()) do
  7878. if v:IsA("Part") then
  7879. v.Color = Color3.new(0.5,0,1)
  7880. v.Material = "Neon"
  7881. end
  7882. end
  7883. for i, v in pairs(m2:GetChildren()) do
  7884. if v:IsA("Part") then
  7885. v.Color = Color3.new(0.25,0,1)
  7886. v.Material = "Neon"
  7887. end
  7888. end
  7889. for i, v in pairs(m3:GetChildren()) do
  7890. if v:IsA("Part") then
  7891. v.Color = Color3.new(0.45,0,1)
  7892. v.Material = "Neon"
  7893. end
  7894. end
  7895. for i, v in pairs(extrawingmod1:GetChildren()) do
  7896. if v:IsA("Part") then
  7897. v.Transparency = 0.75
  7898. v.Color = Color3.new(0.25,0,1)
  7899. v.Material = "Neon"
  7900. end
  7901. end
  7902. for i, v in pairs(extrawingmod2:GetChildren()) do
  7903. if v:IsA("Part") then
  7904. v.Transparency = 0.75
  7905. v.Color = Color3.new(0.5,0,1)
  7906. v.Material = "Neon"
  7907. end
  7908. end
  7909. attack = false
  7910. end
  7911.  
  7912. function GleamingBeam()
  7913. attack = true
  7914. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7915. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7916. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7917. local rsiz = math.random(1,15)
  7918. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7919. hb.Anchored = true
  7920. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7921. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7922. for i = 0, 16, 0.1 do
  7923. swait()
  7924. rsiz = math.random(5,15)
  7925. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7926. sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  7927. sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
  7928. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7929. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7930. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  7931. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7932. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7933. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7934. end
  7935. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7936. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7937. for i = 0, 2 do
  7938. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7939. end
  7940. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7941. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7942. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7943. for i = 0, 49 do
  7944. local rsiza = math.random(1,15)
  7945. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  7946. end
  7947. local a = Instance.new("Part",Character)
  7948. a.Name = "Direction"
  7949. a.Anchored = true
  7950. a.BrickColor = MAINRUINCOLOR
  7951. a.Material = "Neon"
  7952. a.Transparency = 0
  7953. a.Shape = "Cylinder"
  7954. a.CanCollide = false
  7955. local ba = Instance.new("Part",Character)
  7956. ba.Name = "HitDirect"
  7957. ba.Anchored = true
  7958. ba.BrickColor = bc("Cool yellow")
  7959. ba.Material = "Neon"
  7960. ba.Transparency = 1
  7961. ba.CanCollide = false
  7962. local ray = Ray.new(
  7963. hb.CFrame.p, -- origin
  7964. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7965. )
  7966. local ignore = Character
  7967. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7968. a.BottomSurface = 10
  7969. a.TopSurface = 10
  7970. local distance = (hb.CFrame.p - position).magnitude
  7971. a.Size = Vector3.new(distance, 1, 1)
  7972. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7973. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7974. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7975. local msh = Instance.new("SpecialMesh",a)
  7976. msh.MeshType = "Cylinder"
  7977. msh.Scale = vt(1,4,4)
  7978. game:GetService("Debris"):AddItem(a, 30)
  7979. game:GetService("Debris"):AddItem(ba, 30)
  7980. for i = 0, 25, 0.1 do
  7981. swait()
  7982. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7983. ray = Ray.new(
  7984. hb.CFrame.p, -- origin
  7985. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7986. )
  7987. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7988. distance = (hb.CFrame.p - position).magnitude
  7989. a.Size = Vector3.new(distance, 1, 1)
  7990. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7991. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7992. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7993. rsiz = math.random(5,25)
  7994. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7995. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,0)
  7996. for c = 0, 2 do
  7997. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,2)
  7998. end
  7999. sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  8000. sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
  8001. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  8002. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  8003. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(80)),.6)
  8004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8005. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8006. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8007. end
  8008. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8009. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8010. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8011. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8012. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8013. sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8014. sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8015. sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8016. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8017. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8018. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8019. for i = 0, 49 do
  8020. local rsiza = math.random(1,15)
  8021. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  8022. end
  8023. for i = 0, 49 do
  8024. rsiz = math.random(1,8)
  8025. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,MAINRUINCOLOR,2)
  8026. end
  8027. coroutine.resume(coroutine.create(function()
  8028. for i = 0, 99 do
  8029. swait()
  8030. a.Transparency = a.Transparency + 0.01
  8031. end
  8032. a:Destroy()
  8033. ba:Destroy()
  8034. end))
  8035. hb:Destroy()
  8036. attack = false
  8037. end
  8038.  
  8039. function DualGleamingBeam()
  8040. attack = true
  8041. hum.WalkSpeed = 0
  8042. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8043. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8044. local radm = math.random(1,3)
  8045. if radm == 1 then
  8046. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8047. elseif radm == 2 then
  8048. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8049. elseif radm == 3 then
  8050. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8051. end
  8052. local rsiz = math.random(1,15)
  8053. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8054. hb.Anchored = true
  8055. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8056. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8057. hb2.Anchored = true
  8058. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8059. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8060. for i = 0, 14, 0.1 do
  8061. swait()
  8062. rsiz = math.random(5,15)
  8063. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8064. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8065. sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  8066. sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
  8067. sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Lime green"),-15)
  8068. sphere2(5,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,BrickColor.new("Lime green"))
  8069. 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(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  8070. 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 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  8071. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  8072. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8073. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8074. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8075. end
  8076. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8077. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8078. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8079. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8080. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8081. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8082. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8083. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8084. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8085. sphere2(3,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8086. sphere2(6,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8087. sphere2(9,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8088. for i = 0, 49 do
  8089. local rsiza = math.random(1,15)
  8090. sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  8091. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  8092. end
  8093. local a = Instance.new("Part",Character)
  8094. a.Name = "Direction"
  8095. a.Anchored = true
  8096. a.BrickColor = MAINRUINCOLOR
  8097. a.Material = "Neon"
  8098. a.Transparency = 0
  8099. a.Shape = "Cylinder"
  8100. a.CanCollide = false
  8101. local a2 = Instance.new("Part",Character)
  8102. a2.Name = "Direction"
  8103. a2.Anchored = true
  8104. a2.BrickColor = MAINRUINCOLOR
  8105. a2.Material = "Neon"
  8106. a2.Transparency = 0
  8107. a2.Shape = "Cylinder"
  8108. a2.CanCollide = false
  8109. local ba = Instance.new("Part",Character)
  8110. ba.Name = "HitDirect"
  8111. ba.Anchored = true
  8112. ba.BrickColor = MAINRUINCOLOR
  8113. ba.Material = "Neon"
  8114. ba.Transparency = 1
  8115. ba.CanCollide = false
  8116. local ba2 = Instance.new("Part",Character)
  8117. ba2.Name = "HitDirect"
  8118. ba2.Anchored = true
  8119. ba2.BrickColor = MAINRUINCOLOR
  8120. ba2.Material = "Neon"
  8121. ba2.Transparency = 1
  8122. ba2.CanCollide = false
  8123. local ray = Ray.new(
  8124. hb.CFrame.p, -- origin
  8125. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8126. )
  8127. local ignore = Character
  8128. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8129. local ray2 = Ray.new(
  8130. hb2.CFrame.p, -- origin
  8131. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8132. )
  8133. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8134. local distance2 = (hb2.CFrame.p - position).magnitude
  8135.  
  8136. a.BottomSurface = 10
  8137. a.TopSurface = 10
  8138. local distance = (hb.CFrame.p - position).magnitude
  8139. a.Size = Vector3.new(distance, 1, 1)
  8140. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8141. a2.BottomSurface = 10
  8142. a2.TopSurface = 10
  8143. a2.Size = Vector3.new(distance2, 1, 1)
  8144. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8145. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8146. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8147. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8148. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8149. local msh = Instance.new("SpecialMesh",a)
  8150. msh.MeshType = "Cylinder"
  8151. msh.Scale = vt(1,4,4)
  8152. local msh2 = Instance.new("SpecialMesh",a2)
  8153. msh2.MeshType = "Cylinder"
  8154. msh2.Scale = vt(1,4,4)
  8155. game:GetService("Debris"):AddItem(a, 30)
  8156. game:GetService("Debris"):AddItem(a2, 30)
  8157. game:GetService("Debris"):AddItem(ba, 30)
  8158. game:GetService("Debris"):AddItem(ba2, 30)
  8159. for i = 0, 20, 0.1 do
  8160. swait()
  8161. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8162. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8163. ray = Ray.new(
  8164. hb.CFrame.p, -- origin
  8165. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8166. )
  8167. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8168. distance = (hb.CFrame.p - position).magnitude
  8169. ray2 = Ray.new(
  8170. hb2.CFrame.p, -- origin
  8171. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8172. )
  8173. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8174. distance2 = (hb2.CFrame.p - position).magnitude
  8175. a.Size = Vector3.new(distance, 1, 1)
  8176. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8177. a2.Size = Vector3.new(distance2, 1, 1)
  8178. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8179. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8180. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8181. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8182. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8183. rsiz = math.random(5,25)
  8184. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8185. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8186. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8187. if v:FindFirstChild('Head') then
  8188. dmg(v)
  8189. end
  8190. end
  8191. coroutine.resume(coroutine.create(function()
  8192. local bx = Instance.new("Part",Character)
  8193. bx.Name = "Location"
  8194. bx.Anchored = true
  8195. bx.BrickColor = MAINRUINCOLOR
  8196. bx.Material = "Neon"
  8197. bx.Transparency = 1
  8198. bx.CanCollide = false
  8199. bx.Position = ba.Position
  8200. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8201. wait(math.random(1,2))
  8202. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8203. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8204. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8205. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8206. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8207. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8208. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8209. if v:FindFirstChild('Head') then
  8210. dmg(v)
  8211. end
  8212. end
  8213. wait(5)
  8214. bx:Destroy()
  8215. end))
  8216. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
  8217. sphereMK(math.random(4,8),0.25,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
  8218. for c = 0, 2 do
  8219. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),2)
  8220. end
  8221. sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  8222. sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
  8223. sphere2(5,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  8224. 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(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  8225. 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 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  8226. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.05)
  8227. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8228. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8229. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8230. end
  8231. for i = 0, 1 do
  8232. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8233. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8234. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8235. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8236. end
  8237. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8238. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8239. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8240. if v:FindFirstChild('Head') then
  8241. dmg(v)
  8242. end
  8243. end
  8244. sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8245. sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8246. sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8247. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8248. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8249. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8250. sphere2(3,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8251. sphere2(6,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8252. sphere2(9,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8253. for i = 0, 49 do
  8254. local rsiza = math.random(1,15)
  8255. sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
  8256. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
  8257. end
  8258. for i = 0, 49 do
  8259. rsiz = math.random(1,8)
  8260. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,bc("Lime green"),2)
  8261. end
  8262. coroutine.resume(coroutine.create(function()
  8263. for i = 0, 99 do
  8264. swait()
  8265. a.Transparency = a.Transparency + 0.01
  8266. a2.Transparency = a2.Transparency + 0.01
  8267. end
  8268. a:Destroy()
  8269. ba:Destroy()
  8270. a2:Destroy()
  8271. ba2:Destroy()
  8272. end))
  8273. hum.WalkSpeed = storehumanoidWS
  8274. hb:Destroy()
  8275. hb2:Destroy()
  8276. attack = false
  8277. end
  8278.  
  8279. function dragin()
  8280. local targetted = nil
  8281. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8282. targetted = mouse.Target.Parent
  8283. end
  8284. if targetted ~= nil then
  8285. RootPart.CFrame = FaceMouse()[1]
  8286. attack = true
  8287. hum.WalkSpeed = 0
  8288. for x = 0, 1 do
  8289. for i = 0,1,0.5 do
  8290. swait()
  8291. 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)
  8292. 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)
  8293. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8295. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8296. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8297. end
  8298. for i = 0,1,0.5 do
  8299. swait()
  8300. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8301. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8302. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8303. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8304. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8305. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8306. end
  8307. for i = 0,1,0.5 do
  8308. swait()
  8309. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8310. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8311. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8312. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8313. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8314. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8315. end
  8316. for i = 0,1,0.5 do
  8317. swait()
  8318. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8319. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8320. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8321. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8322. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8323. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8324. end
  8325. end
  8326. coroutine.resume(coroutine.create(function()
  8327. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8328. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8329. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8330. end))
  8331. local A1 = Instance.new("Attachment",targetted.Head)
  8332. local A2 = Instance.new("Attachment",sorb)
  8333. local Beem = Instance.new("Beam",tors)
  8334. Beem.Attachment0 = A1
  8335. Beem.Attachment1 = A2
  8336. Beem.Texture = "rbxassetid://897585362"
  8337. Beem.LightEmission = 0.75
  8338. Beem.FaceCamera = true
  8339. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8340. Beem.Width0 = 1
  8341. Beem.Width1 = 1
  8342. Beem.TextureMode = "Wrap"
  8343. Beem.TextureLength = 1
  8344. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8345. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.15,0.15,0.15,MAINRUINCOLOR)
  8346. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.2,0.2,0.2,MAINRUINCOLOR)
  8347. for x = 0, 24 do
  8348. local rsiz = math.random(5,15)
  8349. sphereMK(math.random(1,5),0.25,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  8350. end
  8351.  
  8352. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8353. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8354. local radm = math.random(1,2)
  8355. if radm == 1 then
  8356. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8357. elseif radm == 2 then
  8358. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8359. end
  8360. for i = 0,3,0.1 do
  8361. swait()
  8362. coroutine.resume(coroutine.create(function()
  8363. local rsiz = math.random(5,15)
  8364. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8365. sphereMK(math.random(1,5),0.01,"Add",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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  8366. end))
  8367. sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR)
  8368. 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)
  8369. 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)
  8370. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8371. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8372. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.6)
  8373. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.6)
  8374. end
  8375. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8376. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8377. local vel = Instance.new("BodyPosition", targetted.Head)
  8378. vel.P = 12500
  8379. vel.D = 1000
  8380. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8381. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8382. for i = 0,4,0.1 do
  8383. swait()
  8384. coroutine.resume(coroutine.create(function()
  8385. local rsiz = math.random(5,15)
  8386. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8387. sphereMK(math.random(1,5),0.01,"Add",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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  8388. end))
  8389. sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR)
  8390. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8391. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.2)
  8392. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8393. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8394. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
  8395. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
  8396. end
  8397. local visibility = 0
  8398. coroutine.resume(coroutine.create(function()
  8399. for i = 0, 49 do
  8400. swait()
  8401. visibility = visibility + 0.02
  8402. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8403. end
  8404. Beem:Destroy()
  8405. A1:Destroy()
  8406. A2:Destroy()
  8407. end))
  8408. game:GetService("Debris"):AddItem(vel,0.75)
  8409. attack = false
  8410. hum.WalkSpeed = storehumanoidWS
  8411.  
  8412. end
  8413. end
  8414.  
  8415. function hugg()
  8416. attack = true
  8417. hum.WalkSpeed = 5
  8418. local rsiz = math.random(5,15)
  8419. for i = 0, 2, 0.1 do
  8420. swait()
  8421. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8422. 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))),.3)
  8423. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8424. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  8425. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8426. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8427. end
  8428. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8429. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8430. hb.Anchored = true
  8431. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8432. local huggedperson = nil
  8433. local act = false
  8434. local alreadydid = false
  8435. for i = 0, 3, 0.1 do
  8436. swait()
  8437. if act == false then
  8438. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8439. if v:FindFirstChild('Head') then
  8440. if alreadydid == false then
  8441. huggedperson = v
  8442. hum.WalkSpeed = 0
  8443. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8444. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8445. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8446. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8447. local radm = math.random(1,3)
  8448. if radm == 1 then
  8449. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8450. elseif radm == 2 then
  8451. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8452. elseif radm == 3 then
  8453. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8454. end
  8455. root.Anchored = true
  8456. coroutine.resume(coroutine.create(function()
  8457. huggedperson.Humanoid.WalkSpeed = 0
  8458. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8459. end))
  8460. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8461. alreadydid = true
  8462. act = true
  8463. print(huggedperson.Name)
  8464. end
  8465. end
  8466. end
  8467. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8468. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  8469. elseif act == true then
  8470. coroutine.resume(coroutine.create(function()
  8471. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8472. end))
  8473. rsiz = math.random(5,15)
  8474. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  8475. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(40)),.1)
  8476. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8477. end
  8478. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8479. 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))),.3)
  8480. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8481. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8482. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8483. end
  8484. hb:Destroy()
  8485. if act == true then
  8486. for x = 0, 2 do
  8487. for i = 0, 2, 0.1 do
  8488. swait()
  8489. coroutine.resume(coroutine.create(function()
  8490. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8491. end))
  8492. rsiz = math.random(5,15)
  8493. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  8494. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1)
  8495. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8496. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8497. 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))),.3)
  8498. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8499. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8500. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8501. end
  8502. for i = 0, 2, 0.1 do
  8503. swait()
  8504. coroutine.resume(coroutine.create(function()
  8505. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8506. end))
  8507. rsiz = math.random(5,15)
  8508. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  8509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(35)),.1)
  8510. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8511. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8512. 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))),.3)
  8513. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8514. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8515. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8516. end
  8517. end
  8518. end
  8519. hum.WalkSpeed = storehumanoidWS
  8520. root.Anchored = false
  8521. if act == true then
  8522. coroutine.resume(coroutine.create(function()
  8523. huggedperson.Humanoid.WalkSpeed = 16
  8524. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8525. end))
  8526. end
  8527. hum.WalkSpeed = storehumanoidWS
  8528. attack = false
  8529. end
  8530.  
  8531. function Counter()
  8532. hum.WalkSpeed = 0
  8533. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8534. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8535. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8536. attack = true
  8537. for i = 0,1,0.1 do
  8538. swait()
  8539. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8540. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8541. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8542. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8543. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.3)
  8544. 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)
  8545. end
  8546. CameraEnshaking(3,4)
  8547. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8548. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  8549. sphere2(1.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  8550. sphere2(20,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  8551. coroutine.resume(coroutine.create(function()
  8552. local eff = Instance.new("ParticleEmitter",root)
  8553. eff.Texture = "rbxassetid://363275192"
  8554. eff.LightEmission = 0.95
  8555. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8556. eff.Rate = 10000
  8557. eff.Lifetime = NumberRange.new(1)
  8558. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8559. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8560. eff.Speed = NumberRange.new(10,125)
  8561. eff.Drag = 5
  8562. eff.Rotation = NumberRange.new(-500,500)
  8563. eff.VelocitySpread = 9000
  8564. eff.RotSpeed = NumberRange.new(-50,50)
  8565. local eff2 = eff:Clone()
  8566. eff2.Parent = root
  8567. eff2.Texture = "rbxassetid://284205403"
  8568. eff2.Rate = 10000
  8569. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,30,0),NumberSequenceKeypoint.new(1,0,0)})
  8570. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8571. eff2.Drag = 5
  8572. eff2.Speed = NumberRange.new(10,50)
  8573. eff2.Rotation = NumberRange.new(-500,500)
  8574. eff2.VelocitySpread = 9000
  8575. wait(0.25)
  8576. eff2.Enabled = false
  8577. eff.Enabled = false
  8578. wait(3)
  8579. eff2:Destroy()
  8580. eff:Destroy()
  8581. end))
  8582. for i = 0, 9 do
  8583. sphere2(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))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
  8584. end
  8585. for i = 0, 24 do
  8586. local rsiz = math.random(5,20)
  8587. sphereMK(math.random(2,10),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  8588. end
  8589. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8590. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8591. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8592. for i = 0,2,0.1 do
  8593. swait()
  8594. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8595. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8596. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8597. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8598. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3)
  8599. 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)
  8600. end
  8601. hum.WalkSpeed = storehumanoidWS
  8602. attack = false
  8603. end
  8604.  
  8605. function superjump()
  8606. attack = true
  8607. hum.WalkSpeed = 0
  8608. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8609. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8610. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8611. for i = 0, 2, 0.1 do
  8612. swait()
  8613. root.Velocity = vt(0,0,0)
  8614. 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.05,0.01,0.05),math.random(25,250)/250,BrickColor.new("White"))
  8615. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4)
  8616. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(40)),.4)
  8617. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8618. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8619. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8620. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8621. end
  8622. MagniDamage(root, 28, 25,50, 25, "Normal")
  8623. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8624. hum.Jump = true
  8625. swait()
  8626. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8627. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.3,5,0.3,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8628. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.2,4,0.2,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8629. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8630. for i = 0, 3, 0.1 do
  8631. swait()
  8632. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4)
  8633. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(30)),.4)
  8634. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8635. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8636. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8637. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8638. end
  8639. attack = false
  8640. if equipped == false then
  8641. hum.WalkSpeed = 16
  8642. else
  8643. hum.WalkSpeed = 24
  8644. end
  8645. end
  8646.  
  8647.  
  8648. -------------------------------------
  8649.  
  8650.  
  8651.  
  8652. Humanoid.Animator.Parent = nil
  8653.  
  8654.  
  8655.  
  8656. -------------------------------------
  8657.  
  8658. local attacktype = 1
  8659. mouse.Button1Down:connect(function()
  8660. if attack == false and attacktype == 1 then
  8661. attacktype = 2
  8662. attackone()
  8663. elseif attack == false and attacktype == 2 then
  8664. attacktype = 3
  8665. attacktwo()
  8666. elseif attack == false and attacktype == 3 then
  8667. attacktype = 1
  8668. attackthree()
  8669. elseif attack == false and attacktype == 4 then
  8670. attacktype = 1
  8671. --attackfour()
  8672. end
  8673. end)
  8674. mouse.KeyDown:connect(function(k)
  8675. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8676. --normalmog()
  8677. ModeOfGlitch = 1
  8678. storehumanoidWS = 16
  8679. hum.WalkSpeed = 16
  8680. rainbowmode = false
  8681. chaosmode = false
  8682. newTheme("rbxassetid://769693973",48.6,1,30)
  8683. RecolorTextAndRename("CODED REALITY",Color3.new(0,0.25,0),Color3.new(0,1,0),"Antique")
  8684. MAINRUINCOLOR = BrickColor.new("Bright green")
  8685. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8686. end
  8687. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8688. ModeOfGlitch = 2
  8689. storehumanoidWS = 16
  8690. hum.WalkSpeed = 16
  8691. rainbowmode = false
  8692. chaosmode = false
  8693. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8694. newTheme("rbxassetid://1539245059",0,1,0.85)
  8695. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8696. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8697. end
  8698. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8699. ModeOfGlitch = 3
  8700. storehumanoidWS = 14
  8701. hum.WalkSpeed = 14
  8702. rainbowmode = false
  8703. chaosmode = false
  8704. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8705. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8706. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8707. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8708. end
  8709. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8710. ModeOfGlitch = 4
  8711. storehumanoidWS = 14
  8712. hum.WalkSpeed = 14
  8713. rainbowmode = false
  8714. chaosmode = true
  8715. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8716. newTheme("rbxassetid://1255569288",0,1.01,0.85)
  8717. MAINRUINCOLOR = BrickColor.new("Black")
  8718. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8719. end
  8720. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8721. ModeOfGlitch = 5
  8722. storehumanoidWS = 14
  8723. hum.WalkSpeed = 14
  8724. rainbowmode = false
  8725. chaosmode = false
  8726. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8727. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8728. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8729. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8730. end
  8731. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8732. ModeOfGlitch = 6
  8733. storehumanoidWS = 65
  8734. hum.WalkSpeed = 65
  8735. rainbowmode = false
  8736. chaosmode = false
  8737. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8738. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8739. MAINRUINCOLOR = BrickColor.new("White")
  8740. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8741. end
  8742. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8743. ModeOfGlitch = 8
  8744. storehumanoidWS = 100
  8745. hum.WalkSpeed = 100
  8746. rainbowmode = false
  8747. chaosmode = false
  8748. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8749. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8750. MAINRUINCOLOR = BrickColor.new("Alder")
  8751. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8752. end
  8753. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8754. ModeOfGlitch = 9
  8755. storehumanoidWS = 85
  8756. hum.WalkSpeed = 85
  8757. rainbowmode = false
  8758. chaosmode = false
  8759. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8760. newTheme("rbxassetid://1296208488",0,1.01,0.85)
  8761. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8762. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8763. end
  8764. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8765. ModeOfGlitch = 5555
  8766. storehumanoidWS = 30
  8767. hum.WalkSpeed = 30
  8768. rainbowmode = false
  8769. chaosmode = false
  8770. RecolorTextAndRename("L-O-V-E",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8771. newTheme("rbxassetid://736003449",0,1,1.25)
  8772. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8773. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8774. end
  8775. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8776. CalamityTrans()
  8777. end
  8778. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8779. ModeOfGlitch = 55469696922
  8780. storehumanoidWS = 95
  8781. hum.WalkSpeed = 95
  8782. rainbowmode = false
  8783. chaosmode = false
  8784. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8785. newTheme("rbxassetid://582020393",0,1.005,0.9)
  8786. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8787. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8788. end
  8789. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8790. ModeOfGlitch = 4367677813
  8791. storehumanoidWS = 75
  8792. hum.WalkSpeed = 75
  8793. rainbowmode = false
  8794. chaosmode = false
  8795. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8796. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8797. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8798. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8799. end
  8800. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8801. ModeOfGlitch = 9999999921111
  8802. storehumanoidWS = 145
  8803. hum.WalkSpeed = 145
  8804. rainbowmode = false
  8805. chaosmode = false
  8806. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8807. newTheme("rbxassetid://643309199",0,1.01,1)
  8808. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8809. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8810. end
  8811. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8812. ModeOfGlitch = 999999999556
  8813. storehumanoidWS = 115
  8814. hum.WalkSpeed = 115
  8815. rainbowmode = false
  8816. chaosmode = false
  8817. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8818. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8819. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8820. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8821. end
  8822. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8823. ModeOfGlitch = 12
  8824. storehumanoidWS = 19
  8825. hum.WalkSpeed = 19
  8826. rainbowmode = false
  8827. chaosmode = false
  8828. print'Mode was meant for Vengeful Program or those other fans out there'
  8829. RecolorTextAndRename("NEPTUNIA",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8830. newTheme("rbxassetid://1873219898",0,1,1.7)
  8831. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8832. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8833. end
  8834. if k == "n" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 900 then
  8835. ModeOfGlitch = 900
  8836. storehumanoidWS = 19
  8837. hum.WalkSpeed = 19
  8838. rainbowmode = false
  8839. chaosmode = false
  8840. print'This is an Undertale Mode '
  8841. RecolorTextAndRename("BONESCUFFLE",BrickColor.new("Black").Color,BrickColor.new("Crimson").Color,"Fantasy")
  8842. newTheme("rbxassetid://2112150271",0,1,2.7)
  8843. MAINRUINCOLOR = BrickColor.new("Black")
  8844. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8845. end
  8846. if k == "m" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8847. ModeOfGlitch = 1264532489
  8848. storehumanoidWS = 175
  8849. hum.WalkSpeed = 175
  8850. rainbowmode = false
  8851. chaosmode = false
  8852. RecolorTextAndRename("DemonZ",Color3.new(1.7,0,2),BrickColor.new("Dark purple").Color,"Antique")
  8853. newTheme("rbxassetid://978522381",0,1,1.25)
  8854. MAINRUINCOLOR = BrickColor.new("Dark purple")
  8855. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8856. end
  8857. if k == "n" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 200 then
  8858. hum.WalkSpeed = 0
  8859. attack = true
  8860. for i = 0,1,0.1 do
  8861. swait()
  8862. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8863. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8864. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8865. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8866. 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)
  8867. 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)
  8868. end
  8869. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8870. for i = 0, 49 do
  8871. 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)
  8872. end
  8873. for i = 0,3,0.1 do
  8874. 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)
  8875. end
  8876. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8877. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8878. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8879. hum.WalkSpeed = storehumanoidWS
  8880. attack = false
  8881. ModeOfGlitch = 13
  8882. storehumanoidWS = 45
  8883. hum.WalkSpeed = 45
  8884. rainbowmode = false
  8885. chaosmode = false
  8886. RecolorTextAndRename("Rusted Glitch",BrickColor.new("Rust").Color,BrickColor.new("Really black").Color,"Arcade")
  8887. newTheme("rbxassetid://1166635630",0,1,1.35)
  8888. MAINRUINCOLOR = BrickColor.new("Rust")
  8889. RecolorThing(MAINRUINCOLOR,BrickColor.new("Burgundy"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8890. for i = 0,2,0.1 do
  8891. swait()
  8892. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8893. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8894. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8895. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8896. 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)
  8897. 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)
  8898. end
  8899. end
  8900. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8901. ModeOfGlitch = 4367677813
  8902. storehumanoidWS = 75
  8903. hum.WalkSpeed = 75
  8904. rainbowmode = false
  8905. chaosmode = false
  8906. RecolorTextAndRename("DHA",Color3.new(1,1,0),BrickColor.new("Black").Color,"Garamond")
  8907. newTheme("rbxassetid://736815401",0,1,0.95)
  8908. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8909. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8910. end
  8911. if k == "b" and attack == false and ModeOfGlitch == 1003 and ModeOfGlitch ~= 9999999921111 then
  8912. ModeOfGlitch = 9999999921111
  8913. storehumanoidWS = 145
  8914. hum.WalkSpeed = 145
  8915. rainbowmode = false
  8916. chaosmode = false
  8917. RecolorTextAndRename("ALPHA INSANITY",BrickColor.new("Really black").Color,BrickColor.new("Bright orange").Color,"SciFi")
  8918. newTheme("rbxassetid://943961217",0,1.01,1)
  8919. MAINRUINCOLOR = BrickColor.new("Bright orange")
  8920. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8921. end
  8922.  
  8923. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8924. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8925. for i = 0, 49 do
  8926. 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))),8,8,8,0.16,BrickColor.new("Institutional white"),0)
  8927. end
  8928. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8929. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8930. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8931. hum.WalkSpeed = storehumanoidWS
  8932. attack = false
  8933. ModeOfGlitch = 50
  8934. storehumanoidWS = 18
  8935. hum.WalkSpeed = 18
  8936. rainbowmode = false
  8937. chaosmode = false
  8938. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8939. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8940. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8941. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8942. end
  8943.  
  8944. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8945. hum.WalkSpeed = 0
  8946. attack = true
  8947. for i = 0,1,0.1 do
  8948. swait()
  8949. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8950. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8951. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8952. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8953. 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)
  8954. 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)
  8955. end
  8956. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8957. for i = 0, 148 do
  8958. 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))),1,1,1,0.02,MAINRUINCOLOR,0)
  8959. end
  8960. for i = 0,3,0.1 do
  8961. 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)
  8962. end
  8963. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8964. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8965. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8966. hum.WalkSpeed = storehumanoidWS
  8967. attack = false
  8968. ModeOfGlitch = 66
  8969. storehumanoidWS = 16
  8970. hum.WalkSpeed = 16
  8971. rainbowmode = false
  8972. chaosmode = false
  8973. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8974. MAINRUINCOLOR = BrickColor.new("Really black")
  8975. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8976. for i = 0,2,0.1 do
  8977. swait()
  8978. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8979. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8980. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8981. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8982. 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)
  8983. 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)
  8984. end
  8985. end
  8986.  
  8987. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8988. hum.WalkSpeed = 0
  8989. attack = true
  8990. for i = 0,1,0.1 do
  8991. swait()
  8992. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8993. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8994. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8995. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8996. 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)
  8997. 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)
  8998. end
  8999. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  9000. for i = 0, 49 do
  9001. 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)
  9002. end
  9003. for i = 0,3,0.1 do
  9004. 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)
  9005. end
  9006. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9007. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9008. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9009. hum.WalkSpeed = storehumanoidWS
  9010. attack = false
  9011. ModeOfGlitch = 13
  9012. storehumanoidWS = 45
  9013. hum.WalkSpeed = 45
  9014. rainbowmode = false
  9015. chaosmode = false
  9016. RecolorTextAndRename("Judician",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  9017. newTheme("rbxassetid://190845741",0,1,1.35)
  9018. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  9019. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9020. for i = 0,2,0.1 do
  9021. swait()
  9022. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  9023. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  9024. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  9025. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  9026. 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)
  9027. 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)
  9028. end
  9029. end
  9030. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  9031. ModeOfGlitch = 1002
  9032. storehumanoidWS = 45
  9033. hum.WalkSpeed = 45
  9034. rainbowmode = false
  9035. chaosmode = false
  9036. RecolorTextAndRename("PIXELED",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  9037. newTheme("rbxassetid://2027652726",0,1,0.85)
  9038. MAINRUINCOLOR = BrickColor.new("Dark blue")
  9039. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9040. end
  9041. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  9042. ModeOfGlitch = 1003
  9043. storehumanoidWS = 90
  9044. hum.WalkSpeed = 90
  9045. rainbowmode = false
  9046. chaosmode = false
  9047. RecolorTextAndRename("ASCENDED",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  9048. newTheme("rbxassetid://257453119",0,1,0.85)
  9049. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9050. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9051. end
  9052. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9053. ModeOfGlitch = 1264532489
  9054. storehumanoidWS = 175
  9055. hum.WalkSpeed = 175
  9056. rainbowmode = false
  9057. chaosmode = false
  9058. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9059. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9060. MAINRUINCOLOR = BrickColor.new("Pastel green")
  9061. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9062. end
  9063. if k == "l" and mutedtog == false then
  9064. mutedtog = true
  9065. kan.Volume = 0.85
  9066. elseif k == "l" and mutedtog == true then
  9067. mutedtog = false
  9068. kan.Volume = 0.85
  9069. end
  9070. if k == "p" and toggleTag == false then
  9071. toggleTag = true
  9072. modet.TextTransparency = 0
  9073. modet.TextStrokeTransparency = 0
  9074. elseif k == "p" and toggleTag == true then
  9075. toggleTag = false
  9076. modet.TextTransparency = 1
  9077. modet.TextStrokeTransparency = 1
  9078. end
  9079. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9080. ExtinctiveHeartbreak()
  9081. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9082. HeavenlyDisk()
  9083. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9084. DualGleamingBeam()
  9085. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9086. BanishingOrb()
  9087. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9088. hugg()
  9089. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9090. cutesigh()
  9091. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9092. Counter()
  9093. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9094. superjump()
  9095. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9096. dragin()
  9097. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9098. UniversalCollapse()
  9099. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9100. PureBomb()
  9101. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9102. Beams()
  9103. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9104. BeamOfDeath()
  9105. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9106. THE_TRUE_POWER_OF_VIOLENCE()
  9107. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9108. GleamingBeam()
  9109. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9110. ViolentRing()
  9111. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9112. CorruptionEvent()
  9113. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9114. CorruptBlink()
  9115. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9116. scattercorrupt()
  9117. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9118. shytaunty()
  9119. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9120. RapidBurst()
  9121. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9122. ChaosEND()
  9123. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9124. CyberSlash()
  9125. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9126. smiter()
  9127. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9128. SpeedDrop()
  9129. elseif k == "x" and attack == false and ModeOfGlitch == 5555 then
  9130. FuckMeSidewaysAndCallMeGay()
  9131. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9132. --DivineLights()
  9133. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9134. DivineBlast()
  9135. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9136. EquinoxOrbs()
  9137. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9138. yinyangi()
  9139. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9140. FallenOrbs()
  9141. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9142. StarfallEX()
  9143. end
  9144. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9145. FallenDEMISE()
  9146. end
  9147. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9148. EndGROUND()
  9149. end
  9150. end)
  9151.  
  9152. coroutine.resume(coroutine.create(function()
  9153. while true do
  9154. swait()
  9155. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 9 or ModeOfGlitch == 8889 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9156. 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)
  9157. end
  9158. if ModeOfGlitch == 5555 then
  9159. sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
  9160. end
  9161. end
  9162. end))
  9163. --[[coroutine.resume(coroutine.create(function()
  9164. while true do
  9165. swait(2)
  9166. if chaosmode == true then
  9167. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9168. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9169. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9170. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9171. for i, v in pairs(mw1:GetChildren()) do
  9172. if v:IsA("Part") then
  9173. v.Transparency = 0.75
  9174. v.BrickColor = BrickColor.random()
  9175. v.Material = "Neon"
  9176. end
  9177. end
  9178. for i, v in pairs(m2:GetChildren()) do
  9179. if v:IsA("Part") then
  9180. v.BrickColor = BrickColor.random()
  9181. v.Material = "Neon"
  9182. end
  9183. end
  9184. end
  9185. end
  9186. end))]]
  9187.  
  9188.  
  9189.  
  9190. ff = Instance.new("ForceField",char)
  9191. ff.Visible = false
  9192. hum.Name = "Base"
  9193. hum.MaxHealth = 1.0E298
  9194. hum.Health = 1.0E298
  9195. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9196. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9197. hum.MaxHealth = 1.0E298
  9198. hum.Health = 1.0E298
  9199. end
  9200. end)
  9201.  
  9202. local Hair = Instance.new("Part", char)
  9203. Hair.Name = "Hair"
  9204. Hair.CanCollide = false
  9205. Hair.BrickColor = BrickColor.new("Institutional white")
  9206. Hair.Transparency = 0
  9207. Hair.Material = "Plastic"
  9208. Hair.Size = Vector3.new(1, 1, 2)
  9209. Hair.TopSurface = Enum.SurfaceType.Smooth
  9210. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9211.  
  9212.  
  9213. local bguis = Instance.new("BillboardGui",tors)
  9214. bguis.Size = UDim2.new(25, 0, 25, 0)
  9215. local imgca = Instance.new("ImageLabel",bguis)
  9216. imgca.BackgroundTransparency = 1
  9217. imgca.ImageTransparency = 1
  9218. imgca.Size = UDim2.new(1,0,1,0)
  9219. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9220. imgca.ImageColor3 = Color3.new(0,0,0)
  9221.  
  9222.  
  9223. local bguis2 = Instance.new("BillboardGui",tors)
  9224. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9225. local imgca2 = Instance.new("ImageLabel",bguis)
  9226. imgca2.BackgroundTransparency = 1
  9227. imgca2.ImageTransparency = 1
  9228. imgca2.Size = UDim2.new(1,0,1,0)
  9229. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9230. imgca2.ImageColor3 = Color3.new(0,0,0)
  9231.  
  9232.  
  9233.  
  9234. idleanim=.4
  9235. while true do
  9236. if mutedtog == false then
  9237. kan.Volume = currentVol
  9238. elseif mutedtog == true then
  9239. kan.Volume = 0
  9240. end
  9241. kan.PlaybackSpeed = currentPitch
  9242. kan.Pitch = currentPitch
  9243. kan.SoundId = currentThemePlaying
  9244. kan.Looped = true
  9245. kan.Parent = char
  9246. kan:Resume()
  9247. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9248. imgca.ImageTransparency = 1
  9249. imgca2.ImageTransparency = 1
  9250. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9251. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9252. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9253. elseif ModeOfGlitch == 13 then
  9254. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9255. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9256. end
  9257. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9258. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9259. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9260. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9261. coroutine.resume(coroutine.create(function()
  9262. if chaosmode == true then
  9263. for i, v in pairs(mw1:GetChildren()) do
  9264. if v:IsA("Part") then
  9265. v.Transparency = 0
  9266. v.BrickColor = BrickColor.random()
  9267. v.Material = "Neon"
  9268. end
  9269. end
  9270. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9271. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9272. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9273. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9274. end
  9275. end))
  9276. coroutine.resume(coroutine.create(function()
  9277. if ModeOfGlitch == 66 then
  9278. for i, v in pairs(m:GetChildren()) do
  9279. if v:IsA("Part") then
  9280. v.Transparency = 0
  9281. v.BrickColor = BrickColor.random()
  9282. v.Material = "Neon"
  9283. end
  9284. end
  9285. for i, v in pairs(m2:GetChildren()) do
  9286. if v:IsA("Part") then
  9287. v.Transparency = 0
  9288. v.BrickColor = BrickColor.random()
  9289. v.Material = "Neon"
  9290. end
  9291. end
  9292. for i, v in pairs(mw1:GetChildren()) do
  9293. if v:IsA("Part") then
  9294. v.Transparency = 0
  9295. v.BrickColor = BrickColor.random()
  9296. v.Material = "Neon"
  9297. end
  9298. end
  9299. for i, v in pairs(extrawingmod1:GetChildren()) do
  9300. if v:IsA("Part") then
  9301. v.Transparency = 0.5
  9302. v.BrickColor = BrickColor.random()
  9303. v.Material = "Neon"
  9304. end
  9305. end
  9306. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9307. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9308. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9309. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9310. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9311. end
  9312. end))
  9313.  
  9314. coroutine.resume(coroutine.create(function()
  9315. if ModeOfGlitch == 66 then
  9316. RecolorTextAndRename("BETRAYAL",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9317. end
  9318. end))
  9319.  
  9320. if chaosmode == false then
  9321. modet.Position = UDim2.new(0,0,0,0)
  9322. modet.Rotation = -5 * math.cos(sine / 32)
  9323. techc.Rotation = techc.Rotation + 1
  9324. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9325. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9326. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9327. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9328. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9329. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9330. else
  9331. techc.Rotation = techc.Rotation + 1
  9332. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9333. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9334. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9335. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9336. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9337. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9338. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9339. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9340. end
  9341. CameraManager()
  9342. swait()
  9343. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  9344. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  9345. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  9346. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,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))),.3)
  9347. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,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))),.3)
  9348. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,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))),.3)
  9349. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  9350. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  9351. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  9352. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,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))),.3)
  9353. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,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))),.3)
  9354. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,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))),.3)
  9355. sine = sine + change
  9356. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9357. local velderp=RootPart.Velocity.y
  9358. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9359. coroutine.resume(coroutine.create(function()
  9360. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1003 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 or ModeOfGlitch == 13 then
  9361. if hitfloor ~= nil then
  9362. 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"))
  9363. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9364. 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)
  9365. end
  9366. end
  9367. end
  9368. end))
  9369. if equipped==true or equipped==false then
  9370. if attack==false then
  9371. idle=idle+1
  9372. else
  9373. idle=0
  9374. end
  9375. if idle>=500 then
  9376. if attack==false then
  9377. --Sheath()
  9378. end
  9379. end
  9380. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9381. Anim="Jump"
  9382. if attack==false then
  9383. 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)
  9384. 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)
  9385. 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)
  9386. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9387. 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)
  9388. 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)
  9389. end
  9390. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9391. Anim="Fall"
  9392. if attack==false then
  9393. 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)
  9394. 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)
  9395. 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)
  9396. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9397. 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)
  9398. 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)
  9399. end
  9400. elseif torvel<1 and hitfloor~=nil then
  9401. Anim="Idle"
  9402. if attack==false then
  9403. if ModeOfGlitch == 1 then
  9404. local snap = math.random(1,10)
  9405. if snap == 1 then
  9406. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  9407. end
  9408. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  9409. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  9411. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
  9412. 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)
  9413. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
  9414. elseif ModeOfGlitch == 2 then
  9415. 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)
  9416. 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)
  9417. 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)
  9418. 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)
  9419. 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)
  9420. 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)
  9421. elseif ModeOfGlitch == 2 then
  9422. RH.C0=clerp(RH.C0,cf(1,-0.5 - 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)
  9423. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 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)
  9424. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),-1 + 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)
  9425. 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)
  9426. 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)
  9427. 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)
  9428. elseif ModeOfGlitch == 50 then
  9429. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  9430. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  9431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1)
  9432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  9433. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1)
  9434. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1)
  9435. elseif ModeOfGlitch == 5555 then --5555
  9436. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9437. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9438. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9439. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9440. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1)
  9441. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1)
  9442. elseif ModeOfGlitch == 1002 then
  9443. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  9444. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9445. 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)),.1)
  9446. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  9447. 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))),.1)
  9448. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9449. elseif ModeOfGlitch == 12 then
  9450. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1)
  9451. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1)
  9452. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1)
  9453. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1)
  9454. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1)
  9455. LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1)
  9456. elseif ModeOfGlitch == 3 then
  9457. local snap = math.random(1,32)
  9458. if snap == 1 then
  9459. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  9460. end
  9461. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  9462. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9463. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  9464. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9465. 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 + 3 * math.cos(sine / 45))),.1)
  9466. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  9467. elseif ModeOfGlitch == 4 then
  9468. local snap = math.random(1,5)
  9469. if snap == 1 then
  9470. 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)
  9471. 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)
  9472. 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)
  9473. end
  9474. 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)
  9475. 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)
  9476. 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)
  9477. 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)
  9478. 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)
  9479. 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)
  9480. elseif ModeOfGlitch == 66 then
  9481. local snap = math.random(1,2)
  9482. if snap == 1 then
  9483. 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)
  9484. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(-15 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9485. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9486. end
  9487. RH.C0=clerp(RH.C0,cf(1,0.35 - 0.05 * math.cos(sine / 32),-0.7)*angles(math.rad(-20),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)
  9488. LH.C0=clerp(LH.C0,cf(-1,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),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)
  9489. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9490. 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)
  9491. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
  9492. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 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(15 - 3 * math.cos(sine / 45))),.1)
  9493. elseif ModeOfGlitch == 5 then
  9494. 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)
  9495. 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)
  9496. 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)
  9497. 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)
  9498. 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)
  9499. 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)
  9500. elseif ModeOfGlitch == 6 then
  9501. 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)
  9502. 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)
  9503. 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)
  9504. 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)
  9505. 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)
  9506. 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)
  9507. elseif ModeOfGlitch == 13 then
  9508. 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)
  9509. 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)
  9510. 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)
  9511. 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)
  9512. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 1 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1)
  9513. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1)
  9514. elseif ModeOfGlitch == 8 then
  9515. 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)
  9516. 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)
  9517. 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(-20)),.1)
  9518. 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(20 + 2 * math.cos(sine / 53))),.1)
  9519. 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)
  9520. 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)
  9521. elseif ModeOfGlitch == 9 then
  9522. 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)
  9523. 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("Lime green"),Color3.new(0,1,0))
  9524. 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(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  9525. 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 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  9526. 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(0 - 2 * math.cos(sine / 53))),.1)
  9527. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9528. 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(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1)
  9529. 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(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  9530. elseif ModeOfGlitch == 1003 then
  9531. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9532. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9533. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9534. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9535. 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)
  9536. 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)
  9537.  
  9538. elseif ModeOfGlitch == 8889 then
  9539. 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)
  9540. 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)
  9541. 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)
  9542. 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)
  9543. 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)
  9544. 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)
  9545. elseif ModeOfGlitch == 1264532489 then
  9546. 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)
  9547. 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)
  9548. 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)
  9549. 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)
  9550. 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)
  9551. 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)
  9552. 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)
  9553. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9554. 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)
  9555. 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)
  9556. 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)
  9557. 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)
  9558. 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)
  9559. 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)
  9560. elseif ModeOfGlitch == 4367677813 then
  9561. 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))),.1)
  9562. 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))),.1)
  9563. 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(10)),.1)
  9564. 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 + 2 * math.cos(sine / 53))),.1)
  9565. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1)
  9566. LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1)
  9567. elseif ModeOfGlitch == 55469696922 then --5555
  9568. 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)
  9569. 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)
  9570. 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)
  9571. 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)
  9572. 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)
  9573. 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)
  9574. elseif ModeOfGlitch == 999999999556 then
  9575. 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)
  9576. 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)
  9577. 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(17)),.1)
  9578. 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)
  9579. 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)
  9580. 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)
  9581. end
  9582. end
  9583. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9584. Anim="Walk"
  9585. if attack==false and ModeOfGlitch ~= 66 then
  9586. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9587. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9588. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  9589. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  9590. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  9591. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  9592. elseif attack==false and ModeOfGlitch == 66 then
  9593. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9594. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9595. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  9596. 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)
  9597. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
  9598. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 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(15 - 3 * math.cos(sine / 45))),.1)
  9599. end
  9600. elseif torvel>=22 and hitfloor~=nil then
  9601. Anim="Run"
  9602. if attack==false then
  9603. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 13 and ModeOfGlitch ~= 5555 and ModeOfGlitch ~= 1003 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
  9604. 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)
  9605. 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)
  9606. 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)
  9607. 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)
  9608. 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)
  9609. 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)
  9610. if ModeOfGlitch == 12 then
  9611. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 45 * math.cos(sine / 8))),.1)
  9612. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 45 * math.cos(sine / 8))),.1)
  9613. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(1.5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
  9614. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 5 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 8))),.1)
  9615. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  9616. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  9617. end
  9618. if ModeOfGlitch == 9 then
  9619. 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)
  9620. 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("Lime green"),Color3.new(0,1,0))
  9621. 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)
  9622. end
  9623. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1003 or ModeOfGlitch == 5555 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  9624. 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)
  9625. 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)
  9626. 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)
  9627. 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)
  9628. 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)
  9629. 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)
  9630. elseif ModeOfGlitch == 13 then
  9631. 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)
  9632. 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)
  9633. 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(40),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  9634. 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)
  9635. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 3 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1)
  9636. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 5 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1)
  9637. end
  9638. end
  9639. end
  9640. end
  9641. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement