lolita5432

asfi;has;ljhsal'dja';bsdjdskhlas

Oct 30th, 2018
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 463.60 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. Local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86.  
  87.  
  88. wait(0.2)
  89.  
  90.  
  91. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  92. The super switcher.
  93. Velnorum is one of the first wielders.
  94.  
  95. Created, Reworked by NoobyGames12
  96. Edited by GodzPlaysRB
  97. Edited by wanTH092 (Gam_Filano CH)
  98. SpectrumGlitcher Developers ^^^
  99. ]])
  100.  
  101.  
  102. ------------- ORIGINAL WIELDER OC: Velnorum
  103. print([[Icons:
  104. ! = New
  105. ? = Spoilers
  106. * = Exclusivity
  107. C = Changes
  108.  
  109. ]])
  110. warn([[V 7.5 Update Log:
  111. C: Changed everything to guest xd
  112. ]])
  113. --- its obs smooth af do not touch
  114. ---- Sources and functions might be taken from others
  115. plr = owner
  116. char = plr.Character
  117. hum = char.Humanoid
  118. local cam = game.Workspace.CurrentCamera
  119. Camera = cam
  120. mouse = plr:GetMouse()
  121. local CamInterrupt = false
  122. local TwoD = false
  123. local TargetInfo = {nil, nil}
  124. cam.CameraType = "Custom"
  125. t = char.Torso
  126. h = char.Head
  127. ra = char["Right Arm"]
  128. la = char["Left Arm"]
  129. rl = char["Right Leg"]
  130. ll = char["Left Leg"]
  131. tors = char.Torso
  132. lleg = char["Left Leg"]
  133. root = char.HumanoidRootPart
  134. hed = char.Head
  135. rleg = char["Right Leg"]
  136. rarm = char["Right Arm"]
  137. larm = char["Left Arm"]
  138. radian = math.rad
  139. random = math.random
  140. Vec3 = Vector3.new
  141. Inst = Instance.new
  142. cFrame = CFrame.new
  143. Euler = CFrame.fromEulerAnglesXYZ
  144. vt = Vector3.new
  145. bc = BrickColor.new
  146. br = BrickColor.random
  147. it = Instance.new
  148. cf = CFrame.new
  149. local Player_Size = 0
  150. cam = game.Workspace.CurrentCamera
  151. CF = CFrame.new
  152. angles = CFrame.Angles
  153. attack = false
  154. Euler = CFrame.fromEulerAnglesXYZ
  155. Rad = math.rad
  156. IT = Instance.new
  157. BrickC = BrickColor.new
  158. Cos = math.cos
  159. Acos = math.acos
  160. Sin = math.sin
  161. Asin = math.asin
  162. Abs = math.abs
  163. Mrandom = math.random
  164. Floor = math.floor
  165. IT = Instance.new
  166. CF = CFrame.new
  167. VT = Vector3.new
  168. RAD = math.rad
  169. C3 = Color3.new
  170. UD2 = UDim2.new
  171. BRICKC = BrickColor.new
  172. ANGLES = CFrame.Angles
  173. EULER = CFrame.fromEulerAnglesXYZ
  174. COS = math.cos
  175. ACOS = math.acos
  176. SIN = math.sin
  177. ASIN = math.asin
  178. ABS = math.abs
  179. MRANDOM = math.random
  180. FLOOR = math.floor
  181. local SINE = 0
  182.  
  183. local Booleans = {
  184. CamFollow = true,
  185. GyroUse = true
  186. }
  187.  
  188. function lerp(object, newCFrame, alpha)
  189. return object:lerp(newCFrame, alpha)
  190. end
  191.  
  192. local Directer = Inst("BodyGyro", root)
  193. Directer.MaxTorque = Vec3(0, 0, 0)
  194. Directer.P = 600000
  195. local CPart = Inst("Part")
  196. CPart.Anchored = true
  197. CPart.CanCollide = false
  198. CPart.Locked = true
  199. CPart.Transparency = 1
  200.  
  201. local rainbowmode = false
  202. local chaosmode = false
  203.  
  204. local kan = Instance.new("Sound",tors)
  205. kan.Volume = 0.85
  206. kan.TimePosition = 0
  207. kan.PlaybackSpeed = 1
  208. kan.Pitch = 1
  209. kan.SoundId = "rbxassetid://1255569288"
  210. kan.Name = "wrecked"
  211. kan.Looped = true
  212. kan:Play()
  213.  
  214. local currentThemePlaying = kan.SoundId
  215. local currentPitch = kan.Pitch
  216. local currentVol = kan.Volume
  217. function newTheme(ID,timepos,pitch,vol)
  218. local kanz = kan
  219. --kanz:Stop()
  220. kanz.Volume = vol
  221. --kanz.TimePosition = timepos
  222. kanz.PlaybackSpeed = pitch
  223. kanz.Pitch = pitch
  224. kanz.SoundId = ID
  225. kanz.Name = "wrecked"
  226. kanz.Looped = true
  227. currentThemePlaying = kanz.SoundId
  228. currentVol = kanz.Volume
  229. currentPitch = kanz.Pitch
  230. --kanz:Play()
  231. --coroutine.resume(coroutine.create(function()
  232. --wait(0.05)
  233. --end))
  234. end
  235.  
  236. function newThemeCust(ID,timepos,pitch,vol)
  237. local kanz = kan
  238. kanz:Stop()
  239. kanz.Volume = vol
  240. kanz.TimePosition = timepos
  241. kanz.PlaybackSpeed = pitch
  242. kanz.Pitch = pitch
  243. kanz.SoundId = ID
  244. kanz.Name = "wrecked"
  245. kanz.Looped = true
  246. currentThemePlaying = kanz.SoundId
  247. currentVol = kanz.Volume
  248. currentPitch = kanz.Pitch
  249. kanz:Play()
  250. coroutine.resume(coroutine.create(function()
  251. wait(0.05)
  252. end))
  253. end
  254.  
  255. local mutedtog = false
  256.  
  257. function CameraEnshaking(Length,Intensity)
  258. coroutine.resume(coroutine.create(function()
  259. local intensity = 1*Intensity
  260. local rotM = 0.01*Intensity
  261. for i = 0, Length, 0.1 do
  262. swait()
  263. intensity = intensity - 0.05*Intensity/Length
  264. rotM = rotM - 0.0005*Intensity/Length
  265. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  266. 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)
  267. end
  268. Humanoid.CameraOffset = Vec3(0, 0, 0)
  269. end))
  270. end
  271. CamShake=function(Part,Distan,Power,Times)
  272. local de=Part.Position
  273. for i,v in pairs(workspace:children()) do
  274. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  275. for _,c in pairs(v:children()) do
  276. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  277. local Noob=v.Humanoid
  278. if Noob~=nil then
  279. coroutine.resume(coroutine.create(function()
  280. FV = Instance.new("BoolValue", Noob)
  281. FV.Name = "CameraShake"
  282. for ShakeNum=1,Times do
  283. swait()
  284. local ef=Power
  285. if ef>=1 then
  286. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  287. else
  288. ef=Power*10
  289. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  290. end
  291. end
  292. Humanoid.CameraOffset = Vector3.new(0,0,0)
  293. FV:Destroy()
  294. end))
  295. CameraShake(Times, Power, Noob)
  296. end
  297. end
  298. end
  299. end
  300. end
  301. end
  302.  
  303. local toggleTag = true
  304. local bilguit = Instance.new("BillboardGui", hed)
  305. bilguit.Adornee = nil
  306. bilguit.Name = "ModeName"
  307. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  308. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  309. local modet = Instance.new("TextLabel", bilguit)
  310. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  311. modet.FontSize = "Size8"
  312. modet.TextScaled = true
  313. modet.TextTransparency = 0
  314. modet.BackgroundTransparency = 1
  315. modet.TextTransparency = 0
  316. modet.TextStrokeTransparency = 0
  317. modet.Font = "Antique"
  318. modet.TextStrokeColor3 = Color3.new(1,0,0)
  319. modet.TextColor3 = Color3.new(0.25,0,0)
  320. modet.Text = "Hopeless Guest"
  321.  
  322.  
  323. function chatfunc(text,color,typet,font,timeex)
  324. local chat = coroutine.wrap(function()
  325. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  326. Character:FindFirstChild("TalkingBillBoard"):destroy()
  327. end
  328. local naeeym2 = Instance.new("BillboardGui",Character)
  329. naeeym2.Size = UDim2.new(0,100,0,40)
  330. naeeym2.StudsOffset = Vector3.new(0,3,0)
  331. naeeym2.Adornee = Character.Head
  332. naeeym2.Name = "TalkingBillBoard"
  333. local tecks2 = Instance.new("TextLabel",naeeym2)
  334. tecks2.BackgroundTransparency = 1
  335. tecks2.BorderSizePixel = 0
  336. tecks2.Text = ""
  337. tecks2.Font = font
  338. tecks2.TextSize = 30
  339. tecks2.TextStrokeTransparency = 0
  340. tecks2.TextColor3 = color
  341. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  342. tecks2.Size = UDim2.new(1,0,0.5,0)
  343. local tecks3 = Instance.new("TextLabel",naeeym2)
  344. tecks3.BackgroundTransparency = 1
  345. tecks3.BorderSizePixel = 0
  346. tecks3.Text = ""
  347. tecks3.Font = font
  348. tecks3.TextSize = 30
  349. tecks3.TextStrokeTransparency = 0
  350. if typet == "Inverted" then
  351. tecks3.TextColor3 = Color3.new(0,0,0)
  352. tecks3.TextStrokeColor3 = color
  353. elseif typet == "Normal" then
  354. tecks3.TextColor3 = color
  355. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  356. end
  357. tecks3.Size = UDim2.new(1,0,0.5,0)
  358. coroutine.resume(coroutine.create(function()
  359. while true do
  360. swait(1)
  361. if chaosmode == true then
  362. tecks2.TextColor3 = BrickColor.random().Color
  363. tecks3.TextStrokeColor3 = BrickColor.random().Color
  364. end
  365. end
  366. end))
  367. modet.TextTransparency = modet.TextTransparency + 1
  368. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  369. for i = 0, 74*timeex do
  370. swait()
  371. modet.TextTransparency = 1
  372. modet.TextStrokeTransparency = 1
  373. tecks2.Text = text
  374. tecks3.Text = text
  375. end
  376. local randomrot = math.random(1,2)
  377. if randomrot == 1 then
  378. for i = 1, 50 do
  379. swait()
  380. tecks2.Text = text
  381. tecks3.Text = text
  382. modet.TextTransparency = modet.TextTransparency - .02
  383. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  384. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  385. tecks2.TextTransparency = tecks2.TextTransparency + .04
  386. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  387. tecks3.TextTransparency = tecks2.TextTransparency + .04
  388. end
  389. elseif randomrot == 2 then
  390. for i = 1, 50 do
  391. swait()
  392. tecks2.Text = text
  393. tecks3.Text = text
  394. modet.TextTransparency = modet.TextTransparency - .02
  395. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  396. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  397. tecks2.TextTransparency = tecks2.TextTransparency + .04
  398. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  399. tecks3.TextTransparency = tecks2.TextTransparency + .04
  400. end
  401. end
  402. modet.TextTransparency = 0
  403. modet.TextStrokeTransparency = 0
  404. if toggleTag == false then
  405. modet.TextTransparency = 1
  406. modet.TextStrokeTransparency = 1
  407. end
  408. naeeym2:Destroy()
  409. end)
  410. chat()
  411. end
  412.  
  413. function bosschatfunc(text,color,watval)
  414. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  415. coroutine.resume(coroutine.create(function()
  416. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  417. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  418. end
  419. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  420. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  421. scrg.Name = "Dialog"
  422. local txtlb = Instance.new("TextLabel",scrg)
  423. txtlb.Text = ""
  424. txtlb.Font = "Bodoni"
  425. txtlb.TextColor3 = Color3.new(0,0,0)
  426. txtlb.TextStrokeTransparency = 0
  427. txtlb.BackgroundTransparency = 0.75
  428. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  429. txtlb.TextStrokeColor3 = color
  430. txtlb.TextScaled = true
  431. txtlb.Size = UDim2.new(1,0,0.25,0)
  432. txtlb.TextXAlignment = "Left"
  433. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  434. local txtlb2 = Instance.new("TextLabel",scrg)
  435. txtlb2.Text = plr.Name.." The Guest:"
  436. txtlb2.Font = "Antique"
  437. txtlb2.TextColor3 = Color3.new(0,0,0)
  438. txtlb2.TextStrokeTransparency = 0
  439. txtlb2.BackgroundTransparency = 1
  440. txtlb2.TextStrokeColor3 = color
  441. txtlb2.TextSize = 40
  442. txtlb2.Size = UDim2.new(1,0,0.25,0)
  443. txtlb2.TextXAlignment = "Left"
  444. txtlb2.Position = UDim2.new(0,0,1,0)
  445. local fvalen = 0.55
  446. local fval = -0.49
  447. coroutine.resume(coroutine.create(function()
  448. while true do
  449. swait()
  450. if chaosmode == true then
  451. txtlb.Rotation = math.random(-1,1)
  452. txtlb2.Rotation = math.random(-1,1)
  453. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  454. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  455. txtlb.TextStrokeColor3 = BrickColor.random().Color
  456. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  457. end
  458. end
  459. end))
  460. coroutine.resume(coroutine.create(function()
  461. while true do
  462. swait()
  463. if scrg.Parent ~= nil then
  464. fvalen = fvalen - 0.0001
  465. elseif scrg.Parent == nil then
  466. break
  467. end
  468. end
  469. end))
  470. local flol = 1.75
  471. local flil = 1.6
  472. coroutine.resume(coroutine.create(function()
  473. for i = 0, 9 do
  474. swait()
  475. fval = fval + 0.05
  476. flol = flol - 0.1
  477. flil = flil - 0.1
  478. txtlb.Text = ""
  479. txtlb.Position = UDim2.new(0,0,flol,0)
  480. txtlb2.Position = UDim2.new(0,0,flil,0)
  481. end
  482. txtlb.Text = text
  483. wait(watval)
  484. local valinc = 0
  485. for i = 0, 99 do
  486. swait()
  487. valinc = valinc + 0.0001
  488. flol = flol + valinc
  489. flil = flil + valinc
  490. txtlb.Rotation = txtlb.Rotation + valinc*20
  491. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  492. txtlb.Position = UDim2.new(0,0,flol,0)
  493. txtlb2.Position = UDim2.new(0,0,flil,0)
  494. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  495. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  496. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  497. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  498. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  499. end
  500. scrg:Destroy()
  501. end))
  502. end))
  503. end
  504. end
  505.  
  506.  
  507. local Create = LoadLibrary("RbxUtility").Create
  508.  
  509. CFuncs = {
  510. ["Part"] = {
  511. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  512. local Part = Create("Part"){
  513. Parent = Parent,
  514. Reflectance = Reflectance,
  515. Transparency = Transparency,
  516. CanCollide = false,
  517. Locked = true,
  518. BrickColor = BrickColor.new(tostring(BColor)),
  519. Name = Name,
  520. Size = Size,
  521. Material = Material,
  522. }
  523. RemoveOutlines(Part)
  524. return Part
  525. end;
  526. };
  527.  
  528. ["Mesh"] = {
  529. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  530. local Msh = Create(Mesh){
  531. Parent = Part,
  532. Offset = OffSet,
  533. Scale = Scale,
  534. }
  535. if Mesh == "SpecialMesh" then
  536. Msh.MeshType = MeshType
  537. Msh.MeshId = MeshId
  538. end
  539. return Msh
  540. end;
  541. };
  542.  
  543. ["Mesh"] = {
  544. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  545. local Msh = Create(Mesh){
  546. Parent = Part,
  547. Offset = OffSet,
  548. Scale = Scale,
  549. }
  550. if Mesh == "SpecialMesh" then
  551. Msh.MeshType = MeshType
  552. Msh.MeshId = MeshId
  553. end
  554. return Msh
  555. end;
  556. };
  557.  
  558. ["Weld"] = {
  559. Create = function(Parent, Part0, Part1, C0, C1)
  560. local Weld = Create("Weld"){
  561. Parent = Parent,
  562. Part0 = Part0,
  563. Part1 = Part1,
  564. C0 = C0,
  565. C1 = C1,
  566. }
  567. return Weld
  568. end;
  569. };
  570.  
  571. ["Sound"] = {
  572. Create = function(id, par, vol, pit)
  573. coroutine.resume(coroutine.create(function()
  574. local S = Create("Sound"){
  575. Volume = vol,
  576. Name = "EffectSoundo",
  577. Pitch = pit or 1,
  578. SoundId = id,
  579. Parent = par or workspace,
  580. }
  581. wait()
  582. S:play()
  583. game:GetService("Debris"):AddItem(S, 10)
  584. end))
  585. end;
  586. };
  587.  
  588. ["TimeSound"] = {
  589. Create = function(id, par, vol, pit, timepos)
  590. coroutine.resume(coroutine.create(function()
  591. local S = Create("Sound"){
  592. Volume = vol,
  593. Name = "EffectSoundo",
  594. Pitch = pit or 1,
  595. SoundId = id,
  596. TimePosition = timepos,
  597. Parent = par or workspace,
  598. }
  599. wait()
  600. S:play()
  601. game:GetService("Debris"):AddItem(S, 10)
  602. end))
  603. end;
  604. };
  605. ["EchoSound"] = {
  606. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  607. coroutine.resume(coroutine.create(function()
  608. local Sas = Create("Sound"){
  609. Volume = vol,
  610. Name = "EffectSoundo",
  611. Pitch = pit or 1,
  612. SoundId = id,
  613. TimePosition = timepos,
  614. Parent = par or workspace,
  615. }
  616. local E = Create("EchoSoundEffect"){
  617. Delay = echodelay,
  618. Name = "Echo",
  619. Feedback = fedb,
  620. DryLevel = dryl,
  621. Parent = Sas,
  622. }
  623. wait()
  624. Sas:play()
  625. game:GetService("Debris"):AddItem(Sas, delays)
  626. end))
  627. end;
  628. };
  629.  
  630. ["LongSound"] = {
  631. Create = function(id, par, vol, pit)
  632. coroutine.resume(coroutine.create(function()
  633. local S = Create("Sound"){
  634. Volume = vol,
  635. Pitch = pit or 1,
  636. SoundId = id,
  637. Parent = par or workspace,
  638. }
  639. wait()
  640. S:play()
  641. game:GetService("Debris"):AddItem(S, 60)
  642. end))
  643. end;
  644. };
  645.  
  646. ["ParticleEmitter"] = {
  647. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  648. local fp = Create("ParticleEmitter"){
  649. Parent = Parent,
  650. Color = ColorSequence.new(Color1, Color2),
  651. LightEmission = LightEmission,
  652. Size = Size,
  653. Texture = Texture,
  654. Transparency = Transparency,
  655. ZOffset = ZOffset,
  656. Acceleration = Accel,
  657. Drag = Drag,
  658. LockedToPart = LockedToPart,
  659. VelocityInheritance = VelocityInheritance,
  660. EmissionDirection = EmissionDirection,
  661. Enabled = Enabled,
  662. Lifetime = LifeTime,
  663. Rate = Rate,
  664. Rotation = Rotation,
  665. RotSpeed = RotSpeed,
  666. Speed = Speed,
  667. VelocitySpread = VelocitySpread,
  668. }
  669. return fp
  670. end;
  671. };
  672.  
  673. CreateTemplate = {
  674.  
  675. };
  676. }
  677.  
  678.  
  679.  
  680. New = function(Object, Parent, Name, Data)
  681. local Object = Instance.new(Object)
  682. for Index, Value in pairs(Data or {}) do
  683. Object[Index] = Value
  684. end
  685. Object.Parent = Parent
  686. Object.Name = Name
  687. return Object
  688. end
  689. local halocolor = BrickColor.new("Pastel light blue")
  690. local halocolor2 = BrickColor.new("Cool yellow")
  691. local starcolor = BrickColor.new("Bright yellow")
  692. local lunacolor = BrickColor.new("Navy blue")
  693. local lunacolor2 = BrickColor.new("Bright blue")
  694. local wepcolor = BrickColor.new("Really black")
  695. local maincolor = BrickColor.new("Really black")
  696. local m = Instance.new("Model",char)
  697. local m2 = Instance.new("Model",char)
  698. local m3 = Instance.new("Model",char)
  699. local mw1 = Instance.new("Model",char)
  700. local mw2 = Instance.new("Model",char)
  701.  
  702.  
  703. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  704. local gui = it(GuiType)
  705. gui.Parent = parent
  706. gui.Text = text
  707. gui.BackgroundTransparency = backtrans
  708. gui.BackgroundColor3 = backcol
  709. gui.SizeConstraint = "RelativeXY"
  710. gui.TextXAlignment = "Center"
  711. gui.TextYAlignment = "Center"
  712. gui.Position = pos
  713. gui.Size = size
  714. gui.Font = "SourceSans"
  715. gui.FontSize = "Size14"
  716. gui.TextWrapped = false
  717. gui.TextStrokeTransparency = 0
  718. gui.TextColor = BrickColor.new("White")
  719. return gui
  720. end
  721. --------------------------- GUI STUFF
  722. local basgui = it("GuiMain")
  723. basgui.Parent = plr.PlayerGui
  724. basgui.Name = "VISgui"
  725. local fullscreenz = it("Frame")
  726. fullscreenz.Parent = basgui
  727. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  728. fullscreenz.BackgroundTransparency = 1
  729. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  730. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  731. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  732. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  733. imgl2.BackgroundTransparency = 1
  734. imgl2.BorderSizePixel = 0
  735. imgl2.ImageTransparency = 0.5
  736. imgl2.ImageColor3 = Color3.new(1,0,0)
  737. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  738. imgl2.Size = UDim2.new(0,1000,0,1000)
  739. imgl2.Image = "rbxassetid://2325939897"
  740. local techc = imgl2:Clone()
  741. techc.Parent = fullscreenz
  742. techc.ImageTransparency = 0
  743. techc.Size = UDim2.new(0,900,0,900)
  744. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  745. techc.ImageColor3 = Color3.new(1,0,0)
  746. techc.Image = "rbxassetid://2273224484"
  747. local circl = imgl2:Clone()
  748. circl.Parent = fullscreenz
  749. circl.ImageTransparency = 0
  750. circl.Size = UDim2.new(0,550,0,550)
  751. circl.Position = UDim2.new(0.75,25,0.55,25)
  752. circl.ImageColor3 = Color3.new(0,0,0)
  753. circl.Image = "rbxassetid://2312119891"
  754. local circl2 = imgl2:Clone()
  755. circl2.Parent = fullscreenz
  756. circl2.ImageTransparency = 0
  757. circl2.Size = UDim2.new(0,700,0,700)
  758. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  759. circl2.ImageColor3 = Color3.new(1,0,0)
  760. circl2.Image = "rbxassetid://2312119891"
  761. local imgl2b = imgl2:Clone()
  762. imgl2b.Parent = fullscreenz
  763. imgl2b.ImageTransparency = 0
  764. imgl2b.Size = UDim2.new(0,800,0,800)
  765. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  766. imgl2b.ImageColor3 = Color3.new(0,0,0)
  767. local ned = Instance.new("TextLabel",fullscreenz)
  768. ned.ZIndex = 2
  769. ned.Font = "Arcade"
  770. ned.BackgroundTransparency = 1
  771. ned.BorderSizePixel = 0.65
  772. ned.Size = UDim2.new(0.3,0,0.2,0)
  773. ned.Position = UDim2.new(0.7,0,0.8,0)
  774. ned.TextColor3 = BrickColor.new("Really red").Color
  775. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  776. ned.TextScaled = true
  777. ned.TextStrokeTransparency = 0
  778. ned.Text = "Hopeless Guest"
  779. ned.TextSize = 24
  780. ned.Rotation = 1
  781. ned.TextXAlignment = "Right"
  782. ned.TextYAlignment = "Bottom"
  783.  
  784. local extrawingmod1 = Instance.new("Model",char)
  785. local extrawingmod2 = Instance.new("Model",char)
  786.  
  787. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  788. local p = Instance.new("Part")
  789. p.TopSurface = 0
  790. p.BottomSurface = 0
  791. p.Parent = parent
  792. p.Size = Vector3.new(0.1,0.1,0.1)
  793. p.Transparency = transparency
  794. p.Reflectance = reflectance
  795. p.CanCollide = false
  796. p.Locked = true
  797. p.BrickColor = brickcolor
  798. p.Material = material
  799. return p
  800. end
  801.  
  802. function CreateMesh(parent,meshtype,x1,y1,z1)
  803. local mesh = Instance.new("SpecialMesh",parent)
  804. mesh.MeshType = meshtype
  805. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  806. return mesh
  807. end
  808.  
  809. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  810. local mesh = Instance.new("SpecialMesh",parent)
  811. mesh.MeshType = "FileMesh"
  812. mesh.MeshId = meshid
  813. mesh.Scale = Vector3.new(x1,y1,z1)
  814. return mesh
  815. end
  816.  
  817.  
  818. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  819. local mesh = Instance.new("SpecialMesh",parent)
  820. mesh.MeshType = "FileMesh"
  821. mesh.MeshId = meshid
  822. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  823. mesh.Scale = Vector3.new(x1,y1,z1)
  824. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  825. return mesh
  826. end
  827.  
  828. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  829. local weld = Instance.new("Weld")
  830. weld.Parent = parent
  831. weld.Part0 = part0
  832. weld.Part1 = part1
  833. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  834. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  835. return weld
  836. end
  837.  
  838.  
  839. --------------
  840. --------------
  841. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  842. 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))
  843. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  844. 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))
  845.  
  846. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  847. CreateMesh(handle,"Brick",0,0,0)
  848. 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))
  849. local valuaring = 10
  850. for i = 0, 49 do
  851. valuaring = valuaring + 10
  852. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  853. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  854. 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))
  855. end
  856.  
  857. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0,0,0)
  859. 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))
  860. local valuaring = 10
  861. for i = 0, 49 do
  862. valuaring = valuaring + 10
  863. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  864. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  865. 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))
  866. end
  867.  
  868.  
  869. local handle = CreateParta(m,1,1,"Neon",maincolor)
  870. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  871. 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))
  872.  
  873. --- Left wing.
  874.  
  875. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  876. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  877. 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))
  878.  
  879. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  880. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  881. 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))
  882. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  883. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  884. 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))
  885. A0 = Instance.new('Attachment',wed)
  886. A0.Position = vt(0,0.25,0.25)
  887. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  888. CreateMesh(wed,"Wedge",0.05,0.5,3)
  889. 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))
  890. A1 = Instance.new('Attachment',wed)
  891. A1.Position = vt(0,-0.25,-2)
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,3,0.5)
  894. 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))
  895.  
  896. tl1 = Instance.new('Trail',wed)
  897. tl1.Attachment0 = A1
  898. tl1.Attachment1 = A0
  899. tl1.Texture = "rbxassetid://2108945559"
  900. tl1.LightEmission = 1
  901. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  902. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  903. tl1.Lifetime = 0.6
  904.  
  905.  
  906. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  907. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  908. 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))
  909.  
  910. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  911. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  912. 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))
  913. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  914. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  915. 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))
  916. A0 = Instance.new('Attachment',wed)
  917. A0.Position = vt(0,0.25,0.25)
  918. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  919. CreateMesh(wed,"Wedge",0.05,0.5,3)
  920. 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))
  921. A1 = Instance.new('Attachment',wed)
  922. A1.Position = vt(0,-0.25,-2)
  923. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,3,0.5)
  925. 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))
  926.  
  927. tl2 = Instance.new('Trail',wed)
  928. tl2.Attachment0 = A1
  929. tl2.Attachment1 = A0
  930. tl2.Texture = "rbxassetid://2108945559"
  931. tl2.LightEmission = 1
  932. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  933. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  934. tl2.Lifetime = 0.6
  935.  
  936. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  937. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  938. 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))
  939.  
  940. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  941. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  942. 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))
  943. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  944. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  945. 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))
  946. A0 = Instance.new('Attachment',wed)
  947. A0.Position = vt(0,0.25,0.25)
  948. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  949. CreateMesh(wed,"Wedge",0.05,0.5,3)
  950. 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))
  951. A1 = Instance.new('Attachment',wed)
  952. A1.Position = vt(0,-0.25,-2)
  953. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,3,0.5)
  955. 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))
  956.  
  957. tl3 = Instance.new('Trail',wed)
  958. tl3.Attachment0 = A1
  959. tl3.Attachment1 = A0
  960. tl3.Texture = "rbxassetid://2108945559"
  961. tl3.LightEmission = 1
  962. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  963. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  964. tl3.Lifetime = 0.6
  965.  
  966. tl1.Enabled = false
  967. tl2.Enabled = false
  968. tl3.Enabled = false
  969. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  970. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  971. 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))
  972.  
  973. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  975. 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))
  976. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  977. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  978. 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))
  979. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  980. CreateMesh(wed,"Wedge",0.05,0.5,3)
  981. 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))
  982. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  983. CreateMesh(wed,"Wedge",0.05,3,0.5)
  984. 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))
  985.  
  986. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  987. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  988. 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))
  989.  
  990. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  992. 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))
  993. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  994. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  995. 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))
  996. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,0.5,3)
  998. 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))
  999. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1000. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1001. 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))
  1002.  
  1003. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1004. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1005. 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))
  1006.  
  1007. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1009. 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))
  1010. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1012. 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))
  1013. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1015. 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))
  1016. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1018. 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))
  1019.  
  1020. -- Right wing.
  1021.  
  1022. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1023. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1024. 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))
  1025.  
  1026. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1027. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1028. 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))
  1029. A0 = Instance.new('Attachment',wed)
  1030. A0.Position = vt(0,0.25,0.25)
  1031. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1032. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1033. 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))
  1034. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1035. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1036. 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))
  1037. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1038. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1039. 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))
  1040. A1 = Instance.new('Attachment',wed)
  1041. A1.Position = vt(0,2,0.25)
  1042.  
  1043. tr1 = Instance.new('Trail',wed)
  1044. tr1.Attachment0 = A1
  1045. tr1.Attachment1 = A0
  1046. tr1.Texture = "rbxassetid://2108945559"
  1047. tr1.LightEmission = 1
  1048. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1049. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1050. tr1.Lifetime = 0.6
  1051.  
  1052. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1053. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1054. 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))
  1055.  
  1056. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1057. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1058. 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))
  1059. A0 = Instance.new('Attachment',wed)
  1060. A0.Position = vt(0,0.25,0.25)
  1061. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1063. 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))
  1064. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1066. 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))
  1067. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1068. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1069. 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))
  1070. A1 = Instance.new('Attachment',wed)
  1071. A1.Position = vt(0,2,0.25)
  1072.  
  1073. tr2 = Instance.new('Trail',wed)
  1074. tr2.Attachment0 = A1
  1075. tr2.Attachment1 = A0
  1076. tr2.Texture = "rbxassetid://2108945559"
  1077. tr2.LightEmission = 1
  1078. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1079. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1080. tr2.Lifetime = 0.6
  1081.  
  1082. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1083. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1084. 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))
  1085.  
  1086. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1087. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1088. 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))
  1089. A0 = Instance.new('Attachment',wed)
  1090. A0.Position = vt(0,0.25,0.25)
  1091. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1092. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1093. 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))
  1094. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1095. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1096. 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))
  1097. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1098. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1099. 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))
  1100. A1 = Instance.new('Attachment',wed)
  1101. A1.Position = vt(0,2,0.25)
  1102.  
  1103. tr3 = Instance.new('Trail',wed)
  1104. tr3.Attachment0 = A1
  1105. tr3.Attachment1 = A0
  1106. tr3.Texture = "rbxassetid://2108945559"
  1107. tr3.LightEmission = 1
  1108. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1109. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1110. tr3.Lifetime = 0.6
  1111.  
  1112.  
  1113. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1114. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1115. 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))
  1116.  
  1117. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1118. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1119. 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))
  1120. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1121. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1122. 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))
  1123. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1124. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1125. 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))
  1126. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1127. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1128. 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))
  1129.  
  1130. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1131. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1132. 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))
  1133.  
  1134. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1136. 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))
  1137. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1138. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1139. 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))
  1140. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1141. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1142. 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))
  1143. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1144. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1145. 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))
  1146.  
  1147. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1148. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1149. 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))
  1150.  
  1151. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1152. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1153. 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))
  1154. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1155. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1156. 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))
  1157. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1158. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1159. 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))
  1160. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1161. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1162. 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))
  1163.  
  1164. --HERES THE RING
  1165.  
  1166.  
  1167. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1168. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1169. 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))
  1170. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1171. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1172. 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))
  1173. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1174. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1175. 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))
  1176.  
  1177.  
  1178. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1179. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1180. 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))
  1181.  
  1182. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1183. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1184. 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))
  1185.  
  1186.  
  1187.  
  1188. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1189. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1190. 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))
  1191.  
  1192. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1193. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1194. 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))
  1195.  
  1196. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1197. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1198. 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))
  1199.  
  1200. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1201. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1202. 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))
  1203. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1204. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1205. 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))]]--
  1206.  
  1207. --- second ring
  1208.  
  1209.  
  1210. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1211. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1212. 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))
  1213.  
  1214. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1215. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1216. 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))
  1217.  
  1218.  
  1219.  
  1220. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1221. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1222. 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))
  1223.  
  1224. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1225. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1226. 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))
  1227.  
  1228. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1229. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1230. 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))
  1231.  
  1232. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1233. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1234. 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))
  1235. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1236. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1237. 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))
  1238.  
  1239.  
  1240.  
  1241. for i, v in pairs(m:GetChildren()) do
  1242. if v:IsA("Part") then
  1243. v.BrickColor = BrickColor.new("Really black")
  1244. v.Material = "Glass"
  1245. end
  1246. end
  1247. for i, v in pairs(m2:GetChildren()) do
  1248. if v:IsA("Part") then
  1249. v.BrickColor = BrickColor.new("Crimson")
  1250. v.Material = "Granite"
  1251. end
  1252. end
  1253. for i, v in pairs(m3:GetChildren()) do
  1254. if v:IsA("Part") then
  1255. v.BrickColor = BrickColor.new("Really red")
  1256. v.Material = "Neon"
  1257. end
  1258. end
  1259. for i, v in pairs(mw2:GetChildren()) do
  1260. if v:IsA("Part") then
  1261. v.BrickColor = BrickColor.new("Really red")
  1262. v.Material = "Neon"
  1263. end
  1264. end
  1265. for i, v in pairs(mw1:GetChildren()) do
  1266. if v:IsA("Part") then
  1267. v.Transparency = 1
  1268. v.BrickColor = BrickColor.new("Really red")
  1269. v.Material = "Neon"
  1270. end
  1271. end
  1272. for i, v in pairs(extrawingmod1:GetChildren()) do
  1273. if v:IsA("Part") then
  1274. v.Transparency = 1
  1275. v.BrickColor = BrickColor.new("White")
  1276. v.Material = "Neon"
  1277. end
  1278. end
  1279. for i, v in pairs(extrawingmod2:GetChildren()) do
  1280. if v:IsA("Part") then
  1281. v.Transparency = 1
  1282. v.BrickColor = BrickColor.new("White")
  1283. v.Material = "Neon"
  1284. end
  1285. end
  1286. local MAINRUINCOLOR = BrickColor.new("Really red")
  1287. ------
  1288.  
  1289.  
  1290. function RemoveOutlines(part)
  1291. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1292. end
  1293. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1294. local Part = Create("Part")({
  1295. Parent = Parent,
  1296. Reflectance = Reflectance,
  1297. Transparency = Transparency,
  1298. CanCollide = false,
  1299. Locked = true,
  1300. BrickColor = BrickColor.new(tostring(BColor)),
  1301. Name = Name,
  1302. Size = Size,
  1303. Material = Material
  1304. })
  1305. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1306. RemoveOutlines(Part)
  1307. return Part
  1308. end
  1309. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1310. local Msh = Create(Mesh)({
  1311. Parent = Part,
  1312. Offset = OffSet,
  1313. Scale = Scale
  1314. })
  1315. if Mesh == "SpecialMesh" then
  1316. Msh.MeshType = MeshType
  1317. Msh.MeshId = MeshId
  1318. end
  1319. return Msh
  1320. end
  1321. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1322. local Weld = Create("Weld")({
  1323. Parent = Parent,
  1324. Part0 = Part0,
  1325. Part1 = Part1,
  1326. C0 = C0,
  1327. C1 = C1
  1328. })
  1329. return Weld
  1330. end
  1331.  
  1332. Player = plr
  1333. Character=Player.Character
  1334. PlayerGui=Player.PlayerGui
  1335. Backpack=Player.Backpack
  1336. Torso=Character.Torso
  1337. Head=Character.Head
  1338. Humanoid=Character.Humanoid
  1339. m=Instance.new('Model',Character)
  1340. LeftArm=Character["Left Arm"]
  1341. LeftLeg=Character["Left Leg"]
  1342. RightArm=Character["Right Arm"]
  1343. RightLeg=Character["Right Leg"]
  1344. LS=Torso["Left Shoulder"]
  1345. LH=Torso["Left Hip"]
  1346. RS=Torso["Right Shoulder"]
  1347. RH=Torso["Right Hip"]
  1348. Face = Head.face
  1349. Neck=Torso.Neck
  1350. it=Instance.new
  1351. attacktype=1
  1352. vt=Vector3.new
  1353. cf=CFrame.new
  1354. euler=CFrame.fromEulerAnglesXYZ
  1355. angles=CFrame.Angles
  1356. cloaked=false
  1357. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1358. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1359. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1360. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1361. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1362. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1363. RootPart=Character.HumanoidRootPart
  1364. RootJoint=RootPart.RootJoint
  1365. RootCF=euler(-1.57,0,3.14)
  1366. attack = false
  1367. attackdebounce = false
  1368. deb=false
  1369. equipped=true
  1370. hand=false
  1371. combo=0
  1372. mana=0
  1373. trispeed=.2
  1374. attackmode='none'
  1375. local idle=0
  1376. local Anim="Idle"
  1377. local Effects={}
  1378. local gun=false
  1379. local shoot=false
  1380. local sine = 0
  1381. local change = 1
  1382.  
  1383. function RecolorTextAndRename(name,col1,col2,font)
  1384. modet.TextStrokeColor3 = col2
  1385. modet.TextColor3 = col1
  1386. modet.Font = font
  1387. modet.Text = name
  1388. techc.ImageColor3 = col2
  1389. circl.ImageColor3 = col2
  1390. circl2.ImageColor3 = col1
  1391. imgl2.ImageColor3 = col1
  1392. imgl2b.ImageColor3 = col2
  1393. ned.Text = name
  1394. ned.TextColor3 = col1
  1395. ned.TextStrokeColor3 = col2
  1396. end
  1397. --save shoulders
  1398. RSH, LSH=nil, nil
  1399. --welds
  1400. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1401. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1402. LH=Torso["Left Hip"]
  1403. RH=Torso["Right Hip"]
  1404. TorsoColor=Torso.BrickColor
  1405. function NoOutline(Part)
  1406. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1407. end
  1408. ch=Character
  1409. RSH=ch.Torso["Right Shoulder"]
  1410. LSH=ch.Torso["Left Shoulder"]
  1411. --
  1412. RSH.Parent=nil
  1413. LSH.Parent=nil
  1414. --
  1415. RW.Name="Right Shoulder"
  1416. RW.Part0=ch.Torso
  1417. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1418. RW.C1=cf(0, 0.5, 0)
  1419. RW.Part1=ch["Right Arm"]
  1420. RW.Parent=ch.Torso
  1421. --
  1422. LW.Name="Left Shoulder"
  1423. LW.Part0=ch.Torso
  1424. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1425. LW.C1=cf(0, 0.5, 0)
  1426. LW.Part1=ch["Left Arm"]
  1427. LW.Parent=ch.Torso
  1428.  
  1429. local Stats=Instance.new("BoolValue")
  1430. Stats.Name="Stats"
  1431. Stats.Parent=Character
  1432. local Atk=Instance.new("NumberValue")
  1433. Atk.Name="Damage"
  1434. Atk.Parent=Stats
  1435. Atk.Value=1
  1436. local Def=Instance.new("NumberValue")
  1437. Def.Name="Defense"
  1438. Def.Parent=Stats
  1439. Def.Value=1
  1440. local Speed=Instance.new("NumberValue")
  1441. Speed.Name="Speed"
  1442. Speed.Parent=Stats
  1443. Speed.Value=1
  1444. local Mvmt=Instance.new("NumberValue")
  1445. Mvmt.Name="Movement"
  1446. Mvmt.Parent=Stats
  1447. Mvmt.Value=1
  1448.  
  1449. local donum=0
  1450. local ast = {744586075,385254610}
  1451.  
  1452. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1453. local fp=it("Part")
  1454. fp.formFactor=formfactor
  1455. fp.Parent=parent
  1456. fp.Reflectance=reflectance
  1457. fp.Transparency=transparency
  1458. fp.CanCollide=false
  1459. fp.Locked=true
  1460. fp.BrickColor=brickcolor
  1461. fp.Name=name
  1462. fp.Size=size
  1463. fp.Position=Torso.Position
  1464. NoOutline(fp)
  1465. fp.Material="SmoothPlastic"
  1466. fp:BreakJoints()
  1467. return fp
  1468. end
  1469.  
  1470. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1471. local mesh=it(Mesh)
  1472. mesh.Parent=part
  1473. if Mesh=="SpecialMesh" then
  1474. mesh.MeshType=meshtype
  1475. if meshid~="nil" then
  1476. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1477. end
  1478. end
  1479. mesh.Offset=offset
  1480. mesh.Scale=scale
  1481. return mesh
  1482. end
  1483.  
  1484. function weld(parent,part0,part1,c0)
  1485. local weld=it("Weld")
  1486. weld.Parent=parent
  1487. weld.Part0=part0
  1488. weld.Part1=part1
  1489. weld.C0=c0
  1490. return weld
  1491. end
  1492.  
  1493. local Color1=Torso.BrickColor
  1494.  
  1495. local bodvel=Instance.new("BodyVelocity")
  1496. local bg=Instance.new("BodyGyro")
  1497.  
  1498. --------- SazEreno's Artificial HB --------------
  1499. ArtificialHB = Instance.new("BindableEvent", script)
  1500. ArtificialHB.Name = "ArtificialHB"
  1501.  
  1502. script:WaitForChild("ArtificialHB")
  1503. Frame_Speed = 1 / 60
  1504. frame = Frame_Speed
  1505. tf = 0
  1506. allowframeloss = false
  1507. tossremainder = false
  1508. lastframe = tick()
  1509. script.ArtificialHB:Fire()
  1510.  
  1511. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1512. tf = tf + s
  1513. if tf >= frame then
  1514. if allowframeloss then
  1515. script.ArtificialHB:Fire()
  1516. lastframe = tick()
  1517. else
  1518. for i = 1, math.floor(tf / frame) do
  1519. script.ArtificialHB:Fire()
  1520. end
  1521. lastframe = tick()
  1522. end
  1523. if tossremainder then
  1524. tf = 0
  1525. else
  1526. tf = tf - frame * math.floor(tf / frame)
  1527. end
  1528. end
  1529. end)
  1530.  
  1531. ------------------
  1532. function swait(num)
  1533. if num == 0 or num == nil then
  1534. ArtificialHB.Event:wait()
  1535. else
  1536. for i = 1, num do
  1537. ArtificialHB.Event:wait()
  1538. end
  1539. end
  1540. end
  1541. -------- RAINBOW LEAVE IT TO ME
  1542. local r = 255
  1543. local g = 0
  1544. local b = 0
  1545. coroutine.resume(coroutine.create(function()
  1546. while wait() do
  1547. for i = 0, 254/5 do
  1548. swait()
  1549. g = g + 5
  1550. end
  1551. for i = 0, 254/5 do
  1552. swait()
  1553. r = r - 5
  1554. end
  1555. for i = 0, 254/5 do
  1556. swait()
  1557. b = b + 5
  1558. end
  1559. for i = 0, 254/5 do
  1560. swait()
  1561. g = g - 5
  1562. end
  1563. for i = 0, 254/5 do
  1564. swait()
  1565. r = r + 5
  1566. end
  1567. for i = 0, 254/5 do
  1568. swait()
  1569. b = b - 5
  1570. end
  1571. end
  1572. end))
  1573.  
  1574.  
  1575. so = function(id,par,vol,pit)
  1576. coroutine.resume(coroutine.create(function()
  1577. local sou = Instance.new("Sound",par or workspace)
  1578. sou.Volume=vol
  1579. sou.Pitch=pit or 1
  1580. sou.SoundId=id
  1581. swait()
  1582. sou:play()
  1583. game:GetService("Debris"):AddItem(sou,6)
  1584. end))
  1585. end
  1586.  
  1587. function clerp(a,b,t)
  1588. local qa = {QuaternionFromCFrame(a)}
  1589. local qb = {QuaternionFromCFrame(b)}
  1590. local ax, ay, az = a.x, a.y, a.z
  1591. local bx, by, bz = b.x, b.y, b.z
  1592. local _t = 1-t
  1593. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1594. end
  1595.  
  1596. function QuaternionFromCFrame(cf)
  1597. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1598. local trace = m00 + m11 + m22
  1599. if trace > 0 then
  1600. local s = math.sqrt(1 + trace)
  1601. local recip = 0.5/s
  1602. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1603. else
  1604. local i = 0
  1605. if m11 > m00 then
  1606. i = 1
  1607. end
  1608. if m22 > (i == 0 and m00 or m11) then
  1609. i = 2
  1610. end
  1611. if i == 0 then
  1612. local s = math.sqrt(m00-m11-m22+1)
  1613. local recip = 0.5/s
  1614. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1615. elseif i == 1 then
  1616. local s = math.sqrt(m11-m22-m00+1)
  1617. local recip = 0.5/s
  1618. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1619. elseif i == 2 then
  1620. local s = math.sqrt(m22-m00-m11+1)
  1621. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1622. end
  1623. end
  1624. end
  1625.  
  1626. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1627. local xs, ys, zs = x + x, y + y, z + z
  1628. local wx, wy, wz = w*xs, w*ys, w*zs
  1629. local xx = x*xs
  1630. local xy = x*ys
  1631. local xz = x*zs
  1632. local yy = y*ys
  1633. local yz = y*zs
  1634. local zz = z*zs
  1635. 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))
  1636. end
  1637.  
  1638. function QuaternionSlerp(a, b, t)
  1639. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1640. local startInterp, finishInterp;
  1641. if cosTheta >= 0.0001 then
  1642. if (1 - cosTheta) > 0.0001 then
  1643. local theta = math.acos(cosTheta)
  1644. local invSinTheta = 1/math.sin(theta)
  1645. startInterp = math.sin((1-t)*theta)*invSinTheta
  1646. finishInterp = math.sin(t*theta)*invSinTheta
  1647. else
  1648. startInterp = 1-t
  1649. finishInterp = t
  1650. end
  1651. else
  1652. if (1+cosTheta) > 0.0001 then
  1653. local theta = math.acos(-cosTheta)
  1654. local invSinTheta = 1/math.sin(theta)
  1655. startInterp = math.sin((t-1)*theta)*invSinTheta
  1656. finishInterp = math.sin(t*theta)*invSinTheta
  1657. else
  1658. startInterp = t-1
  1659. finishInterp = t
  1660. end
  1661. end
  1662. 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
  1663. end
  1664.  
  1665. local function CFrameFromTopBack(at, top, back)
  1666. local right = top:Cross(back)
  1667. return CFrame.new(at.x, at.y, at.z,
  1668. right.x, top.x, back.x,
  1669. right.y, top.y, back.y,
  1670. right.z, top.z, back.z)
  1671. end
  1672.  
  1673. function Triangle(a, b, c)
  1674. local edg1 = (c-a):Dot((b-a).unit)
  1675. local edg2 = (a-b):Dot((c-b).unit)
  1676. local edg3 = (b-c):Dot((a-c).unit)
  1677. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1678. a, b, c = a, b, c
  1679. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1680. a, b, c = b, c, a
  1681. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1682. a, b, c = c, a, b
  1683. else
  1684. assert(false, "unreachable")
  1685. end
  1686.  
  1687. local len1 = (c-a):Dot((b-a).unit)
  1688. local len2 = (b-a).magnitude - len1
  1689. local width = (a + (b-a).unit*len1 - c).magnitude
  1690.  
  1691. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1692.  
  1693. local list = {}
  1694.  
  1695. if len1 > 0.01 then
  1696. local w1 = Instance.new('WedgePart', m)
  1697. game:GetService("Debris"):AddItem(w1,5)
  1698. w1.Material = "SmoothPlastic"
  1699. w1.FormFactor = 'Custom'
  1700. w1.BrickColor = BrickColor.new("Really red")
  1701. w1.Transparency = 0
  1702. w1.Reflectance = 0
  1703. w1.Material = "SmoothPlastic"
  1704. w1.CanCollide = false
  1705. local l1 = Instance.new("PointLight",w1)
  1706. l1.Color = Color3.new(170,0,0)
  1707. NoOutline(w1)
  1708. local sz = Vector3.new(0.2, width, len1)
  1709. w1.Size = sz
  1710. local sp = Instance.new("SpecialMesh",w1)
  1711. sp.MeshType = "Wedge"
  1712. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1713. w1:BreakJoints()
  1714. w1.Anchored = true
  1715. w1.Parent = workspace
  1716. w1.Transparency = 0.7
  1717. table.insert(Effects,{w1,"Disappear",.01})
  1718. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1719. table.insert(list,w1)
  1720. end
  1721.  
  1722. if len2 > 0.01 then
  1723. local w2 = Instance.new('WedgePart', m)
  1724. game:GetService("Debris"):AddItem(w2,5)
  1725. w2.Material = "SmoothPlastic"
  1726. w2.FormFactor = 'Custom'
  1727. w2.BrickColor = BrickColor.new("Really red")
  1728. w2.Transparency = 0
  1729. w2.Reflectance = 0
  1730. w2.Material = "SmoothPlastic"
  1731. w2.CanCollide = false
  1732. local l2 = Instance.new("PointLight",w2)
  1733. l2.Color = Color3.new(170,0,0)
  1734. NoOutline(w2)
  1735. local sz = Vector3.new(0.2, width, len2)
  1736. w2.Size = sz
  1737. local sp = Instance.new("SpecialMesh",w2)
  1738. sp.MeshType = "Wedge"
  1739. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1740. w2:BreakJoints()
  1741. w2.Anchored = true
  1742. w2.Parent = workspace
  1743. w2.Transparency = 0.7
  1744. table.insert(Effects,{w2,"Disappear",.01})
  1745. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1746. table.insert(list,w2)
  1747. end
  1748. return unpack(list)
  1749. end
  1750.  
  1751.  
  1752. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1753. if hit.Parent == nil then
  1754. return
  1755. end
  1756. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1757. for _, v in pairs(hit.Parent:children()) do
  1758. if v:IsA("Humanoid") then
  1759. h = v
  1760. end
  1761. end
  1762. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1763. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1764. return
  1765. end
  1766. local c = Create("ObjectValue")({
  1767. Name = "creator",
  1768. Value = owner,
  1769. Parent = h
  1770. })
  1771. game:GetService("Debris"):AddItem(c, 0.5)
  1772. if HitSound ~= nil and HitPitch ~= nil then
  1773. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1774. end
  1775. local Damage = math.random(minim, maxim)
  1776. local blocked = false
  1777. local block = hit.Parent:findFirstChild("Block")
  1778. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1779. blocked = true
  1780. block.Value = block.Value - 1
  1781. print(block.Value)
  1782. end
  1783. if blocked == false then
  1784. HitHealth = h.Health
  1785. h.MaxHealth = 100
  1786. h.Health = h.Health - Damage
  1787. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1788. print("gained kill")
  1789. dmg(h.Parent)
  1790. end
  1791. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1792. else
  1793. h.Health = h.Health - Damage / 2
  1794. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1795. end
  1796. if Type == "Knockdown" then
  1797. local hum = hit.Parent.Humanoid
  1798. hum.PlatformStand = true
  1799. coroutine.resume(coroutine.create(function(HHumanoid)
  1800. swait(1)
  1801. HHumanoid.PlatformStand = false
  1802. end), hum)
  1803. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1804. local bodvol = Create("BodyVelocity")({
  1805. velocity = angle * knockback,
  1806. P = 5000,
  1807. maxForce = Vector3.new(8000, 8000, 8000),
  1808. Parent = hit
  1809. })
  1810. local rl = Create("BodyAngularVelocity")({
  1811. P = 3000,
  1812. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1813. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1814. Parent = hit
  1815. })
  1816. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1817. game:GetService("Debris"):AddItem(rl, 0.5)
  1818. elseif Type == "Normal" then
  1819. local vp = Create("BodyVelocity")({
  1820. P = 500,
  1821. maxForce = Vector3.new(math.huge, 0, math.huge),
  1822. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1823. })
  1824. if knockback > 0 then
  1825. vp.Parent = hit.Parent.Head
  1826. end
  1827. game:GetService("Debris"):AddItem(vp, 0.5)
  1828. elseif Type == "Up" then
  1829. local bodyVelocity = Create("BodyVelocity")({
  1830. velocity = Vector3.new(0, 20, 0),
  1831. P = 5000,
  1832. maxForce = Vector3.new(8000, 8000, 8000),
  1833. Parent = hit
  1834. })
  1835. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1836. local bodyVelocity = Create("BodyVelocity")({
  1837. velocity = Vector3.new(0, 20, 0),
  1838. P = 5000,
  1839. maxForce = Vector3.new(8000, 8000, 8000),
  1840. Parent = hit
  1841. })
  1842. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1843. elseif Type == "Leech" then
  1844. local hum = hit.Parent.Humanoid
  1845. if hum ~= nil then
  1846. for i = 0, 2 do
  1847. 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)
  1848. end
  1849. Humanoid.Health = Humanoid.Health + 10
  1850. end
  1851. elseif Type == "UpKnock" then
  1852. local hum = hit.Parent.Humanoid
  1853. hum.PlatformStand = true
  1854. if hum ~= nil then
  1855. hitr = true
  1856. end
  1857. coroutine.resume(coroutine.create(function(HHumanoid)
  1858. swait(5)
  1859. HHumanoid.PlatformStand = false
  1860. hitr = false
  1861. end), hum)
  1862. local bodyVelocity = Create("BodyVelocity")({
  1863. velocity = Vector3.new(0, 20, 0),
  1864. P = 5000,
  1865. maxForce = Vector3.new(8000, 8000, 8000),
  1866. Parent = hit
  1867. })
  1868. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1869. local bodyVelocity = Create("BodyVelocity")({
  1870. velocity = Vector3.new(0, 20, 0),
  1871. P = 5000,
  1872. maxForce = Vector3.new(8000, 8000, 8000),
  1873. Parent = hit
  1874. })
  1875. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1876. elseif Type == "Snare" then
  1877. local bp = Create("BodyPosition")({
  1878. P = 2000,
  1879. D = 100,
  1880. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1881. position = hit.Parent.Torso.Position,
  1882. Parent = hit.Parent.Torso
  1883. })
  1884. game:GetService("Debris"):AddItem(bp, 1)
  1885. elseif Type == "Slashnare" then
  1886. 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)
  1887. for i = 1, math.random(4, 5) do
  1888. 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)
  1889. end
  1890. local bp = Create("BodyPosition")({
  1891. P = 2000,
  1892. D = 100,
  1893. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1894. position = hit.Parent.Torso.Position,
  1895. Parent = hit.Parent.Torso
  1896. })
  1897. game:GetService("Debris"):AddItem(bp, 1)
  1898. elseif Type == "Spike" then
  1899. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1900. local bp = Create("BodyPosition")({
  1901. P = 2000,
  1902. D = 100,
  1903. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1904. position = hit.Parent.Torso.Position,
  1905. Parent = hit.Parent.Torso
  1906. })
  1907. game:GetService("Debris"):AddItem(bp, 1)
  1908. elseif Type == "Freeze" then
  1909. local BodPos = Create("BodyPosition")({
  1910. P = 50000,
  1911. D = 1000,
  1912. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1913. position = hit.Parent.Torso.Position,
  1914. Parent = hit.Parent.Torso
  1915. })
  1916. local BodGy = Create("BodyGyro")({
  1917. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1918. P = 20000,
  1919. Parent = hit.Parent.Torso,
  1920. cframe = hit.Parent.Torso.CFrame
  1921. })
  1922. hit.Parent.Torso.Anchored = true
  1923. coroutine.resume(coroutine.create(function(Part)
  1924. swait(1.5)
  1925. Part.Anchored = false
  1926. end), hit.Parent.Torso)
  1927. game:GetService("Debris"):AddItem(BodPos, 3)
  1928. game:GetService("Debris"):AddItem(BodGy, 3)
  1929. end
  1930. local debounce = Create("BoolValue")({
  1931. Name = "DebounceHit",
  1932. Parent = hit.Parent,
  1933. Value = true
  1934. })
  1935. game:GetService("Debris"):AddItem(debounce, Delay)
  1936. c = Instance.new("ObjectValue")
  1937. c.Name = "creator"
  1938. c.Value = Player
  1939. c.Parent = h
  1940. game:GetService("Debris"):AddItem(c, 0.5)
  1941. end
  1942. end
  1943. function ShowDamage(Pos, Text, Time, Color)
  1944. local Rate = 0.03333333333333333
  1945. local Pos = Pos or Vector3.new(0, 0, 0)
  1946. local Text = Text or ""
  1947. local Time = Time or 2
  1948. local Color = Color or Color3.new(1, 0, 1)
  1949. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1950. EffectPart.Anchored = true
  1951. local BillboardGui = Create("BillboardGui")({
  1952. Size = UDim2.new(3, 0, 3, 0),
  1953. Adornee = EffectPart,
  1954. Parent = EffectPart
  1955. })
  1956. local TextLabel = Create("TextLabel")({
  1957. BackgroundTransparency = 1,
  1958. Size = UDim2.new(1, 0, 1, 0),
  1959. Text = Text,
  1960. TextColor3 = Color,
  1961. TextScaled = true,
  1962. Font = Enum.Font.ArialBold,
  1963. Parent = BillboardGui
  1964. })
  1965. game.Debris:AddItem(EffectPart, Time + 0.1)
  1966. EffectPart.Parent = game:GetService("Workspace")
  1967. delay(0, function()
  1968. local Frames = Time / Rate
  1969. for Frame = 1, Frames do
  1970. wait(Rate)
  1971. local Percent = Frame / Frames
  1972. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1973. TextLabel.TextTransparency = Percent
  1974. end
  1975. if EffectPart and EffectPart.Parent then
  1976. EffectPart:Destroy()
  1977. end
  1978. end)
  1979. end
  1980. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1981. for _, c in pairs(workspace:children()) do
  1982. local hum = c:findFirstChildOfClass("Humanoid")
  1983. if hum ~= nil then
  1984. local head = c:findFirstChild("Head")
  1985. if head ~= nil then
  1986. local targ = head.Position - Part.Position
  1987. local mag = targ.magnitude
  1988. if magni >= mag and c.Name ~= Player.Name then
  1989. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1990. end
  1991. end
  1992. end
  1993. end
  1994. end
  1995.  
  1996. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1997. for _, c in pairs(workspace:children()) do
  1998. local hum = c:findFirstChild("Humanoid")
  1999. if hum ~= nil then
  2000. local head = c:findFirstChild("Torso")
  2001. if head ~= nil then
  2002. local targ = head.Position - Part.Position
  2003. local mag = targ.magnitude
  2004. if magni >= mag and c.Name ~= Player.Name then
  2005. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2006. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2007. end
  2008. end
  2009. end
  2010. end
  2011. end
  2012.  
  2013. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2014. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2015. end
  2016.  
  2017. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2018. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2019. prt.Anchored=true
  2020. prt.CFrame=cframe
  2021. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2022. --http://www.roblox.com/asset/?id=4770560
  2023. game:GetService("Debris"):AddItem(prt,2)
  2024. CF=prt.CFrame
  2025. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2026. for i=0,1,0.2 do
  2027. wait()
  2028. Part.CFrame=CF*cf(0,0,-0.4)
  2029. end
  2030. for i=0,1,delay do
  2031. wait()
  2032. --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)
  2033. Mesh.Scale=Mesh.Scale
  2034. end
  2035. for i=0,1,0.1 do
  2036. wait()
  2037. Part.Transparency=i
  2038. end
  2039. Part.Parent=nil
  2040. end),prt,msh,CF)
  2041. end
  2042.  
  2043. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2044. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2045. prt.Anchored=true
  2046. prt.Material = "Neon"
  2047. prt.CFrame=cframe
  2048. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2049. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2050. game:GetService("Debris"):AddItem(prt,5)
  2051. coroutine.resume(coroutine.create(function(Part,Mesh)
  2052. for i=0,1,delay do
  2053. swait()
  2054. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2055. Part.Transparency=i
  2056. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2057. end
  2058. Part.Parent=nil
  2059. end),prt,msh)
  2060. end
  2061.  
  2062. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2063. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2064. prt.Anchored=true
  2065. prt.Material = "Neon"
  2066. prt.CFrame=cframe
  2067. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2068. game:GetService("Debris"):AddItem(prt,5)
  2069. coroutine.resume(coroutine.create(function(Part,Mesh)
  2070. local rtype = rottype
  2071. for i=0,1,delay do
  2072. swait()
  2073. if rtype == 1 then
  2074. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2075. elseif rtype == 2 then
  2076. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2077. end
  2078. Part.Transparency=i
  2079. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2080. end
  2081. Part.Parent=nil
  2082. end),prt,msh)
  2083. end
  2084.  
  2085. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2086. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2087. prt.Anchored=true
  2088. prt.CFrame=cframe
  2089. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2090. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2091. game:GetService("Debris"):AddItem(prt,5)
  2092. coroutine.resume(coroutine.create(function(Part,Mesh)
  2093. for i=0,1,delay do
  2094. wait()
  2095. Part.Transparency=i
  2096. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2097. end
  2098. Part.Parent=nil
  2099. end),prt,msh)
  2100. end
  2101.  
  2102. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2103. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2104. prt.Anchored=true
  2105. prt.Material = "Neon"
  2106. prt.CFrame=cframe
  2107. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2108. game:GetService("Debris"):AddItem(prt,5)
  2109. coroutine.resume(coroutine.create(function(Part,Mesh)
  2110. local rtype = rottype
  2111. for i=0,1,delay do
  2112. swait()
  2113. if rtype == 1 then
  2114. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2115. elseif rtype == 2 then
  2116. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2117. end
  2118. Part.Transparency=i
  2119. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2120. end
  2121. Part.Parent=nil
  2122. end),prt,msh)
  2123. end
  2124.  
  2125. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2126. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2127. prt.Anchored=true
  2128. prt.Material = "Neon"
  2129. prt.CFrame=cframe
  2130. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2131. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2132. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2133. game:GetService("Debris"):AddItem(prt,5)
  2134. coroutine.resume(coroutine.create(function(Part,Mesh)
  2135. local rtype = rottype
  2136. for i=0,1,delay do
  2137. swait()
  2138. if rtype == 1 then
  2139. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2140. elseif rtype == 2 then
  2141. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2142. end
  2143. dec.Transparency=i
  2144. dec2.Transparency=i
  2145. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2146. end
  2147. Part.Parent=nil
  2148. end),prt,msh)
  2149. end
  2150.  
  2151. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2152. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2153. prt.Anchored=true
  2154. prt.Material = "Neon"
  2155. prt.CFrame=cframe
  2156. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2157. game:GetService("Debris"):AddItem(prt,5)
  2158. coroutine.resume(coroutine.create(function(Part,Mesh)
  2159. local rtype = rottype
  2160. for i=0,1,delay do
  2161. swait()
  2162. if rtype == 1 then
  2163. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2164. elseif rtype == 2 then
  2165. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2166. end
  2167. prt.Transparency=i
  2168. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2169. end
  2170. Part.Parent=nil
  2171. end),prt,msh)
  2172. end
  2173.  
  2174. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2175. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2176. prt.Anchored=true
  2177. prt.Material = "Neon"
  2178. prt.CFrame=cframe
  2179. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2180. game:GetService("Debris"):AddItem(prt,5)
  2181. coroutine.resume(coroutine.create(function(Part,Mesh)
  2182. local rtype = rottype
  2183. for i=0,1,delay do
  2184. swait()
  2185. if rtype == 1 then
  2186. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2187. elseif rtype == 2 then
  2188. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2189. end
  2190. prt.Transparency=i
  2191. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2192. end
  2193. Part.Parent=nil
  2194. end),prt,msh)
  2195. end
  2196.  
  2197. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2198. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2199. prt.Anchored=true
  2200. prt.Material = "Neon"
  2201. prt.CFrame=cframe
  2202. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2203. game:GetService("Debris"):AddItem(prt,5)
  2204. coroutine.resume(coroutine.create(function(Part,Mesh)
  2205. local rtype = rottype
  2206. for i=0,1,delay do
  2207. swait()
  2208. if rtype == 1 then
  2209. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2210. elseif rtype == 2 then
  2211. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2212. end
  2213. prt.Transparency=i
  2214. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2215. end
  2216. Part.Parent=nil
  2217. end),prt,msh)
  2218. end
  2219.  
  2220. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2221. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2222. prt.Anchored=true
  2223. prt.Material = "Neon"
  2224. prt.CFrame=cframe
  2225. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2226. game:GetService("Debris"):AddItem(prt,5)
  2227. coroutine.resume(coroutine.create(function(Part,Mesh)
  2228. local rtype = rottype
  2229. for i=0,1,delay do
  2230. swait()
  2231. if rtype == 1 then
  2232. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2233. elseif rtype == 2 then
  2234. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2235. end
  2236. prt.Transparency=i
  2237. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2238. end
  2239. Part.Parent=nil
  2240. end),prt,msh)
  2241. end
  2242.  
  2243. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2244. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2245. prt.Anchored=false
  2246. prt.CFrame=cframe
  2247. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2248. local wld=weld(prt,prt,Parent,cframe)
  2249. game:GetService("Debris"):AddItem(prt,5)
  2250. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2251. for i=0,1,delay do
  2252. wait()
  2253. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2254. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2255. Part.Transparency=i
  2256. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2257. end
  2258. Part.Parent=nil
  2259. end),prt,msh,wld)
  2260. end
  2261.  
  2262. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2263. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2264. prt.Anchored=false
  2265. prt.CFrame=cframe
  2266. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2267. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2268. game:GetService("Debris"):AddItem(prt,5)
  2269. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2270. for i=0,1,delay do
  2271. wait()
  2272. Weld.C0=euler(i*20,0,0)
  2273. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2274. Part.Transparency=i
  2275. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2276. end
  2277. Part.Parent=nil
  2278. end),prt,msh,wld)
  2279. end
  2280.  
  2281. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2282. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2283. prt.Anchored=true
  2284. prt.CFrame=cframe
  2285. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2286. game:GetService("Debris"):AddItem(prt,2)
  2287. coroutine.resume(coroutine.create(function(Part,Mesh)
  2288. for i=0,1,delay do
  2289. wait()
  2290. Part.CFrame=Part.CFrame
  2291. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2292. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2293. prt2.Anchored=true
  2294. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2295. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2296. game:GetService("Debris"):AddItem(prt2,2)
  2297. coroutine.resume(coroutine.create(function(Part,Mesh)
  2298. for i=0,1,0.1 do
  2299. wait()
  2300. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2301. end
  2302. Part.Parent=nil
  2303. end),prt2,msh2)
  2304. end
  2305. for i=0,1,delay*2 do
  2306. wait()
  2307. Part.CFrame=Part.CFrame
  2308. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2309. end
  2310. Part.Parent=nil
  2311. end),prt,msh)
  2312. end
  2313.  
  2314. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2315. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2316. prt.Anchored=true
  2317. prt.CFrame=cframe
  2318. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2319. game:GetService("Debris"):AddItem(prt,2)
  2320. coroutine.resume(coroutine.create(function(Part,Mesh)
  2321. for i=0,1,delay do
  2322. wait()
  2323. Part.CFrame=Part.CFrame
  2324. Part.Transparency=i
  2325. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2326. end
  2327. Part.Parent=nil
  2328. end),prt,msh)
  2329. end
  2330.  
  2331. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2332. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2333. prt.Anchored=true
  2334. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2335. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2336. game:GetService("Debris"):AddItem(prt,2)
  2337. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2338. CF=Part.CFrame
  2339. Numbb=0
  2340. randnumb=math.random()/10
  2341. rand1=math.random()/10
  2342. for i=0,1,rand1 do
  2343. wait()
  2344. CF=CF*cf(0,math.random()/2,0)
  2345. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2346. Part.CFrame=CF*euler(Numbb,0,0)
  2347. Part.Transparency=i
  2348. Numbb=Numbb+randnumb
  2349. end
  2350. Part.Parent=nil
  2351. end),prt,CF,Numbb,randnumb)
  2352. end
  2353.  
  2354. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2355. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2356. prt.Anchored=true
  2357. prt.CFrame=cframe
  2358. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2359. game:GetService("Debris"):AddItem(prt,5)
  2360. coroutine.resume(coroutine.create(function(Part,Mesh)
  2361. for i=0,1,delay do
  2362. wait()
  2363. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2364. Part.Transparency=i
  2365. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2366. end
  2367. Part.Parent=nil
  2368. end),prt,msh)
  2369. end
  2370.  
  2371. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2372. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2373. prt.Anchored=true
  2374. prt.CFrame=cframe
  2375. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2376. game:GetService("Debris"):AddItem(prt,2)
  2377. coroutine.resume(coroutine.create(function(Part,Mesh)
  2378. for i=0,1,delay do
  2379. wait()
  2380. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2381. Part.Transparency=i
  2382. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2383. end
  2384. Part.Parent=nil
  2385. end),prt,msh)
  2386. end
  2387.  
  2388. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2389. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2390. prt.Anchored=true
  2391. prt.CFrame=cframe*cf(x,y,z)
  2392. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2393. game:GetService("Debris"):AddItem(prt,5)
  2394. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2395. local num=math.random()
  2396. local num2=math.random(-3,2)+math.random()
  2397. local numm=0
  2398. for i=0,1,delay*2 do
  2399. swait()
  2400. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2401. Part.Transparency=i
  2402. numm=numm+0.01
  2403. end
  2404. Part.Parent=nil
  2405. Mesh.Parent=nil
  2406. end),prt,msh,x,y,z)
  2407. end
  2408.  
  2409. function dmgstart(dmg,what)
  2410. hitcon = what.Touched:connect(function(hit)
  2411. local hum = hit.Parent:FindFirstChild("Humanoid")
  2412. if hum and not hum:IsDescendantOf(Character) then
  2413. hum:TakeDamage(dmg)
  2414. end
  2415. end)
  2416. end
  2417.  
  2418. function dmgstop()
  2419. hitcon:disconnect()
  2420. end
  2421.  
  2422. function Cloak()
  2423. Face.Parent=nil
  2424. cloaked=true
  2425. for _,v in pairs(Torso.Parent:children()) do
  2426. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2427. coroutine.resume(coroutine.create(function()
  2428. for i=0,1,0.2 do
  2429. wait()
  2430. v.Transparency=i
  2431. end
  2432. v.Transparency=1
  2433. end))
  2434. end
  2435. if v.className=="Hat" then
  2436. hatp=v.Handle
  2437. coroutine.resume(coroutine.create(function(derp)
  2438. for i=0,1,0.2 do
  2439. wait()
  2440. derp.Transparency=i
  2441. end
  2442. derp.Transparency=1
  2443. end),hatp)
  2444. end
  2445. end
  2446. for _,v in pairs(m:children()) do
  2447. if v.className=="Part" then
  2448. coroutine.resume(coroutine.create(function()
  2449. for i=0,1,0.2 do
  2450. wait()
  2451. v.Transparency=i
  2452. end
  2453. v.Transparency=1
  2454. end))
  2455. end
  2456. end
  2457. end
  2458.  
  2459. function UnCloak()
  2460. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2461. Face.Parent=Head
  2462. cloaked=false
  2463. for _,v in pairs(Torso.Parent:children()) do
  2464. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2465. coroutine.resume(coroutine.create(function()
  2466. for i=0,1,0.1 do
  2467. wait()
  2468. v.Transparency=v.Transparency-0.1
  2469. end
  2470. v.Transparency=0
  2471. end))
  2472. end
  2473. if v.className=="Hat" then
  2474. hatp=v.Handle
  2475. coroutine.resume(coroutine.create(function(derp)
  2476. for i=0,1,0.1 do
  2477. wait()
  2478. derp.Transparency=derp.Transparency-0.1
  2479. end
  2480. derp.Transparency=0
  2481. end),hatp)
  2482. end
  2483. end
  2484. for _,v in pairs(m:children()) do
  2485. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2486. coroutine.resume(coroutine.create(function()
  2487. for i=0,1,0.1 do
  2488. wait()
  2489. v.Transparency=v.Transparency-0.1
  2490. end
  2491. v.Transparency=0
  2492. end))
  2493. v.Transparency=0
  2494. end
  2495. end
  2496. end
  2497.  
  2498. local origcolor = BrickColor.new("Pastel light blue")
  2499. ---- This section of explosions.
  2500.  
  2501. ----
  2502.  
  2503.  
  2504. function ring(type,pos,scale,value)
  2505. local type = type
  2506. local rng = Instance.new("Part", char)
  2507. rng.Anchored = true
  2508. rng.BrickColor = origcolor
  2509. rng.CanCollide = false
  2510. rng.FormFactor = 3
  2511. rng.Name = "Ring"
  2512. rng.Size = Vector3.new(1, 1, 1)
  2513. rng.Transparency = 0
  2514. rng.TopSurface = 0
  2515. rng.BottomSurface = 0
  2516. rng.CFrame = pos
  2517. local rngm = Instance.new("SpecialMesh", rng)
  2518. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2519. rngm.Scale = scale
  2520. local scaler2 = 1
  2521. if type == "Add" then
  2522. scaler2 = 1*value
  2523. elseif type == "Divide" then
  2524. scaler2 = 1/value
  2525. end
  2526. coroutine.resume(coroutine.create(function()
  2527. for i = 0,10,0.1 do
  2528. swait()
  2529. if type == "Add" then
  2530. scaler2 = scaler2 - 0.01*value
  2531. elseif type == "Divide" then
  2532. scaler2 = scaler2 - 0.01/value
  2533. end
  2534. rng.Transparency = rng.Transparency + 0.01
  2535. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2536. end
  2537. rng:Destroy()
  2538. end))
  2539. end
  2540.  
  2541.  
  2542. function wave(type,pos,scale,value)
  2543. local type = type
  2544. local rng = Instance.new("Part", char)
  2545. rng.Anchored = true
  2546. rng.BrickColor = origcolor
  2547. rng.CanCollide = false
  2548. rng.FormFactor = 3
  2549. rng.Name = "Ring"
  2550. rng.Size = Vector3.new(1, 1, 1)
  2551. rng.Transparency = 0
  2552. rng.TopSurface = 0
  2553. rng.BottomSurface = 0
  2554. rng.CFrame = pos
  2555. local rngm = Instance.new("SpecialMesh", rng)
  2556. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2557. rngm.Scale = scale
  2558. local scaler2 = 1
  2559. if type == "Add" then
  2560. scaler2 = 1*value
  2561. elseif type == "Divide" then
  2562. scaler2 = 1/value
  2563. end
  2564. coroutine.resume(coroutine.create(function()
  2565. for i = 0,10,0.1 do
  2566. swait()
  2567. if type == "Add" then
  2568. scaler2 = scaler2 - 0.01*value
  2569. elseif type == "Divide" then
  2570. scaler2 = scaler2 - 0.01/value
  2571. end
  2572. rng.Transparency = rng.Transparency + 0.01
  2573. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2574. end
  2575. rng:Destroy()
  2576. end))
  2577. end
  2578.  
  2579. function wind(type,pos,scale,value,speed)
  2580. local type = type
  2581. local rng = Instance.new("Part", char)
  2582. rng.Anchored = true
  2583. rng.BrickColor = origcolor
  2584. rng.CanCollide = false
  2585. rng.FormFactor = 3
  2586. rng.Name = "Ring"
  2587. rng.Size = Vector3.new(1, 1, 1)
  2588. rng.Transparency = 0
  2589. rng.TopSurface = 0
  2590. rng.BottomSurface = 0
  2591. rng.CFrame = pos
  2592. local rngm = Instance.new("SpecialMesh", rng)
  2593. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2594. rngm.Scale = scale
  2595. local scaler2 = 1
  2596. if type == "Add" then
  2597. scaler2 = 1*value
  2598. elseif type == "Divide" then
  2599. scaler2 = 1/value
  2600. end
  2601. coroutine.resume(coroutine.create(function()
  2602. for i = 0,10,0.1 do
  2603. swait()
  2604. if type == "Add" then
  2605. scaler2 = scaler2 - 0.01*value
  2606. elseif type == "Divide" then
  2607. scaler2 = scaler2 - 0.01/value
  2608. end
  2609. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2610. rng.Transparency = rng.Transparency + 0.01
  2611. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2612. end
  2613. rng:Destroy()
  2614. end))
  2615. end
  2616.  
  2617. function groundwind(type,pos,scale,value,speed)
  2618. local type = type
  2619. local rng = Instance.new("Part", char)
  2620. rng.Anchored = true
  2621. rng.BrickColor = origcolor
  2622. rng.CanCollide = false
  2623. rng.FormFactor = 3
  2624. rng.Name = "Ring"
  2625. rng.Size = Vector3.new(1, 1, 1)
  2626. rng.Transparency = 0
  2627. rng.TopSurface = 0
  2628. rng.BottomSurface = 0
  2629. rng.CFrame = pos
  2630. local rngm = Instance.new("SpecialMesh", rng)
  2631. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2632. rngm.Scale = scale
  2633. local scaler2 = 1
  2634. if type == "Add" then
  2635. scaler2 = 1*value
  2636. elseif type == "Divide" then
  2637. scaler2 = 1/value
  2638. end
  2639. coroutine.resume(coroutine.create(function()
  2640. for i = 0,10,0.1 do
  2641. swait()
  2642. if type == "Add" then
  2643. scaler2 = scaler2 - 0.01*value
  2644. elseif type == "Divide" then
  2645. scaler2 = scaler2 - 0.01/value
  2646. end
  2647. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2648. rng.Transparency = rng.Transparency + 0.01
  2649. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2650. end
  2651. rng:Destroy()
  2652. end))
  2653. end
  2654.  
  2655. function CameraManager()
  2656. if TwoD and not CamInterrupt then
  2657. if Humanoid.Health > 0 then
  2658. Camera.CameraSubject = Humanoid
  2659. Camera.CameraType = "Scriptable"
  2660. Humanoid.AutoRotate = false
  2661. if Booleans.GyroUse then
  2662. Directer.MaxTorque = Vec3(0, huge, 0)
  2663. else
  2664. Directer.MaxTorque = Vec3(0, 0, 0)
  2665. end
  2666. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2667. if Booleans.CamFollow then
  2668. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2669. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2670. else
  2671. CPart.Position = RootPart.Position
  2672. end
  2673. else
  2674. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2675. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2676. end
  2677. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2678. else
  2679. Camera.CameraSubject = Humanoid
  2680. Camera.CameraType = "Custom"
  2681. Controller.Disabled = false
  2682. end
  2683. end
  2684. end
  2685.  
  2686. function ring(type,pos,scale,value)
  2687. local type = type
  2688. local rng = Instance.new("Part", char)
  2689. rng.Anchored = true
  2690. rng.BrickColor = origcolor
  2691. rng.CanCollide = false
  2692. rng.FormFactor = 3
  2693. rng.Name = "Ring"
  2694. rng.Size = Vector3.new(1, 1, 1)
  2695. rng.Transparency = 0
  2696. rng.TopSurface = 0
  2697. rng.BottomSurface = 0
  2698. rng.CFrame = pos
  2699. local rngm = Instance.new("SpecialMesh", rng)
  2700. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2701. rngm.Scale = scale
  2702. local scaler2 = 1
  2703. if type == "Add" then
  2704. scaler2 = 1*value
  2705. elseif type == "Divide" then
  2706. scaler2 = 1/value
  2707. end
  2708. coroutine.resume(coroutine.create(function()
  2709. for i = 0,10,0.1 do
  2710. swait()
  2711. if type == "Add" then
  2712. scaler2 = scaler2 - 0.01*value
  2713. elseif type == "Divide" then
  2714. scaler2 = scaler2 - 0.01/value
  2715. end
  2716. rng.Transparency = rng.Transparency + 0.01
  2717. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2718. end
  2719. rng:Destroy()
  2720. end))
  2721. end
  2722.  
  2723.  
  2724. function wave(type,pos,scale,value)
  2725. local type = type
  2726. local rng = Instance.new("Part", char)
  2727. rng.Anchored = true
  2728. rng.BrickColor = origcolor
  2729. rng.CanCollide = false
  2730. rng.FormFactor = 3
  2731. rng.Name = "Ring"
  2732. rng.Size = Vector3.new(1, 1, 1)
  2733. rng.Transparency = 0
  2734. rng.TopSurface = 0
  2735. rng.BottomSurface = 0
  2736. rng.CFrame = pos
  2737. local rngm = Instance.new("SpecialMesh", rng)
  2738. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2739. rngm.Scale = scale
  2740. local scaler2 = 1
  2741. if type == "Add" then
  2742. scaler2 = 1*value
  2743. elseif type == "Divide" then
  2744. scaler2 = 1/value
  2745. end
  2746. coroutine.resume(coroutine.create(function()
  2747. for i = 0,10,0.1 do
  2748. swait()
  2749. if type == "Add" then
  2750. scaler2 = scaler2 - 0.01*value
  2751. elseif type == "Divide" then
  2752. scaler2 = scaler2 - 0.01/value
  2753. end
  2754. rng.Transparency = rng.Transparency + 0.01
  2755. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2756. end
  2757. rng:Destroy()
  2758. end))
  2759. end
  2760.  
  2761. function sphere(bonuspeed,type,pos,scale,value,color)
  2762. local type = type
  2763. local rng = Instance.new("Part", char)
  2764. rng.Anchored = true
  2765. if ModeOfGlitch ~= 9 then
  2766. rng.BrickColor = color
  2767. elseif ModeOfGlitch == 9 then
  2768. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2769. end
  2770. rng.CanCollide = false
  2771. rng.FormFactor = 3
  2772. rng.Name = "Ring"
  2773. rng.Material = "Neon"
  2774. rng.Size = Vector3.new(1, 1, 1)
  2775. rng.Transparency = 0
  2776. rng.TopSurface = 0
  2777. rng.BottomSurface = 0
  2778. rng.CFrame = pos
  2779. local rngm = Instance.new("SpecialMesh", rng)
  2780. rngm.MeshType = "Sphere"
  2781. rngm.Scale = scale
  2782. if rainbowmode == true then
  2783. rng.Color = Color3.new(r/255,g/255,b/255)
  2784. end
  2785. if ModeOfGlitch == 9 then
  2786. coroutine.resume(coroutine.create(function()
  2787. while true do
  2788. swait()
  2789. if rng.Parent ~= nil then
  2790. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2791. else
  2792. break
  2793. end
  2794. end
  2795. end))
  2796. end
  2797. local scaler2 = 1
  2798. if type == "Add" then
  2799. scaler2 = 1*value
  2800. elseif type == "Divide" then
  2801. scaler2 = 1/value
  2802. end
  2803. coroutine.resume(coroutine.create(function()
  2804. for i = 0,10/bonuspeed,0.1 do
  2805. swait()
  2806. if rainbowmode == true then
  2807. rng.Color = Color3.new(r/255,g/255,b/255)
  2808. end
  2809. if type == "Add" then
  2810. scaler2 = scaler2 - 0.01*value/bonuspeed
  2811. elseif type == "Divide" then
  2812. scaler2 = scaler2 - 0.01/value*bonuspeed
  2813. end
  2814. if chaosmode == true then
  2815. rng.BrickColor = BrickColor.random()
  2816. end
  2817. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2818. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2819. end
  2820. rng:Destroy()
  2821. end))
  2822. end
  2823.  
  2824. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2825. local type = type
  2826. local rng = Instance.new("Part", char)
  2827. rng.Anchored = true
  2828. if ModeOfGlitch ~= 9 then
  2829. rng.BrickColor = color
  2830. elseif ModeOfGlitch == 9 then
  2831. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2832. end
  2833. rng.CanCollide = false
  2834. rng.FormFactor = 3
  2835. rng.Name = "Ring"
  2836. rng.Material = "Neon"
  2837. rng.Size = Vector3.new(1, 1, 1)
  2838. rng.Transparency = 0
  2839. rng.TopSurface = 0
  2840. rng.BottomSurface = 0
  2841. rng.CFrame = pos
  2842. local rngm = Instance.new("SpecialMesh", rng)
  2843. rngm.MeshType = "Sphere"
  2844. rngm.Scale = scale
  2845. local scaler2 = 1
  2846. local scaler2b = 1
  2847. local scaler2c = 1
  2848. if type == "Add" then
  2849. scaler2 = 1*value
  2850. scaler2b = 1*value2
  2851. scaler2c = 1*value3
  2852. elseif type == "Divide" then
  2853. scaler2 = 1/value
  2854. scaler2b = 1/value2
  2855. scaler2c = 1/value3
  2856. end
  2857. if ModeOfGlitch == 9 then
  2858. coroutine.resume(coroutine.create(function()
  2859. while true do
  2860. swait()
  2861. if rng.Parent ~= nil then
  2862. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2863. else
  2864. break
  2865. end
  2866. end
  2867. end))
  2868. end
  2869. coroutine.resume(coroutine.create(function()
  2870. for i = 0,10/bonuspeed,0.1 do
  2871. swait()
  2872. if type == "Add" then
  2873. scaler2 = scaler2 - 0.01*value/bonuspeed
  2874. scaler2b = scaler2b - 0.01*value/bonuspeed
  2875. scaler2c = scaler2c - 0.01*value/bonuspeed
  2876. elseif type == "Divide" then
  2877. scaler2 = scaler2 - 0.01/value*bonuspeed
  2878. scaler2b = scaler2b - 0.01/value*bonuspeed
  2879. scaler2c = scaler2c - 0.01/value*bonuspeed
  2880. end
  2881. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2882. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2883. end
  2884. rng:Destroy()
  2885. end))
  2886. end
  2887.  
  2888. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2889. local type = type
  2890. local rotenable = rotatingop
  2891. local rng = Instance.new("Part", char)
  2892. rng.Anchored = true
  2893. rng.BrickColor = color
  2894. rng.CanCollide = false
  2895. rng.FormFactor = 3
  2896. rng.Name = "Ring"
  2897. rng.Material = "Neon"
  2898. rng.Size = Vector3.new(1, 1, 1)
  2899. rng.Transparency = 0
  2900. if typeoftrans == "In" then
  2901. rng.Transparency = 1
  2902. end
  2903. rng.TopSurface = 0
  2904. rng.BottomSurface = 0
  2905. rng.CFrame = pos
  2906. local rngm = Instance.new("SpecialMesh", rng)
  2907. rngm.MeshType = "FileMesh"
  2908. if typeofshape == "Normal" then
  2909. rngm.MeshId = "rbxassetid://662586858"
  2910. elseif typeofshape == "Round" then
  2911. rngm.MeshId = "rbxassetid://662585058"
  2912. end
  2913. rngm.Scale = scale
  2914. local scaler2 = 1/10
  2915. if type == "Add" then
  2916. scaler2 = 1*value/10
  2917. elseif type == "Divide" then
  2918. scaler2 = 1/value/10
  2919. end
  2920. local randomrot = math.random(1,2)
  2921. coroutine.resume(coroutine.create(function()
  2922. for i = 0,10/bonuspeed,0.1 do
  2923. swait()
  2924. if type == "Add" then
  2925. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2926. elseif type == "Divide" then
  2927. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2928. end
  2929. if rotenable == true then
  2930. if randomrot == 1 then
  2931. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2932. elseif randomrot == 2 then
  2933. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2934. end
  2935. end
  2936. if typeoftrans == "Out" then
  2937. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2938. elseif typeoftrans == "In" then
  2939. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2940. end
  2941. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2942. end
  2943. rng:Destroy()
  2944. end))
  2945. end
  2946.  
  2947. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2948. local type = type
  2949. local rng = Instance.new("Part", char)
  2950. rng.Anchored = true
  2951. rng.BrickColor = color
  2952. rng.CanCollide = false
  2953. rng.FormFactor = 3
  2954. rng.Name = "Ring"
  2955. rng.Material = "Neon"
  2956. rng.Size = Vector3.new(1, 1, 1)
  2957. rng.Transparency = 0
  2958. rng.TopSurface = 0
  2959. rng.BottomSurface = 0
  2960. rng.CFrame = pos
  2961. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2962. local rngm = Instance.new("SpecialMesh", rng)
  2963. rngm.MeshType = "Brick"
  2964. rngm.Scale = vt(x1,y1,z1)
  2965. if rainbowmode == true then
  2966. rng.Color = Color3.new(r/255,g/255,b/255)
  2967. end
  2968. local scaler2 = 1
  2969. local speeder = FastSpeed/10
  2970. if type == "Add" then
  2971. scaler2 = 1*value
  2972. elseif type == "Divide" then
  2973. scaler2 = 1/value
  2974. end
  2975. coroutine.resume(coroutine.create(function()
  2976. for i = 0,10/bonuspeed,0.1 do
  2977. swait()
  2978. if rainbowmode == true then
  2979. rng.Color = Color3.new(r/255,g/255,b/255)
  2980. end
  2981. if type == "Add" then
  2982. scaler2 = scaler2 - 0.01*value/bonuspeed
  2983. elseif type == "Divide" then
  2984. scaler2 = scaler2 - 0.01/value*bonuspeed
  2985. end
  2986. if chaosmode == true then
  2987. rng.BrickColor = BrickColor.random()
  2988. end
  2989. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2990. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2991. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2992. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2993. end
  2994. rng:Destroy()
  2995. end))
  2996. end
  2997.  
  2998. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2999. local type = type
  3000. local rng = Instance.new("Part", char)
  3001. rng.Anchored = true
  3002. rng.BrickColor = color
  3003. rng.CanCollide = false
  3004. rng.FormFactor = 3
  3005. rng.Name = "Ring"
  3006. rng.Material = "Neon"
  3007. rng.Size = Vector3.new(1, 1, 1)
  3008. rng.Transparency = 0
  3009. rng.TopSurface = 0
  3010. rng.BottomSurface = 0
  3011. rng.CFrame = pos
  3012. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3013. local rngm = Instance.new("SpecialMesh", rng)
  3014. rngm.MeshType = "Brick"
  3015. rngm.Scale = vt(x1,y1,z1)
  3016. if rainbowmode == true then
  3017. rng.Color = Color3.new(r/255,g/255,b/255)
  3018. end
  3019. local scaler2 = 1
  3020. local speeder = FastSpeed/10
  3021. if type == "Add" then
  3022. scaler2 = 1*value
  3023. elseif type == "Divide" then
  3024. scaler2 = 1/value
  3025. end
  3026. coroutine.resume(coroutine.create(function()
  3027. for i = 0,10/bonuspeed,0.1 do
  3028. swait()
  3029. if rainbowmode == true then
  3030. rng.Color = Color3.new(r/255,g/255,b/255)
  3031. end
  3032. if type == "Add" then
  3033. scaler2 = scaler2 - 0.01*value/bonuspeed
  3034. elseif type == "Divide" then
  3035. scaler2 = scaler2 - 0.01/value*bonuspeed
  3036. end
  3037. if chaosmode == true then
  3038. rng.BrickColor = BrickColor.random()
  3039. end
  3040. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3041. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3042. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3043. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3044. end
  3045. rng:Destroy()
  3046. end))
  3047. end
  3048.  
  3049. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3050. local type = type
  3051. local rng = Instance.new("Part", char)
  3052. rng.Anchored = true
  3053. rng.BrickColor = color
  3054. rng.CanCollide = false
  3055. rng.FormFactor = 3
  3056. rng.Name = "Ring"
  3057. rng.Material = "Neon"
  3058. rng.Size = Vector3.new(1, 1, 1)
  3059. rng.Transparency = 0
  3060. rng.TopSurface = 0
  3061. rng.BottomSurface = 0
  3062. rng.CFrame = pos
  3063. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3064. local rngm = Instance.new("SpecialMesh", rng)
  3065. rngm.MeshType = "Brick"
  3066. rngm.Scale = vt(x1,y1,z1)
  3067. if rainbowmode == true then
  3068. rng.Color = Color3.new(r/255,g/255,b/255)
  3069. end
  3070. local scaler2 = 0
  3071. local speeder = FastSpeed/10
  3072. if type == "Add" then
  3073. scaler2 = 1*value
  3074. elseif type == "Divide" then
  3075. scaler2 = 1/value
  3076. end
  3077. coroutine.resume(coroutine.create(function()
  3078. for i = 0,10/bonuspeed,0.1 do
  3079. swait()
  3080. if rainbowmode == true then
  3081. rng.Color = Color3.new(r/255,g/255,b/255)
  3082. end
  3083. if type == "Add" then
  3084. scaler2 = scaler2 - 0.01*value/bonuspeed
  3085. elseif type == "Divide" then
  3086. scaler2 = scaler2 - 0.01/value*bonuspeed
  3087. end
  3088. if chaosmode == true then
  3089. rng.BrickColor = BrickColor.random()
  3090. end
  3091. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3092. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3093. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3094. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3095. end
  3096. rng:Destroy()
  3097. end))
  3098. end
  3099.  
  3100. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3101. local type = type
  3102. local rng = Instance.new("Part", char)
  3103. rng.Anchored = true
  3104. rng.BrickColor = color
  3105. rng.Color = color3
  3106. rng.CanCollide = false
  3107. rng.FormFactor = 3
  3108. rng.Name = "Ring"
  3109. rng.Material = "Neon"
  3110. rng.Size = Vector3.new(1, 1, 1)
  3111. rng.Transparency = 0
  3112. rng.TopSurface = 0
  3113. rng.BottomSurface = 0
  3114. rng.CFrame = pos
  3115. local rngm = Instance.new("SpecialMesh", rng)
  3116. rngm.MeshType = "Brick"
  3117. rngm.Scale = scale
  3118. local scaler2 = 1
  3119. local scaler2b = 1
  3120. local scaler2c = 1
  3121. if type == "Add" then
  3122. scaler2 = 1*value
  3123. scaler2b = 1*value2
  3124. scaler2c = 1*value3
  3125. elseif type == "Divide" then
  3126. scaler2 = 1/value
  3127. scaler2b = 1/value2
  3128. scaler2c = 1/value3
  3129. end
  3130. coroutine.resume(coroutine.create(function()
  3131. for i = 0,10/bonuspeed,0.1 do
  3132. swait()
  3133. if type == "Add" then
  3134. scaler2 = scaler2 - 0.01*value/bonuspeed
  3135. scaler2b = scaler2b - 0.01*value/bonuspeed
  3136. scaler2c = scaler2c - 0.01*value/bonuspeed
  3137. elseif type == "Divide" then
  3138. scaler2 = scaler2 - 0.01/value*bonuspeed
  3139. scaler2b = scaler2b - 0.01/value*bonuspeed
  3140. scaler2c = scaler2c - 0.01/value*bonuspeed
  3141. end
  3142. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3143. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3144. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3145. end
  3146. rng:Destroy()
  3147. end))
  3148. end
  3149.  
  3150. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3151. local type = type
  3152. local rng = Instance.new("Part", char)
  3153. rng.Anchored = true
  3154. if ModeOfGlitch ~= 9 then
  3155. rng.BrickColor = color
  3156. elseif ModeOfGlitch == 9 then
  3157. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3158. end
  3159. rng.CanCollide = false
  3160. rng.FormFactor = 3
  3161. rng.Name = "Ring"
  3162. rng.Material = "Neon"
  3163. rng.Size = Vector3.new(1, 1, 1)
  3164. rng.Transparency = 0
  3165. rng.TopSurface = 0
  3166. rng.BottomSurface = 0
  3167. rng.CFrame = pos
  3168. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3169. local rngm = Instance.new("SpecialMesh", rng)
  3170. rngm.MeshType = "Sphere"
  3171. rngm.Scale = vt(x1,y1,z1)
  3172. if rainbowmode == true then
  3173. rng.Color = Color3.new(r/255,g/255,b/255)
  3174. end
  3175. if ModeOfGlitch == 9 then
  3176. coroutine.resume(coroutine.create(function()
  3177. while true do
  3178. swait()
  3179. if rng.Parent ~= nil then
  3180. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3181. else
  3182. break
  3183. end
  3184. end
  3185. end))
  3186. end
  3187. local scaler2 = 1
  3188. local speeder = FastSpeed
  3189. if type == "Add" then
  3190. scaler2 = 1*value
  3191. elseif type == "Divide" then
  3192. scaler2 = 1/value
  3193. end
  3194. coroutine.resume(coroutine.create(function()
  3195. for i = 0,10/bonuspeed,0.1 do
  3196. swait()
  3197. if rainbowmode == true then
  3198. rng.Color = Color3.new(r/255,g/255,b/255)
  3199. end
  3200. if type == "Add" then
  3201. scaler2 = scaler2 - 0.01*value/bonuspeed
  3202. elseif type == "Divide" then
  3203. scaler2 = scaler2 - 0.01/value*bonuspeed
  3204. end
  3205. if chaosmode == true then
  3206. rng.BrickColor = BrickColor.random()
  3207. end
  3208. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3209. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3210. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3211. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3212. end
  3213. rng:Destroy()
  3214. end))
  3215. end
  3216.  
  3217.  
  3218. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3219. local type = type
  3220. local rng = Instance.new("Part", char)
  3221. rng.Anchored = true
  3222. if ModeOfGlitch ~= 9 then
  3223. rng.BrickColor = color
  3224. elseif ModeOfGlitch == 9 then
  3225. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3226. end
  3227. rng.CanCollide = false
  3228. rng.FormFactor = 3
  3229. rng.Name = "Ring"
  3230. rng.Material = "Neon"
  3231. rng.Size = Vector3.new(1, 1, 1)
  3232. rng.Transparency = 1
  3233. rng.TopSurface = 0
  3234. rng.BottomSurface = 0
  3235. rng.CFrame = pos
  3236. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3237. local rngm = Instance.new("SpecialMesh", rng)
  3238. rngm.MeshType = "Sphere"
  3239. rngm.Scale = vt(x1,y1,z1)
  3240. if rainbowmode == true then
  3241. rng.Color = Color3.new(r/255,g/255,b/255)
  3242. end
  3243. if ModeOfGlitch == 9 then
  3244. coroutine.resume(coroutine.create(function()
  3245. while true do
  3246. swait()
  3247. if rng.Parent ~= nil then
  3248. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3249. else
  3250. break
  3251. end
  3252. end
  3253. end))
  3254. end
  3255. local scaler2 = 1
  3256. local speeder = FastSpeed
  3257. if type == "Add" then
  3258. scaler2 = 1*value
  3259. elseif type == "Divide" then
  3260. scaler2 = 1/value
  3261. end
  3262. coroutine.resume(coroutine.create(function()
  3263. for i = 0,10/bonuspeed,0.1 do
  3264. swait()
  3265. if rainbowmode == true then
  3266. rng.Color = Color3.new(r/255,g/255,b/255)
  3267. end
  3268. if type == "Add" then
  3269. scaler2 = scaler2 - 0.01*value/bonuspeed
  3270. elseif type == "Divide" then
  3271. scaler2 = scaler2 - 0.01/value*bonuspeed
  3272. end
  3273. if chaosmode == true then
  3274. rng.BrickColor = BrickColor.random()
  3275. end
  3276. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3277. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3278. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3279. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3280. end
  3281. rng:Destroy()
  3282. end))
  3283. end
  3284.  
  3285. function dmg(dude)
  3286. if dude.Name ~= Character then
  3287. local keptcolor = MAINRUINCOLOR
  3288. local bgf = Instance.new("BodyGyro",dude.Head)
  3289. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3290. --[[local val = Instance.new("BoolValue",dude)
  3291. val.Name = "IsHit"]]--
  3292. local ds = coroutine.wrap(function()
  3293. dude:WaitForChild("Head"):BreakJoints()
  3294. for i, v in pairs(dude:GetChildren()) do
  3295. if v:IsA("Part") or v:IsA("MeshPart") then
  3296. v.Name = "DEMINISHED"
  3297. end
  3298. end
  3299. wait(0.5)
  3300. targetted = nil
  3301. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3302. coroutine.resume(coroutine.create(function()
  3303. for i, v in pairs(dude:GetChildren()) do
  3304. if v:IsA("Accessory") then
  3305. v:Destroy()
  3306. end
  3307. if v:IsA("Humanoid") then
  3308. v:Destroy()
  3309. end
  3310. if v:IsA("CharacterMesh") then
  3311. v:Destroy()
  3312. end
  3313. if v:IsA("Model") then
  3314. v:Destroy()
  3315. end
  3316. if v:IsA("Part") or v:IsA("MeshPart") then
  3317. for x, o in pairs(v:GetChildren()) do
  3318. if o:IsA("Decal") then
  3319. o:Destroy()
  3320. end
  3321. end
  3322. coroutine.resume(coroutine.create(function()
  3323. v.Material = "Neon"
  3324. v.CanCollide = false
  3325. v.Anchored = false
  3326. local bld = Instance.new("ParticleEmitter",v)
  3327. bld.LightEmission = 0.75
  3328. bld.Texture = "rbxassetid://363275192" ---284205403
  3329. bld.Color = ColorSequence.new(keptcolor.Color)
  3330. bld.Rate = 500
  3331. bld.Lifetime = NumberRange.new(1)
  3332. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3333. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3334. bld.Speed = NumberRange.new(2,5)
  3335. bld.VelocitySpread = 50000
  3336. bld.Rotation = NumberRange.new(-500,500)
  3337. bld.RotSpeed = NumberRange.new(-500,500)
  3338. local sbs = Instance.new("BodyPosition", v)
  3339. sbs.P = 3000
  3340. sbs.D = 1000
  3341. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3342. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3343. v.Color = keptcolor.Color
  3344. coroutine.resume(coroutine.create(function()
  3345. for i = 0, 49 do
  3346. swait(1)
  3347. v:BreakJoints()
  3348. v.Transparency = v.Transparency + 0.02
  3349. end
  3350. v:BreakJoints()
  3351. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3352. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3353. bld.Speed = NumberRange.new(10,25)
  3354. bld.Drag = 5
  3355. bld.Acceleration = vt(0,2,0)
  3356. wait(0.5)
  3357. bld.Enabled = false
  3358. wait(8)
  3359. v:Destroy()
  3360. dude:Destroy()
  3361. end))
  3362. end))
  3363. end
  3364. end
  3365. end))
  3366. end)
  3367. ds()
  3368. end
  3369. end
  3370.  
  3371.  
  3372. function FindNearestHead(Position, Distance, SinglePlayer)
  3373. if SinglePlayer then
  3374. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3375. end
  3376. local List = {}
  3377. for i, v in pairs(workspace:GetChildren()) do
  3378. if v:IsA("Model") then
  3379. if v:findFirstChild("Head") then
  3380. if v ~= Character then
  3381. if (v.Head.Position - Position).magnitude <= Distance then
  3382. table.insert(List, v)
  3383. end
  3384. end
  3385. end
  3386. end
  3387. end
  3388. return List
  3389. end
  3390.  
  3391. function FaceMouse()
  3392. Cam = workspace.CurrentCamera
  3393. return {
  3394. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3395. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3396. }
  3397. end
  3398.  
  3399. function FaceMouse2()
  3400. Cam = workspace.CurrentCamera
  3401. return {
  3402. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3403. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3404. }
  3405. end
  3406.  
  3407. local ModeOfGlitch = 1
  3408. -- Functions are ready.
  3409. local storehumanoidWS = 16
  3410.  
  3411. function CorruptBlink()
  3412. for i = 0, 14 do
  3413. 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)
  3414. end
  3415. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3416. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3417. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3418. CameraEnshaking(2,10)
  3419. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3420. if v:FindFirstChild('Head') then
  3421. dmg(v)
  3422. end
  3423. end
  3424. for i = 0, 14 do
  3425. 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)
  3426. end
  3427. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3428. end
  3429. function PureBomb()
  3430. attack = true
  3431. hum.WalkSpeed = 0
  3432. local orb = Instance.new("Part", char)
  3433. orb.Anchored = true
  3434. orb.BrickColor = BrickColor.new("Toothpaste")
  3435. orb.CanCollide = false
  3436. orb.FormFactor = 3
  3437. orb.Name = "Ring"
  3438. orb.Material = "Neon"
  3439. orb.Size = Vector3.new(1, 1, 1)
  3440. orb.Transparency = 0
  3441. orb.TopSurface = 0
  3442. orb.BottomSurface = 0
  3443. local orbm = Instance.new("SpecialMesh", orb)
  3444. orbm.MeshType = "Sphere"
  3445. orbm.Name = "SizeMesh"
  3446. orbm.Scale = vt(0,0,0)
  3447. local scaled = 0.1
  3448. local posid = 0
  3449. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3450. for i = 0, 5, 0.1 do
  3451. swait()
  3452. scaled = scaled - 0.001
  3453. posid = posid - scaled
  3454. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3455. local scaled = 0.1
  3456. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3457. 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)
  3458. 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)
  3459. 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)
  3460. 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)
  3461. 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)
  3462. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3463. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3464. 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)
  3465. end
  3466. for i = 0, 2, 0.1 do
  3467. swait()
  3468. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3469. 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)
  3470. 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)
  3471. 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)
  3472. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3473. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3474. 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)
  3475. end
  3476. coroutine.resume(coroutine.create(function()
  3477. orb.Anchored = false
  3478. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3479. local a = Instance.new("Part",workspace)
  3480. a.Name = "Direction"
  3481. a.Anchored = true
  3482. a.BrickColor = bc("Bright red")
  3483. a.Material = "Neon"
  3484. a.Transparency = 1
  3485. a.CanCollide = false
  3486. local ray = Ray.new(
  3487. orb.CFrame.p, -- origin
  3488. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3489. )
  3490. local ignore = orb
  3491. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3492. a.BottomSurface = 10
  3493. a.TopSurface = 10
  3494. local distance = (orb.CFrame.p - position).magnitude
  3495. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3496. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3497. orb.CFrame = a.CFrame
  3498. a:Destroy()
  3499. local bv = Instance.new("BodyVelocity")
  3500. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3501. bv.velocity = orb.CFrame.lookVector*125
  3502. bv.Parent = orb
  3503. local hitted = false
  3504. game:GetService("Debris"):AddItem(orb, 15)
  3505. wait()
  3506. local hit =orb.Touched:connect(function(hit)
  3507. if hitted == false then
  3508. hitted = true
  3509. CameraEnshaking(10,2.5)
  3510. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3511. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3512. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3513. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3514. for i = 0, 49 do
  3515. 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)
  3516. end
  3517. for i = 0, 9 do
  3518. 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)
  3519. 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)
  3520. end
  3521. orb.Anchored = true
  3522. orb.Transparency = 1
  3523. wait(8)
  3524. orb:Destroy()
  3525. end
  3526. end)
  3527. end))
  3528. for i = 0, 1, 0.1 do
  3529. swait()
  3530. 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)
  3531. 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)
  3532. 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)
  3533. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3534. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3535. 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)
  3536. end
  3537. hum.WalkSpeed = storehumanoidWS
  3538. attack = false
  3539. end
  3540.  
  3541. function BanishingOrb()
  3542. attack = true
  3543. hum.WalkSpeed = 0
  3544. local radm = math.random(1,3)
  3545. if radm == 1 then
  3546. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3547. elseif radm == 2 then
  3548. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3549. elseif radm == 3 then
  3550. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3551. end
  3552. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3553. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3554. local orb = Instance.new("Part", char)
  3555. orb.Anchored = true
  3556. orb.BrickColor = BrickColor.new("Lime green")
  3557. orb.CanCollide = false
  3558. orb.FormFactor = 3
  3559. orb.Name = "Ring"
  3560. orb.Material = "Neon"
  3561. orb.Size = Vector3.new(1, 1, 1)
  3562. orb.Transparency = 0
  3563. orb.TopSurface = 0
  3564. orb.BottomSurface = 0
  3565. local orbm = Instance.new("SpecialMesh", orb)
  3566. orbm.MeshType = "Sphere"
  3567. orbm.Name = "SizeMesh"
  3568. orbm.Scale = vt(0,0,0)
  3569. local scaled = 0.1
  3570. local posid = 0
  3571. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3572. for i = 0, 5, 0.1 do
  3573. swait()
  3574. scaled = scaled - 0.001
  3575. posid = posid - scaled
  3576. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3577. local scaled = 0.1
  3578. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3579. 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)
  3580. 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)
  3581. 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)
  3582. 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)
  3583. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3584. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3585. 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)
  3586. end
  3587. for i = 0, 2, 0.1 do
  3588. swait()
  3589. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3590. 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)
  3591. 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)
  3592. 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)
  3593. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3594. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3595. 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)
  3596. end
  3597. coroutine.resume(coroutine.create(function()
  3598. orb.Anchored = false
  3599. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3600. local a = Instance.new("Part",workspace)
  3601. a.Name = "Direction"
  3602. a.Anchored = true
  3603. a.BrickColor = bc("Lime green")
  3604. a.Material = "Neon"
  3605. a.Transparency = 1
  3606. a.CanCollide = false
  3607. local ray = Ray.new(
  3608. orb.CFrame.p, -- origin
  3609. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3610. )
  3611. local ignore = orb
  3612. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3613. a.BottomSurface = 10
  3614. a.TopSurface = 10
  3615. local distance = (orb.CFrame.p - position).magnitude
  3616. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3617. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3618. orb.CFrame = a.CFrame
  3619. a:Destroy()
  3620. local bv = Instance.new("BodyVelocity")
  3621. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3622. bv.velocity = orb.CFrame.lookVector*0
  3623. bv.Parent = orb
  3624. local hitted = false
  3625. local rate = 0
  3626. coroutine.resume(coroutine.create(function()
  3627. for i = 0, 24 do
  3628. wait(0.1)
  3629. rate = rate + 0.25
  3630. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3631. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3632. if v:FindFirstChild('Head') then
  3633. dmg(v)
  3634. end
  3635. end
  3636. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3637. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3638. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3639. end
  3640. orb.Anchored = true
  3641. orb.Transparency = 1
  3642. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3643. if v:FindFirstChild('Head') then
  3644. dmg(v)
  3645. end
  3646. end
  3647. local eff = Instance.new("ParticleEmitter",orb)
  3648. eff.Texture = "rbxassetid://296874871"
  3649. eff.LightEmission = 0.95
  3650. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3651. eff.Rate = 1000000000
  3652. eff.Lifetime = NumberRange.new(3)
  3653. 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)})
  3654. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3655. eff.Speed = NumberRange.new(30)
  3656. eff.Acceleration = vt(0,-15,0)
  3657. eff.Rotation = NumberRange.new(-500,500)
  3658. eff.VelocitySpread = 100000
  3659. eff.RotSpeed = NumberRange.new(-500,500)
  3660. coroutine.resume(coroutine.create(function()
  3661. wait(0.6)
  3662. eff.Enabled = false
  3663. end))
  3664. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3665. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3666. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3667. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3668. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3669. game:GetService("Debris"):AddItem(orb, 15)
  3670. end))
  3671. end))
  3672. for i = 0, 1, 0.1 do
  3673. swait()
  3674. 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)
  3675. 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)
  3676. 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)
  3677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3678. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3679. 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)
  3680. end
  3681. hum.WalkSpeed = storehumanoidWS
  3682. attack = false
  3683. end
  3684.  
  3685.  
  3686. function ChaosGroundStrike()
  3687. attack = true
  3688. for i = 0, 2, 0.1 do
  3689. swait()
  3690. 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)
  3691. 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)
  3692. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3693. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3694. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3695. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3696. end
  3697. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3698. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3699. CameraEnshaking(4,12)
  3700. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3701. if v:FindFirstChild('Head') then
  3702. dmg(v)
  3703. end
  3704. end
  3705. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3706. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3707. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3708. for i = 0, 2, 0.1 do
  3709. swait()
  3710. 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)
  3711. 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)
  3712. 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)
  3713. 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)
  3714. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3715. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3716. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3717. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3718. end
  3719. attack = false
  3720. end
  3721.  
  3722.  
  3723.  
  3724. function Starfall()
  3725. attack = true
  3726. hum.WalkSpeed = 0
  3727. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3728. for i = 0, 5, 0.1 do
  3729. swait()
  3730. 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)
  3731. 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)
  3732. 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)
  3733. 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)
  3734. 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)
  3735. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3736. 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)
  3737. 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)
  3738. end
  3739. local Overed = false
  3740. CameraEnshaking(2,20)
  3741. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3742. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3743. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3744. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3745. local orb = Instance.new("Part", char)
  3746. orb.Anchored = true
  3747. orb.BrickColor = BrickColor.new("Toothpaste")
  3748. orb.CanCollide = false
  3749. orb.FormFactor = 3
  3750. orb.Name = "Remenant"
  3751. orb.Material = "Neon"
  3752. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3753. orb.Size = Vector3.new(1, 1, 1)
  3754. orb.Transparency = 1
  3755. orb.TopSurface = 0
  3756. orb.BottomSurface = 0
  3757. hum.WalkSpeed = storehumanoidWS
  3758. coroutine.resume(coroutine.create(function()
  3759. for i = 0, 9 do
  3760. swait(10)
  3761. local lb = Instance.new("Part")
  3762. lb.Color = MAINRUINCOLOR.Color
  3763. lb.CanCollide = false
  3764. lb.Material = "Neon"
  3765. lb.Anchored = true
  3766. lb.TopSurface = 0
  3767. lb.BottomSurface = 0
  3768. lb.Transparency = 0
  3769. lb.Size = vt(1,1,1)
  3770. 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)))
  3771. lb.Anchored = false
  3772. lb.Parent = char
  3773. local thingery = Instance.new("SpecialMesh",lb)
  3774. thingery.MeshType = "Sphere"
  3775. thingery.Scale = vt(20,20,20)
  3776. game:GetService("Debris"):AddItem(lb, 10)
  3777. local bv = Instance.new("BodyVelocity")
  3778. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3779. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3780. bv.Parent = lb
  3781. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3782. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3783. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3784. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3785. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3786. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3787. local hitted = false
  3788. coroutine.resume(coroutine.create(function()
  3789. while true do
  3790. swait(1)
  3791. if lb.Parent ~= nil and hitted == false then
  3792. 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)
  3793. elseif lb.Parent == nil then
  3794. break
  3795. end
  3796. end
  3797. end))
  3798.  
  3799. game:GetService("Debris"):AddItem(a, 0.1)
  3800.  
  3801. coroutine.resume(coroutine.create(function()
  3802. swait(1)
  3803. lb.Touched:connect(function(hit)
  3804. if hitted == false then
  3805. hitted = true
  3806. lb.Transparency = 1
  3807. lb.Anchored = true
  3808. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3809. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3810. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3811. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3812. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3813. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3814. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3815. CameraEnshaking(1,5)
  3816. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3817. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3818. for i = 0, 9 do
  3819. 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)
  3820. end
  3821. for i = 0, 49 do
  3822. swait()
  3823. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3824. 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)
  3825. end
  3826. end
  3827. end)
  3828. end))
  3829. end
  3830. Overed = true
  3831. orb:Destroy()
  3832. end))
  3833.  
  3834. attack = false
  3835. end
  3836.  
  3837. function StarfallEX()
  3838. attack = true
  3839. hum.WalkSpeed = 0
  3840. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3841. for i = 0, 10, 0.1 do
  3842. swait()
  3843. 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)
  3844. 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)
  3845. 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)
  3846. 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)
  3847. 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)
  3848. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3849. 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)
  3850. 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)
  3851. end
  3852. local Overed = false
  3853. CameraEnshaking(2,20)
  3854. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3855. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3856. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3857. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3858. local orb = Instance.new("Part", char)
  3859. orb.Anchored = true
  3860. orb.BrickColor = BrickColor.new("Toothpaste")
  3861. orb.CanCollide = false
  3862. orb.FormFactor = 3
  3863. orb.Name = "Remenant"
  3864. orb.Material = "Neon"
  3865. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3866. orb.Size = Vector3.new(1, 1, 1)
  3867. orb.Transparency = 1
  3868. orb.TopSurface = 0
  3869. orb.BottomSurface = 0
  3870. hum.WalkSpeed = storehumanoidWS
  3871. coroutine.resume(coroutine.create(function()
  3872. for i = 0, 4 do
  3873. swait(15)
  3874. local lb = Instance.new("Part")
  3875. lb.Color = MAINRUINCOLOR.Color
  3876. lb.CanCollide = false
  3877. lb.Material = "Neon"
  3878. lb.Anchored = true
  3879. lb.TopSurface = 0
  3880. lb.BottomSurface = 0
  3881. lb.Transparency = 0
  3882. lb.Size = vt(1,1,1)
  3883. 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)))
  3884. lb.Anchored = false
  3885. lb.Parent = char
  3886. local thingery = Instance.new("SpecialMesh",lb)
  3887. thingery.MeshType = "Sphere"
  3888. thingery.Scale = vt(50,50,50)
  3889. game:GetService("Debris"):AddItem(lb, 10)
  3890. local bv = Instance.new("BodyVelocity")
  3891. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3892. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3893. bv.Parent = lb
  3894. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3895. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3896. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3897. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3898. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3899. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3900. local hitted = false
  3901. coroutine.resume(coroutine.create(function()
  3902. while true do
  3903. swait(1)
  3904. if lb.Parent ~= nil and hitted == false then
  3905. 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)
  3906. elseif lb.Parent == nil then
  3907. break
  3908. end
  3909. end
  3910. end))
  3911.  
  3912. game:GetService("Debris"):AddItem(a, 0.1)
  3913.  
  3914. coroutine.resume(coroutine.create(function()
  3915. swait(1)
  3916. lb.Touched:connect(function(hit)
  3917. if hitted == false then
  3918. hitted = true
  3919. lb.Transparency = 1
  3920. lb.Anchored = true
  3921. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3922. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3923. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3924. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3925. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3926. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3927. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3928. CameraEnshaking(1,5)
  3929. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3930. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3931. for i = 0, 9 do
  3932. 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)
  3933. end
  3934. for i = 0, 99 do
  3935. swait()
  3936. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3937. 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)
  3938. end
  3939. end
  3940. end)
  3941. end))
  3942. end
  3943. Overed = true
  3944. orb:Destroy()
  3945. end))
  3946.  
  3947. attack = false
  3948. end
  3949.  
  3950. function DivineBlast()
  3951. attack = true
  3952. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3953. hum.WalkSpeed = 0
  3954. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3955. elocacenter.Anchored = true
  3956. elocacenter.CFrame = sorb.CFrame
  3957. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3958. eloca1.Anchored = true
  3959. eloca1.CFrame = elocacenter.CFrame
  3960. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3961. eloca2.Anchored = true
  3962. eloca2.CFrame = elocacenter.CFrame
  3963. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3964. eloca3.Anchored = true
  3965. eloca3.CFrame = elocacenter.CFrame
  3966. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3967. eloca4.Anchored = true
  3968. eloca4.CFrame = elocacenter.CFrame
  3969. local lookavec = 0
  3970. local speeds = 0
  3971. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3972. for i = 0, 3, 0.1 do
  3973. swait()
  3974. ---
  3975. lookavec = lookavec + 0.1
  3976. speeds = speeds + 10
  3977. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3978. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3979. 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)
  3980.  
  3981. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3982. 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)
  3983.  
  3984. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3985. 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)
  3986.  
  3987. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3988. 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)
  3989. ---
  3990. root.CFrame = FaceMouse()[1]
  3991. 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)
  3992. 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)
  3993. 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)
  3994. 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)
  3995. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3996. 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)
  3997. end
  3998. for i = 0, 3, 0.1 do
  3999. swait()
  4000. ---
  4001. speeds = speeds + 10
  4002. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4003. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4004. 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)
  4005.  
  4006. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4007. 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)
  4008.  
  4009. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4010. 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)
  4011.  
  4012. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4013. 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)
  4014. ---
  4015. root.CFrame = FaceMouse()[1]
  4016. 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)
  4017. 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)
  4018. 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)
  4019. 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)
  4020. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4021. 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)
  4022. end
  4023. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4024. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4025. for i = 0, 3, 0.1 do
  4026. swait()
  4027. ---
  4028. speeds = speeds + 10
  4029. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4030. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4031. 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)
  4032.  
  4033. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4034. 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)
  4035.  
  4036. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4037. 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)
  4038.  
  4039. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4040. 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)
  4041. ---
  4042. root.CFrame = FaceMouse()[1]
  4043. 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)
  4044. 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)
  4045. 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)
  4046. 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)
  4047. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4048. 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)
  4049. end
  4050. coroutine.resume(coroutine.create(function()
  4051. local a = Instance.new("Part",Character)
  4052. a.Name = "Direction"
  4053. a.Anchored = true
  4054. a.BrickColor = bc("White")
  4055. a.Material = "Neon"
  4056. a.Transparency = 0
  4057. a.Shape = "Cylinder"
  4058. a.CanCollide = false
  4059. local a2 = Instance.new("Part",Character)
  4060. a2.Name = "Direction"
  4061. a2.Anchored = true
  4062. a2.BrickColor = bc("Bright yellow")
  4063. a2.Material = "Neon"
  4064. a2.Transparency = 0
  4065. a2.Shape = "Cylinder"
  4066. a2.CanCollide = false
  4067. local b = Instance.new("Part",Character)
  4068. b.Name = "HitDirect"
  4069. b.Anchored = true
  4070. b.BrickColor = bc("Cool yellow")
  4071. b.Material = "Neon"
  4072. b.Transparency = 1
  4073. b.CanCollide = false
  4074. local ray = Ray.new(
  4075. elocacenter.CFrame.p, -- origin
  4076. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4077. )
  4078. local ignore = Character
  4079. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4080. a.BottomSurface = 10
  4081. a.TopSurface = 10
  4082. a2.BottomSurface = 10
  4083. a2.TopSurface = 10
  4084. local distance = (elocacenter.CFrame.p - position).magnitude
  4085. a.Size = Vector3.new(distance, 1, 1)
  4086. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4087. a2.Size = Vector3.new(distance, 1, 1)
  4088. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4089. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4090. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4091. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4092. game:GetService("Debris"):AddItem(a, 10)
  4093. game:GetService("Debris"):AddItem(a2, 10)
  4094. game:GetService("Debris"):AddItem(b, 10)
  4095. local eff = Instance.new("ParticleEmitter",b)
  4096. eff.Texture = "rbxassetid://2273224484"
  4097. eff.LightEmission = 1
  4098. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4099. eff.Rate = 500000
  4100. eff.Lifetime = NumberRange.new(0.5,2)
  4101. 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)})
  4102. 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)})
  4103. eff.Speed = NumberRange.new(20,250)
  4104. eff.Drag = 5
  4105. eff.Rotation = NumberRange.new(-500,500)
  4106. eff.VelocitySpread = 9000
  4107. eff.RotSpeed = NumberRange.new(-50,50)
  4108. coroutine.resume(coroutine.create(function()
  4109. wait(0.25)
  4110. eff.Enabled = false
  4111. end))
  4112. local msh = Instance.new("SpecialMesh",a)
  4113. msh.MeshType = "Cylinder"
  4114. msh.Scale = vt(1,2,2)
  4115. local msh2 = Instance.new("SpecialMesh",a2)
  4116. msh2.MeshType = "Cylinder"
  4117. msh2.Scale = vt(1,2.5,2.5)
  4118. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4119. coroutine.resume(coroutine.create(function()
  4120. for i = 0,10,0.1 do
  4121. swait()
  4122. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4123. a.Transparency = a.Transparency + 0.025
  4124. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4125. a2.Transparency = a2.Transparency + 0.05
  4126. end
  4127. a:Destroy()
  4128. a2:Destroy()
  4129. end))
  4130. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4131. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4132. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4133. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4134. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4135. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4136. MagniDamage(b, 25, 40,65, 0, "Normal")
  4137. for i = 0, 49 do
  4138. 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)
  4139. 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)
  4140. end
  4141. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4142. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4143. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4144. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4145. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4146. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4147. end))
  4148. game:GetService("Debris"):AddItem(elocacenter, 5)
  4149. hum.WalkSpeed = storehumanoidWS
  4150. attack = false
  4151. end
  4152.  
  4153. function StarDivision()
  4154. attack = true
  4155. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4156. for i = 0, 2, 0.1 do
  4157. swait()
  4158. 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)
  4159. 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)
  4160. 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)
  4161. 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)
  4162. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4163. 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)
  4164. end
  4165. local orb = Instance.new("Part", char)
  4166. orb.BrickColor = MAINRUINCOLOR
  4167. orb.CanCollide = false
  4168. orb.FormFactor = 3
  4169. orb.Name = "Ring"
  4170. orb.Material = "Neon"
  4171. orb.Size = Vector3.new(1, 1, 1)
  4172. orb.Transparency = 0
  4173. orb.TopSurface = 0
  4174. orb.BottomSurface = 0
  4175. local orbm = Instance.new("SpecialMesh", orb)
  4176. orbm.MeshType = "Sphere"
  4177. orbm.Name = "SizeMesh"
  4178. orbm.Scale = vt(2,2,2)
  4179. local a = Instance.new("Part",workspace)
  4180. a.Name = "Direction"
  4181. a.Anchored = true
  4182. a.BrickColor = bc("Bright red")
  4183. a.Material = "Neon"
  4184. a.Transparency = 1
  4185. a.CanCollide = false
  4186. local ray = Ray.new(
  4187. sorb.CFrame.p, -- origin
  4188. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4189. )
  4190. local ignore = sorb
  4191. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4192. a.BottomSurface = 10
  4193. a.TopSurface = 10
  4194. local distance = (sorb.CFrame.p - position).magnitude
  4195. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4196. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4197. orb.CFrame = a.CFrame
  4198. a:Destroy()
  4199. local bv = Instance.new("BodyVelocity")
  4200. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4201. bv.velocity = orb.CFrame.lookVector*100
  4202. bv.Parent = orb
  4203. local hitted = false
  4204. game:GetService("Debris"):AddItem(orb, 10)
  4205. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4206. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4207. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4208. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4209. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4210. coroutine.resume(coroutine.create(function()
  4211. while true do
  4212. swait(1)
  4213. if orb.Parent ~= nil and hitted == false then
  4214. 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)
  4215. elseif orb.Parent == nil then
  4216. break
  4217. end
  4218. end
  4219. end))
  4220. coroutine.resume(coroutine.create(function()
  4221. swait(1)
  4222. orb.Touched:connect(function(hit)
  4223. if hitted == false then
  4224. hitted = true
  4225. game:GetService("Debris"):AddItem(orb, 5)
  4226. orb.Transparency = 1
  4227. orb.Anchored = true
  4228. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4229. elocacenter.Anchored = true
  4230. elocacenter.CFrame = orb.CFrame
  4231. elocacenter.Orientation = vt(0,0,0)
  4232. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4233. eloca1.Anchored = true
  4234. eloca1.CFrame = elocacenter.CFrame
  4235. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4236. eloca2.Anchored = true
  4237. eloca2.CFrame = elocacenter.CFrame
  4238. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4239. eloca3.Anchored = true
  4240. eloca3.CFrame = elocacenter.CFrame
  4241. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4242. eloca4.Anchored = true
  4243. eloca4.CFrame = elocacenter.CFrame
  4244. local lookavec = 0
  4245. local speeds = 0
  4246. CameraEnshaking(1,1)
  4247. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4248. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4249. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4250. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4251. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4252. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4253. for i = 0, 99 do
  4254. swait()
  4255. lookavec = lookavec + 1
  4256. speeds = speeds + 0.1
  4257. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4258. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4259. 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)
  4260.  
  4261. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4262. 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)
  4263.  
  4264. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4265. 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)
  4266.  
  4267. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4268. 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)
  4269. end
  4270.  
  4271. for i = 0, 149 do
  4272. swait()
  4273. speeds = speeds + 0.1
  4274. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4275. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4276. 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)
  4277.  
  4278. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4279. 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)
  4280.  
  4281. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4282. 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)
  4283.  
  4284. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4285. 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)
  4286. end
  4287. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4288. if v:FindFirstChild('Head') then
  4289. dmg(v)
  4290. end
  4291. end
  4292. CameraEnshaking(7,30)
  4293. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4294. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4295. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4296. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4297. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4298. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4299. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4300. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4301. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4302. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4303. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4304. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4305. for i = 0, 24 do
  4306. 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)
  4307. 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)
  4308. 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)
  4309. 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)
  4310. end
  4311. coroutine.resume(coroutine.create(function()
  4312. for i = 0, 499 do
  4313. swait(1)
  4314. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4315. 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)
  4316. end
  4317. elocacenter:Destroy()
  4318. eloca1:Destroy()
  4319. eloca2:Destroy()
  4320. eloca3:Destroy()
  4321. eloca4:Destroy()
  4322. end))
  4323. end
  4324. end)
  4325. end))
  4326. attack = false
  4327. end
  4328.  
  4329.  
  4330. function THE_TRUE_POWER_OF_VIOLENCE()
  4331. attack = true
  4332. hum.WalkSpeed = 0
  4333. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4334. for i = 0, 10, 0.1 do
  4335. swait()
  4336. 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)
  4337. 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)
  4338. 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)
  4339. 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)
  4340. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4341. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4342. 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)
  4343. end
  4344. local orb = Instance.new("Part", char)
  4345. orb.BrickColor = MAINRUINCOLOR
  4346. orb.CanCollide = false
  4347. orb.FormFactor = 3
  4348. orb.Name = "Ring"
  4349. orb.Material = "Neon"
  4350. orb.Size = Vector3.new(1, 1, 1)
  4351. orb.Transparency = 0
  4352. orb.TopSurface = 0
  4353. orb.BottomSurface = 0
  4354. orb.CFrame = sorb.CFrame
  4355. local orbm = Instance.new("SpecialMesh", orb)
  4356. orbm.MeshType = "Sphere"
  4357. orbm.Name = "SizeMesh"
  4358. orbm.Scale = vt(0,0,0)
  4359. local sbs = Instance.new("BodyPosition", orb)
  4360. sbs.P = 3000
  4361. sbs.D = 1000
  4362. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4363. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4364. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4365. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4366. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4367. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4368. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4369. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4370. for i = 0, 10, 0.1 do
  4371. swait()
  4372. 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)
  4373. 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)
  4374. 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)
  4375. 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)
  4376. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4377. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4378. 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)
  4379. end
  4380. orb.Anchored = true
  4381. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4382. elocacenter.Anchored = true
  4383. elocacenter.CFrame = orb.CFrame
  4384. elocacenter.Orientation = vt(0,0,0)
  4385. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4386. eloca1.Anchored = true
  4387. eloca1.CFrame = elocacenter.CFrame
  4388. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4389. eloca2.Anchored = true
  4390. eloca2.CFrame = elocacenter.CFrame
  4391. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4392. eloca3.Anchored = true
  4393. eloca3.CFrame = elocacenter.CFrame
  4394. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4395. eloca4.Anchored = true
  4396. eloca4.CFrame = elocacenter.CFrame
  4397. local lookavec = 0
  4398. local speeds = 0
  4399. CameraEnshaking(1,1)
  4400. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4401. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4402. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4403. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4404. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4405. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4406. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4407. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4408. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4409. for i = 0, 99 do
  4410. swait()
  4411. lookavec = lookavec + 2.5
  4412. speeds = speeds + 0.25
  4413. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4414. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4415. 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)
  4416.  
  4417. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4418. 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)
  4419.  
  4420. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4421. 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)
  4422.  
  4423. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4424. 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)
  4425. end
  4426.  
  4427. for i = 0, 149 do
  4428. swait()
  4429. speeds = speeds + 0.25
  4430. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4431. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4432. 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)
  4433.  
  4434. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4435. 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)
  4436.  
  4437. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4438. 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)
  4439.  
  4440. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4441. 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)
  4442. end
  4443. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4444. for i = 0, 99 do
  4445. swait()
  4446. lookavec = lookavec - 2.5
  4447. speeds = speeds + 0.25
  4448. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4449. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4450. 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)
  4451.  
  4452. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4453. 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)
  4454.  
  4455. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4456. 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)
  4457.  
  4458. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4459. 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)
  4460. end
  4461. local scaled = 0.1*75
  4462. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4463. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4464. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4465. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4466. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4467. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4468. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4469. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4471. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4472. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4473.  
  4474. for i = 0, 10, 0.1 do
  4475. swait()
  4476. scaled = scaled - 0.001*75
  4477. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4478. 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)
  4479. 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)
  4480. 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)
  4481. 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)
  4482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4483. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4484. 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)
  4485. end
  4486. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4487. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4488. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4489. for x = 0, 4 do
  4490. for i = 0, 9 do
  4491. 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)
  4492. end
  4493. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4494. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4495. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4496. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4497. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4498. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4499. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4500. for i = 0, 5, 0.1 do
  4501. swait()
  4502. 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)
  4503. 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)
  4504. 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)
  4505. 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)
  4506. 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)
  4507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4508. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4509. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4510. end
  4511. end
  4512. local speedearn = 0
  4513. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4514. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4515. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4516. for i = 0, 30, 0.1 do
  4517. swait()
  4518. scaled = scaled - 0.001*75/10
  4519. speedearn = speedearn + 0.5
  4520. for i = 0, 4 do
  4521. 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)
  4522. end
  4523. 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)
  4524. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4525. 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)
  4526. 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)
  4527. 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)
  4528. 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)
  4529. 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)
  4530. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4531. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4532. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4533. end
  4534. orb.Transparency = 1
  4535. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4536. if v:FindFirstChild('Head') then
  4537. dmg(v)
  4538. end
  4539. end
  4540. CameraEnshaking(7,30)
  4541. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4542. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4543. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4544. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4545. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4546. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4547. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4548. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4549. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4550. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4551. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4552. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4553. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4554. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4555. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4556. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4557. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4558. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4559. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4560. for i = 0, 99 do
  4561. 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)
  4562. 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)
  4563. end
  4564. for i = 0, 24 do
  4565. 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)
  4566. 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)
  4567. 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)
  4568. 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)
  4569. 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)
  4570. end
  4571. game:GetService("Debris"):AddItem(orb, 10)
  4572. hum.WalkSpeed = storehumanoidWS
  4573. attack = false
  4574. end
  4575.  
  4576.  
  4577. function ViolentRing()
  4578. attack = true
  4579. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4580. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4581. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4582. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4583. for i = 0, 2, 0.1 do
  4584. swait()
  4585. local snap = math.random(1,10)
  4586. if snap == 1 then
  4587. 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)
  4588. end
  4589. 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)
  4590. 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)
  4591. 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)
  4592. 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)
  4593. 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)
  4594. 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)
  4595. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4596. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4597. 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)
  4598. RootPart.CFrame = FaceMouse()[1]
  4599. end
  4600. local orb = Instance.new("Part", char)
  4601. orb.BrickColor = MAINRUINCOLOR
  4602. orb.CanCollide = false
  4603. orb.FormFactor = 3
  4604. orb.Name = "Ring"
  4605. orb.Material = "Neon"
  4606. orb.Size = Vector3.new(1, 1, 1)
  4607. orb.Transparency = 0
  4608. orb.TopSurface = 0
  4609. orb.BottomSurface = 0
  4610. local orbm = Instance.new("SpecialMesh", orb)
  4611. orbm.MeshType = "Sphere"
  4612. orbm.Name = "SizeMesh"
  4613. orbm.Scale = vt(2,2,2)
  4614. orb.CFrame = mouse.Hit
  4615. local bv = Instance.new("BodyVelocity")
  4616. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4617. bv.velocity = orb.CFrame.lookVector*100
  4618. bv.Parent = orb
  4619. local hitted = false
  4620. coroutine.resume(coroutine.create(function()
  4621. game:GetService("Debris"):AddItem(orb, 5)
  4622. orb.Transparency = 1
  4623. orb.Anchored = true
  4624. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4625. elocacenter.Anchored = true
  4626. elocacenter.CFrame = orb.CFrame
  4627. elocacenter.Orientation = vt(0,0,0)
  4628. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4629. eloca1.Anchored = true
  4630. eloca1.CFrame = elocacenter.CFrame
  4631. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4632. eloca2.Anchored = true
  4633. eloca2.CFrame = elocacenter.CFrame
  4634. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4635. eloca3.Anchored = true
  4636. eloca3.CFrame = elocacenter.CFrame
  4637. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4638. eloca4.Anchored = true
  4639. eloca4.CFrame = elocacenter.CFrame
  4640. local lookavec = 0
  4641. local speeds = 0
  4642. CameraEnshaking(1,1)
  4643. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4644. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4645. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4646. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4647. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4648. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4649. for i = 0, 24 do
  4650. swait()
  4651. lookavec = lookavec + 3.5
  4652. speeds = speeds + 1
  4653. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4654. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4655. 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)
  4656.  
  4657. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4658. 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)
  4659.  
  4660. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4661. 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)
  4662.  
  4663. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4664. 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)
  4665. end
  4666.  
  4667. local risen = 0
  4668. for i = 0, 49 do
  4669. swait()
  4670. risen = risen + 0.05
  4671. speeds = speeds + 0.1
  4672. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4673. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4674. 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)
  4675.  
  4676. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4677. 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)
  4678.  
  4679. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4680. 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)
  4681.  
  4682. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4683. 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)
  4684. end
  4685. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4686. if v:FindFirstChild('Head') then
  4687. dmg(v)
  4688. end
  4689. end
  4690. CameraEnshaking(4,10)
  4691. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4692. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4693. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4694. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4695. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4696. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4697. local eff = Instance.new("ParticleEmitter",elocacenter)
  4698. eff.Texture = "rbxassetid://2273224484"
  4699. eff.LightEmission = 1
  4700. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4701. eff.Rate = 1000000
  4702. eff.Lifetime = NumberRange.new(0.5,2)
  4703. 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)})
  4704. 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)})
  4705. eff.Speed = NumberRange.new(20,250)
  4706. eff.Drag = 5
  4707. eff.Rotation = NumberRange.new(-500,500)
  4708. eff.VelocitySpread = 5000000
  4709. eff.RotSpeed = NumberRange.new(-50,50)
  4710. coroutine.resume(coroutine.create(function()
  4711. wait(1)
  4712. eff.Enabled = false
  4713. end))
  4714. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4715. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4716. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4717. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4718. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4719. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4720. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4721. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4722. for i = 0, 24 do
  4723. 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)
  4724. 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)
  4725. 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)
  4726. 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)
  4727. end
  4728. coroutine.resume(coroutine.create(function()
  4729. wait(10)
  4730. elocacenter:Destroy()
  4731. eloca1:Destroy()
  4732. eloca2:Destroy()
  4733. eloca3:Destroy()
  4734. eloca4:Destroy()
  4735. end))
  4736. end))
  4737. attack = false
  4738. end
  4739.  
  4740. function UniversalCollapse()
  4741. attack = true
  4742. local speedearn = 0
  4743. hum.WalkSpeed = 0
  4744. local sbs = Instance.new("BodyPosition", root)
  4745. sbs.P = 3000
  4746. sbs.D = 1000
  4747. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4748. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4749. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4750. for i = 0, 85, 0.1 do
  4751. swait()
  4752. speedearn = speedearn + 0.1
  4753. 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)
  4754. 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)
  4755. 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)
  4756. 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)
  4757. 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)
  4758. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4759. 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)
  4760. 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)
  4761. 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)
  4762. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4763. 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)
  4764. 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)
  4765. end
  4766. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4767. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4768. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4769. for i = 0, 25, 0.1 do
  4770. swait()
  4771. speedearn = speedearn + 0.1
  4772. 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)
  4773. 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)
  4774. 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)
  4775. 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)
  4776. 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)
  4777. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4778. 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)
  4779. 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)
  4780. 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)
  4781. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4782. 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)
  4783. 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)
  4784. end
  4785. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4786. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4787. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4788. CameraEnshaking(5,50)
  4789. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4790. for i = 0, 2 do
  4791. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4792. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4793. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4794. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4795. end
  4796. for i = 0, 49 do
  4797. 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)
  4798. 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)
  4799. 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)
  4800. 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)
  4801. end
  4802. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4803. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4804. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4805. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4806. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4807. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4808. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4809. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4810. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4811. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4812. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4813. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4814. for i = 0, 99 do
  4815. 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)
  4816. 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)
  4817. end
  4818. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4819. if v:FindFirstChild('Head') then
  4820. dmg(v)
  4821. end
  4822. end
  4823. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4824. sbs:Destroy()
  4825. hum.WalkSpeed = storehumanoidWS
  4826. attack = false
  4827. end
  4828.  
  4829.  
  4830. function ChaosEND()
  4831. attack = true
  4832. local speedearn = 0
  4833. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4834. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4835. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4836. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4837. for i = 0, 15, 0.1 do
  4838. swait()
  4839. speedearn = speedearn + 0.25
  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))),25,25,10*speedearn,-0.25,BrickColor.random(),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))),25,25,10*speedearn,-0.25,BrickColor.random(),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))),25,25,10*speedearn,-0.25,BrickColor.random(),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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4844. 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)
  4845. 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)
  4846. 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)
  4847. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4848. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4849. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4850. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4851. end
  4852. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4853. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4854. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4855. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4856. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4857. CameraEnshaking(5,25)
  4858. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4859. if v:FindFirstChild('Head') then
  4860. dmg(v)
  4861. end
  4862. end
  4863. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4864. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4865. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4866. for i = 0, 3, 0.1 do
  4867. swait()
  4868. 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)
  4869. 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)
  4870. 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)
  4871. 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)
  4872. 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)
  4873. 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)
  4874. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4875. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4876. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4877. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4878. end
  4879. attack = false
  4880. end
  4881.  
  4882. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4883. local orb = Instance.new("Part", char)
  4884. orb.Anchored = true
  4885. orb.BrickColor = color
  4886. orb.CanCollide = false
  4887. orb.FormFactor = 3
  4888. orb.Name = "Ring"
  4889. orb.Material = "Neon"
  4890. orb.Size = Vector3.new(1, 1, 1)
  4891. orb.Transparency = 0
  4892. orb.TopSurface = 0
  4893. orb.BottomSurface = 0
  4894. local orbm = Instance.new("SpecialMesh", orb)
  4895. orbm.MeshType = "Sphere"
  4896. orb.CFrame = positted
  4897. orbm.Name = "SizeMesh"
  4898. orbm.Scale = vt(1,1,1)
  4899. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4900. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4901. --[[for i = 0, 2 do
  4902. 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)
  4903. end]]--
  4904. coroutine.resume(coroutine.create(function()
  4905. wait(timer)
  4906. CameraEnshaking(3,ShakePower)
  4907. orb.Transparency = 1
  4908. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4909. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4910. --[[for i = 0, 4 do
  4911. 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)
  4912. end]]--
  4913. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4914. wait(3)
  4915. orb:Destroy()
  4916. end))
  4917. end
  4918.  
  4919. function orb_spawn(positted,timer)
  4920. local randomcol = math.random(1,2)
  4921. local orb = Instance.new("Part", char)
  4922. orb.Anchored = true
  4923. if randomcol == 1 then
  4924. orb.BrickColor = BrickColor.new("White")
  4925. elseif randomcol == 2 then
  4926. orb.BrickColor = BrickColor.new("Really black")
  4927. end
  4928. orb.CanCollide = false
  4929. orb.FormFactor = 3
  4930. orb.Name = "Ring"
  4931. orb.Material = "Neon"
  4932. orb.Size = Vector3.new(1, 1, 1)
  4933. orb.Transparency = 0
  4934. orb.TopSurface = 0
  4935. orb.BottomSurface = 0
  4936. local orbm = Instance.new("SpecialMesh", orb)
  4937. orbm.MeshType = "Sphere"
  4938. orb.CFrame = positted
  4939. orbm.Name = "SizeMesh"
  4940. orbm.Scale = vt(1,1,1)
  4941. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4942. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4943. for i = 0, 2 do
  4944. 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)
  4945. end
  4946. coroutine.resume(coroutine.create(function()
  4947. wait(timer)
  4948. CameraEnshaking(3,2)
  4949. orb.Transparency = 1
  4950. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4951. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4952. for i = 0, 4 do
  4953. 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)
  4954. end
  4955. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4956. wait(3)
  4957. orb:Destroy()
  4958. end))
  4959. end
  4960.  
  4961. function scattercorrupt()
  4962. attack = true
  4963. hum.WalkSpeed = 0
  4964. for i = 0, 2, 0.1 do
  4965. swait()
  4966. 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)
  4967. 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)
  4968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4970. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4971. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4972. end
  4973. local rot = 0
  4974. local randomrotations = math.random(1,2)
  4975. local lookv = 2.5
  4976. local power = 7
  4977. local radm = math.random(1,3)
  4978. if radm == 1 then
  4979. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4980. elseif radm == 2 then
  4981. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4982. elseif radm == 3 then
  4983. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4984. end
  4985. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4986. for i = 0, 1, 0.1 do
  4987. swait()
  4988. 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)
  4989. 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)
  4990. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4991. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4992. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4993. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4994. end
  4995. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4996. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4997. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4998. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4999. for i = 0, 9 do
  5000. 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)
  5001. end
  5002. local hite = Instance.new("Part", char)
  5003. hite.Anchored = true
  5004. hite.CanCollide = false
  5005. hite.FormFactor = 3
  5006. hite.Name = "Ring"
  5007. hite.Material = "Neon"
  5008. hite.Size = Vector3.new(1, 1, 1)
  5009. hite.Transparency = 1
  5010. hite.TopSurface = 0
  5011. hite.BottomSurface = 0
  5012. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5013. local rem = Instance.new("Part", char)
  5014. rem.Anchored = true
  5015. rem.CanCollide = false
  5016. rem.FormFactor = 3
  5017. rem.Name = "Ring"
  5018. rem.Material = "Neon"
  5019. rem.Size = Vector3.new(1, 1, 1)
  5020. rem.Transparency = 1
  5021. rem.TopSurface = 0
  5022. rem.BottomSurface = 0
  5023. rem.CFrame = hite.CFrame
  5024. local rem2 = rem:Clone()
  5025. rem2.Parent = char
  5026. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5027. local rem3 = rem:Clone()
  5028. rem3.Parent = char
  5029. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5030. local rem4 = rem:Clone()
  5031. rem4.Parent = char
  5032. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5033. hite:Destroy()
  5034. coroutine.resume(coroutine.create(function()
  5035. for i = 0, 24 do
  5036. swait(1)
  5037. if randomrotations == 1 then
  5038. rot = rot + 1
  5039. elseif randomrotations == 2 then
  5040. rot = rot - 1
  5041. end
  5042. power = power + 0.5
  5043. lookv = lookv + 7.5
  5044. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5045. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5046. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5047. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5048. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5049. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5050. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5051. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5052. end
  5053. end))
  5054. wait(2)
  5055. hum.WalkSpeed = storehumanoidWS
  5056. attack = false
  5057. end
  5058. function yinyangi()
  5059. attack = true
  5060. for i = 0, 2, 0.1 do
  5061. swait()
  5062. 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)
  5063. 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)
  5064. 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)
  5065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5067. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5068. end
  5069. local bv = Instance.new("BodyVelocity")
  5070. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5071. bv.velocity = root.CFrame.lookVector*175
  5072. bv.Parent = root
  5073. for Rotations = 0, 9 do
  5074. for i = 0, 1, 0.5 do
  5075. swait()
  5076. bv.velocity = root.CFrame.lookVector*175
  5077. 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)
  5078. 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)
  5079. 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)
  5080. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5081. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5082. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5083. end
  5084. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5085. for i = 0, 1, 0.5 do
  5086. swait()
  5087. bv.velocity = root.CFrame.lookVector*175
  5088. 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)
  5089. 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)
  5090. 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)
  5091. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5092. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5093. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5094. end
  5095. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5096. for i = 0, 1, 0.5 do
  5097. swait()
  5098. bv.velocity = root.CFrame.lookVector*175
  5099. 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)
  5100. 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)
  5101. 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)
  5102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5103. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5104. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5105. end
  5106. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5107. for i = 0, 1, 0.5 do
  5108. swait()
  5109. bv.velocity = root.CFrame.lookVector*175
  5110. 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)
  5111. 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)
  5112. 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)
  5113. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5114. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5115. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5116. end
  5117. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5118. end
  5119. bv:Destroy()
  5120. attack = false
  5121. end
  5122.  
  5123. function createBGCircle(size,parent,color)
  5124. local bgui = Instance.new("BillboardGui",parent)
  5125. bgui.Size = UDim2.new(size, 0, size, 0)
  5126. local imgc = Instance.new("ImageLabel",bgui)
  5127. imgc.BackgroundTransparency = 1
  5128. imgc.ImageTransparency = 0
  5129. imgc.Size = UDim2.new(1,0,1,0)
  5130. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5131. imgc.ImageColor3 = color
  5132. return bgui,imgc
  5133. end
  5134.  
  5135. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5136. local bgui,imgc = createBGCircle(size,guipar,color)
  5137. bgui.AlwaysOnTop = true
  5138. imgc.Image = "rbxassetid://" ..img
  5139. local rrot = math.random(1,2)
  5140. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5141. coroutine.resume(coroutine.create(function()
  5142. for i = 0, 24*delay do
  5143. swait()
  5144. if rotationenabled == true then
  5145. if rrot == 1 then
  5146. imgc.Rotation = imgc.Rotation + rotsp
  5147. elseif rrot == 2 then
  5148. imgc.Rotation = imgc.Rotation - rotsp
  5149. end
  5150. end
  5151. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5152. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5153. end
  5154. bgui:Destroy()
  5155. end))
  5156. end
  5157. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5158. for i, v in pairs(mw2:GetChildren()) do
  5159. if v:IsA("Part") then
  5160. v.BrickColor = one
  5161. v.Material = "Neon"
  5162. end
  5163. end
  5164. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5165. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5166. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5167. tr1.Color = ColorSequence.new(one.Color)
  5168. tr2.Color = ColorSequence.new(one.Color)
  5169. tr3.Color = ColorSequence.new(one.Color)
  5170. for i, v in pairs(mw1:GetChildren()) do
  5171. if v:IsA("Part") then
  5172. if secondaryenabled == false then
  5173. v.Transparency = 1
  5174. elseif secondaryenabled == true then
  5175. v.Transparency = 0
  5176. end
  5177. v.BrickColor = two
  5178. v.Material = "Neon"
  5179. end
  5180. end
  5181. if secondaryenabled == false then
  5182. tl1.Enabled = false
  5183. tl2.Enabled = false
  5184. tl3.Enabled = false
  5185. elseif secondaryenabled == true then
  5186. tl1.Enabled = true
  5187. tl2.Enabled = true
  5188. tl3.Enabled = true
  5189. end
  5190. tl1.Color = ColorSequence.new(two.Color)
  5191. tl2.Color = ColorSequence.new(two.Color)
  5192. tl3.Color = ColorSequence.new(two.Color)
  5193. for i, v in pairs(m:GetChildren()) do
  5194. if v:IsA("Part") then
  5195. v.BrickColor = three
  5196. v.Material = "Ice"
  5197. end
  5198. end
  5199. for i, v in pairs(m2:GetChildren()) do
  5200. if v:IsA("Part") then
  5201. v.BrickColor = four
  5202. v.Material = "Ice"
  5203. end
  5204. end
  5205. for i, v in pairs(m3:GetChildren()) do
  5206. if v:IsA("Part") then
  5207. v.BrickColor = five
  5208. v.Material = "Neon"
  5209. end
  5210. end
  5211. for i, v in pairs(extrawingmod1:GetChildren()) do
  5212. if v:IsA("Part") then
  5213. v.Transparency = exonetran
  5214. v.BrickColor = exone
  5215. v.Material = "Neon"
  5216. end
  5217. end
  5218. for i, v in pairs(extrawingmod2:GetChildren()) do
  5219. if v:IsA("Part") then
  5220. v.Transparency = extwotran
  5221. v.BrickColor = extwo
  5222. v.Material = "Neon"
  5223. end
  5224. end
  5225. end
  5226.  
  5227.  
  5228. function normalmog()
  5229. attack = true
  5230. hum.WalkSpeed = 0
  5231. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5232. for i = 0,6,0.1 do
  5233. swait()
  5234. 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)
  5235. 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)
  5236. 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)
  5237. 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)
  5238. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5239. 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)
  5240. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5241. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5242. end
  5243. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5244. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5245. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5246. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5247. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5248. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5249. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5250. rainbowmode = false
  5251. chaosmode = false
  5252. ModeOfGlitch = 1
  5253. storehumanoidWS = 16
  5254. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5255. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5256. CameraEnshaking(5,2.5)
  5257. MAINRUINCOLOR = BrickColor.new("Really red")
  5258. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5259. for i = 0, 49 do
  5260. 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)
  5261. end
  5262. for i = 0, 24 do
  5263. 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)
  5264. 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"))
  5265. end
  5266. for i = 0,3,0.1 do
  5267. 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)
  5268. end
  5269. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5270. for i = 0,2,0.1 do
  5271. swait()
  5272. 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)
  5273. 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)
  5274. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5275. 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)
  5276. 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)
  5277. 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)
  5278. end
  5279. hum.WalkSpeed = storehumanoidWS
  5280. attack = false
  5281. end
  5282.  
  5283. function attackone()
  5284. attack = true
  5285. local keptcolor = MAINRUINCOLOR
  5286. for i = 0,1,0.1 do
  5287. swait()
  5288. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5289. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5290. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5291. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5292. 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)
  5293. 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)
  5294. end
  5295. local distlook = 5
  5296. coroutine.resume(coroutine.create(function()
  5297. for i = 0, 4 do
  5298. swait(2)
  5299. CameraEnshaking(2,3)
  5300. local hite = Instance.new("Part", char)
  5301. hite.Anchored = true
  5302. hite.CanCollide = false
  5303. hite.FormFactor = 3
  5304. hite.Name = "Ring"
  5305. hite.Material = "Neon"
  5306. hite.Size = Vector3.new(1, 1, 1)
  5307. hite.Transparency = 1
  5308. hite.TopSurface = 0
  5309. hite.BottomSurface = 0
  5310. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5311. 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)
  5312. 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)
  5313. 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)
  5314. 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)
  5315. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5316. for i = 0, 14 do
  5317. local rsiz = math.random(5,20)
  5318. 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)
  5319. end
  5320. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5321. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5322. game:GetService("Debris"):AddItem(hite, 5)
  5323. distlook = distlook + 10
  5324. end
  5325. end))
  5326. for i = 0,1,0.1 do
  5327. swait()
  5328. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5329. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5330. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5331. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5332. 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)
  5333. 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)
  5334. end
  5335. attack = false
  5336. end
  5337.  
  5338. function attacktwo()
  5339. attack = true
  5340. hum.WalkSpeed = 2
  5341. local keptcolor = MAINRUINCOLOR
  5342. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5343. 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)
  5344. 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)
  5345. for i = 0, 14 do
  5346. 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)
  5347. end
  5348. for i = 0,1,0.1 do
  5349. swait()
  5350. 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)
  5351. 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)
  5352. 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)
  5353. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5354. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5355. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5356. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5357. end
  5358. for i = 0, 1 do
  5359. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5360. for i = 0,1,0.6 do
  5361. swait()
  5362. 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)
  5363. 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"))
  5364. 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)
  5365. 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)
  5366. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5367. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5368. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5369. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5370. end
  5371. for i = 0,1,0.6 do
  5372. swait()
  5373. 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)
  5374. 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"))
  5375. 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)
  5376. 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)
  5377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5378. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5379. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5380. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5381. end
  5382. for i = 0,1,0.6 do
  5383. swait()
  5384. 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)
  5385. 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"))
  5386. 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)
  5387. 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)
  5388. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5389. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5390. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5391. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5392. end
  5393. for i = 0,1,0.6 do
  5394. swait()
  5395. 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)
  5396. 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"))
  5397. 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)
  5398. 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)
  5399. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5400. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5401. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5402. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5403. end
  5404. local rot = 0
  5405. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5406. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5407. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5408. CreateMesh(dis,"Sphere",10,1,10)
  5409. local at1 = Instance.new("Attachment",dis)
  5410. at1.Position = vt(-5,0,0)
  5411. local at2 = Instance.new("Attachment",dis)
  5412. at2.Position = vt(5,0,0)
  5413. local trl = Instance.new('Trail',wed)
  5414. trl.Attachment0 = at1
  5415. trl.Attachment1 = at2
  5416. trl.Texture = "rbxassetid://1049219073"
  5417. trl.LightEmission = 1
  5418. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5419. trl.Color = ColorSequence.new(dis.Color)
  5420. trl.Lifetime = 0.6
  5421. local a = Instance.new("Part",workspace)
  5422. a.Name = "Direction"
  5423. a.Anchored = true
  5424. a.BrickColor = bc("Bright red")
  5425. a.Material = "Neon"
  5426. a.Transparency = 1
  5427. a.CanCollide = false
  5428. local ray = Ray.new(
  5429. dis.CFrame.p, -- origin
  5430. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5431. )
  5432. local ignore = dis
  5433. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5434. a.BottomSurface = 10
  5435. a.TopSurface = 10
  5436. local distance = (dis.CFrame.p - position).magnitude
  5437. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5438. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5439. dis.CFrame = a.CFrame
  5440. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5441. a:Destroy()
  5442. local bv = Instance.new("BodyVelocity")
  5443. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5444. bv.velocity = dis.CFrame.lookVector*250
  5445. bv.Parent = dis
  5446. game:GetService("Debris"):AddItem(dis, 5)
  5447. local hitted = false
  5448. coroutine.resume(coroutine.create(function()
  5449. dis.Touched:connect(function(hit)
  5450. if hitted == false and hit.Parent ~= char then
  5451. hitted = true
  5452. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5453. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5454. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5455. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5456. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5457. coroutine.resume(coroutine.create(function()
  5458. for i = 0, 9 do
  5459. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5460. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5461. local at1 = Instance.new("Attachment",disr)
  5462. at1.Position = vt(-5,0,0)
  5463. local at2 = Instance.new("Attachment",disr)
  5464. at2.Position = vt(5,0,0)
  5465. local trl = Instance.new('Trail',disr)
  5466. trl.Attachment0 = at1
  5467. trl.FaceCamera = true
  5468. trl.Attachment1 = at2
  5469. trl.Texture = "rbxassetid://2342682798"
  5470. trl.LightEmission = 1
  5471. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5472. trl.Color = ColorSequence.new(keptcolor.Color)
  5473. trl.Lifetime = 0.5
  5474. local bv = Instance.new("BodyVelocity")
  5475. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5476. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5477. bv.Parent = disr
  5478. local val = 0
  5479. coroutine.resume(coroutine.create(function()
  5480. swait(30)
  5481. for i = 0, 9 do
  5482. swait()
  5483. val = val + 0.1
  5484. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5485. end
  5486. game:GetService("Debris"):AddItem(disr, 3)
  5487. end))
  5488. end
  5489. local eff = Instance.new("ParticleEmitter",dis)
  5490. eff.Texture = "rbxassetid://2273224484"
  5491. eff.LightEmission = 1
  5492. eff.Color = ColorSequence.new(keptcolor.Color)
  5493. eff.Rate = 500000
  5494. eff.Lifetime = NumberRange.new(0.5,2)
  5495. 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)})
  5496. 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)})
  5497. eff.Speed = NumberRange.new(20,250)
  5498. eff.Drag = 5
  5499. eff.Rotation = NumberRange.new(-500,500)
  5500. eff.VelocitySpread = 9000
  5501. eff.RotSpeed = NumberRange.new(-50,50)
  5502. wait(0.25)
  5503. eff.Enabled = false
  5504. end))
  5505. for i = 0, 9 do
  5506. 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"))
  5507. end
  5508. for i = 0, 19 do
  5509. 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)
  5510. end
  5511. coroutine.resume(coroutine.create(function()
  5512. for i = 0, 19 do
  5513. swait()
  5514. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5515. end
  5516. hum.CameraOffset = vt(0,0,0)
  5517. end))
  5518. dis.Anchored = true
  5519. dis.Transparency = 1
  5520. wait(8)
  5521. dis:Destroy()
  5522. end
  5523. end)
  5524. end))
  5525. rot = rot - 15
  5526. end
  5527. for i = 0,2,0.1 do
  5528. swait()
  5529. 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)
  5530. 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)
  5531. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5532. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5533. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5534. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5535. end
  5536. attack = false
  5537. hum.WalkSpeed = storehumanoidWS
  5538. end
  5539.  
  5540. function attackthree()
  5541. attack = true
  5542. local keptcolor = MAINRUINCOLOR
  5543. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5544. for i = 0,2,0.1 do
  5545. swait()
  5546. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5547. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5548. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5549. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5550. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5551. 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)
  5552. 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)
  5553. end
  5554. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5555. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5556. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5557. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5558. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5559. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5560. for i = 0, 24 do
  5561. 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"))
  5562. end
  5563. for i = 0,4,0.1 do
  5564. swait()
  5565. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5566. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5567. CreateMesh(dis,"Sphere",1,1,1)
  5568. dis.Anchored = true
  5569. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5570. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5571. coroutine.resume(coroutine.create(function()
  5572. swait(30)
  5573. dis.Transparency = 1
  5574. coroutine.resume(coroutine.create(function()
  5575. for i = 0, 19 do
  5576. swait()
  5577. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5578. end
  5579. hum.CameraOffset = vt(0,0,0)
  5580. end))
  5581. coroutine.resume(coroutine.create(function()
  5582. local eff = Instance.new("ParticleEmitter",dis)
  5583. eff.Texture = "rbxassetid://2273224484"
  5584. eff.LightEmission = 1
  5585. eff.Color = ColorSequence.new(dis.Color)
  5586. eff.Rate = 500000
  5587. eff.Lifetime = NumberRange.new(0.5,2)
  5588. 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)})
  5589. 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)})
  5590. eff.Speed = NumberRange.new(50,450)
  5591. eff.Drag = 5
  5592. eff.Rotation = NumberRange.new(-500,500)
  5593. eff.VelocitySpread = 9000
  5594. eff.RotSpeed = NumberRange.new(-50,50)
  5595. wait(0.125)
  5596. eff.Enabled = false
  5597. end))
  5598. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5599. for i = 0, 2 do
  5600. 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)
  5601. end
  5602. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5603. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5604. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5605. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5606. end))
  5607. game:GetService("Debris"):AddItem(dis, 5)
  5608. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5609. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5610. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5611. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5612. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5613. 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)
  5614. end
  5615. attack = false
  5616. end
  5617. ----------------------------------- Abilities
  5618.  
  5619. function ExtinctiveHeartbreak()
  5620. local targetted = nil
  5621. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5622. targetted = mouse.Target.Parent
  5623. end
  5624. if targetted ~= nil then
  5625. attack = true
  5626. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5627. for i = 0, 9 do
  5628. 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)
  5629. end
  5630. for i = 0, 24 do
  5631. 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)
  5632. end
  5633. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5634. local originalpos = root.CFrame
  5635. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5636. for i = 0, 9 do
  5637. 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)
  5638. end
  5639. for i = 0, 24 do
  5640. 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)
  5641. end
  5642. hum.WalkSpeed = 0
  5643. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5644. local radm = math.random(1,3)
  5645. if radm == 1 then
  5646. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5647. elseif radm == 2 then
  5648. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5649. elseif radm == 3 then
  5650. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5651. end
  5652. for i = 0,2,0.1 do
  5653. swait()
  5654. 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)
  5655. 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)
  5656. 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)
  5657. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5658. 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)
  5659. 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)
  5660. end
  5661. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5662. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5663. for i = 0,2,0.1 do
  5664. swait()
  5665. coroutine.resume(coroutine.create(function()
  5666. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5667. for i,v in pairs(targetted:GetChildren()) do
  5668. if v:IsA("Part") or v:IsA("MeshPart") then
  5669. v.Velocity = vt(0,0,0)
  5670. end
  5671. end
  5672. end))
  5673. 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)
  5674. 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)
  5675. 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)
  5676. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5677. 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)
  5678. 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)
  5679. end
  5680. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5681. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5682. for i = 0, 1 do
  5683. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5684. end
  5685. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5686. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5687. for i = 0,4,0.1 do
  5688. swait()
  5689. coroutine.resume(coroutine.create(function()
  5690. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5691. 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)))
  5692. local at1 = Instance.new("Attachment",dis)
  5693. at1.Position = vt(-25000,0,0)
  5694. local at2 = Instance.new("Attachment",dis)
  5695. at2.Position = vt(25000,0,0)
  5696. local trl = Instance.new('Trail',dis)
  5697. trl.Attachment0 = at1
  5698. trl.FaceCamera = true
  5699. trl.Attachment1 = at2
  5700. trl.Texture = "rbxassetid://1049219073"
  5701. trl.LightEmission = 1
  5702. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5703. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5704. trl.Lifetime = 5
  5705. local bv = Instance.new("BodyVelocity")
  5706. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5707. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5708. bv.Parent = dis
  5709. game:GetService("Debris"):AddItem(dis, 5)
  5710. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5711. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5712. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5713. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5714. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5715. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5716. 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)
  5717. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5718. for i = 0, 2 do
  5719. 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"))
  5720. end
  5721. 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)
  5722. for i,v in pairs(targetted:GetChildren()) do
  5723. if v:IsA("Part") or v:IsA("MeshPart") then
  5724. v.Velocity = vt(0,0,0)
  5725. end
  5726. end
  5727. end))
  5728. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5729. 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)
  5730. 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)
  5731. 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)
  5732. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5733. 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)
  5734. 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)
  5735. end
  5736. hum.CameraOffset = vt(0,0,0)
  5737. for i = 0, 49 do
  5738. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5739. 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)))
  5740. local at1 = Instance.new("Attachment",dis)
  5741. at1.Position = vt(-50000,0,0)
  5742. local at2 = Instance.new("Attachment",dis)
  5743. at2.Position = vt(50000,0,0)
  5744. local trl = Instance.new('Trail',dis)
  5745. trl.Attachment0 = at1
  5746. trl.FaceCamera = true
  5747. trl.Attachment1 = at2
  5748. trl.Texture = "rbxassetid://1049219073"
  5749. trl.LightEmission = 1
  5750. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5751. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5752. trl.Lifetime = 5
  5753. local bv = Instance.new("BodyVelocity")
  5754. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5755. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5756. bv.Parent = dis
  5757. game:GetService("Debris"):AddItem(dis, 5)
  5758. end
  5759. for i = 0, 49 do
  5760. 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)
  5761. 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"))
  5762. end
  5763. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5764. for i = 0, 1 do
  5765. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5766. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5767. end
  5768. for i = 0, 4 do
  5769. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5770. end
  5771. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5772. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5773. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5774. dmg(targetted)
  5775. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5776. for i = 0, 9 do
  5777. 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)
  5778. end
  5779. for i = 0, 24 do
  5780. 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)
  5781. end
  5782. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5783. root.CFrame = originalpos
  5784. for i = 0, 9 do
  5785. 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)
  5786. end
  5787. for i = 0, 24 do
  5788. 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)
  5789. end
  5790. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5791. attack = false
  5792. hum.WalkSpeed = storehumanoidWS
  5793. end
  5794. end
  5795.  
  5796. function CorruptionEvent()
  5797. attack = true
  5798. hum.WalkSpeed = 0
  5799. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5800. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5801. local keptcolor = MAINRUINCOLOR
  5802. for i = 0,4,0.1 do
  5803. swait()
  5804. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5805. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5806. 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)
  5807. 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)
  5808. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5809. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5810. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5811. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5812. end
  5813. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5814. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5815. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5816. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5817. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5818. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5819. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5820. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5821. hum.CameraOffset = vt(0,0,0)
  5822. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5823. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5824. for i = 0, 24 do
  5825. 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"))
  5826. end
  5827. local rrot = 0
  5828. coroutine.resume(coroutine.create(function()
  5829. for i = 0, 4 do
  5830. rrot = rrot + 45
  5831. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5832. xa.Anchored = true
  5833. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5834. xb.Anchored = true
  5835. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5836. xc.Anchored = true
  5837. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5838. xd.Anchored = true
  5839. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5840. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5841. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5842. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5843. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5844. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5845. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5846. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5847. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5848. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5849. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5850. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5851. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5852. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5853. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5854. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5855. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5856. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5857. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5858. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5859. for i = 0, 9 do
  5860. 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"))
  5861. 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"))
  5862. 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"))
  5863. 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"))
  5864. end
  5865. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5866. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5867. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5868. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5869. 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)
  5870. 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)
  5871. 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)
  5872. 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)
  5873. 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))
  5874. 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))
  5875. 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))
  5876. 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))
  5877. game:GetService("Debris"):AddItem(xa, 5)
  5878. game:GetService("Debris"):AddItem(xb, 5)
  5879. game:GetService("Debris"):AddItem(xc, 5)
  5880. game:GetService("Debris"):AddItem(xd, 5)
  5881. coroutine.resume(coroutine.create(function()
  5882. for i = 0, 19 do
  5883. swait()
  5884. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5885. end
  5886. hum.CameraOffset = vt(0,0,0)
  5887. end))
  5888. swait(9)
  5889. end
  5890. end))
  5891. for i = 0,2,0.1 do
  5892. swait()
  5893. 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)
  5894. 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)
  5895. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5896. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5897. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5898. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5899. end
  5900. attack = false
  5901. hum.WalkSpeed = storehumanoidWS
  5902. end
  5903.  
  5904. function EndGROUND()
  5905. attack = true
  5906. hum.WalkSpeed = 0
  5907. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5908. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5909. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5910. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5911. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5912. local keptcolor = MAINRUINCOLOR
  5913. for i = 0,4,0.1 do
  5914. swait()
  5915. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5916. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5917. 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"))
  5918. 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)
  5919. 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)
  5920. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5921. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5922. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5923. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5924. end
  5925. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5926. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5927. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5928. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5929. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5930. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5931. coroutine.resume(coroutine.create(function()
  5932. local shval = 10
  5933. for i = 0, 99 do
  5934. swait()
  5935. shval = shval - 0.1
  5936. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5937. end
  5938. hum.CameraOffset = vt(0,0,0)
  5939. end))
  5940. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5941. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5942. for i = 0, 24 do
  5943. 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"))
  5944. end
  5945. local rrot = 0
  5946. local xam = 1
  5947. coroutine.resume(coroutine.create(function()
  5948. for i = 0, 14 do
  5949. --swait()
  5950. rrot = rrot + 40*xam
  5951. xam = xam + 0.25
  5952. local bonus = xam
  5953. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5954. xa.Anchored = true
  5955. xa.Color = Color3.new(0,0,0)
  5956. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5957. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5958. local xc = 0
  5959. coroutine.resume(coroutine.create(function()
  5960. for i = 0, 99 do
  5961. swait()
  5962. xc = xc + 0.01
  5963. xa.Color = Color3.new(xc,0,0)
  5964. end
  5965. xa.Transparency = 1
  5966. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5967. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5968. for i = 0, 9 do
  5969. 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"))
  5970. end
  5971. 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)
  5972. 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)
  5973. 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))
  5974. game:GetService("Debris"):AddItem(xa, 5)
  5975. coroutine.resume(coroutine.create(function()
  5976. for i = 0, 19 do
  5977. swait()
  5978. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5979. end
  5980. hum.CameraOffset = vt(0,0,0)
  5981. end))
  5982. end))
  5983. end
  5984. end))
  5985. for i = 0,2,0.1 do
  5986. swait()
  5987. 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)
  5988. 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)
  5989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5991. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5992. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5993. end
  5994. attack = false
  5995. hum.WalkSpeed = storehumanoidWS
  5996. end
  5997.  
  5998. function HeavenlyDisk()
  5999. attack = true
  6000. hum.WalkSpeed = 2
  6001. local keptcolor = MAINRUINCOLOR
  6002. local radm = math.random(1,3)
  6003. if radm == 1 then
  6004. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  6005. elseif radm == 2 then
  6006. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6007. elseif radm == 3 then
  6008. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6009. end
  6010. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6011. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  6012. 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)
  6013. 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)
  6014. for i = 0, 14 do
  6015. 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)
  6016. end
  6017. for i = 0,2,0.1 do
  6018. swait()
  6019. 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)
  6020. 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)
  6021. 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)
  6022. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6024. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6025. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6026. end
  6027. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6028. for i = 0,1,0.6 do
  6029. swait()
  6030. 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)
  6031. 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"))
  6032. 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)
  6033. 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)
  6034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6036. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6037. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6038. end
  6039. for i = 0,1,0.6 do
  6040. swait()
  6041. 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)
  6042. 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"))
  6043. 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)
  6044. 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)
  6045. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6046. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6047. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6048. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6049. end
  6050. for i = 0,1,0.6 do
  6051. swait()
  6052. 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)
  6053. 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"))
  6054. 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)
  6055. 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)
  6056. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6057. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6058. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6059. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6060. end
  6061. for i = 0,1,0.6 do
  6062. swait()
  6063. 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)
  6064. 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"))
  6065. 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)
  6066. 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)
  6067. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6068. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6069. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6070. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6071. end
  6072. local rot = 15
  6073. for i = 0, 2 do
  6074. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6075. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6076. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6077. CreateMesh(dis,"Sphere",10,1,10)
  6078. local at1 = Instance.new("Attachment",dis)
  6079. at1.Position = vt(-5,0,0)
  6080. local at2 = Instance.new("Attachment",dis)
  6081. at2.Position = vt(5,0,0)
  6082. local trl = Instance.new('Trail',wed)
  6083. trl.Attachment0 = at1
  6084. trl.Attachment1 = at2
  6085. trl.Texture = "rbxassetid://1049219073"
  6086. trl.LightEmission = 1
  6087. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6088. trl.Color = ColorSequence.new(dis.Color)
  6089. trl.Lifetime = 0.6
  6090. local a = Instance.new("Part",workspace)
  6091. a.Name = "Direction"
  6092. a.Anchored = true
  6093. a.BrickColor = bc("Bright red")
  6094. a.Material = "Neon"
  6095. a.Transparency = 1
  6096. a.CanCollide = false
  6097. local ray = Ray.new(
  6098. dis.CFrame.p, -- origin
  6099. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6100. )
  6101. local ignore = dis
  6102. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6103. a.BottomSurface = 10
  6104. a.TopSurface = 10
  6105. local distance = (dis.CFrame.p - position).magnitude
  6106. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6107. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6108. dis.CFrame = a.CFrame
  6109. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6110. a:Destroy()
  6111. local bv = Instance.new("BodyVelocity")
  6112. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6113. bv.velocity = dis.CFrame.lookVector*250
  6114. bv.Parent = dis
  6115. game:GetService("Debris"):AddItem(dis, 5)
  6116. local hitted = false
  6117. coroutine.resume(coroutine.create(function()
  6118. dis.Touched:connect(function(hit)
  6119. if hitted == false and hit.Parent ~= char then
  6120. hitted = true
  6121. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6122. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6123. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6124. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6125. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6126. coroutine.resume(coroutine.create(function()
  6127. for i = 0, 9 do
  6128. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6129. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6130. local at1 = Instance.new("Attachment",disr)
  6131. at1.Position = vt(-2,0,0)
  6132. local at2 = Instance.new("Attachment",disr)
  6133. at2.Position = vt(2,0,0)
  6134. local trl = Instance.new('Trail',disr)
  6135. trl.Attachment0 = at1
  6136. trl.FaceCamera = true
  6137. trl.Attachment1 = at2
  6138. trl.Texture = "rbxassetid://2342682798"
  6139. trl.LightEmission = 1
  6140. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6141. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6142. trl.Lifetime = 0.5
  6143. local bv = Instance.new("BodyVelocity")
  6144. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6145. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6146. bv.Parent = disr
  6147. local val = 0
  6148. coroutine.resume(coroutine.create(function()
  6149. swait(30)
  6150. for i = 0, 9 do
  6151. swait()
  6152. val = val + 0.1
  6153. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6154. end
  6155. game:GetService("Debris"):AddItem(disr, 3)
  6156. end))
  6157. end
  6158. local eff = Instance.new("ParticleEmitter",dis)
  6159. eff.Texture = "rbxassetid://2273224484"
  6160. eff.LightEmission = 1
  6161. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6162. eff.Rate = 500000
  6163. eff.Lifetime = NumberRange.new(0.5,2)
  6164. 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)})
  6165. 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)})
  6166. eff.Speed = NumberRange.new(20,250)
  6167. eff.Drag = 5
  6168. eff.Rotation = NumberRange.new(-500,500)
  6169. eff.VelocitySpread = 9000
  6170. eff.RotSpeed = NumberRange.new(-50,50)
  6171. wait(0.25)
  6172. eff.Enabled = false
  6173. end))
  6174. for i = 0, 9 do
  6175. 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"))
  6176. end
  6177. for i = 0, 19 do
  6178. 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)
  6179. end
  6180. coroutine.resume(coroutine.create(function()
  6181. for i = 0, 19 do
  6182. swait()
  6183. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6184. end
  6185. hum.CameraOffset = vt(0,0,0)
  6186. end))
  6187. dis.Anchored = true
  6188. dis.Transparency = 1
  6189. wait(8)
  6190. dis:Destroy()
  6191. end
  6192. end)
  6193. end))
  6194. rot = rot - 15
  6195. end
  6196. for i = 0,2,0.1 do
  6197. swait()
  6198. 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)
  6199. 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)
  6200. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6201. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6202. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6203. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6204. end
  6205. attack = false
  6206. hum.WalkSpeed = storehumanoidWS
  6207. end
  6208.  
  6209.  
  6210. function RapidBurst()
  6211. attack = true
  6212. hum.WalkSpeed = 0
  6213. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6214. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6215. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6216. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6217. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6218. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6219. local keptcolor = MAINRUINCOLOR
  6220. for i = 0,8,0.1 do
  6221. swait()
  6222. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6223. 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())
  6224. 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)
  6225. 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)
  6226. 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)
  6227. 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)
  6228. 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)
  6229. 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)
  6230. 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)
  6231. end
  6232. for i = 0, 99 do
  6233. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6234. 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)))
  6235. local at1 = Instance.new("Attachment",dis)
  6236. at1.Position = vt(-25000,0,0)
  6237. local at2 = Instance.new("Attachment",dis)
  6238. at2.Position = vt(25000,0,0)
  6239. local trl = Instance.new('Trail',dis)
  6240. trl.Attachment0 = at1
  6241. trl.FaceCamera = true
  6242. trl.Attachment1 = at2
  6243. trl.Texture = "rbxassetid://1049219073"
  6244. trl.LightEmission = 1
  6245. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6246. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6247. trl.Lifetime = 5
  6248. local bv = Instance.new("BodyVelocity")
  6249. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6250. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6251. bv.Parent = dis
  6252. game:GetService("Debris"):AddItem(dis, 5)
  6253. end
  6254. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6255. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6256. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6257. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6258. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6259. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6260. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6261. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6262. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6263. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6264. hum.CameraOffset = vt(0,0,0)
  6265. for i = 0, 24 do
  6266. 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())
  6267. end
  6268. local distam = 0
  6269. coroutine.resume(coroutine.create(function()
  6270. for i = 0, 99 do
  6271. wait()
  6272. distam = distam + 1
  6273. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6274. xa.Anchored = true
  6275. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6276. game:GetService("Debris"):AddItem(xa, 5)
  6277. for i = 0, 4 do
  6278. 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())
  6279. end
  6280. coroutine.resume(coroutine.create(function()
  6281. local eff = Instance.new("ParticleEmitter",xa)
  6282. eff.Texture = "rbxassetid://2273224484"
  6283. eff.LightEmission = 1
  6284. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6285. eff.Rate = 500000
  6286. eff.Lifetime = NumberRange.new(1,3)
  6287. 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)})
  6288. 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)})
  6289. eff.Speed = NumberRange.new(50,500)
  6290. eff.Drag = 5
  6291. eff.Rotation = NumberRange.new(-500,500)
  6292. eff.VelocitySpread = 9000
  6293. eff.RotSpeed = NumberRange.new(-50,50)
  6294. wait(0.25)
  6295. eff.Enabled = false
  6296. end))
  6297. coroutine.resume(coroutine.create(function()
  6298. for i = 0, 19 do
  6299. swait()
  6300. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6301. end
  6302. hum.CameraOffset = vt(0,0,0)
  6303. end))
  6304. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6305. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6306. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6307. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6308. end
  6309. end))
  6310. attack = false
  6311. hum.WalkSpeed = storehumanoidWS
  6312. end
  6313.  
  6314. function InsaneDrop()
  6315. attack = true
  6316. hum.WalkSpeed = 0
  6317. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6318. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6319. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6320. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6321. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6322. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6323. local keptcolor = MAINRUINCOLOR
  6324. for i = 0,8,0.1 do
  6325. swait()
  6326. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6327. 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())
  6328. 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)
  6329. 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)
  6330. 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)
  6331. 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)
  6332. 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)
  6333. 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)
  6334. 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)
  6335. end
  6336. for i = 0, 99 do
  6337. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6338. 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)))
  6339. local at1 = Instance.new("Attachment",dis)
  6340. at1.Position = vt(-25000,0,0)
  6341. local at2 = Instance.new("Attachment",dis)
  6342. at2.Position = vt(25000,0,0)
  6343. local trl = Instance.new('Trail',dis)
  6344. trl.Attachment0 = at1
  6345. trl.FaceCamera = true
  6346. trl.Attachment1 = at2
  6347. trl.Texture = "rbxassetid://1049219073"
  6348. trl.LightEmission = 1
  6349. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6350. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6351. trl.Lifetime = 5
  6352. local bv = Instance.new("BodyVelocity")
  6353. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6354. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6355. bv.Parent = dis
  6356. game:GetService("Debris"):AddItem(dis, 5)
  6357. end
  6358. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6359. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6360. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6361. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6362. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6363. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6364. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6365. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6366. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6367. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6368. hum.CameraOffset = vt(0,0,0)
  6369. for i = 0, 24 do
  6370. 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())
  6371. end
  6372. local distam = 0
  6373. coroutine.resume(coroutine.create(function()
  6374. for i = 0, 99 do
  6375. wait()
  6376. distam = distam + 1
  6377. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6378. xa.Anchored = true
  6379. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6380. game:GetService("Debris"):AddItem(xa, 5)
  6381. for i = 0, 4 do
  6382. 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())
  6383. end
  6384. coroutine.resume(coroutine.create(function()
  6385. local eff = Instance.new("ParticleEmitter",xa)
  6386. eff.Texture = "rbxassetid://2273224484"
  6387. eff.LightEmission = 1
  6388. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6389. eff.Rate = 500000
  6390. eff.Lifetime = NumberRange.new(1,3)
  6391. 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)})
  6392. 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)})
  6393. eff.Speed = NumberRange.new(50,500)
  6394. eff.Drag = 5
  6395. eff.Rotation = NumberRange.new(-500,500)
  6396. eff.VelocitySpread = 9000
  6397. eff.RotSpeed = NumberRange.new(-50,50)
  6398. wait(0.25)
  6399. eff.Enabled = false
  6400. end))
  6401. coroutine.resume(coroutine.create(function()
  6402. for i = 0, 19 do
  6403. swait()
  6404. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6405. end
  6406. hum.CameraOffset = vt(0,0,0)
  6407. end))
  6408. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6409. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6410. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6411. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6412. end
  6413. end))
  6414. attack = false
  6415. hum.WalkSpeed = storehumanoidWS
  6416. end
  6417.  
  6418. function FallenOrbs()
  6419. attack = true
  6420. hum.WalkSpeed = 2
  6421. local keptcolor = MAINRUINCOLOR
  6422. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6423. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6424. local radm = math.random(1,3)
  6425. if radm == 1 then
  6426. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6427. elseif radm == 2 then
  6428. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6429. elseif radm == 3 then
  6430. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6431. end
  6432. coroutine.resume(coroutine.create(function()
  6433. for i = 0, 29 do
  6434. swait(2)
  6435. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6436. dis.Anchored = true
  6437. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6438. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6439. CreateMesh(dis,"Sphere",2,2,2)
  6440. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6441. 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"))
  6442. coroutine.resume(coroutine.create(function()
  6443. wait(0.5)
  6444. dis.Anchored = false
  6445. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6446. local at1 = Instance.new("Attachment",dis)
  6447. at1.Position = vt(-1,0,0)
  6448. local at2 = Instance.new("Attachment",dis)
  6449. at2.Position = vt(1,0,0)
  6450. local trl = Instance.new('Trail',dis)
  6451. trl.Attachment0 = at1
  6452. trl.FaceCamera = true
  6453. trl.Attachment1 = at2
  6454. trl.Texture = "rbxassetid://1049219073"
  6455. trl.LightEmission = 1
  6456. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6457. trl.Color = ColorSequence.new(dis.Color)
  6458. trl.Lifetime = 0.6
  6459. local a = Instance.new("Part",workspace)
  6460. a.Name = "Direction"
  6461. a.Anchored = true
  6462. a.BrickColor = bc("Bright red")
  6463. a.Material = "Neon"
  6464. a.Transparency = 1
  6465. a.CanCollide = false
  6466. local ray = Ray.new(
  6467. dis.CFrame.p, -- origin
  6468. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6469. )
  6470. local ignore = dis
  6471. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6472. a.BottomSurface = 10
  6473. a.TopSurface = 10
  6474. local distance = (dis.CFrame.p - position).magnitude
  6475. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6476. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6477. dis.CFrame = a.CFrame
  6478. a:Destroy()
  6479. local bv = Instance.new("BodyVelocity")
  6480. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6481. bv.velocity = dis.CFrame.lookVector*500
  6482. bv.Parent = dis
  6483. game:GetService("Debris"):AddItem(dis, 5)
  6484. local hitted = false
  6485. coroutine.resume(coroutine.create(function()
  6486. dis.Touched:connect(function(hit)
  6487. if hitted == false and hit.Parent ~= char then
  6488. hitted = true
  6489. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6490. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6491. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6492. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6493. coroutine.resume(coroutine.create(function()
  6494. for i = 0, 4 do
  6495. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6496. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6497. local at1 = Instance.new("Attachment",disr)
  6498. at1.Position = vt(-10,0,0)
  6499. local at2 = Instance.new("Attachment",disr)
  6500. at2.Position = vt(10,0,0)
  6501. local trl = Instance.new('Trail',disr)
  6502. trl.Attachment0 = at1
  6503. trl.FaceCamera = true
  6504. trl.Attachment1 = at2
  6505. trl.Texture = "rbxassetid://2342682798"
  6506. trl.LightEmission = 1
  6507. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6508. trl.Color = ColorSequence.new(disr.Color)
  6509. trl.Lifetime = 0.5
  6510. local bv = Instance.new("BodyVelocity")
  6511. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6512. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6513. bv.Parent = disr
  6514. local val = 0
  6515. coroutine.resume(coroutine.create(function()
  6516. swait(30)
  6517. for i = 0, 9 do
  6518. swait()
  6519. val = val + 0.1
  6520. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6521. end
  6522. game:GetService("Debris"):AddItem(disr, 3)
  6523. end))
  6524. end
  6525. local eff = Instance.new("ParticleEmitter",dis)
  6526. eff.Texture = "rbxassetid://1049219073"
  6527. eff.LightEmission = 1
  6528. eff.Color = ColorSequence.new(dis.Color)
  6529. eff.Rate = 500000
  6530. eff.Lifetime = NumberRange.new(0.5,2)
  6531. 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)})
  6532. 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)})
  6533. eff.Speed = NumberRange.new(20,250)
  6534. eff.Drag = 5
  6535. eff.Rotation = NumberRange.new(-500,500)
  6536. eff.VelocitySpread = 9000
  6537. eff.RotSpeed = NumberRange.new(-50,50)
  6538. wait(0.5)
  6539. eff.Enabled = false
  6540. end))
  6541. for i = 0, 4 do
  6542. 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"))
  6543. end
  6544. coroutine.resume(coroutine.create(function()
  6545. for i = 0, 19 do
  6546. swait()
  6547. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6548. end
  6549. hum.CameraOffset = vt(0,0,0)
  6550. end))
  6551. dis.Anchored = true
  6552. dis.Transparency = 1
  6553. wait(8)
  6554. dis:Destroy()
  6555. end
  6556. end)
  6557. end))
  6558. end))
  6559. end
  6560. end))
  6561. for i = 0,9,0.1 do
  6562. swait()
  6563. 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)
  6564. 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)
  6565. 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)
  6566. 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)
  6567. 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)
  6568. 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)
  6569. 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)
  6570. end
  6571. attack = false
  6572. hum.WalkSpeed = storehumanoidWS
  6573. end
  6574.  
  6575. function CyberSlash()
  6576. local posit = -2
  6577. attack = true
  6578. hum.WalkSpeed = 5
  6579. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6580. local radm = math.random(1,3)
  6581. if radm == 1 then
  6582. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6583. elseif radm == 2 then
  6584. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6585. elseif radm == 3 then
  6586. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6587. end
  6588. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6589. for i = 0,2,0.1 do
  6590. swait()
  6591. 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)
  6592. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6593. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6594. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6595. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6596. 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)
  6597. 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)
  6598. end
  6599. for i = 0, 2 do
  6600. CameraEnshaking(1,2)
  6601. local hite = Instance.new("Part", char)
  6602. hite.Anchored = true
  6603. hite.CanCollide = false
  6604. hite.FormFactor = 3
  6605. hite.Name = "Ring"
  6606. hite.Material = "Neon"
  6607. hite.Size = Vector3.new(1, 1, 1)
  6608. hite.Transparency = 1
  6609. hite.TopSurface = 0
  6610. hite.BottomSurface = 0
  6611. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6612. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6613. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6614. coroutine.resume(coroutine.create(function()
  6615. for i = 0, 1 do
  6616. swait()
  6617. 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)
  6618. 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)
  6619. 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)
  6620. end
  6621. end))
  6622. 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)
  6623. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6624. game:GetService("Debris"):AddItem(hite, 5)
  6625. posit = posit + 2
  6626. end
  6627. for i = 0,1,0.1 do
  6628. swait()
  6629. 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)
  6630. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6631. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6632. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6633. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6634. 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)
  6635. 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)
  6636. end
  6637. for i = 0,1,0.1 do
  6638. swait()
  6639. 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)
  6640. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6641. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6642. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6643. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6644. 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)
  6645. 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)
  6646. end
  6647. posit = -6
  6648. for i = 0, 6 do
  6649. CameraEnshaking(1,3)
  6650. local hite = Instance.new("Part", char)
  6651. hite.Anchored = true
  6652. hite.CanCollide = false
  6653. hite.FormFactor = 3
  6654. hite.Name = "Ring"
  6655. hite.Material = "Neon"
  6656. hite.Size = Vector3.new(1, 1, 1)
  6657. hite.Transparency = 1
  6658. hite.TopSurface = 0
  6659. hite.BottomSurface = 0
  6660. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6661. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6662. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6663. 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)
  6664. coroutine.resume(coroutine.create(function()
  6665. for i = 0, 2 do
  6666. swait()
  6667. 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)
  6668. 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)
  6669. 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)
  6670. end
  6671. end))
  6672. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6673. game:GetService("Debris"):AddItem(hite, 5)
  6674. posit = posit + 2
  6675. end
  6676. for i = 0,1,0.1 do
  6677. swait()
  6678. 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)
  6679. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6680. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6681. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6682. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6683. 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)
  6684. 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)
  6685. end
  6686. hum.WalkSpeed = storehumanoidWS
  6687. attack = false
  6688. end
  6689.  
  6690. function EquinoxOrbs()
  6691. hum.WalkSpeed = 0
  6692. attack = true
  6693. local radm = math.random(1,3)
  6694. if radm == 1 then
  6695. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6696. elseif radm == 2 then
  6697. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6698. elseif radm == 3 then
  6699. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6700. end
  6701. for i = 0,1,0.1 do
  6702. swait()
  6703. 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)
  6704. 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)
  6705. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6706. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6707. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6708. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6709. end
  6710. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6711. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6712. for i = 0, 24 do
  6713. 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"))
  6714. end
  6715. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6716. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6717. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6718. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6719. for i = 0,4,0.1 do
  6720. swait()
  6721. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6722. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6723. CreateMesh(dis,"Sphere",1,1,1)
  6724. dis.Anchored = true
  6725. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6726. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6727. CreateMesh(dis2,"Sphere",1,1,1)
  6728. dis2.Anchored = true
  6729. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6730. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6731. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6732. coroutine.resume(coroutine.create(function()
  6733. swait(60)
  6734. dis.Transparency = 1
  6735. dis2.Transparency = 1
  6736. coroutine.resume(coroutine.create(function()
  6737. for i = 0, 19 do
  6738. swait()
  6739. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6740. end
  6741. hum.CameraOffset = vt(0,0,0)
  6742. end))
  6743. coroutine.resume(coroutine.create(function()
  6744. local eff = Instance.new("ParticleEmitter",dis)
  6745. eff.Texture = "rbxassetid://2273224484"
  6746. eff.LightEmission = 1
  6747. eff.Color = ColorSequence.new(dis.Color)
  6748. eff.Rate = 500000
  6749. eff.Lifetime = NumberRange.new(0.5,2)
  6750. 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)})
  6751. 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)})
  6752. eff.Speed = NumberRange.new(50,450)
  6753. eff.Drag = 5
  6754. eff.Rotation = NumberRange.new(-500,500)
  6755. eff.VelocitySpread = 9000
  6756. eff.RotSpeed = NumberRange.new(-50,50)
  6757. local eff2 = eff:Clone()
  6758. eff2.Parent = dis2
  6759. eff2.LightEmission = 0
  6760. eff2.Color = ColorSequence.new(dis2.Color)
  6761. wait(0.25)
  6762. eff.Enabled = false
  6763. eff2.Enabled = false
  6764. end))
  6765. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6766. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6767. for i = 0, 2 do
  6768. 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)
  6769. 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)
  6770. end
  6771. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6772. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6773. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6774. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6775. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6776. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6777. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6778. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6779. end))
  6780. game:GetService("Debris"):AddItem(dis, 5)
  6781. game:GetService("Debris"):AddItem(dis2, 5)
  6782. 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)
  6783. 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)
  6784. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6785. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6786. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6787. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6788. end
  6789. attack = false
  6790. hum.WalkSpeed = storehumanoidWS
  6791. end
  6792. function FallenDEMISE()
  6793. attack = true
  6794. hum.WalkSpeed = 0
  6795. local keptcolor = MAINRUINCOLOR
  6796. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6797. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6798. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6799. for i = 0, 15, 0.1 do
  6800. swait()
  6801. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6802. 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)))
  6803. local at1 = Instance.new("Attachment",dis)
  6804. at1.Position = vt(-25000,0,0)
  6805. local at2 = Instance.new("Attachment",dis)
  6806. at2.Position = vt(25000,0,0)
  6807. local trl = Instance.new('Trail',dis)
  6808. trl.Attachment0 = at1
  6809. trl.FaceCamera = true
  6810. trl.Attachment1 = at2
  6811. trl.Texture = "rbxassetid://1049219073"
  6812. trl.LightEmission = 1
  6813. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6814. trl.Color = ColorSequence.new(dis.Color)
  6815. trl.Lifetime = 5
  6816. local bv = Instance.new("BodyVelocity")
  6817. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6818. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6819. bv.Parent = dis
  6820. game:GetService("Debris"):AddItem(dis, 1)
  6821. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6822. 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"))
  6823. 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"))
  6824. 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)
  6825. 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)
  6826. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6828. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6829. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6830. end
  6831. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6832. for i = 0, 30, 0.1 do
  6833. swait()
  6834. coroutine.resume(coroutine.create(function()
  6835. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6836. if v:FindFirstChild('Head') then
  6837. dmg(v)
  6838. end
  6839. end
  6840. end))
  6841. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6842. 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)))
  6843. local at1 = Instance.new("Attachment",dis)
  6844. at1.Position = vt(-50000,0,0)
  6845. local at2 = Instance.new("Attachment",dis)
  6846. at2.Position = vt(50000,0,0)
  6847. local trl = Instance.new('Trail',dis)
  6848. trl.Attachment0 = at1
  6849. trl.FaceCamera = true
  6850. trl.Attachment1 = at2
  6851. trl.Texture = "rbxassetid://1049219073"
  6852. trl.LightEmission = 1
  6853. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6854. trl.Color = ColorSequence.new(dis.Color)
  6855. trl.Lifetime = 10
  6856. local bv = Instance.new("BodyVelocity")
  6857. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6858. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6859. bv.Parent = dis
  6860. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6861. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6862. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6863. 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"))
  6864. 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"))
  6865. 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"))
  6866. 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"))
  6867. for i = 0, 2 do
  6868. 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)
  6869. end
  6870. 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)
  6871. 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)
  6872. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6873. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6874. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6875. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6876. end
  6877. attack = false
  6878. hum.WalkSpeed = storehumanoidWS
  6879. end
  6880.  
  6881. function SpeedDrop()
  6882. attack = true
  6883. hum.WalkSpeed = 0
  6884. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6885. local poste = 3
  6886. local rotation = 0
  6887. local rate = 0
  6888. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6889. for i = 0, 124 do
  6890. swait()
  6891. rotation = rotation + rate
  6892. poste = poste + 0.1
  6893. rate = rate + 0.1
  6894. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6895. 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)
  6896. 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)
  6897. 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)
  6898. 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)
  6899. 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)
  6900. 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)
  6901. 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)
  6902. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6903. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6904. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6905. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6906. end
  6907. CameraEnshaking(3,7)
  6908. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6909. local loc = Instance.new("Part", char)
  6910. loc.BrickColor = MAINRUINCOLOR
  6911. loc.CanCollide = false
  6912. loc.FormFactor = 3
  6913. loc.Name = "Ring"
  6914. loc.Material = "Neon"
  6915. loc.Size = Vector3.new(1, 1, 1)
  6916. loc.Transparency = 1
  6917. loc.TopSurface = 0
  6918. loc.BottomSurface = 0
  6919. loc.Anchored = true
  6920. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6921. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6922. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6923. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6924. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6925. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6926. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6927. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6928. coroutine.resume(coroutine.create(function()
  6929. local eff = Instance.new("ParticleEmitter",loc)
  6930. eff.Texture = "rbxassetid://363275192"
  6931. eff.LightEmission = 0.95
  6932. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6933. eff.Rate = 10000
  6934. eff.Lifetime = NumberRange.new(1)
  6935. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6936. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6937. eff.Speed = NumberRange.new(100,500)
  6938. eff.Drag = 5
  6939. eff.Rotation = NumberRange.new(-500,500)
  6940. eff.VelocitySpread = 9000
  6941. eff.RotSpeed = NumberRange.new(-50,50)
  6942. wait(0.5)
  6943. eff.Enabled = false
  6944. end))
  6945. for i = 0, 49 do
  6946. 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)
  6947. end
  6948. for i = 0, 9 do
  6949. 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)
  6950. end
  6951. game:GetService("Debris"):AddItem(loc, 5)
  6952. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6953. hum.WalkSpeed = storehumanoidWS
  6954. attack = false
  6955. end
  6956.  
  6957. function cutesigh()
  6958. attack = true
  6959. hum.WalkSpeed = 0
  6960. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6961. local blush = Instance.new("Decal",hed)
  6962. blush.Texture = "rbxassetid://898404027"
  6963. blush.Face = "Front"
  6964. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6965. for i = 0, 9, 0.1 do
  6966. swait()
  6967. 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)
  6968. 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)
  6969. 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)
  6970. 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)
  6971. 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)
  6972. 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)
  6973. end
  6974. coroutine.resume(coroutine.create(function()
  6975. for i = 0, 49 do
  6976. swait()
  6977. blush.Transparency = blush.Transparency + 0.02
  6978. end
  6979. blush:Destroy()
  6980. end))
  6981. hum.WalkSpeed = storehumanoidWS
  6982. attack = false
  6983. end
  6984.  
  6985. function smiter()
  6986. local targetted = nil
  6987. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6988. targetted = mouse.Target.Parent
  6989. end
  6990. if targetted ~= nil then
  6991. RootPart.CFrame = FaceMouse()[1]
  6992. attack = true
  6993. local radm = math.random(1,3)
  6994. if radm == 1 then
  6995. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  6996. elseif radm == 2 then
  6997. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  6998. elseif radm == 3 then
  6999. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7000. end
  7001. hum.WalkSpeed = 0
  7002. coroutine.resume(coroutine.create(function()
  7003. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7004. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7005. local vel = Instance.new("BodyPosition", targetted.Head)
  7006. vel.P = 12500
  7007. vel.D = 1000
  7008. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7009. vel.position = targetted.Head.CFrame.p
  7010. end))
  7011. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7012. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7013. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7014. for i = 0,4,0.1 do
  7015. swait()
  7016. 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)
  7017. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7018. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7019. 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)
  7020. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7021. 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)
  7022. 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)
  7023. end
  7024. coroutine.resume(coroutine.create(function()
  7025. CameraEnshaking(6,5)
  7026. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7027. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7028. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7029. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7030. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7031. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7032. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7033. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7034. coroutine.resume(coroutine.create(function()
  7035. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7036. eff.Texture = "rbxassetid://2273224484"
  7037. eff.LightEmission = 1
  7038. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7039. eff.Rate = 500000
  7040. eff.Lifetime = NumberRange.new(0.5,2)
  7041. 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)})
  7042. 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)})
  7043. eff.Speed = NumberRange.new(20,250)
  7044. eff.Drag = 5
  7045. eff.Rotation = NumberRange.new(-500,500)
  7046. eff.VelocitySpread = 9000
  7047. eff.RotSpeed = NumberRange.new(-50,50)
  7048. wait(0.25)
  7049. eff.Enabled = false
  7050. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7051. eff.Texture = "rbxassetid://363275192"
  7052. eff.LightEmission = 0.95
  7053. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7054. eff.Rate = 10000
  7055. eff.Lifetime = NumberRange.new(1.5)
  7056. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7057. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7058. eff.Speed = NumberRange.new(25,150)
  7059. eff.Drag = 5
  7060. eff.Rotation = NumberRange.new(-500,500)
  7061. eff.VelocitySpread = 9000
  7062. eff.RotSpeed = NumberRange.new(-50,50)
  7063. local eff2 = eff:Clone()
  7064. eff2.Parent = targetted.Head
  7065. eff2.Texture = "rbxassetid://284205403"
  7066. eff2.Rate = 10000
  7067. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7068. eff2.Drag = 5
  7069. eff2.Rotation = NumberRange.new(-500,500)
  7070. eff2.VelocitySpread = 9000
  7071. wait(0.5)
  7072. eff2.Enabled = false
  7073. eff.Enabled = false
  7074. end))
  7075. for i = 0, 9 do
  7076. 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)
  7077. end
  7078. for i = 0, 49 do
  7079. local rsiz = math.random(10,50)
  7080. 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)
  7081. end
  7082. game:GetService("Debris"):AddItem(vel,1)
  7083. dmg(targetted)
  7084. end))
  7085. for i = 0,1,0.1 do
  7086. swait()
  7087. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7088. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7089. 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)
  7090. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7091. 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)
  7092. 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)
  7093. end
  7094. attack = false
  7095. hum.WalkSpeed = storehumanoidWS
  7096. end
  7097. end
  7098.  
  7099. function shytaunty()
  7100. attack = true
  7101. hum.WalkSpeed = 0
  7102. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7103. local blush = Instance.new("Decal",hed)
  7104. blush.Texture = "rbxassetid://898404027"
  7105. blush.Face = "Front"
  7106. for i = 0, 13, 0.1 do
  7107. swait()
  7108. 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)
  7109. 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)
  7110. 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)
  7111. 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)
  7112. 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)
  7113. 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)
  7114. end
  7115. coroutine.resume(coroutine.create(function()
  7116. for i = 0, 49 do
  7117. swait()
  7118. blush.Transparency = blush.Transparency + 0.02
  7119. end
  7120. blush:Destroy()
  7121. end))
  7122. hum.WalkSpeed = storehumanoidWS
  7123. attack = false
  7124. end
  7125.  
  7126. function PureBomb()
  7127. attack = true
  7128. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7129. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7130. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7131. local orb = Instance.new("Part", char)
  7132. orb.Anchored = true
  7133. orb.BrickColor = BrickColor.new("Toothpaste")
  7134. orb.CanCollide = false
  7135. orb.FormFactor = 3
  7136. orb.Name = "Ring"
  7137. orb.Material = "Neon"
  7138. orb.Size = Vector3.new(1, 1, 1)
  7139. orb.Transparency = 0
  7140. orb.TopSurface = 0
  7141. orb.BottomSurface = 0
  7142. local orbm = Instance.new("SpecialMesh", orb)
  7143. orbm.MeshType = "Sphere"
  7144. orbm.Name = "SizeMesh"
  7145. orbm.Scale = vt(0,0,0)
  7146. local scaled = 0.1
  7147. local posid = 0
  7148. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7149. for i = 0, 5, 0.1 do
  7150. swait()
  7151. scaled = scaled - 0.001
  7152. posid = posid - scaled
  7153. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7154. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7155. 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)
  7156. 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)
  7157. 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)
  7158. 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)
  7159. 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)
  7160. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7161. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7162. 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)
  7163. end
  7164. for i = 0, 2, 0.1 do
  7165. swait()
  7166. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7167. 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)
  7168. 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)
  7169. 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)
  7170. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7171. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7172. 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)
  7173. end
  7174. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7175. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7176. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7177. coroutine.resume(coroutine.create(function()
  7178. orb.Anchored = false
  7179. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7180. local a = Instance.new("Part",workspace)
  7181. a.Name = "Direction"
  7182. a.Anchored = true
  7183. a.BrickColor = bc("Bright red")
  7184. a.Material = "Neon"
  7185. a.Transparency = 1
  7186. a.CanCollide = false
  7187. local ray = Ray.new(
  7188. orb.CFrame.p, -- origin
  7189. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7190. )
  7191. local ignore = orb
  7192. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7193. a.BottomSurface = 10
  7194. a.TopSurface = 10
  7195. local distance = (orb.CFrame.p - position).magnitude
  7196. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7197. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7198. orb.CFrame = a.CFrame
  7199. a:Destroy()
  7200. local bv = Instance.new("BodyVelocity")
  7201. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7202. bv.velocity = orb.CFrame.lookVector*125
  7203. bv.Parent = orb
  7204. local hitted = false
  7205. game:GetService("Debris"):AddItem(orb, 15)
  7206. wait()
  7207. local hit =orb.Touched:connect(function(hit)
  7208. if hitted == false then
  7209. hitted = true
  7210. CameraEnshaking(10,2.5)
  7211. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7212. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7213. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7214. for i = 0, 49 do
  7215. 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)
  7216. end
  7217. local eff = Instance.new("ParticleEmitter",orb)
  7218. eff.Texture = "rbxassetid://2273224484"
  7219. eff.LightEmission = 1
  7220. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7221. eff.Rate = 500000
  7222. eff.Lifetime = NumberRange.new(0.5,2)
  7223. 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)})
  7224. 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)})
  7225. eff.Speed = NumberRange.new(20,250)
  7226. eff.Drag = 5
  7227. eff.Rotation = NumberRange.new(-500,500)
  7228. eff.VelocitySpread = 9000
  7229. eff.RotSpeed = NumberRange.new(-50,50)
  7230. coroutine.resume(coroutine.create(function()
  7231. wait(0.25)
  7232. eff.Enabled = false
  7233. end))
  7234. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7235. for i = 0, 9 do
  7236. 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)
  7237. 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)
  7238. end
  7239. orb.Anchored = true
  7240. orb.Transparency = 1
  7241. local eff = Instance.new("ParticleEmitter",orb)
  7242. eff.Texture = "rbxassetid://2273224484"
  7243. eff.LightEmission = 1
  7244. eff.Color = ColorSequence.new(Color3.new(M))
  7245. eff.Rate = 500000
  7246. eff.Lifetime = NumberRange.new(0.5,2)
  7247. 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)})
  7248. 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)})
  7249. eff.Speed = NumberRange.new(20,250)
  7250. eff.Drag = 5
  7251. eff.Rotation = NumberRange.new(-500,500)
  7252. eff.VelocitySpread = 9000
  7253. eff.RotSpeed = NumberRange.new(-50,50)
  7254. coroutine.resume(coroutine.create(function()
  7255. wait(1)
  7256. eff.Enabled = false
  7257. end))
  7258. wait(8)
  7259. orb:Destroy()
  7260. end
  7261. end)
  7262. end))
  7263. for i = 0, 1, 0.1 do
  7264. swait()
  7265. 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)
  7266. 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)
  7267. 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)
  7268. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7269. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7270. 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)
  7271. end
  7272. attack = false
  7273. end
  7274.  
  7275.  
  7276. function BeamOfDeath()
  7277. coroutine.resume(coroutine.create(function()
  7278. attack = true
  7279. hum.WalkSpeed = 0
  7280. for i = 0, 11, 0.1 do
  7281. swait()
  7282. 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)
  7283. 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)
  7284. 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)
  7285. 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)
  7286. 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)
  7287. 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)
  7288. end
  7289. for i = 0, 1, 0.1 do
  7290. swait()
  7291. 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)
  7292. 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)
  7293. 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)
  7294. 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)
  7295. 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)
  7296. 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)
  7297. end
  7298. hum.WalkSpeed = storehumanoidWS
  7299. attack = false
  7300. end))
  7301. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7302. local radm = math.random(1,3)
  7303. if radm == 1 then
  7304. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7305. elseif radm == 2 then
  7306. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7307. elseif radm == 3 then
  7308. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7309. end
  7310. local keptcolor = MAINRUINCOLOR
  7311. local orb = Instance.new("Part", char)
  7312. orb.BrickColor = keptcolor
  7313. orb.CanCollide = false
  7314. orb.FormFactor = 3
  7315. orb.Name = "Ring"
  7316. orb.Material = "Neon"
  7317. orb.Size = Vector3.new(1, 1, 1)
  7318. orb.Transparency = 1
  7319. orb.TopSurface = 0
  7320. orb.BottomSurface = 0
  7321. local orbm = Instance.new("SpecialMesh", orb)
  7322. orbm.MeshType = "Sphere"
  7323. orbm.Name = "SizeMesh"
  7324. orbm.Scale = vt(22.5,10000,22.5)
  7325. orb.CFrame = mouse.Hit
  7326. orb.Anchored = true
  7327. orb.Orientation = vt(0,0,0)
  7328. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7329. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7330. coroutine.resume(coroutine.create(function()
  7331. coroutine.resume(coroutine.create(function()
  7332. for i = 0, 175 do
  7333. swait()
  7334. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7335. orb.Transparency = orb.Transparency - 0.005
  7336. end
  7337. end))
  7338. wait(2)
  7339. coroutine.resume(coroutine.create(function()
  7340. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7341. if hfr ~= nil then
  7342. for i = 0, 24.5 do
  7343. local deb = Instance.new("Part", char)
  7344. deb.Anchored = true
  7345. deb.CanCollide = false
  7346. deb.FormFactor = 3
  7347. deb.Name = "Ring"
  7348. deb.Material = hitfloor.Material
  7349. deb.Color = hitfloor.Color
  7350. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7351. deb.Transparency = 0
  7352. deb.TopSurface = 0
  7353. deb.BottomSurface = 0
  7354. 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)))
  7355. local deb2 = Instance.new("Part", char)
  7356. deb2.CanCollide = false
  7357. deb2.FormFactor = 3
  7358. deb2.Name = "Ring"
  7359. deb2.Material = hitfloor.Material
  7360. deb2.Color = hitfloor.Color
  7361. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7362. deb2.Transparency = 0
  7363. deb2.TopSurface = 0
  7364. deb2.BottomSurface = 0
  7365. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7366. 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)))
  7367. local eff = Instance.new("ParticleEmitter",deb)
  7368. eff.Texture = "rbxassetid://363275192"
  7369. eff.LightEmission = 0.95
  7370. eff.Color = ColorSequence.new(keptcolor.Color)
  7371. eff.Rate = 100
  7372. eff.Lifetime = NumberRange.new(1)
  7373. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7374. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7375. eff.Speed = NumberRange.new(0,5)
  7376. eff.Rotation = NumberRange.new(-500,500)
  7377. eff.VelocitySpread = 9000
  7378. eff.RotSpeed = NumberRange.new(-10,10)
  7379. local at1 = Instance.new('Attachment',deb2)
  7380. at1.Position = vt(0,15,0)
  7381. local at2 = Instance.new('Attachment',deb2)
  7382. at2.Position = vt(0,-15,0)
  7383. local tl = Instance.new('Trail',deb2)
  7384. tl.Attachment0 = at1
  7385. tl.Attachment1 = at2
  7386. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7387. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7388. tl.Lifetime = 1
  7389. game:GetService("Debris"):AddItem(deb,30)
  7390. game:GetService("Debris"):AddItem(deb2,30)
  7391. coroutine.resume(coroutine.create(function()
  7392. wait(15)
  7393. eff.Enabled = false
  7394. for i = 0, 49 do
  7395. swait()
  7396. deb.Transparency = deb.Transparency + 0.02
  7397. end
  7398. wait(1)
  7399. deb:Destroy()
  7400. end))
  7401. end
  7402. end
  7403. end))
  7404. for i = 0, 199 do
  7405. swait(1.5)
  7406. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7407. if v:FindFirstChild('Head') then
  7408. dmg(v)
  7409. end
  7410. end
  7411. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7412. 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)
  7413. 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)
  7414. 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)
  7415. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7416. end
  7417. orb:Destroy()
  7418. end))
  7419. end
  7420.  
  7421. function Beams()
  7422. attack = true
  7423. hum.WalkSpeed = 0
  7424. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7425. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7426. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7427. local keptcolor = MAINRUINCOLOR
  7428. coroutine.resume(coroutine.create(function()
  7429. for i = 0, 96 do
  7430. swait(5)
  7431. local orb = Instance.new("Part", char)
  7432. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7433. orb.BrickColor = keptcolor
  7434. orb.CanCollide = false
  7435. orb.FormFactor = 3
  7436. orb.Name = "Ring"
  7437. orb.Material = "Neon"
  7438. orb.Size = Vector3.new(1, 1, 1)
  7439. orb.Transparency = 0
  7440. orb.TopSurface = 0
  7441. orb.BottomSurface = 0
  7442. orb.Anchored = true
  7443. local orbm = Instance.new("SpecialMesh", orb)
  7444. orbm.MeshType = "Sphere"
  7445. orbm.Name = "SizeMesh"
  7446. orbm.Scale = vt(1.25,1.25,1.25)
  7447. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7448. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7449. coroutine.resume(coroutine.create(function()
  7450. wait(0.5)
  7451. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7452. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7453. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7454. orb.Transparency = 1
  7455. local a = Instance.new("Part",char)
  7456. a.Name = "Direction"
  7457. a.Anchored = true
  7458. a.BrickColor = keptcolor
  7459. a.Material = "Neon"
  7460. a.Transparency = 0.25
  7461. a.Shape = "Cylinder"
  7462. local ht = Instance.new("Part",char)
  7463. ht.Name = "DirectionHit"
  7464. ht.Anchored = true
  7465. ht.BrickColor = keptcolor
  7466. ht.CanCollide = false
  7467. ht.Transparency = 1
  7468. ht.Size = vt(0.1,0.1,0.1)
  7469. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7470. a.CanCollide = false
  7471. local ray = Ray.new(
  7472. orb.CFrame.p, -- origin
  7473. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7474. )
  7475. local ignore = char
  7476. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7477. a.BottomSurface = 10
  7478. a.TopSurface = 10
  7479. local distance = (orb.CFrame.p - position).magnitude
  7480. a.Size = Vector3.new(distance,1,1)
  7481. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7482. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7483. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7484. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7485. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7486. coroutine.resume(coroutine.create(function()
  7487. local eff = Instance.new("ParticleEmitter",ht)
  7488. eff.Texture = "rbxassetid://284205403"
  7489. eff.LightEmission = 0.95
  7490. eff.Color = ColorSequence.new(keptcolor.Color)
  7491. eff.Rate = 500
  7492. eff.Lifetime = NumberRange.new(0.5)
  7493. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7494. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7495. eff.Speed = NumberRange.new(10,50)
  7496. eff.Drag = 5
  7497. eff.Rotation = NumberRange.new(-500,500)
  7498. eff.VelocitySpread = 9000
  7499. eff.RotSpeed = NumberRange.new(-500,500)
  7500. wait(0.25)
  7501. eff.Enabled = false
  7502. end))
  7503. for i = 0, 4 do
  7504. 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)
  7505. 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)
  7506. local rsiz = math.random(10,30)
  7507. 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)
  7508. end
  7509. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7510. local msh = Instance.new("SpecialMesh",a)
  7511. msh.MeshType = "Cylinder"
  7512. msh.Scale = vt(1,1,1)
  7513. for i = 0, 49 do
  7514. swait()
  7515. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7516. a.Transparency = a.Transparency + 0.02
  7517. end
  7518. orb:Destroy()
  7519. a:Destroy()
  7520. ht:Destroy()
  7521. end))
  7522. game:GetService("Debris"):AddItem(orb, 10)
  7523. end
  7524. end))
  7525. for i = 0,6,0.1 do
  7526. swait()
  7527. 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)
  7528. 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)
  7529. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7530. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7531. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7532. 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)
  7533. 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)
  7534. end
  7535. hum.WalkSpeed = storehumanoidWS
  7536. attack = false
  7537. end
  7538.  
  7539. function CalamityTrans()
  7540. attack = true
  7541. rainbowmode = false
  7542. chaosmode = false
  7543. ModeOfGlitch = 8889
  7544. hum.WalkSpeed = 0
  7545. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7546. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7547. elocacenter.Anchored = true
  7548. elocacenter.CFrame = root.CFrame
  7549. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7550. eloca1.Anchored = true
  7551. eloca1.CFrame = elocacenter.CFrame
  7552. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7553. eloca2.Anchored = true
  7554. eloca2.CFrame = elocacenter.CFrame
  7555. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7556. eloca3.Anchored = true
  7557. eloca3.CFrame = elocacenter.CFrame
  7558. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7559. eloca4.Anchored = true
  7560. eloca4.CFrame = elocacenter.CFrame
  7561. local lookavec = 0
  7562. local speeds = 0
  7563. CameraEnshaking(3,2.5)
  7564. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7565. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7566. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7567. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7568. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7569. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7570. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7571. for i = 0, 5, 0.1 do
  7572. swait()
  7573. ---
  7574. lookavec = lookavec + 1
  7575. speeds = speeds + 10
  7576. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7577. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7578. 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)
  7579. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7580. 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)
  7581. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7582. 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)
  7583. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7584. 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)
  7585. ---
  7586. 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)
  7587. 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)
  7588. 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)
  7589. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7590. 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)
  7591. 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)
  7592. end
  7593. for i = 0, 5, 0.1 do
  7594. swait()
  7595. ---
  7596. speeds = speeds + 10
  7597. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7598. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7599. 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)
  7600. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7601. 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)
  7602. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7603. 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)
  7604. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7605. 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)
  7606. ---
  7607. 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)
  7608. 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)
  7609. 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)
  7610. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7611. 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)
  7612. 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)
  7613. end
  7614. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7615. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7616. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7617. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7618. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7619. CameraEnshaking(1,3)
  7620. for i = 0, 24 do
  7621. 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)
  7622. 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)
  7623. 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)
  7624. 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)
  7625. end
  7626. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7627. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7628. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7629. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7630. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7631. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7632. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7633. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7634. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7635. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7636. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7637. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7638. for i = 0, 5, 0.1 do
  7639. swait()
  7640. ---
  7641. lookavec = lookavec - 1
  7642. speeds = speeds + 10
  7643. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7644. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7645. 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)
  7646. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7647. 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)
  7648. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7649. 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)
  7650. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7651. 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)
  7652. ---
  7653. 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)
  7654. 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)
  7655. 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)
  7656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7657. 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)
  7658. 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)
  7659. end
  7660. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7661. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7662. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7663. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7664. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7665. for i = 0, 49 do
  7666. 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)
  7667. 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)
  7668. end
  7669. CameraEnshaking(5,6)
  7670. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7671. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7672. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7673. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7674. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7675. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7676. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7677. storehumanoidWS = 100
  7678. hum.WalkSpeed = 100
  7679. rainbowmode = false
  7680. chaosmode = false
  7681. tl1.Enabled = true
  7682. tl2.Enabled = true
  7683. tl3.Enabled = true
  7684. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7685. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7686. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7687. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7688. for i, v in pairs(mw2:GetChildren()) do
  7689. if v:IsA("Part") then
  7690. v.BrickColor = MAINRUINCOLOR
  7691. v.Material = "Neon"
  7692. end
  7693. end
  7694. for i, v in pairs(mw1:GetChildren()) do
  7695. if v:IsA("Part") then
  7696. v.Transparency = 0
  7697. v.BrickColor = MAINRUINCOLOR
  7698. v.Material = "Neon"
  7699. end
  7700. end
  7701. for i, v in pairs(m:GetChildren()) do
  7702. if v:IsA("Part") then
  7703. v.Color = Color3.new(0.5,0,1)
  7704. v.Material = "Neon"
  7705. end
  7706. end
  7707. for i, v in pairs(m2:GetChildren()) do
  7708. if v:IsA("Part") then
  7709. v.Color = Color3.new(0.25,0,1)
  7710. v.Material = "Neon"
  7711. end
  7712. end
  7713. for i, v in pairs(m3:GetChildren()) do
  7714. if v:IsA("Part") then
  7715. v.Color = Color3.new(0.45,0,1)
  7716. v.Material = "Neon"
  7717. end
  7718. end
  7719. for i, v in pairs(extrawingmod1:GetChildren()) do
  7720. if v:IsA("Part") then
  7721. v.Transparency = 0.75
  7722. v.Color = Color3.new(0.25,0,1)
  7723. v.Material = "Neon"
  7724. end
  7725. end
  7726. for i, v in pairs(extrawingmod2:GetChildren()) do
  7727. if v:IsA("Part") then
  7728. v.Transparency = 0.75
  7729. v.Color = Color3.new(0.5,0,1)
  7730. v.Material = "Neon"
  7731. end
  7732. end
  7733. attack = false
  7734. end
  7735.  
  7736. function InsaneTrans()
  7737. attack = true
  7738. rainbowmode = false
  7739. chaosmode = false
  7740. ModeOfGlitch = 8889
  7741. hum.WalkSpeed = 0
  7742. newThemeCust("rbxassetid://183142252",1,1,10)
  7743. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7744. elocacenter.Anchored = true
  7745. elocacenter.CFrame = root.CFrame
  7746. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7747. eloca1.Anchored = true
  7748. eloca1.CFrame = elocacenter.CFrame
  7749. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7750. eloca2.Anchored = true
  7751. eloca2.CFrame = elocacenter.CFrame
  7752. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7753. eloca3.Anchored = true
  7754. eloca3.CFrame = elocacenter.CFrame
  7755. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7756. eloca4.Anchored = true
  7757. eloca4.CFrame = elocacenter.CFrame
  7758. local lookavec = 0
  7759. local speeds = 0
  7760. CameraEnshaking(3,2.5)
  7761. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7762. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7763. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7764. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7765. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7766. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7767. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7768. for i = 0, 5, 0.1 do
  7769. swait()
  7770. ---
  7771. lookavec = lookavec + 1
  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. for i = 0, 5, 0.1 do
  7791. swait()
  7792. ---
  7793. speeds = speeds + 10
  7794. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7795. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7796. 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)
  7797. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7798. 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)
  7799. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7800. 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)
  7801. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7802. 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)
  7803. ---
  7804. 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)
  7805. 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)
  7806. 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)
  7807. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7808. 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)
  7809. 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)
  7810. end
  7811. MAINRUINCOLOR = BrickColor.new("Really black")
  7812. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7813. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7814. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7815. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7816. CameraEnshaking(1,3)
  7817. for i = 0, 24 do
  7818. 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)
  7819. 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)
  7820. 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)
  7821. 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)
  7822. end
  7823. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7824. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7825. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7826. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7827. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7828. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7829. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7830. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7831. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7832. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7833. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7834. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7835. for i = 0, 5, 0.1 do
  7836. swait()
  7837. ---
  7838. lookavec = lookavec - 1
  7839. speeds = speeds + 10
  7840. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7841. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7842. 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)
  7843. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7844. 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)
  7845. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7846. 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)
  7847. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7848. 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)
  7849. ---
  7850. 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)
  7851. 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)
  7852. 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)
  7853. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7854. 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)
  7855. 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)
  7856. end
  7857. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7858. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7859. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7860. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7861. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7862. for i = 0, 49 do
  7863. 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)
  7864. 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)
  7865. end
  7866. CameraEnshaking(5,6)
  7867. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7868. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7869. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7870. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7871. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7872. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7873. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7874. storehumanoidWS = 100
  7875. hum.WalkSpeed = 100
  7876. rainbowmode = false
  7877. chaosmode = false
  7878. tl1.Enabled = true
  7879. tl2.Enabled = true
  7880. tl3.Enabled = true
  7881. RecolorTextAndRename("The Insane Guest",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7882. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7883. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7884. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7885. for i, v in pairs(mw2:GetChildren()) do
  7886. if v:IsA("Part") then
  7887. v.BrickColor = MAINRUINCOLOR
  7888. v.Material = "Neon"
  7889. end
  7890. end
  7891. for i, v in pairs(mw1:GetChildren()) do
  7892. if v:IsA("Part") then
  7893. v.Transparency = 0
  7894. v.BrickColor = MAINRUINCOLOR
  7895. v.Material = "Neon"
  7896. end
  7897. end
  7898. for i, v in pairs(m:GetChildren()) do
  7899. if v:IsA("Part") then
  7900. v.Color = Color3.new(170,0,0)
  7901. v.Material = "Neon"
  7902. end
  7903. end
  7904. for i, v in pairs(m2:GetChildren()) do
  7905. if v:IsA("Part") then
  7906. v.Color = Color3.new(0,0,0)
  7907. v.Material = "Neon"
  7908. end
  7909. end
  7910. for i, v in pairs(m3:GetChildren()) do
  7911. if v:IsA("Part") then
  7912. v.Color = Color3.new(0,0,0)
  7913. v.Material = "Neon"
  7914. end
  7915. end
  7916. for i, v in pairs(extrawingmod1:GetChildren()) do
  7917. if v:IsA("Part") then
  7918. v.Transparency = 0.75
  7919. v.Color = Color3.new(0,0,0)
  7920. v.Material = "Neon"
  7921. end
  7922. end
  7923. for i, v in pairs(extrawingmod2:GetChildren()) do
  7924. if v:IsA("Part") then
  7925. v.Transparency = 0.75
  7926. v.Color = Color3.new(0,0,0)
  7927. v.Material = "Neon"
  7928. end
  7929. end
  7930. attack = false
  7931. end
  7932.  
  7933. function GleamingBeam()
  7934. attack = true
  7935. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7936. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7937. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7938. local rsiz = math.random(1,15)
  7939. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7940. hb.Anchored = true
  7941. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7942. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7943. for i = 0, 16, 0.1 do
  7944. swait()
  7945. rsiz = math.random(5,15)
  7946. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7947. 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)
  7948. 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)
  7949. 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)
  7950. 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)
  7951. 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)
  7952. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7953. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7954. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7955. end
  7956. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7957. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7958. for i = 0, 2 do
  7959. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7960. end
  7961. 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)
  7962. 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)
  7963. 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)
  7964. for i = 0, 49 do
  7965. local rsiza = math.random(1,15)
  7966. 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)
  7967. end
  7968. local a = Instance.new("Part",Character)
  7969. a.Name = "Direction"
  7970. a.Anchored = true
  7971. a.BrickColor = MAINRUINCOLOR
  7972. a.Material = "Neon"
  7973. a.Transparency = 0
  7974. a.Shape = "Cylinder"
  7975. a.CanCollide = false
  7976. local ba = Instance.new("Part",Character)
  7977. ba.Name = "HitDirect"
  7978. ba.Anchored = true
  7979. ba.BrickColor = bc("Cool yellow")
  7980. ba.Material = "Neon"
  7981. ba.Transparency = 1
  7982. ba.CanCollide = false
  7983. local ray = Ray.new(
  7984. hb.CFrame.p, -- origin
  7985. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7986. )
  7987. local ignore = Character
  7988. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7989. a.BottomSurface = 10
  7990. a.TopSurface = 10
  7991. local distance = (hb.CFrame.p - position).magnitude
  7992. a.Size = Vector3.new(distance, 1, 1)
  7993. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7994. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7995. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7996. local msh = Instance.new("SpecialMesh",a)
  7997. msh.MeshType = "Cylinder"
  7998. msh.Scale = vt(1,4,4)
  7999. game:GetService("Debris"):AddItem(a, 30)
  8000. game:GetService("Debris"):AddItem(ba, 30)
  8001. for i = 0, 25, 0.1 do
  8002. swait()
  8003. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8004. ray = Ray.new(
  8005. hb.CFrame.p, -- origin
  8006. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8007. )
  8008. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8009. distance = (hb.CFrame.p - position).magnitude
  8010. a.Size = Vector3.new(distance, 1, 1)
  8011. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8012. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8013. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8014. rsiz = math.random(5,25)
  8015. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8016. 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)
  8017. for c = 0, 2 do
  8018. 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)
  8019. end
  8020. 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)
  8021. 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)
  8022. 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)
  8023. 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)
  8024. 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)
  8025. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8026. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8027. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8028. end
  8029. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8030. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8031. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8032. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8033. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8034. 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)
  8035. 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)
  8036. 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)
  8037. 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)
  8038. 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)
  8039. 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)
  8040. for i = 0, 49 do
  8041. local rsiza = math.random(1,15)
  8042. 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)
  8043. end
  8044. for i = 0, 49 do
  8045. rsiz = math.random(1,8)
  8046. 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)
  8047. end
  8048. coroutine.resume(coroutine.create(function()
  8049. for i = 0, 99 do
  8050. swait()
  8051. a.Transparency = a.Transparency + 0.01
  8052. end
  8053. a:Destroy()
  8054. ba:Destroy()
  8055. end))
  8056. hb:Destroy()
  8057. attack = false
  8058. end
  8059.  
  8060. function DualGleamingBeam()
  8061. attack = true
  8062. hum.WalkSpeed = 0
  8063. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8064. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8065. local radm = math.random(1,3)
  8066. if radm == 1 then
  8067. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8068. elseif radm == 2 then
  8069. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8070. elseif radm == 3 then
  8071. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8072. end
  8073. local rsiz = math.random(1,15)
  8074. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8075. hb.Anchored = true
  8076. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8077. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8078. hb2.Anchored = true
  8079. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8080. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8081. for i = 0, 14, 0.1 do
  8082. swait()
  8083. rsiz = math.random(5,15)
  8084. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8085. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8086. 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)
  8087. 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)
  8088. 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)
  8089. 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"))
  8090. 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)
  8091. 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)
  8092. 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)
  8093. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8094. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8095. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8096. end
  8097. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8098. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8099. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8100. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8101. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8102. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8103. 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)
  8104. 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)
  8105. 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)
  8106. 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"))
  8107. 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"))
  8108. 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"))
  8109. for i = 0, 49 do
  8110. local rsiza = math.random(1,15)
  8111. 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)
  8112. 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)
  8113. end
  8114. local a = Instance.new("Part",Character)
  8115. a.Name = "Direction"
  8116. a.Anchored = true
  8117. a.BrickColor = MAINRUINCOLOR
  8118. a.Material = "Neon"
  8119. a.Transparency = 0
  8120. a.Shape = "Cylinder"
  8121. a.CanCollide = false
  8122. local a2 = Instance.new("Part",Character)
  8123. a2.Name = "Direction"
  8124. a2.Anchored = true
  8125. a2.BrickColor = MAINRUINCOLOR
  8126. a2.Material = "Neon"
  8127. a2.Transparency = 0
  8128. a2.Shape = "Cylinder"
  8129. a2.CanCollide = false
  8130. local ba = Instance.new("Part",Character)
  8131. ba.Name = "HitDirect"
  8132. ba.Anchored = true
  8133. ba.BrickColor = MAINRUINCOLOR
  8134. ba.Material = "Neon"
  8135. ba.Transparency = 1
  8136. ba.CanCollide = false
  8137. local ba2 = Instance.new("Part",Character)
  8138. ba2.Name = "HitDirect"
  8139. ba2.Anchored = true
  8140. ba2.BrickColor = MAINRUINCOLOR
  8141. ba2.Material = "Neon"
  8142. ba2.Transparency = 1
  8143. ba2.CanCollide = false
  8144. local ray = Ray.new(
  8145. hb.CFrame.p, -- origin
  8146. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8147. )
  8148. local ignore = Character
  8149. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8150. local ray2 = Ray.new(
  8151. hb2.CFrame.p, -- origin
  8152. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8153. )
  8154. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8155. local distance2 = (hb2.CFrame.p - position).magnitude
  8156.  
  8157. a.BottomSurface = 10
  8158. a.TopSurface = 10
  8159. local distance = (hb.CFrame.p - position).magnitude
  8160. a.Size = Vector3.new(distance, 1, 1)
  8161. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8162. a2.BottomSurface = 10
  8163. a2.TopSurface = 10
  8164. a2.Size = Vector3.new(distance2, 1, 1)
  8165. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8166. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8167. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8168. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8169. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8170. local msh = Instance.new("SpecialMesh",a)
  8171. msh.MeshType = "Cylinder"
  8172. msh.Scale = vt(1,4,4)
  8173. local msh2 = Instance.new("SpecialMesh",a2)
  8174. msh2.MeshType = "Cylinder"
  8175. msh2.Scale = vt(1,4,4)
  8176. game:GetService("Debris"):AddItem(a, 30)
  8177. game:GetService("Debris"):AddItem(a2, 30)
  8178. game:GetService("Debris"):AddItem(ba, 30)
  8179. game:GetService("Debris"):AddItem(ba2, 30)
  8180. for i = 0, 20, 0.1 do
  8181. swait()
  8182. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8183. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8184. ray = Ray.new(
  8185. hb.CFrame.p, -- origin
  8186. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8187. )
  8188. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8189. distance = (hb.CFrame.p - position).magnitude
  8190. ray2 = Ray.new(
  8191. hb2.CFrame.p, -- origin
  8192. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8193. )
  8194. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8195. distance2 = (hb2.CFrame.p - position).magnitude
  8196. a.Size = Vector3.new(distance, 1, 1)
  8197. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8198. a2.Size = Vector3.new(distance2, 1, 1)
  8199. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8200. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8201. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8202. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8203. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8204. rsiz = math.random(5,25)
  8205. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8206. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8207. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8208. if v:FindFirstChild('Head') then
  8209. dmg(v)
  8210. end
  8211. end
  8212. coroutine.resume(coroutine.create(function()
  8213. local bx = Instance.new("Part",Character)
  8214. bx.Name = "Location"
  8215. bx.Anchored = true
  8216. bx.BrickColor = MAINRUINCOLOR
  8217. bx.Material = "Neon"
  8218. bx.Transparency = 1
  8219. bx.CanCollide = false
  8220. bx.Position = ba.Position
  8221. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8222. wait(math.random(1,2))
  8223. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8224. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8225. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8226. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8227. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8228. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8229. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8230. if v:FindFirstChild('Head') then
  8231. dmg(v)
  8232. end
  8233. end
  8234. wait(5)
  8235. bx:Destroy()
  8236. end))
  8237. 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)
  8238. 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)
  8239. for c = 0, 2 do
  8240. 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)
  8241. end
  8242. 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)
  8243. 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)
  8244. 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)
  8245. 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)
  8246. 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)
  8247. 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)
  8248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8249. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8250. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8251. end
  8252. for i = 0, 1 do
  8253. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8254. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8255. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8256. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8257. end
  8258. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8259. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8260. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8261. if v:FindFirstChild('Head') then
  8262. dmg(v)
  8263. end
  8264. end
  8265. 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)
  8266. 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)
  8267. 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)
  8268. 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)
  8269. 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)
  8270. 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)
  8271. 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"))
  8272. 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"))
  8273. 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"))
  8274. for i = 0, 49 do
  8275. local rsiza = math.random(1,15)
  8276. 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)
  8277. 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)
  8278. end
  8279. for i = 0, 49 do
  8280. rsiz = math.random(1,8)
  8281. 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)
  8282. end
  8283. coroutine.resume(coroutine.create(function()
  8284. for i = 0, 99 do
  8285. swait()
  8286. a.Transparency = a.Transparency + 0.01
  8287. a2.Transparency = a2.Transparency + 0.01
  8288. end
  8289. a:Destroy()
  8290. ba:Destroy()
  8291. a2:Destroy()
  8292. ba2:Destroy()
  8293. end))
  8294. hum.WalkSpeed = storehumanoidWS
  8295. hb:Destroy()
  8296. hb2:Destroy()
  8297. attack = false
  8298. end
  8299.  
  8300. function dragin()
  8301. local targetted = nil
  8302. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8303. targetted = mouse.Target.Parent
  8304. end
  8305. if targetted ~= nil then
  8306. RootPart.CFrame = FaceMouse()[1]
  8307. attack = true
  8308. hum.WalkSpeed = 0
  8309. for x = 0, 1 do
  8310. for i = 0,1,0.5 do
  8311. swait()
  8312. 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)
  8313. 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)
  8314. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8315. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8316. 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)
  8317. 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)
  8318. end
  8319. for i = 0,1,0.5 do
  8320. swait()
  8321. 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)
  8322. 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)
  8323. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8324. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8325. 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)
  8326. 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)
  8327. end
  8328. for i = 0,1,0.5 do
  8329. swait()
  8330. 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)
  8331. 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)
  8332. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8333. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8334. 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)
  8335. 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)
  8336. end
  8337. for i = 0,1,0.5 do
  8338. swait()
  8339. 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)
  8340. 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)
  8341. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8342. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8343. 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)
  8344. 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)
  8345. end
  8346. end
  8347. coroutine.resume(coroutine.create(function()
  8348. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8349. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8350. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8351. end))
  8352. local A1 = Instance.new("Attachment",targetted.Head)
  8353. local A2 = Instance.new("Attachment",sorb)
  8354. local Beem = Instance.new("Beam",tors)
  8355. Beem.Attachment0 = A1
  8356. Beem.Attachment1 = A2
  8357. Beem.Texture = "rbxassetid://897585362"
  8358. Beem.LightEmission = 0.75
  8359. Beem.FaceCamera = true
  8360. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8361. Beem.Width0 = 1
  8362. Beem.Width1 = 1
  8363. Beem.TextureMode = "Wrap"
  8364. Beem.TextureLength = 1
  8365. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8366. 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)
  8367. 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)
  8368. for x = 0, 24 do
  8369. local rsiz = math.random(5,15)
  8370. 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)
  8371. end
  8372.  
  8373. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8374. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8375. local radm = math.random(1,2)
  8376. if radm == 1 then
  8377. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8378. elseif radm == 2 then
  8379. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8380. end
  8381. for i = 0,3,0.1 do
  8382. swait()
  8383. coroutine.resume(coroutine.create(function()
  8384. local rsiz = math.random(5,15)
  8385. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8386. 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)
  8387. end))
  8388. 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)
  8389. 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)
  8390. 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)
  8391. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8392. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8393. 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)
  8394. 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)
  8395. end
  8396. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8397. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8398. local vel = Instance.new("BodyPosition", targetted.Head)
  8399. vel.P = 12500
  8400. vel.D = 1000
  8401. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8402. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8403. for i = 0,4,0.1 do
  8404. swait()
  8405. coroutine.resume(coroutine.create(function()
  8406. local rsiz = math.random(5,15)
  8407. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8408. 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)
  8409. end))
  8410. 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)
  8411. 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)
  8412. 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)
  8413. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8414. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8415. 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)
  8416. 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)
  8417. end
  8418. local visibility = 0
  8419. coroutine.resume(coroutine.create(function()
  8420. for i = 0, 49 do
  8421. swait()
  8422. visibility = visibility + 0.02
  8423. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8424. end
  8425. Beem:Destroy()
  8426. A1:Destroy()
  8427. A2:Destroy()
  8428. end))
  8429. game:GetService("Debris"):AddItem(vel,0.75)
  8430. attack = false
  8431. hum.WalkSpeed = storehumanoidWS
  8432.  
  8433. end
  8434. end
  8435.  
  8436. function hugg()
  8437. attack = true
  8438. hum.WalkSpeed = 5
  8439. local rsiz = math.random(5,15)
  8440. for i = 0, 2, 0.1 do
  8441. swait()
  8442. 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)
  8443. 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)
  8444. 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)
  8445. 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)
  8446. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8447. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8448. end
  8449. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8450. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8451. hb.Anchored = true
  8452. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8453. local huggedperson = nil
  8454. local act = false
  8455. local alreadydid = false
  8456. for i = 0, 3, 0.1 do
  8457. swait()
  8458. if act == false then
  8459. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8460. if v:FindFirstChild('Head') then
  8461. if alreadydid == false then
  8462. huggedperson = v
  8463. hum.WalkSpeed = 0
  8464. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8465. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8466. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8467. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8468. local radm = math.random(1,3)
  8469. if radm == 1 then
  8470. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8471. elseif radm == 2 then
  8472. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8473. elseif radm == 3 then
  8474. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8475. end
  8476. root.Anchored = true
  8477. coroutine.resume(coroutine.create(function()
  8478. huggedperson.Humanoid.WalkSpeed = 0
  8479. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8480. end))
  8481. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8482. alreadydid = true
  8483. act = true
  8484. print(huggedperson.Name)
  8485. end
  8486. end
  8487. end
  8488. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8489. 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)
  8490. elseif act == true then
  8491. coroutine.resume(coroutine.create(function()
  8492. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8493. end))
  8494. rsiz = math.random(5,15)
  8495. 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)
  8496. 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)
  8497. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8498. end
  8499. 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)
  8500. 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)
  8501. 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)
  8502. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8503. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8504. end
  8505. hb:Destroy()
  8506. if act == true then
  8507. for x = 0, 2 do
  8508. for i = 0, 2, 0.1 do
  8509. swait()
  8510. coroutine.resume(coroutine.create(function()
  8511. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8512. end))
  8513. rsiz = math.random(5,15)
  8514. 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)
  8515. 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)
  8516. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8517. 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)
  8518. 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)
  8519. 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)
  8520. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8521. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8522. end
  8523. for i = 0, 2, 0.1 do
  8524. swait()
  8525. coroutine.resume(coroutine.create(function()
  8526. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8527. end))
  8528. rsiz = math.random(5,15)
  8529. 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)
  8530. 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)
  8531. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8532. 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)
  8533. 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)
  8534. 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)
  8535. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8536. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8537. end
  8538. end
  8539. end
  8540. hum.WalkSpeed = storehumanoidWS
  8541. root.Anchored = false
  8542. if act == true then
  8543. coroutine.resume(coroutine.create(function()
  8544. huggedperson.Humanoid.WalkSpeed = 16
  8545. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8546. end))
  8547. end
  8548. hum.WalkSpeed = storehumanoidWS
  8549. attack = false
  8550. end
  8551.  
  8552. function Counter()
  8553. hum.WalkSpeed = 0
  8554. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8555. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8556. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8557. attack = true
  8558. for i = 0,1,0.1 do
  8559. swait()
  8560. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8561. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8562. 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)
  8563. 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)
  8564. 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)
  8565. 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)
  8566. end
  8567. CameraEnshaking(3,4)
  8568. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8569. 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)
  8570. 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)
  8571. 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)
  8572. coroutine.resume(coroutine.create(function()
  8573. local eff = Instance.new("ParticleEmitter",root)
  8574. eff.Texture = "rbxassetid://363275192"
  8575. eff.LightEmission = 0.95
  8576. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8577. eff.Rate = 10000
  8578. eff.Lifetime = NumberRange.new(1)
  8579. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8580. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8581. eff.Speed = NumberRange.new(10,125)
  8582. eff.Drag = 5
  8583. eff.Rotation = NumberRange.new(-500,500)
  8584. eff.VelocitySpread = 9000
  8585. eff.RotSpeed = NumberRange.new(-50,50)
  8586. local eff2 = eff:Clone()
  8587. eff2.Parent = root
  8588. eff2.Texture = "rbxassetid://284205403"
  8589. eff2.Rate = 10000
  8590. 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)})
  8591. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8592. eff2.Drag = 5
  8593. eff2.Speed = NumberRange.new(10,50)
  8594. eff2.Rotation = NumberRange.new(-500,500)
  8595. eff2.VelocitySpread = 9000
  8596. wait(0.25)
  8597. eff2.Enabled = false
  8598. eff.Enabled = false
  8599. wait(3)
  8600. eff2:Destroy()
  8601. eff:Destroy()
  8602. end))
  8603. for i = 0, 9 do
  8604. 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)
  8605. end
  8606. for i = 0, 24 do
  8607. local rsiz = math.random(5,20)
  8608. 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)
  8609. end
  8610. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8611. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8612. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8613. for i = 0,2,0.1 do
  8614. swait()
  8615. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8616. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8617. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8618. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8619. 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)
  8620. 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)
  8621. end
  8622. hum.WalkSpeed = storehumanoidWS
  8623. attack = false
  8624. end
  8625.  
  8626. function superjump()
  8627. attack = true
  8628. hum.WalkSpeed = 0
  8629. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8630. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8631. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8632. for i = 0, 2, 0.1 do
  8633. swait()
  8634. root.Velocity = vt(0,0,0)
  8635. 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"))
  8636. 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)
  8637. 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)
  8638. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8639. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8640. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8641. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8642. end
  8643. MagniDamage(root, 28, 25,50, 25, "Normal")
  8644. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8645. hum.Jump = true
  8646. swait()
  8647. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8648. 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)
  8649. 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)
  8650. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8651. for i = 0, 3, 0.1 do
  8652. swait()
  8653. 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)
  8654. 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)
  8655. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8657. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8658. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8659. end
  8660. attack = false
  8661. if equipped == false then
  8662. hum.WalkSpeed = 16
  8663. else
  8664. hum.WalkSpeed = 24
  8665. end
  8666. end
  8667.  
  8668.  
  8669. -------------------------------------
  8670.  
  8671.  
  8672.  
  8673. Humanoid.Animator.Parent = nil
  8674.  
  8675.  
  8676.  
  8677. -------------------------------------
  8678.  
  8679. local attacktype = 1
  8680. mouse.Button1Down:connect(function()
  8681. if attack == false and attacktype == 1 then
  8682. attacktype = 2
  8683. attackone()
  8684. elseif attack == false and attacktype == 2 then
  8685. attacktype = 3
  8686. attacktwo()
  8687. elseif attack == false and attacktype == 3 then
  8688. attacktype = 1
  8689. attackthree()
  8690. elseif attack == false and attacktype == 4 then
  8691. attacktype = 1
  8692. --attackfour()
  8693. end
  8694. end)
  8695. mouse.KeyDown:connect(function(k)
  8696. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8697. --normalmog()
  8698. ModeOfGlitch = 1
  8699. storehumanoidWS = 16
  8700. hum.WalkSpeed = 16
  8701. rainbowmode = false
  8702. chaosmode = false
  8703. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8704. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8705. MAINRUINCOLOR = BrickColor.new("Really red")
  8706. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8707. end
  8708. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8709. ModeOfGlitch = 2
  8710. storehumanoidWS = 16
  8711. hum.WalkSpeed = 16
  8712. rainbowmode = false
  8713. chaosmode = false
  8714. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8715. newTheme("rbxassetid://1539245059",0,1,0.85)
  8716. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8717. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8718. end
  8719. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8720. ModeOfGlitch = 3
  8721. storehumanoidWS = 14
  8722. hum.WalkSpeed = 14
  8723. rainbowmode = false
  8724. chaosmode = false
  8725. RecolorTextAndRename("Stable Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8726. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8727. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8728. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8729. end
  8730. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8731. ModeOfGlitch = 4
  8732. storehumanoidWS = 14
  8733. hum.WalkSpeed = 14
  8734. rainbowmode = false
  8735. chaosmode = true
  8736. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8737. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8738. MAINRUINCOLOR = BrickColor.new("Crimson")
  8739. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8740. end
  8741. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8742. ModeOfGlitch = 5
  8743. storehumanoidWS = 14
  8744. hum.WalkSpeed = 14
  8745. rainbowmode = false
  8746. chaosmode = false
  8747. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8748. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8749. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8750. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8751. end
  8752. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8753. ModeOfGlitch = 6
  8754. storehumanoidWS = 65
  8755. hum.WalkSpeed = 65
  8756. rainbowmode = false
  8757. chaosmode = false
  8758. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8759. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8760. MAINRUINCOLOR = BrickColor.new("White")
  8761. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8762. end
  8763. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8764. ModeOfGlitch = 8
  8765. storehumanoidWS = 100
  8766. hum.WalkSpeed = 100
  8767. rainbowmode = false
  8768. chaosmode = false
  8769. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8770. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8771. MAINRUINCOLOR = BrickColor.new("Alder")
  8772. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8773. end
  8774. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8775. ModeOfGlitch = 9
  8776. storehumanoidWS = 85
  8777. hum.WalkSpeed = 85
  8778. rainbowmode = false
  8779. chaosmode = false
  8780. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8781. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8782. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8783. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8784. end
  8785. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8786. ModeOfGlitch = 5555
  8787. storehumanoidWS = 30
  8788. hum.WalkSpeed = 30
  8789. rainbowmode = false
  8790. chaosmode = false
  8791. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8792. newTheme("rbxassetid://736003449",0,1,1.25)
  8793. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8794. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8795. end
  8796. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8797. CalamityTrans()
  8798. end
  8799. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8800. InsaneTrans()
  8801. end
  8802. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8803. ModeOfGlitch = 55469696922
  8804. storehumanoidWS = 95
  8805. hum.WalkSpeed = 95
  8806. rainbowmode = false
  8807. chaosmode = false
  8808. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8809. newTheme("rbxassetid://919231299",0,1.005,0.9)
  8810. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8811. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8812. end
  8813. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8814. ModeOfGlitch = 4367677813
  8815. storehumanoidWS = 75
  8816. hum.WalkSpeed = 75
  8817. rainbowmode = false
  8818. chaosmode = false
  8819. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8820. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8821. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8822. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8823. end
  8824. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8825. ModeOfGlitch = 9999999921111
  8826. storehumanoidWS = 145
  8827. hum.WalkSpeed = 145
  8828. rainbowmode = false
  8829. chaosmode = false
  8830. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8831. newTheme("rbxassetid://643309199",0,1.01,1)
  8832. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8833. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8834. end
  8835. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8836. ModeOfGlitch = 999999999556
  8837. storehumanoidWS = 115
  8838. hum.WalkSpeed = 115
  8839. rainbowmode = false
  8840. chaosmode = false
  8841. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8842. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8843. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8844. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8845. end
  8846. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8847. ModeOfGlitch = 12
  8848. storehumanoidWS = 19
  8849. hum.WalkSpeed = 19
  8850. rainbowmode = false
  8851. chaosmode = false
  8852. print'Mode was meant for Vengeful Program or those other fans out there'
  8853. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8854. newTheme("rbxassetid://1873219898",0,1,1.7)
  8855. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8856. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8857. end
  8858.  
  8859. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8860. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8861. for i = 0, 49 do
  8862. 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)
  8863. end
  8864. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8865. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8866. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8867. hum.WalkSpeed = storehumanoidWS
  8868. attack = false
  8869. ModeOfGlitch = 50
  8870. storehumanoidWS = 18
  8871. hum.WalkSpeed = 18
  8872. rainbowmode = false
  8873. chaosmode = false
  8874. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8875. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8876. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8877. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8878. end
  8879.  
  8880. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8881. hum.WalkSpeed = 0
  8882. attack = true
  8883. for i = 0,1,0.1 do
  8884. swait()
  8885. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8886. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8887. 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)
  8888. 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)
  8889. 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)
  8890. 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)
  8891. end
  8892. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8893. for i = 0, 148 do
  8894. 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)
  8895. end
  8896. for i = 0,3,0.1 do
  8897. 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)
  8898. end
  8899. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8900. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8901. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8902. hum.WalkSpeed = storehumanoidWS
  8903. attack = false
  8904. ModeOfGlitch = 66
  8905. storehumanoidWS = 16
  8906. hum.WalkSpeed = 16
  8907. rainbowmode = false
  8908. chaosmode = false
  8909. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8910. MAINRUINCOLOR = BrickColor.new("Really black")
  8911. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8912. for i = 0,2,0.1 do
  8913. swait()
  8914. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8915. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8916. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8917. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8918. 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)
  8919. 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)
  8920. end
  8921. end
  8922.  
  8923. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8924. hum.WalkSpeed = 0
  8925. attack = true
  8926. for i = 0,1,0.1 do
  8927. swait()
  8928. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8929. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8930. 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)
  8931. 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)
  8932. 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)
  8933. 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)
  8934. end
  8935. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8936. for i = 0, 49 do
  8937. 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)
  8938. end
  8939. for i = 0,3,0.1 do
  8940. 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)
  8941. end
  8942. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8943. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8944. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8945. hum.WalkSpeed = storehumanoidWS
  8946. attack = false
  8947. ModeOfGlitch = 13
  8948. storehumanoidWS = 45
  8949. hum.WalkSpeed = 45
  8950. rainbowmode = false
  8951. chaosmode = false
  8952. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8953. newTheme("rbxassetid://190845741",0,1,1.35)
  8954. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8955. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8956. for i = 0,2,0.1 do
  8957. swait()
  8958. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8959. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8960. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8961. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8962. 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)
  8963. 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)
  8964. end
  8965. end
  8966. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8967. ModeOfGlitch = 1002
  8968. storehumanoidWS = 45
  8969. hum.WalkSpeed = 45
  8970. rainbowmode = false
  8971. chaosmode = false
  8972. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8973. newTheme("rbxassetid://2027652726",0,1,0.85)
  8974. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8975. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8976. end
  8977. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8978. ModeOfGlitch = 1003
  8979. storehumanoidWS = 90
  8980. hum.WalkSpeed = 90
  8981. rainbowmode = false
  8982. chaosmode = false
  8983. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8984. newTheme("rbxassetid://257453119",0,1,0.85)
  8985. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8986. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8987. end
  8988. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8989. ModeOfGlitch = 1264532489
  8990. storehumanoidWS = 175
  8991. hum.WalkSpeed = 175
  8992. rainbowmode = false
  8993. chaosmode = false
  8994. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8995. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8996. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8997. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8998. end
  8999. if k == "l" and mutedtog == false then
  9000. mutedtog = true
  9001. kan.Volume = 0.85
  9002. elseif k == "l" and mutedtog == true then
  9003. mutedtog = false
  9004. kan.Volume = 0.85
  9005. end
  9006. if k == "p" and toggleTag == false then
  9007. toggleTag = true
  9008. modet.TextTransparency = 0
  9009. modet.TextStrokeTransparency = 0
  9010. elseif k == "p" and toggleTag == true then
  9011. toggleTag = false
  9012. modet.TextTransparency = 1
  9013. modet.TextStrokeTransparency = 1
  9014. end
  9015. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9016. ExtinctiveHeartbreak()
  9017. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9018. HeavenlyDisk()
  9019. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9020. DualGleamingBeam()
  9021. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9022. BanishingOrb()
  9023. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9024. hugg()
  9025. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9026. cutesigh()
  9027. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9028. Counter()
  9029. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9030. superjump()
  9031. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9032. dragin()
  9033. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9034. UniversalCollapse()
  9035. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9036. PureBomb()
  9037. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9038. Beams()
  9039. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9040. BeamOfDeath()
  9041. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9042. THE_TRUE_POWER_OF_VIOLENCE()
  9043. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9044. GleamingBeam()
  9045. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9046. ViolentRing()
  9047. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9048. CorruptionEvent()
  9049. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9050. CorruptBlink()
  9051. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9052. scattercorrupt()
  9053. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9054. shytaunty()
  9055. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9056. RapidBurst()
  9057. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9058. InsaneDrop()
  9059. wait(2)
  9060. ChaosEND()
  9061. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9062. ChaosEND()
  9063. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9064. CyberSlash()
  9065. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9066. smiter()
  9067. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9068. SpeedDrop()
  9069. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9070. --DivineLights()
  9071. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9072. DivineBlast()
  9073. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9074. EquinoxOrbs()
  9075. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9076. yinyangi()
  9077. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9078. FallenOrbs()
  9079. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9080. StarfallEX()
  9081. end
  9082. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9083. FallenDEMISE()
  9084. end
  9085. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9086. EndGROUND()
  9087. end
  9088. end)
  9089.  
  9090. coroutine.resume(coroutine.create(function()
  9091. while true do
  9092. swait()
  9093. 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
  9094. 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)
  9095. end
  9096. if ModeOfGlitch == 5555 then
  9097. 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)
  9098. end
  9099. end
  9100. end))
  9101. --[[coroutine.resume(coroutine.create(function()
  9102. while true do
  9103. swait(2)
  9104. if chaosmode == true then
  9105. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9106. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9107. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9108. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9109. for i, v in pairs(mw1:GetChildren()) do
  9110. if v:IsA("Part") then
  9111. v.Transparency = 0.75
  9112. v.BrickColor = BrickColor.random()
  9113. v.Material = "Neon"
  9114. end
  9115. end
  9116. for i, v in pairs(m2:GetChildren()) do
  9117. if v:IsA("Part") then
  9118. v.BrickColor = BrickColor.random()
  9119. v.Material = "Neon"
  9120. end
  9121. end
  9122. end
  9123. end
  9124. end))]]
  9125.  
  9126.  
  9127.  
  9128. ff = Instance.new("ForceField",char)
  9129. ff.Visible = false
  9130. hum.Name = "Base"
  9131. hum.MaxHealth = 1.0E298
  9132. hum.Health = 1.0E298
  9133. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9134. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9135. hum.MaxHealth = 1.0E298
  9136. hum.Health = 1.0E298
  9137. end
  9138. end)
  9139.  
  9140. local Hair = Instance.new("Part", char)
  9141. Hair.Name = "Hair"
  9142. Hair.CanCollide = false
  9143. Hair.BrickColor = BrickColor.new("Institutional white")
  9144. Hair.Transparency = 0
  9145. Hair.Material = "Plastic"
  9146. Hair.Size = Vector3.new(1, 1, 2)
  9147. Hair.TopSurface = Enum.SurfaceType.Smooth
  9148. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9149.  
  9150.  
  9151. local bguis = Instance.new("BillboardGui",tors)
  9152. bguis.Size = UDim2.new(25, 0, 25, 0)
  9153. local imgca = Instance.new("ImageLabel",bguis)
  9154. imgca.BackgroundTransparency = 1
  9155. imgca.ImageTransparency = 1
  9156. imgca.Size = UDim2.new(1,0,1,0)
  9157. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9158. imgca.ImageColor3 = Color3.new(0,0,0)
  9159.  
  9160.  
  9161. local bguis2 = Instance.new("BillboardGui",tors)
  9162. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9163. local imgca2 = Instance.new("ImageLabel",bguis)
  9164. imgca2.BackgroundTransparency = 1
  9165. imgca2.ImageTransparency = 1
  9166. imgca2.Size = UDim2.new(1,0,1,0)
  9167. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9168. imgca2.ImageColor3 = Color3.new(0,0,0)
  9169.  
  9170.  
  9171.  
  9172. idleanim=.4
  9173. while true do
  9174. if mutedtog == false then
  9175. kan.Volume = currentVol
  9176. elseif mutedtog == true then
  9177. kan.Volume = 0
  9178. end
  9179. kan.PlaybackSpeed = currentPitch
  9180. kan.Pitch = currentPitch
  9181. kan.SoundId = currentThemePlaying
  9182. kan.Looped = true
  9183. kan.Parent = char
  9184. kan:Resume()
  9185. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9186. imgca.ImageTransparency = 1
  9187. imgca2.ImageTransparency = 1
  9188. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9189. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9190. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9191. elseif ModeOfGlitch == 13 then
  9192. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9193. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9194. end
  9195. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9196. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9197. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9198. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9199. coroutine.resume(coroutine.create(function()
  9200. if chaosmode == true then
  9201. for i, v in pairs(mw1:GetChildren()) do
  9202. if v:IsA("Part") then
  9203. v.Transparency = 0
  9204. v.BrickColor = BrickColor.random()
  9205. v.Material = "Neon"
  9206. end
  9207. end
  9208. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9209. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9210. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9211. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9212. end
  9213. end))
  9214. coroutine.resume(coroutine.create(function()
  9215. if ModeOfGlitch == 66 then
  9216. for i, v in pairs(m:GetChildren()) do
  9217. if v:IsA("Part") then
  9218. v.Transparency = 0
  9219. v.BrickColor = BrickColor.random()
  9220. v.Material = "Neon"
  9221. end
  9222. end
  9223. for i, v in pairs(m2:GetChildren()) do
  9224. if v:IsA("Part") then
  9225. v.Transparency = 0
  9226. v.BrickColor = BrickColor.random()
  9227. v.Material = "Neon"
  9228. end
  9229. end
  9230. for i, v in pairs(mw1:GetChildren()) do
  9231. if v:IsA("Part") then
  9232. v.Transparency = 0
  9233. v.BrickColor = BrickColor.random()
  9234. v.Material = "Neon"
  9235. end
  9236. end
  9237. for i, v in pairs(extrawingmod1:GetChildren()) do
  9238. if v:IsA("Part") then
  9239. v.Transparency = 0.5
  9240. v.BrickColor = BrickColor.random()
  9241. v.Material = "Neon"
  9242. end
  9243. end
  9244. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9245. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9246. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9247. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9248. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9249. end
  9250. end))
  9251.  
  9252. coroutine.resume(coroutine.create(function()
  9253. if ModeOfGlitch == 66 then
  9254. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9255. end
  9256. end))
  9257.  
  9258. if chaosmode == false then
  9259. modet.Position = UDim2.new(0,0,0,0)
  9260. modet.Rotation = -5 * math.cos(sine / 32)
  9261. techc.Rotation = techc.Rotation + 1
  9262. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9263. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9264. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9265. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9266. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9267. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9268. else
  9269. techc.Rotation = techc.Rotation + 1
  9270. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9271. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9272. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9273. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9274. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9275. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9276. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9277. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9278. end
  9279. CameraManager()
  9280. swait()
  9281. 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)
  9282. 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)
  9283. 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)
  9284. 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)
  9285. 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)
  9286. 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)
  9287. 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)
  9288. 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)
  9289. 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)
  9290. 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)
  9291. 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)
  9292. 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)
  9293. sine = sine + change
  9294. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9295. local velderp=RootPart.Velocity.y
  9296. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9297. coroutine.resume(coroutine.create(function()
  9298. 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
  9299. if hitfloor ~= nil then
  9300. 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"))
  9301. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9302. 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)
  9303. end
  9304. end
  9305. end
  9306. end))
  9307. if equipped==true or equipped==false then
  9308. if attack==false then
  9309. idle=idle+1
  9310. else
  9311. idle=0
  9312. end
  9313. if idle>=500 then
  9314. if attack==false then
  9315. --Sheath()
  9316. end
  9317. end
  9318. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9319. Anim="Jump"
  9320. if attack==false then
  9321. 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)
  9322. 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)
  9323. 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)
  9324. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9325. 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)
  9326. 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)
  9327. end
  9328. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9329. Anim="Fall"
  9330. if attack==false then
  9331. 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)
  9332. 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)
  9333. 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)
  9334. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9335. 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)
  9336. 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)
  9337. end
  9338. elseif torvel<1 and hitfloor~=nil then
  9339. Anim="Idle"
  9340. if attack==false then
  9341. if ModeOfGlitch == 1 then
  9342. local snap = math.random(1,10)
  9343. if snap == 1 then
  9344. 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)
  9345. end
  9346. 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)
  9347. 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)
  9348. 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)
  9349. 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)
  9350. 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)
  9351. 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)
  9352. elseif ModeOfGlitch == 2 then
  9353. 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)
  9354. 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)
  9355. 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)
  9356. 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)
  9357. 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)
  9358. 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)
  9359. elseif ModeOfGlitch == 2 then
  9360. 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)
  9361. 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)
  9362. 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)
  9363. 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)
  9364. 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)
  9365. 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)
  9366. elseif ModeOfGlitch == 50 then
  9367. 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)
  9368. 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)
  9369. 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)
  9370. 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)
  9371. 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)
  9372. 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)
  9373. elseif ModeOfGlitch == 5555 then --5555
  9374. 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)
  9375. 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)
  9376. 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)
  9377. 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)
  9378. 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)
  9379. 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)
  9380. elseif ModeOfGlitch == 1002 then
  9381. 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)
  9382. 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)
  9383. 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)
  9384. 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)
  9385. 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)
  9386. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9387. elseif ModeOfGlitch == 12 then
  9388. 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)
  9389. 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)
  9390. 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)
  9391. 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)
  9392. 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)
  9393. 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)
  9394. elseif ModeOfGlitch == 3 then
  9395. local snap = math.random(1,32)
  9396. if snap == 1 then
  9397. 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)
  9398. end
  9399. 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)
  9400. 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)
  9401. 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)
  9402. 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)
  9403. 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)
  9404. 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)
  9405. elseif ModeOfGlitch == 4 then
  9406. local snap = math.random(1,5)
  9407. if snap == 1 then
  9408. 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)
  9409. 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)
  9410. 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)
  9411. end
  9412. 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)
  9413. 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)
  9414. 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)
  9415. 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)
  9416. 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)
  9417. 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)
  9418. elseif ModeOfGlitch == 66 then
  9419. local snap = math.random(1,2)
  9420. if snap == 1 then
  9421. 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)
  9422. 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)
  9423. 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)
  9424. end
  9425. 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)
  9426. 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)
  9427. 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)
  9428. 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)
  9429. 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)
  9430. 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)
  9431. elseif ModeOfGlitch == 5 then
  9432. 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)
  9433. 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)
  9434. 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)
  9435. 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)
  9436. 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)
  9437. 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)
  9438. elseif ModeOfGlitch == 6 then
  9439. 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)
  9440. 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)
  9441. 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)
  9442. 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)
  9443. 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)
  9444. 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)
  9445. elseif ModeOfGlitch == 13 then
  9446. 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)
  9447. 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)
  9448. 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)
  9449. 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)
  9450. 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)
  9451. 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)
  9452. elseif ModeOfGlitch == 8 then
  9453. 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)
  9454. 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)
  9455. 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)
  9456. 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)
  9457. 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)
  9458. 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)
  9459. elseif ModeOfGlitch == 9 then
  9460. 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)
  9461. 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))
  9462. 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)
  9463. 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)
  9464. 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)
  9465. 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)
  9466. 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)
  9467. 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)
  9468. elseif ModeOfGlitch == 1003 then
  9469. 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)
  9470. 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)
  9471. 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)
  9472. 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)
  9473. 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)
  9474. 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)
  9475.  
  9476. elseif ModeOfGlitch == 8889 then
  9477. 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)
  9478. 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)
  9479. 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)
  9480. 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)
  9481. 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)
  9482. 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)
  9483. elseif ModeOfGlitch == 1264532489 then
  9484. 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)
  9485. 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)
  9486. 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)
  9487. 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)
  9488. 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)
  9489. 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)
  9490. 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)
  9491. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9492. 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)
  9493. 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)
  9494. 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)
  9495. 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)
  9496. 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)
  9497. 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)
  9498. elseif ModeOfGlitch == 4367677813 then
  9499. 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)
  9500. 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)
  9501. 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)
  9502. 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)
  9503. 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)
  9504. 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)
  9505. elseif ModeOfGlitch == 55469696922 then --5555
  9506. 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)
  9507. 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)
  9508. 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)
  9509. 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)
  9510. 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)
  9511. 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)
  9512. elseif ModeOfGlitch == 999999999556 then
  9513. 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)
  9514. 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)
  9515. 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)
  9516. 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)
  9517. 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)
  9518. 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)
  9519. end
  9520. end
  9521. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9522. Anim="Walk"
  9523. if attack==false and ModeOfGlitch ~= 66 then
  9524. 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)
  9525. 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)
  9526. 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)
  9527. 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)
  9528. 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)
  9529. 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)
  9530. elseif attack==false and ModeOfGlitch == 66 then
  9531. 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)
  9532. 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)
  9533. 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)
  9534. 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)
  9535. 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)
  9536. 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)
  9537. end
  9538. elseif torvel>=22 and hitfloor~=nil then
  9539. Anim="Run"
  9540. if attack==false then
  9541. 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
  9542. 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)
  9543. 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)
  9544. 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)
  9545. 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)
  9546. 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)
  9547. 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)
  9548. if ModeOfGlitch == 12 then
  9549. 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)
  9550. 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)
  9551. 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)
  9552. 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)
  9553. 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)
  9554. 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)
  9555. end
  9556. if ModeOfGlitch == 9 then
  9557. 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)
  9558. 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))
  9559. 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)
  9560. end
  9561. 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
  9562. 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)
  9563. 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)
  9564. 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)
  9565. 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)
  9566. 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)
  9567. 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)
  9568. elseif ModeOfGlitch == 13 then
  9569. 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)
  9570. 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)
  9571. 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)
  9572. 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)
  9573. 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)
  9574. 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)
  9575. end
  9576. end
  9577. end
  9578. end
  9579. end
Add Comment
Please, Sign In to add comment