asdf2345

Untitled

Dec 5th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 463.48 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. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. wait(0.2)
  87.  
  88.  
  89. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  90. The super switcher.
  91. Velnorum is one of the first wielders.
  92.  
  93. Created, Reworked by NoobyGames12
  94. Edited by GodzPlaysRB
  95. Edited by wanTH092 (Gam_Filano CH)
  96. SpectrumGlitcher Developers ^^^
  97. ]])
  98.  
  99.  
  100. ------------- ORIGINAL WIELDER OC: Velnorum
  101. print([[Icons:
  102. ! = New
  103. ? = Spoilers
  104. * = Exclusivity
  105. C = Changes
  106.  
  107. ]])
  108. warn([[V 7.5 Update Log:
  109. C: Changed everything to guest xd
  110. ]])
  111. --- its obs smooth af do not touch
  112. ---- Sources and functions might be taken from others
  113. plr = owner
  114. char = plr.Character
  115. hum = char.Humanoid
  116. local cam = game.Workspace.CurrentCamera
  117. Camera = cam
  118. local CamInterrupt = false
  119. local TwoD = false
  120. local TargetInfo = {nil, nil}
  121. cam.CameraType = "Custom"
  122. t = char.Torso
  123. h = char.Head
  124. ra = char["Right Arm"]
  125. la = char["Left Arm"]
  126. rl = char["Right Leg"]
  127. ll = char["Left Leg"]
  128. tors = char.Torso
  129. lleg = char["Left Leg"]
  130. root = char.HumanoidRootPart
  131. hed = char.Head
  132. rleg = char["Right Leg"]
  133. rarm = char["Right Arm"]
  134. larm = char["Left Arm"]
  135. radian = math.rad
  136. random = math.random
  137. Vec3 = Vector3.new
  138. Inst = Instance.new
  139. cFrame = CFrame.new
  140. Euler = CFrame.fromEulerAnglesXYZ
  141. vt = Vector3.new
  142. bc = BrickColor.new
  143. br = BrickColor.random
  144. it = Instance.new
  145. cf = CFrame.new
  146. local Player_Size = 0
  147. cam = game.Workspace.CurrentCamera
  148. CF = CFrame.new
  149. angles = CFrame.Angles
  150. attack = false
  151. Euler = CFrame.fromEulerAnglesXYZ
  152. Rad = math.rad
  153. IT = Instance.new
  154. BrickC = BrickColor.new
  155. Cos = math.cos
  156. Acos = math.acos
  157. Sin = math.sin
  158. Asin = math.asin
  159. Abs = math.abs
  160. Mrandom = math.random
  161. Floor = math.floor
  162. IT = Instance.new
  163. CF = CFrame.new
  164. VT = Vector3.new
  165. RAD = math.rad
  166. C3 = Color3.new
  167. UD2 = UDim2.new
  168. BRICKC = BrickColor.new
  169. ANGLES = CFrame.Angles
  170. EULER = CFrame.fromEulerAnglesXYZ
  171. COS = math.cos
  172. ACOS = math.acos
  173. SIN = math.sin
  174. ASIN = math.asin
  175. ABS = math.abs
  176. MRANDOM = math.random
  177. FLOOR = math.floor
  178. local SINE = 0
  179.  
  180. local Booleans = {
  181. CamFollow = true,
  182. GyroUse = true
  183. }
  184.  
  185. function lerp(object, newCFrame, alpha)
  186. return object:lerp(newCFrame, alpha)
  187. end
  188.  
  189. local Directer = Inst("BodyGyro", root)
  190. Directer.MaxTorque = Vec3(0, 0, 0)
  191. Directer.P = 600000
  192. local CPart = Inst("Part")
  193. CPart.Anchored = true
  194. CPart.CanCollide = false
  195. CPart.Locked = true
  196. CPart.Transparency = 1
  197.  
  198. local rainbowmode = false
  199. local chaosmode = false
  200.  
  201. local kan = Instance.new("Sound",tors)
  202. kan.Volume = 0.85
  203. kan.TimePosition = 0
  204. kan.PlaybackSpeed = 1
  205. kan.Pitch = 1
  206. kan.SoundId = "rbxassetid://1255569288"
  207. kan.Name = "wrecked"
  208. kan.Looped = true
  209. kan:Play()
  210.  
  211. local currentThemePlaying = kan.SoundId
  212. local currentPitch = kan.Pitch
  213. local currentVol = kan.Volume
  214. function newTheme(ID,timepos,pitch,vol)
  215. local kanz = kan
  216. --kanz:Stop()
  217. kanz.Volume = vol
  218. --kanz.TimePosition = timepos
  219. kanz.PlaybackSpeed = pitch
  220. kanz.Pitch = pitch
  221. kanz.SoundId = ID
  222. kanz.Name = "wrecked"
  223. kanz.Looped = true
  224. currentThemePlaying = kanz.SoundId
  225. currentVol = kanz.Volume
  226. currentPitch = kanz.Pitch
  227. --kanz:Play()
  228. --coroutine.resume(coroutine.create(function()
  229. --wait(0.05)
  230. --end))
  231. end
  232.  
  233. function newThemeCust(ID,timepos,pitch,vol)
  234. local kanz = kan
  235. kanz:Stop()
  236. kanz.Volume = vol
  237. kanz.TimePosition = timepos
  238. kanz.PlaybackSpeed = pitch
  239. kanz.Pitch = pitch
  240. kanz.SoundId = ID
  241. kanz.Name = "wrecked"
  242. kanz.Looped = true
  243. currentThemePlaying = kanz.SoundId
  244. currentVol = kanz.Volume
  245. currentPitch = kanz.Pitch
  246. kanz:Play()
  247. coroutine.resume(coroutine.create(function()
  248. wait(0.05)
  249. end))
  250. end
  251.  
  252. local mutedtog = false
  253.  
  254. function CameraEnshaking(Length,Intensity)
  255. coroutine.resume(coroutine.create(function()
  256. local intensity = 1*Intensity
  257. local rotM = 0.01*Intensity
  258. for i = 0, Length, 0.1 do
  259. swait()
  260. intensity = intensity - 0.05*Intensity/Length
  261. rotM = rotM - 0.0005*Intensity/Length
  262. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  263. 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)
  264. end
  265. Humanoid.CameraOffset = Vec3(0, 0, 0)
  266. end))
  267. end
  268. CamShake=function(Part,Distan,Power,Times)
  269. local de=Part.Position
  270. for i,v in pairs(workspace:children()) do
  271. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  272. for _,c in pairs(v:children()) do
  273. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  274. local Noob=v.Humanoid
  275. if Noob~=nil then
  276. coroutine.resume(coroutine.create(function()
  277. FV = Instance.new("BoolValue", Noob)
  278. FV.Name = "CameraShake"
  279. for ShakeNum=1,Times do
  280. swait()
  281. local ef=Power
  282. if ef>=1 then
  283. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  284. else
  285. ef=Power*10
  286. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  287. end
  288. end
  289. Humanoid.CameraOffset = Vector3.new(0,0,0)
  290. FV:Destroy()
  291. end))
  292. CameraShake(Times, Power, Noob)
  293. end
  294. end
  295. end
  296. end
  297. end
  298. end
  299.  
  300. local toggleTag = true
  301. local bilguit = Instance.new("BillboardGui", hed)
  302. bilguit.Adornee = nil
  303. bilguit.Name = "ModeName"
  304. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  305. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  306. local modet = Instance.new("TextLabel", bilguit)
  307. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  308. modet.FontSize = "Size8"
  309. modet.TextScaled = true
  310. modet.TextTransparency = 0
  311. modet.BackgroundTransparency = 1
  312. modet.TextTransparency = 0
  313. modet.TextStrokeTransparency = 0
  314. modet.Font = "Antique"
  315. modet.TextStrokeColor3 = Color3.new(1,0,0)
  316. modet.TextColor3 = Color3.new(0.25,0,0)
  317. modet.Text = "Hopeless Guest"
  318.  
  319.  
  320. function chatfunc(text,color,typet,font,timeex)
  321. local chat = coroutine.wrap(function()
  322. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  323. Character:FindFirstChild("TalkingBillBoard"):destroy()
  324. end
  325. local naeeym2 = Instance.new("BillboardGui",Character)
  326. naeeym2.Size = UDim2.new(0,100,0,40)
  327. naeeym2.StudsOffset = Vector3.new(0,3,0)
  328. naeeym2.Adornee = Character.Head
  329. naeeym2.Name = "TalkingBillBoard"
  330. local tecks2 = Instance.new("TextLabel",naeeym2)
  331. tecks2.BackgroundTransparency = 1
  332. tecks2.BorderSizePixel = 0
  333. tecks2.Text = ""
  334. tecks2.Font = font
  335. tecks2.TextSize = 30
  336. tecks2.TextStrokeTransparency = 0
  337. tecks2.TextColor3 = color
  338. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  339. tecks2.Size = UDim2.new(1,0,0.5,0)
  340. local tecks3 = Instance.new("TextLabel",naeeym2)
  341. tecks3.BackgroundTransparency = 1
  342. tecks3.BorderSizePixel = 0
  343. tecks3.Text = ""
  344. tecks3.Font = font
  345. tecks3.TextSize = 30
  346. tecks3.TextStrokeTransparency = 0
  347. if typet == "Inverted" then
  348. tecks3.TextColor3 = Color3.new(0,0,0)
  349. tecks3.TextStrokeColor3 = color
  350. elseif typet == "Normal" then
  351. tecks3.TextColor3 = color
  352. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  353. end
  354. tecks3.Size = UDim2.new(1,0,0.5,0)
  355. coroutine.resume(coroutine.create(function()
  356. while true do
  357. swait(1)
  358. if chaosmode == true then
  359. tecks2.TextColor3 = BrickColor.random().Color
  360. tecks3.TextStrokeColor3 = BrickColor.random().Color
  361. end
  362. end
  363. end))
  364. modet.TextTransparency = modet.TextTransparency + 1
  365. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  366. for i = 0, 74*timeex do
  367. swait()
  368. modet.TextTransparency = 1
  369. modet.TextStrokeTransparency = 1
  370. tecks2.Text = text
  371. tecks3.Text = text
  372. end
  373. local randomrot = math.random(1,2)
  374. if randomrot == 1 then
  375. for i = 1, 50 do
  376. swait()
  377. tecks2.Text = text
  378. tecks3.Text = text
  379. modet.TextTransparency = modet.TextTransparency - .02
  380. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  381. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  382. tecks2.TextTransparency = tecks2.TextTransparency + .04
  383. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  384. tecks3.TextTransparency = tecks2.TextTransparency + .04
  385. end
  386. elseif randomrot == 2 then
  387. for i = 1, 50 do
  388. swait()
  389. tecks2.Text = text
  390. tecks3.Text = text
  391. modet.TextTransparency = modet.TextTransparency - .02
  392. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  393. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  394. tecks2.TextTransparency = tecks2.TextTransparency + .04
  395. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  396. tecks3.TextTransparency = tecks2.TextTransparency + .04
  397. end
  398. end
  399. modet.TextTransparency = 0
  400. modet.TextStrokeTransparency = 0
  401. if toggleTag == false then
  402. modet.TextTransparency = 1
  403. modet.TextStrokeTransparency = 1
  404. end
  405. naeeym2:Destroy()
  406. end)
  407. chat()
  408. end
  409.  
  410. function bosschatfunc(text,color,watval)
  411. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  412. coroutine.resume(coroutine.create(function()
  413. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  414. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  415. end
  416. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  417. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  418. scrg.Name = "Dialog"
  419. local txtlb = Instance.new("TextLabel",scrg)
  420. txtlb.Text = ""
  421. txtlb.Font = "Bodoni"
  422. txtlb.TextColor3 = Color3.new(0,0,0)
  423. txtlb.TextStrokeTransparency = 0
  424. txtlb.BackgroundTransparency = 0.75
  425. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  426. txtlb.TextStrokeColor3 = color
  427. txtlb.TextScaled = true
  428. txtlb.Size = UDim2.new(1,0,0.25,0)
  429. txtlb.TextXAlignment = "Left"
  430. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  431. local txtlb2 = Instance.new("TextLabel",scrg)
  432. txtlb2.Text = plr.Name.." The Guest:"
  433. txtlb2.Font = "Antique"
  434. txtlb2.TextColor3 = Color3.new(0,0,0)
  435. txtlb2.TextStrokeTransparency = 0
  436. txtlb2.BackgroundTransparency = 1
  437. txtlb2.TextStrokeColor3 = color
  438. txtlb2.TextSize = 40
  439. txtlb2.Size = UDim2.new(1,0,0.25,0)
  440. txtlb2.TextXAlignment = "Left"
  441. txtlb2.Position = UDim2.new(0,0,1,0)
  442. local fvalen = 0.55
  443. local fval = -0.49
  444. coroutine.resume(coroutine.create(function()
  445. while true do
  446. swait()
  447. if chaosmode == true then
  448. txtlb.Rotation = math.random(-1,1)
  449. txtlb2.Rotation = math.random(-1,1)
  450. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  451. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  452. txtlb.TextStrokeColor3 = BrickColor.random().Color
  453. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  454. end
  455. end
  456. end))
  457. coroutine.resume(coroutine.create(function()
  458. while true do
  459. swait()
  460. if scrg.Parent ~= nil then
  461. fvalen = fvalen - 0.0001
  462. elseif scrg.Parent == nil then
  463. break
  464. end
  465. end
  466. end))
  467. local flol = 1.75
  468. local flil = 1.6
  469. coroutine.resume(coroutine.create(function()
  470. for i = 0, 9 do
  471. swait()
  472. fval = fval + 0.05
  473. flol = flol - 0.1
  474. flil = flil - 0.1
  475. txtlb.Text = ""
  476. txtlb.Position = UDim2.new(0,0,flol,0)
  477. txtlb2.Position = UDim2.new(0,0,flil,0)
  478. end
  479. txtlb.Text = text
  480. wait(watval)
  481. local valinc = 0
  482. for i = 0, 99 do
  483. swait()
  484. valinc = valinc + 0.0001
  485. flol = flol + valinc
  486. flil = flil + valinc
  487. txtlb.Rotation = txtlb.Rotation + valinc*20
  488. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  489. txtlb.Position = UDim2.new(0,0,flol,0)
  490. txtlb2.Position = UDim2.new(0,0,flil,0)
  491. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  492. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  493. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  494. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  495. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  496. end
  497. scrg:Destroy()
  498. end))
  499. end))
  500. end
  501. end
  502.  
  503.  
  504. local Create = LoadLibrary("RbxUtility").Create
  505.  
  506. CFuncs = {
  507. ["Part"] = {
  508. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  509. local Part = Create("Part"){
  510. Parent = Parent,
  511. Reflectance = Reflectance,
  512. Transparency = Transparency,
  513. CanCollide = false,
  514. Locked = true,
  515. BrickColor = BrickColor.new(tostring(BColor)),
  516. Name = Name,
  517. Size = Size,
  518. Material = Material,
  519. }
  520. RemoveOutlines(Part)
  521. return Part
  522. end;
  523. };
  524.  
  525. ["Mesh"] = {
  526. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  527. local Msh = Create(Mesh){
  528. Parent = Part,
  529. Offset = OffSet,
  530. Scale = Scale,
  531. }
  532. if Mesh == "SpecialMesh" then
  533. Msh.MeshType = MeshType
  534. Msh.MeshId = MeshId
  535. end
  536. return Msh
  537. end;
  538. };
  539.  
  540. ["Mesh"] = {
  541. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  542. local Msh = Create(Mesh){
  543. Parent = Part,
  544. Offset = OffSet,
  545. Scale = Scale,
  546. }
  547. if Mesh == "SpecialMesh" then
  548. Msh.MeshType = MeshType
  549. Msh.MeshId = MeshId
  550. end
  551. return Msh
  552. end;
  553. };
  554.  
  555. ["Weld"] = {
  556. Create = function(Parent, Part0, Part1, C0, C1)
  557. local Weld = Create("Weld"){
  558. Parent = Parent,
  559. Part0 = Part0,
  560. Part1 = Part1,
  561. C0 = C0,
  562. C1 = C1,
  563. }
  564. return Weld
  565. end;
  566. };
  567.  
  568. ["Sound"] = {
  569. Create = function(id, par, vol, pit)
  570. coroutine.resume(coroutine.create(function()
  571. local S = Create("Sound"){
  572. Volume = vol,
  573. Name = "EffectSoundo",
  574. Pitch = pit or 1,
  575. SoundId = id,
  576. Parent = par or workspace,
  577. }
  578. wait()
  579. S:play()
  580. game:GetService("Debris"):AddItem(S, 10)
  581. end))
  582. end;
  583. };
  584.  
  585. ["TimeSound"] = {
  586. Create = function(id, par, vol, pit, timepos)
  587. coroutine.resume(coroutine.create(function()
  588. local S = Create("Sound"){
  589. Volume = vol,
  590. Name = "EffectSoundo",
  591. Pitch = pit or 1,
  592. SoundId = id,
  593. TimePosition = timepos,
  594. Parent = par or workspace,
  595. }
  596. wait()
  597. S:play()
  598. game:GetService("Debris"):AddItem(S, 10)
  599. end))
  600. end;
  601. };
  602. ["EchoSound"] = {
  603. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  604. coroutine.resume(coroutine.create(function()
  605. local Sas = Create("Sound"){
  606. Volume = vol,
  607. Name = "EffectSoundo",
  608. Pitch = pit or 1,
  609. SoundId = id,
  610. TimePosition = timepos,
  611. Parent = par or workspace,
  612. }
  613. local E = Create("EchoSoundEffect"){
  614. Delay = echodelay,
  615. Name = "Echo",
  616. Feedback = fedb,
  617. DryLevel = dryl,
  618. Parent = Sas,
  619. }
  620. wait()
  621. Sas:play()
  622. game:GetService("Debris"):AddItem(Sas, delays)
  623. end))
  624. end;
  625. };
  626.  
  627. ["LongSound"] = {
  628. Create = function(id, par, vol, pit)
  629. coroutine.resume(coroutine.create(function()
  630. local S = Create("Sound"){
  631. Volume = vol,
  632. Pitch = pit or 1,
  633. SoundId = id,
  634. Parent = par or workspace,
  635. }
  636. wait()
  637. S:play()
  638. game:GetService("Debris"):AddItem(S, 60)
  639. end))
  640. end;
  641. };
  642.  
  643. ["ParticleEmitter"] = {
  644. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  645. local fp = Create("ParticleEmitter"){
  646. Parent = Parent,
  647. Color = ColorSequence.new(Color1, Color2),
  648. LightEmission = LightEmission,
  649. Size = Size,
  650. Texture = Texture,
  651. Transparency = Transparency,
  652. ZOffset = ZOffset,
  653. Acceleration = Accel,
  654. Drag = Drag,
  655. LockedToPart = LockedToPart,
  656. VelocityInheritance = VelocityInheritance,
  657. EmissionDirection = EmissionDirection,
  658. Enabled = Enabled,
  659. Lifetime = LifeTime,
  660. Rate = Rate,
  661. Rotation = Rotation,
  662. RotSpeed = RotSpeed,
  663. Speed = Speed,
  664. VelocitySpread = VelocitySpread,
  665. }
  666. return fp
  667. end;
  668. };
  669.  
  670. CreateTemplate = {
  671.  
  672. };
  673. }
  674.  
  675.  
  676.  
  677. New = function(Object, Parent, Name, Data)
  678. local Object = Instance.new(Object)
  679. for Index, Value in pairs(Data or {}) do
  680. Object[Index] = Value
  681. end
  682. Object.Parent = Parent
  683. Object.Name = Name
  684. return Object
  685. end
  686. local halocolor = BrickColor.new("Pastel light blue")
  687. local halocolor2 = BrickColor.new("Cool yellow")
  688. local starcolor = BrickColor.new("Bright yellow")
  689. local lunacolor = BrickColor.new("Navy blue")
  690. local lunacolor2 = BrickColor.new("Bright blue")
  691. local wepcolor = BrickColor.new("Really black")
  692. local maincolor = BrickColor.new("Really black")
  693. local m = Instance.new("Model",char)
  694. local m2 = Instance.new("Model",char)
  695. local m3 = Instance.new("Model",char)
  696. local mw1 = Instance.new("Model",char)
  697. local mw2 = Instance.new("Model",char)
  698.  
  699.  
  700. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  701. local gui = it(GuiType)
  702. gui.Parent = parent
  703. gui.Text = text
  704. gui.BackgroundTransparency = backtrans
  705. gui.BackgroundColor3 = backcol
  706. gui.SizeConstraint = "RelativeXY"
  707. gui.TextXAlignment = "Center"
  708. gui.TextYAlignment = "Center"
  709. gui.Position = pos
  710. gui.Size = size
  711. gui.Font = "SourceSans"
  712. gui.FontSize = "Size14"
  713. gui.TextWrapped = false
  714. gui.TextStrokeTransparency = 0
  715. gui.TextColor = BrickColor.new("White")
  716. return gui
  717. end
  718. --------------------------- GUI STUFF
  719. local basgui = it("GuiMain")
  720. basgui.Parent = plr.PlayerGui
  721. basgui.Name = "VISgui"
  722. local fullscreenz = it("Frame")
  723. fullscreenz.Parent = basgui
  724. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  725. fullscreenz.BackgroundTransparency = 1
  726. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  727. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  728. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  729. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  730. imgl2.BackgroundTransparency = 1
  731. imgl2.BorderSizePixel = 0
  732. imgl2.ImageTransparency = 0.5
  733. imgl2.ImageColor3 = Color3.new(1,0,0)
  734. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  735. imgl2.Size = UDim2.new(0,1000,0,1000)
  736. imgl2.Image = "rbxassetid://2325939897"
  737. local techc = imgl2:Clone()
  738. techc.Parent = fullscreenz
  739. techc.ImageTransparency = 0
  740. techc.Size = UDim2.new(0,900,0,900)
  741. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  742. techc.ImageColor3 = Color3.new(1,0,0)
  743. techc.Image = "rbxassetid://2273224484"
  744. local circl = imgl2:Clone()
  745. circl.Parent = fullscreenz
  746. circl.ImageTransparency = 0
  747. circl.Size = UDim2.new(0,550,0,550)
  748. circl.Position = UDim2.new(0.75,25,0.55,25)
  749. circl.ImageColor3 = Color3.new(0,0,0)
  750. circl.Image = "rbxassetid://2312119891"
  751. local circl2 = imgl2:Clone()
  752. circl2.Parent = fullscreenz
  753. circl2.ImageTransparency = 0
  754. circl2.Size = UDim2.new(0,700,0,700)
  755. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  756. circl2.ImageColor3 = Color3.new(1,0,0)
  757. circl2.Image = "rbxassetid://2312119891"
  758. local imgl2b = imgl2:Clone()
  759. imgl2b.Parent = fullscreenz
  760. imgl2b.ImageTransparency = 0
  761. imgl2b.Size = UDim2.new(0,800,0,800)
  762. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  763. imgl2b.ImageColor3 = Color3.new(0,0,0)
  764. local ned = Instance.new("TextLabel",fullscreenz)
  765. ned.ZIndex = 2
  766. ned.Font = "Arcade"
  767. ned.BackgroundTransparency = 1
  768. ned.BorderSizePixel = 0.65
  769. ned.Size = UDim2.new(0.3,0,0.2,0)
  770. ned.Position = UDim2.new(0.7,0,0.8,0)
  771. ned.TextColor3 = BrickColor.new("Really red").Color
  772. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  773. ned.TextScaled = true
  774. ned.TextStrokeTransparency = 0
  775. ned.Text = "Hopeless Guest"
  776. ned.TextSize = 24
  777. ned.Rotation = 1
  778. ned.TextXAlignment = "Right"
  779. ned.TextYAlignment = "Bottom"
  780.  
  781. local extrawingmod1 = Instance.new("Model",char)
  782. local extrawingmod2 = Instance.new("Model",char)
  783.  
  784. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  785. local p = Instance.new("Part")
  786. p.TopSurface = 0
  787. p.BottomSurface = 0
  788. p.Parent = parent
  789. p.Size = Vector3.new(0.1,0.1,0.1)
  790. p.Transparency = transparency
  791. p.Reflectance = reflectance
  792. p.CanCollide = false
  793. p.Locked = true
  794. p.BrickColor = brickcolor
  795. p.Material = material
  796. return p
  797. end
  798.  
  799. function CreateMesh(parent,meshtype,x1,y1,z1)
  800. local mesh = Instance.new("SpecialMesh",parent)
  801. mesh.MeshType = meshtype
  802. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  803. return mesh
  804. end
  805.  
  806. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  807. local mesh = Instance.new("SpecialMesh",parent)
  808. mesh.MeshType = "FileMesh"
  809. mesh.MeshId = meshid
  810. mesh.Scale = Vector3.new(x1,y1,z1)
  811. return mesh
  812. end
  813.  
  814.  
  815. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  816. local mesh = Instance.new("SpecialMesh",parent)
  817. mesh.MeshType = "FileMesh"
  818. mesh.MeshId = meshid
  819. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  820. mesh.Scale = Vector3.new(x1,y1,z1)
  821. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  822. return mesh
  823. end
  824.  
  825. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  826. local weld = Instance.new("Weld")
  827. weld.Parent = parent
  828. weld.Part0 = part0
  829. weld.Part1 = part1
  830. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  831. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  832. return weld
  833. end
  834.  
  835.  
  836. --------------
  837. --------------
  838. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  839. 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))
  840. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  841. 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))
  842.  
  843. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  844. CreateMesh(handle,"Brick",0,0,0)
  845. 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))
  846. local valuaring = 10
  847. for i = 0, 49 do
  848. valuaring = valuaring + 10
  849. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  850. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  851. 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))
  852. end
  853.  
  854. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  855. CreateMesh(handle,"Brick",0,0,0)
  856. 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))
  857. local valuaring = 10
  858. for i = 0, 49 do
  859. valuaring = valuaring + 10
  860. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  861. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  862. 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))
  863. end
  864.  
  865.  
  866. local handle = CreateParta(m,1,1,"Neon",maincolor)
  867. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  868. 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))
  869.  
  870. --- Left wing.
  871.  
  872. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  873. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  874. 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))
  875.  
  876. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  877. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  878. 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))
  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. A0 = Instance.new('Attachment',wed)
  883. A0.Position = vt(0,0.25,0.25)
  884. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  885. CreateMesh(wed,"Wedge",0.05,0.5,3)
  886. 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))
  887. A1 = Instance.new('Attachment',wed)
  888. A1.Position = vt(0,-0.25,-2)
  889. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,3,0.5)
  891. 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))
  892.  
  893. tl1 = Instance.new('Trail',wed)
  894. tl1.Attachment0 = A1
  895. tl1.Attachment1 = A0
  896. tl1.Texture = "rbxassetid://2108945559"
  897. tl1.LightEmission = 1
  898. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  899. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  900. tl1.Lifetime = 0.6
  901.  
  902.  
  903. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  904. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  905. 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))
  906.  
  907. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  908. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  909. 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))
  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. A0 = Instance.new('Attachment',wed)
  914. A0.Position = vt(0,0.25,0.25)
  915. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  916. CreateMesh(wed,"Wedge",0.05,0.5,3)
  917. 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))
  918. A1 = Instance.new('Attachment',wed)
  919. A1.Position = vt(0,-0.25,-2)
  920. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,3,0.5)
  922. 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))
  923.  
  924. tl2 = Instance.new('Trail',wed)
  925. tl2.Attachment0 = A1
  926. tl2.Attachment1 = A0
  927. tl2.Texture = "rbxassetid://2108945559"
  928. tl2.LightEmission = 1
  929. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  930. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  931. tl2.Lifetime = 0.6
  932.  
  933. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  934. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  935. 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))
  936.  
  937. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  938. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  939. 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))
  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. A0 = Instance.new('Attachment',wed)
  944. A0.Position = vt(0,0.25,0.25)
  945. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  946. CreateMesh(wed,"Wedge",0.05,0.5,3)
  947. 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))
  948. A1 = Instance.new('Attachment',wed)
  949. A1.Position = vt(0,-0.25,-2)
  950. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,3,0.5)
  952. 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))
  953.  
  954. tl3 = Instance.new('Trail',wed)
  955. tl3.Attachment0 = A1
  956. tl3.Attachment1 = A0
  957. tl3.Texture = "rbxassetid://2108945559"
  958. tl3.LightEmission = 1
  959. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  960. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  961. tl3.Lifetime = 0.6
  962.  
  963. tl1.Enabled = false
  964. tl2.Enabled = false
  965. tl3.Enabled = false
  966. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  967. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  968. 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))
  969.  
  970. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  971. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  972. 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))
  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,3)
  978. 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))
  979. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  980. CreateMesh(wed,"Wedge",0.05,3,0.5)
  981. 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))
  982.  
  983. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  984. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  985. 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))
  986.  
  987. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  989. 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))
  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,3)
  995. 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))
  996. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,3,0.5)
  998. 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))
  999.  
  1000. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1001. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1002. 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))
  1003.  
  1004. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1005. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1006. 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))
  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,3)
  1012. 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))
  1013. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1015. 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))
  1016.  
  1017. -- Right wing.
  1018.  
  1019. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1020. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1021. 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))
  1022.  
  1023. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1024. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1025. 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))
  1026. A0 = Instance.new('Attachment',wed)
  1027. A0.Position = vt(0,0.25,0.25)
  1028. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1029. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1030. 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))
  1031. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1032. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1033. 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))
  1034. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1035. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1036. 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))
  1037. A1 = Instance.new('Attachment',wed)
  1038. A1.Position = vt(0,2,0.25)
  1039.  
  1040. tr1 = Instance.new('Trail',wed)
  1041. tr1.Attachment0 = A1
  1042. tr1.Attachment1 = A0
  1043. tr1.Texture = "rbxassetid://2108945559"
  1044. tr1.LightEmission = 1
  1045. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1046. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1047. tr1.Lifetime = 0.6
  1048.  
  1049. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1050. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1051. 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))
  1052.  
  1053. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1054. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1055. 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))
  1056. A0 = Instance.new('Attachment',wed)
  1057. A0.Position = vt(0,0.25,0.25)
  1058. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1059. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1060. 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))
  1061. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1063. 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))
  1064. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1066. 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))
  1067. A1 = Instance.new('Attachment',wed)
  1068. A1.Position = vt(0,2,0.25)
  1069.  
  1070. tr2 = Instance.new('Trail',wed)
  1071. tr2.Attachment0 = A1
  1072. tr2.Attachment1 = A0
  1073. tr2.Texture = "rbxassetid://2108945559"
  1074. tr2.LightEmission = 1
  1075. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1076. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1077. tr2.Lifetime = 0.6
  1078.  
  1079. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1080. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1081. 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))
  1082.  
  1083. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1084. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1085. 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))
  1086. A0 = Instance.new('Attachment',wed)
  1087. A0.Position = vt(0,0.25,0.25)
  1088. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1089. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1090. 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))
  1091. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1092. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1093. 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))
  1094. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1095. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1096. 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))
  1097. A1 = Instance.new('Attachment',wed)
  1098. A1.Position = vt(0,2,0.25)
  1099.  
  1100. tr3 = Instance.new('Trail',wed)
  1101. tr3.Attachment0 = A1
  1102. tr3.Attachment1 = A0
  1103. tr3.Texture = "rbxassetid://2108945559"
  1104. tr3.LightEmission = 1
  1105. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1106. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1107. tr3.Lifetime = 0.6
  1108.  
  1109.  
  1110. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1111. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1112. 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))
  1113.  
  1114. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1115. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1116. 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))
  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,3)
  1122. 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))
  1123. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1124. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1125. 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))
  1126.  
  1127. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1128. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1129. 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))
  1130.  
  1131. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1132. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1133. 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))
  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,3)
  1139. 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))
  1140. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1141. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1142. 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))
  1143.  
  1144. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1145. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1146. 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))
  1147.  
  1148. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1149. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1150. 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))
  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,3)
  1156. 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))
  1157. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1158. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1159. 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))
  1160.  
  1161. --HERES THE RING
  1162.  
  1163.  
  1164. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1165. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1166. 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))
  1167. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1168. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1169. 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))
  1170. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1171. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1172. 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))
  1173.  
  1174.  
  1175. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1176. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1177. 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))
  1178.  
  1179. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1180. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1181. 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))
  1182.  
  1183.  
  1184.  
  1185. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1186. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1187. 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))
  1188.  
  1189. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1190. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1191. 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))
  1192.  
  1193. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1194. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1195. 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))
  1196.  
  1197. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1198. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1199. 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))
  1200. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1201. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1202. 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))]]--
  1203.  
  1204. --- second ring
  1205.  
  1206.  
  1207. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1208. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1209. 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))
  1210.  
  1211. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1212. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1213. 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))
  1214.  
  1215.  
  1216.  
  1217. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1218. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1219. 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))
  1220.  
  1221. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1222. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1223. 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))
  1224.  
  1225. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1226. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1227. 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))
  1228.  
  1229. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1230. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1231. 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))
  1232. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1233. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1234. 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))
  1235.  
  1236.  
  1237.  
  1238. for i, v in pairs(m:GetChildren()) do
  1239. if v:IsA("Part") then
  1240. v.BrickColor = BrickColor.new("Really black")
  1241. v.Material = "Glass"
  1242. end
  1243. end
  1244. for i, v in pairs(m2:GetChildren()) do
  1245. if v:IsA("Part") then
  1246. v.BrickColor = BrickColor.new("Crimson")
  1247. v.Material = "Granite"
  1248. end
  1249. end
  1250. for i, v in pairs(m3:GetChildren()) do
  1251. if v:IsA("Part") then
  1252. v.BrickColor = BrickColor.new("Really red")
  1253. v.Material = "Neon"
  1254. end
  1255. end
  1256. for i, v in pairs(mw2:GetChildren()) do
  1257. if v:IsA("Part") then
  1258. v.BrickColor = BrickColor.new("Really red")
  1259. v.Material = "Neon"
  1260. end
  1261. end
  1262. for i, v in pairs(mw1:GetChildren()) do
  1263. if v:IsA("Part") then
  1264. v.Transparency = 1
  1265. v.BrickColor = BrickColor.new("Really red")
  1266. v.Material = "Neon"
  1267. end
  1268. end
  1269. for i, v in pairs(extrawingmod1:GetChildren()) do
  1270. if v:IsA("Part") then
  1271. v.Transparency = 1
  1272. v.BrickColor = BrickColor.new("White")
  1273. v.Material = "Neon"
  1274. end
  1275. end
  1276. for i, v in pairs(extrawingmod2:GetChildren()) do
  1277. if v:IsA("Part") then
  1278. v.Transparency = 1
  1279. v.BrickColor = BrickColor.new("White")
  1280. v.Material = "Neon"
  1281. end
  1282. end
  1283. local MAINRUINCOLOR = BrickColor.new("Really red")
  1284. ------
  1285.  
  1286.  
  1287. function RemoveOutlines(part)
  1288. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1289. end
  1290. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1291. local Part = Create("Part")({
  1292. Parent = Parent,
  1293. Reflectance = Reflectance,
  1294. Transparency = Transparency,
  1295. CanCollide = false,
  1296. Locked = true,
  1297. BrickColor = BrickColor.new(tostring(BColor)),
  1298. Name = Name,
  1299. Size = Size,
  1300. Material = Material
  1301. })
  1302. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1303. RemoveOutlines(Part)
  1304. return Part
  1305. end
  1306. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1307. local Msh = Create(Mesh)({
  1308. Parent = Part,
  1309. Offset = OffSet,
  1310. Scale = Scale
  1311. })
  1312. if Mesh == "SpecialMesh" then
  1313. Msh.MeshType = MeshType
  1314. Msh.MeshId = MeshId
  1315. end
  1316. return Msh
  1317. end
  1318. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1319. local Weld = Create("Weld")({
  1320. Parent = Parent,
  1321. Part0 = Part0,
  1322. Part1 = Part1,
  1323. C0 = C0,
  1324. C1 = C1
  1325. })
  1326. return Weld
  1327. end
  1328.  
  1329. Player = plr
  1330. Character=Player.Character
  1331. PlayerGui=Player.PlayerGui
  1332. Backpack=Player.Backpack
  1333. Torso=Character.Torso
  1334. Head=Character.Head
  1335. Humanoid=Character.Humanoid
  1336. m=Instance.new('Model',Character)
  1337. LeftArm=Character["Left Arm"]
  1338. LeftLeg=Character["Left Leg"]
  1339. RightArm=Character["Right Arm"]
  1340. RightLeg=Character["Right Leg"]
  1341. LS=Torso["Left Shoulder"]
  1342. LH=Torso["Left Hip"]
  1343. RS=Torso["Right Shoulder"]
  1344. RH=Torso["Right Hip"]
  1345. Face = Head.face
  1346. Neck=Torso.Neck
  1347. it=Instance.new
  1348. attacktype=1
  1349. vt=Vector3.new
  1350. cf=CFrame.new
  1351. euler=CFrame.fromEulerAnglesXYZ
  1352. angles=CFrame.Angles
  1353. cloaked=false
  1354. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1355. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1356. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1357. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1358. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1359. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1360. RootPart=Character.HumanoidRootPart
  1361. RootJoint=RootPart.RootJoint
  1362. RootCF=euler(-1.57,0,3.14)
  1363. attack = false
  1364. attackdebounce = false
  1365. deb=false
  1366. equipped=true
  1367. hand=false
  1368. combo=0
  1369. mana=0
  1370. trispeed=.2
  1371. attackmode='none'
  1372. local idle=0
  1373. local Anim="Idle"
  1374. local Effects={}
  1375. local gun=false
  1376. local shoot=false
  1377. local sine = 0
  1378. local change = 1
  1379.  
  1380. function RecolorTextAndRename(name,col1,col2,font)
  1381. modet.TextStrokeColor3 = col2
  1382. modet.TextColor3 = col1
  1383. modet.Font = font
  1384. modet.Text = name
  1385. techc.ImageColor3 = col2
  1386. circl.ImageColor3 = col2
  1387. circl2.ImageColor3 = col1
  1388. imgl2.ImageColor3 = col1
  1389. imgl2b.ImageColor3 = col2
  1390. ned.Text = name
  1391. ned.TextColor3 = col1
  1392. ned.TextStrokeColor3 = col2
  1393. end
  1394. --save shoulders
  1395. RSH, LSH=nil, nil
  1396. --welds
  1397. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1398. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1399. LH=Torso["Left Hip"]
  1400. RH=Torso["Right Hip"]
  1401. TorsoColor=Torso.BrickColor
  1402. function NoOutline(Part)
  1403. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1404. end
  1405. ch=Character
  1406. RSH=ch.Torso["Right Shoulder"]
  1407. LSH=ch.Torso["Left Shoulder"]
  1408. --
  1409. RSH.Parent=nil
  1410. LSH.Parent=nil
  1411. --
  1412. RW.Name="Right Shoulder"
  1413. RW.Part0=ch.Torso
  1414. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1415. RW.C1=cf(0, 0.5, 0)
  1416. RW.Part1=ch["Right Arm"]
  1417. RW.Parent=ch.Torso
  1418. --
  1419. LW.Name="Left Shoulder"
  1420. LW.Part0=ch.Torso
  1421. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1422. LW.C1=cf(0, 0.5, 0)
  1423. LW.Part1=ch["Left Arm"]
  1424. LW.Parent=ch.Torso
  1425.  
  1426. local Stats=Instance.new("BoolValue")
  1427. Stats.Name="Stats"
  1428. Stats.Parent=Character
  1429. local Atk=Instance.new("NumberValue")
  1430. Atk.Name="Damage"
  1431. Atk.Parent=Stats
  1432. Atk.Value=1
  1433. local Def=Instance.new("NumberValue")
  1434. Def.Name="Defense"
  1435. Def.Parent=Stats
  1436. Def.Value=1
  1437. local Speed=Instance.new("NumberValue")
  1438. Speed.Name="Speed"
  1439. Speed.Parent=Stats
  1440. Speed.Value=1
  1441. local Mvmt=Instance.new("NumberValue")
  1442. Mvmt.Name="Movement"
  1443. Mvmt.Parent=Stats
  1444. Mvmt.Value=1
  1445.  
  1446. local donum=0
  1447. local ast = {744586075,385254610}
  1448.  
  1449. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1450. local fp=it("Part")
  1451. fp.formFactor=formfactor
  1452. fp.Parent=parent
  1453. fp.Reflectance=reflectance
  1454. fp.Transparency=transparency
  1455. fp.CanCollide=false
  1456. fp.Locked=true
  1457. fp.BrickColor=brickcolor
  1458. fp.Name=name
  1459. fp.Size=size
  1460. fp.Position=Torso.Position
  1461. NoOutline(fp)
  1462. fp.Material="SmoothPlastic"
  1463. fp:BreakJoints()
  1464. return fp
  1465. end
  1466.  
  1467. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1468. local mesh=it(Mesh)
  1469. mesh.Parent=part
  1470. if Mesh=="SpecialMesh" then
  1471. mesh.MeshType=meshtype
  1472. if meshid~="nil" then
  1473. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1474. end
  1475. end
  1476. mesh.Offset=offset
  1477. mesh.Scale=scale
  1478. return mesh
  1479. end
  1480.  
  1481. function weld(parent,part0,part1,c0)
  1482. local weld=it("Weld")
  1483. weld.Parent=parent
  1484. weld.Part0=part0
  1485. weld.Part1=part1
  1486. weld.C0=c0
  1487. return weld
  1488. end
  1489.  
  1490. local Color1=Torso.BrickColor
  1491.  
  1492. local bodvel=Instance.new("BodyVelocity")
  1493. local bg=Instance.new("BodyGyro")
  1494.  
  1495. --------- SazEreno's Artificial HB --------------
  1496. ArtificialHB = Instance.new("BindableEvent", script)
  1497. ArtificialHB.Name = "ArtificialHB"
  1498.  
  1499. script:WaitForChild("ArtificialHB")
  1500. Frame_Speed = 1 / 60
  1501. frame = Frame_Speed
  1502. tf = 0
  1503. allowframeloss = false
  1504. tossremainder = false
  1505. lastframe = tick()
  1506. script.ArtificialHB:Fire()
  1507.  
  1508. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1509. tf = tf + s
  1510. if tf >= frame then
  1511. if allowframeloss then
  1512. script.ArtificialHB:Fire()
  1513. lastframe = tick()
  1514. else
  1515. for i = 1, math.floor(tf / frame) do
  1516. script.ArtificialHB:Fire()
  1517. end
  1518. lastframe = tick()
  1519. end
  1520. if tossremainder then
  1521. tf = 0
  1522. else
  1523. tf = tf - frame * math.floor(tf / frame)
  1524. end
  1525. end
  1526. end)
  1527.  
  1528. ------------------
  1529. function swait(num)
  1530. if num == 0 or num == nil then
  1531. ArtificialHB.Event:wait()
  1532. else
  1533. for i = 1, num do
  1534. ArtificialHB.Event:wait()
  1535. end
  1536. end
  1537. end
  1538. -------- RAINBOW LEAVE IT TO ME
  1539. local r = 255
  1540. local g = 0
  1541. local b = 0
  1542. coroutine.resume(coroutine.create(function()
  1543. while wait() do
  1544. for i = 0, 254/5 do
  1545. swait()
  1546. g = g + 5
  1547. end
  1548. for i = 0, 254/5 do
  1549. swait()
  1550. r = r - 5
  1551. end
  1552. for i = 0, 254/5 do
  1553. swait()
  1554. b = b + 5
  1555. end
  1556. for i = 0, 254/5 do
  1557. swait()
  1558. g = g - 5
  1559. end
  1560. for i = 0, 254/5 do
  1561. swait()
  1562. r = r + 5
  1563. end
  1564. for i = 0, 254/5 do
  1565. swait()
  1566. b = b - 5
  1567. end
  1568. end
  1569. end))
  1570.  
  1571.  
  1572. so = function(id,par,vol,pit)
  1573. coroutine.resume(coroutine.create(function()
  1574. local sou = Instance.new("Sound",par or workspace)
  1575. sou.Volume=vol
  1576. sou.Pitch=pit or 1
  1577. sou.SoundId=id
  1578. swait()
  1579. sou:play()
  1580. game:GetService("Debris"):AddItem(sou,6)
  1581. end))
  1582. end
  1583.  
  1584. function clerp(a,b,t)
  1585. local qa = {QuaternionFromCFrame(a)}
  1586. local qb = {QuaternionFromCFrame(b)}
  1587. local ax, ay, az = a.x, a.y, a.z
  1588. local bx, by, bz = b.x, b.y, b.z
  1589. local _t = 1-t
  1590. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1591. end
  1592.  
  1593. function QuaternionFromCFrame(cf)
  1594. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1595. local trace = m00 + m11 + m22
  1596. if trace > 0 then
  1597. local s = math.sqrt(1 + trace)
  1598. local recip = 0.5/s
  1599. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1600. else
  1601. local i = 0
  1602. if m11 > m00 then
  1603. i = 1
  1604. end
  1605. if m22 > (i == 0 and m00 or m11) then
  1606. i = 2
  1607. end
  1608. if i == 0 then
  1609. local s = math.sqrt(m00-m11-m22+1)
  1610. local recip = 0.5/s
  1611. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1612. elseif i == 1 then
  1613. local s = math.sqrt(m11-m22-m00+1)
  1614. local recip = 0.5/s
  1615. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1616. elseif i == 2 then
  1617. local s = math.sqrt(m22-m00-m11+1)
  1618. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1619. end
  1620. end
  1621. end
  1622.  
  1623. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1624. local xs, ys, zs = x + x, y + y, z + z
  1625. local wx, wy, wz = w*xs, w*ys, w*zs
  1626. local xx = x*xs
  1627. local xy = x*ys
  1628. local xz = x*zs
  1629. local yy = y*ys
  1630. local yz = y*zs
  1631. local zz = z*zs
  1632. 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))
  1633. end
  1634.  
  1635. function QuaternionSlerp(a, b, t)
  1636. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1637. local startInterp, finishInterp;
  1638. if cosTheta >= 0.0001 then
  1639. if (1 - cosTheta) > 0.0001 then
  1640. local theta = math.acos(cosTheta)
  1641. local invSinTheta = 1/math.sin(theta)
  1642. startInterp = math.sin((1-t)*theta)*invSinTheta
  1643. finishInterp = math.sin(t*theta)*invSinTheta
  1644. else
  1645. startInterp = 1-t
  1646. finishInterp = t
  1647. end
  1648. else
  1649. if (1+cosTheta) > 0.0001 then
  1650. local theta = math.acos(-cosTheta)
  1651. local invSinTheta = 1/math.sin(theta)
  1652. startInterp = math.sin((t-1)*theta)*invSinTheta
  1653. finishInterp = math.sin(t*theta)*invSinTheta
  1654. else
  1655. startInterp = t-1
  1656. finishInterp = t
  1657. end
  1658. end
  1659. 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
  1660. end
  1661.  
  1662. local function CFrameFromTopBack(at, top, back)
  1663. local right = top:Cross(back)
  1664. return CFrame.new(at.x, at.y, at.z,
  1665. right.x, top.x, back.x,
  1666. right.y, top.y, back.y,
  1667. right.z, top.z, back.z)
  1668. end
  1669.  
  1670. function Triangle(a, b, c)
  1671. local edg1 = (c-a):Dot((b-a).unit)
  1672. local edg2 = (a-b):Dot((c-b).unit)
  1673. local edg3 = (b-c):Dot((a-c).unit)
  1674. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1675. a, b, c = a, b, c
  1676. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1677. a, b, c = b, c, a
  1678. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1679. a, b, c = c, a, b
  1680. else
  1681. assert(false, "unreachable")
  1682. end
  1683.  
  1684. local len1 = (c-a):Dot((b-a).unit)
  1685. local len2 = (b-a).magnitude - len1
  1686. local width = (a + (b-a).unit*len1 - c).magnitude
  1687.  
  1688. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1689.  
  1690. local list = {}
  1691.  
  1692. if len1 > 0.01 then
  1693. local w1 = Instance.new('WedgePart', m)
  1694. game:GetService("Debris"):AddItem(w1,5)
  1695. w1.Material = "SmoothPlastic"
  1696. w1.FormFactor = 'Custom'
  1697. w1.BrickColor = BrickColor.new("Really red")
  1698. w1.Transparency = 0
  1699. w1.Reflectance = 0
  1700. w1.Material = "SmoothPlastic"
  1701. w1.CanCollide = false
  1702. local l1 = Instance.new("PointLight",w1)
  1703. l1.Color = Color3.new(170,0,0)
  1704. NoOutline(w1)
  1705. local sz = Vector3.new(0.2, width, len1)
  1706. w1.Size = sz
  1707. local sp = Instance.new("SpecialMesh",w1)
  1708. sp.MeshType = "Wedge"
  1709. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1710. w1:BreakJoints()
  1711. w1.Anchored = true
  1712. w1.Parent = workspace
  1713. w1.Transparency = 0.7
  1714. table.insert(Effects,{w1,"Disappear",.01})
  1715. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1716. table.insert(list,w1)
  1717. end
  1718.  
  1719. if len2 > 0.01 then
  1720. local w2 = Instance.new('WedgePart', m)
  1721. game:GetService("Debris"):AddItem(w2,5)
  1722. w2.Material = "SmoothPlastic"
  1723. w2.FormFactor = 'Custom'
  1724. w2.BrickColor = BrickColor.new("Really red")
  1725. w2.Transparency = 0
  1726. w2.Reflectance = 0
  1727. w2.Material = "SmoothPlastic"
  1728. w2.CanCollide = false
  1729. local l2 = Instance.new("PointLight",w2)
  1730. l2.Color = Color3.new(170,0,0)
  1731. NoOutline(w2)
  1732. local sz = Vector3.new(0.2, width, len2)
  1733. w2.Size = sz
  1734. local sp = Instance.new("SpecialMesh",w2)
  1735. sp.MeshType = "Wedge"
  1736. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1737. w2:BreakJoints()
  1738. w2.Anchored = true
  1739. w2.Parent = workspace
  1740. w2.Transparency = 0.7
  1741. table.insert(Effects,{w2,"Disappear",.01})
  1742. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1743. table.insert(list,w2)
  1744. end
  1745. return unpack(list)
  1746. end
  1747.  
  1748.  
  1749. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1750. if hit.Parent == nil then
  1751. return
  1752. end
  1753. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1754. for _, v in pairs(hit.Parent:children()) do
  1755. if v:IsA("Humanoid") then
  1756. h = v
  1757. end
  1758. end
  1759. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1760. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1761. return
  1762. end
  1763. local c = Create("ObjectValue")({
  1764. Name = "creator",
  1765. Value = owner,
  1766. Parent = h
  1767. })
  1768. game:GetService("Debris"):AddItem(c, 0.5)
  1769. if HitSound ~= nil and HitPitch ~= nil then
  1770. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1771. end
  1772. local Damage = math.random(minim, maxim)
  1773. local blocked = false
  1774. local block = hit.Parent:findFirstChild("Block")
  1775. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1776. blocked = true
  1777. block.Value = block.Value - 1
  1778. print(block.Value)
  1779. end
  1780. if blocked == false then
  1781. HitHealth = h.Health
  1782. h.MaxHealth = 100
  1783. h.Health = h.Health - Damage
  1784. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1785. print("gained kill")
  1786. dmg(h.Parent)
  1787. end
  1788. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1789. else
  1790. h.Health = h.Health - Damage / 2
  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. end
  1793. if Type == "Knockdown" then
  1794. local hum = hit.Parent.Humanoid
  1795. hum.PlatformStand = true
  1796. coroutine.resume(coroutine.create(function(HHumanoid)
  1797. swait(1)
  1798. HHumanoid.PlatformStand = false
  1799. end), hum)
  1800. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1801. local bodvol = Create("BodyVelocity")({
  1802. velocity = angle * knockback,
  1803. P = 5000,
  1804. maxForce = Vector3.new(8000, 8000, 8000),
  1805. Parent = hit
  1806. })
  1807. local rl = Create("BodyAngularVelocity")({
  1808. P = 3000,
  1809. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1810. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1811. Parent = hit
  1812. })
  1813. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1814. game:GetService("Debris"):AddItem(rl, 0.5)
  1815. elseif Type == "Normal" then
  1816. local vp = Create("BodyVelocity")({
  1817. P = 500,
  1818. maxForce = Vector3.new(math.huge, 0, math.huge),
  1819. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1820. })
  1821. if knockback > 0 then
  1822. vp.Parent = hit.Parent.Head
  1823. end
  1824. game:GetService("Debris"):AddItem(vp, 0.5)
  1825. elseif Type == "Up" then
  1826. local bodyVelocity = Create("BodyVelocity")({
  1827. velocity = Vector3.new(0, 20, 0),
  1828. P = 5000,
  1829. maxForce = Vector3.new(8000, 8000, 8000),
  1830. Parent = hit
  1831. })
  1832. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1833. local bodyVelocity = Create("BodyVelocity")({
  1834. velocity = Vector3.new(0, 20, 0),
  1835. P = 5000,
  1836. maxForce = Vector3.new(8000, 8000, 8000),
  1837. Parent = hit
  1838. })
  1839. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1840. elseif Type == "Leech" then
  1841. local hum = hit.Parent.Humanoid
  1842. if hum ~= nil then
  1843. for i = 0, 2 do
  1844. 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)
  1845. end
  1846. Humanoid.Health = Humanoid.Health + 10
  1847. end
  1848. elseif Type == "UpKnock" then
  1849. local hum = hit.Parent.Humanoid
  1850. hum.PlatformStand = true
  1851. if hum ~= nil then
  1852. hitr = true
  1853. end
  1854. coroutine.resume(coroutine.create(function(HHumanoid)
  1855. swait(5)
  1856. HHumanoid.PlatformStand = false
  1857. hitr = false
  1858. end), hum)
  1859. local bodyVelocity = Create("BodyVelocity")({
  1860. velocity = Vector3.new(0, 20, 0),
  1861. P = 5000,
  1862. maxForce = Vector3.new(8000, 8000, 8000),
  1863. Parent = hit
  1864. })
  1865. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1866. local bodyVelocity = Create("BodyVelocity")({
  1867. velocity = Vector3.new(0, 20, 0),
  1868. P = 5000,
  1869. maxForce = Vector3.new(8000, 8000, 8000),
  1870. Parent = hit
  1871. })
  1872. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1873. elseif Type == "Snare" then
  1874. local bp = Create("BodyPosition")({
  1875. P = 2000,
  1876. D = 100,
  1877. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1878. position = hit.Parent.Torso.Position,
  1879. Parent = hit.Parent.Torso
  1880. })
  1881. game:GetService("Debris"):AddItem(bp, 1)
  1882. elseif Type == "Slashnare" then
  1883. 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)
  1884. for i = 1, math.random(4, 5) do
  1885. 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)
  1886. end
  1887. local bp = Create("BodyPosition")({
  1888. P = 2000,
  1889. D = 100,
  1890. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1891. position = hit.Parent.Torso.Position,
  1892. Parent = hit.Parent.Torso
  1893. })
  1894. game:GetService("Debris"):AddItem(bp, 1)
  1895. elseif Type == "Spike" then
  1896. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1897. local bp = Create("BodyPosition")({
  1898. P = 2000,
  1899. D = 100,
  1900. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1901. position = hit.Parent.Torso.Position,
  1902. Parent = hit.Parent.Torso
  1903. })
  1904. game:GetService("Debris"):AddItem(bp, 1)
  1905. elseif Type == "Freeze" then
  1906. local BodPos = Create("BodyPosition")({
  1907. P = 50000,
  1908. D = 1000,
  1909. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1910. position = hit.Parent.Torso.Position,
  1911. Parent = hit.Parent.Torso
  1912. })
  1913. local BodGy = Create("BodyGyro")({
  1914. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1915. P = 20000,
  1916. Parent = hit.Parent.Torso,
  1917. cframe = hit.Parent.Torso.CFrame
  1918. })
  1919. hit.Parent.Torso.Anchored = true
  1920. coroutine.resume(coroutine.create(function(Part)
  1921. swait(1.5)
  1922. Part.Anchored = false
  1923. end), hit.Parent.Torso)
  1924. game:GetService("Debris"):AddItem(BodPos, 3)
  1925. game:GetService("Debris"):AddItem(BodGy, 3)
  1926. end
  1927. local debounce = Create("BoolValue")({
  1928. Name = "DebounceHit",
  1929. Parent = hit.Parent,
  1930. Value = true
  1931. })
  1932. game:GetService("Debris"):AddItem(debounce, Delay)
  1933. c = Instance.new("ObjectValue")
  1934. c.Name = "creator"
  1935. c.Value = Player
  1936. c.Parent = h
  1937. game:GetService("Debris"):AddItem(c, 0.5)
  1938. end
  1939. end
  1940. function ShowDamage(Pos, Text, Time, Color)
  1941. local Rate = 0.03333333333333333
  1942. local Pos = Pos or Vector3.new(0, 0, 0)
  1943. local Text = Text or ""
  1944. local Time = Time or 2
  1945. local Color = Color or Color3.new(1, 0, 1)
  1946. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1947. EffectPart.Anchored = true
  1948. local BillboardGui = Create("BillboardGui")({
  1949. Size = UDim2.new(3, 0, 3, 0),
  1950. Adornee = EffectPart,
  1951. Parent = EffectPart
  1952. })
  1953. local TextLabel = Create("TextLabel")({
  1954. BackgroundTransparency = 1,
  1955. Size = UDim2.new(1, 0, 1, 0),
  1956. Text = Text,
  1957. TextColor3 = Color,
  1958. TextScaled = true,
  1959. Font = Enum.Font.ArialBold,
  1960. Parent = BillboardGui
  1961. })
  1962. game.Debris:AddItem(EffectPart, Time + 0.1)
  1963. EffectPart.Parent = game:GetService("Workspace")
  1964. delay(0, function()
  1965. local Frames = Time / Rate
  1966. for Frame = 1, Frames do
  1967. wait(Rate)
  1968. local Percent = Frame / Frames
  1969. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1970. TextLabel.TextTransparency = Percent
  1971. end
  1972. if EffectPart and EffectPart.Parent then
  1973. EffectPart:Destroy()
  1974. end
  1975. end)
  1976. end
  1977. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1978. for _, c in pairs(workspace:children()) do
  1979. local hum = c:findFirstChildOfClass("Humanoid")
  1980. if hum ~= nil then
  1981. local head = c:findFirstChild("Head")
  1982. if head ~= nil then
  1983. local targ = head.Position - Part.Position
  1984. local mag = targ.magnitude
  1985. if magni >= mag and c.Name ~= Player.Name then
  1986. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1987. end
  1988. end
  1989. end
  1990. end
  1991. end
  1992.  
  1993. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1994. for _, c in pairs(workspace:children()) do
  1995. local hum = c:findFirstChild("Humanoid")
  1996. if hum ~= nil then
  1997. local head = c:findFirstChild("Torso")
  1998. if head ~= nil then
  1999. local targ = head.Position - Part.Position
  2000. local mag = targ.magnitude
  2001. if magni >= mag and c.Name ~= Player.Name then
  2002. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2003. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2004. end
  2005. end
  2006. end
  2007. end
  2008. end
  2009.  
  2010. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2011. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2012. end
  2013.  
  2014. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2015. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2016. prt.Anchored=true
  2017. prt.CFrame=cframe
  2018. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2019. --http://www.roblox.com/asset/?id=4770560
  2020. game:GetService("Debris"):AddItem(prt,2)
  2021. CF=prt.CFrame
  2022. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2023. for i=0,1,0.2 do
  2024. wait()
  2025. Part.CFrame=CF*cf(0,0,-0.4)
  2026. end
  2027. for i=0,1,delay do
  2028. wait()
  2029. --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)
  2030. Mesh.Scale=Mesh.Scale
  2031. end
  2032. for i=0,1,0.1 do
  2033. wait()
  2034. Part.Transparency=i
  2035. end
  2036. Part.Parent=nil
  2037. end),prt,msh,CF)
  2038. end
  2039.  
  2040. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2041. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2042. prt.Anchored=true
  2043. prt.Material = "Neon"
  2044. prt.CFrame=cframe
  2045. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2046. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2047. game:GetService("Debris"):AddItem(prt,5)
  2048. coroutine.resume(coroutine.create(function(Part,Mesh)
  2049. for i=0,1,delay do
  2050. swait()
  2051. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2052. Part.Transparency=i
  2053. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2054. end
  2055. Part.Parent=nil
  2056. end),prt,msh)
  2057. end
  2058.  
  2059. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2060. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2061. prt.Anchored=true
  2062. prt.Material = "Neon"
  2063. prt.CFrame=cframe
  2064. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2065. game:GetService("Debris"):AddItem(prt,5)
  2066. coroutine.resume(coroutine.create(function(Part,Mesh)
  2067. local rtype = rottype
  2068. for i=0,1,delay do
  2069. swait()
  2070. if rtype == 1 then
  2071. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2072. elseif rtype == 2 then
  2073. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2074. end
  2075. Part.Transparency=i
  2076. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2077. end
  2078. Part.Parent=nil
  2079. end),prt,msh)
  2080. end
  2081.  
  2082. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2083. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2084. prt.Anchored=true
  2085. prt.CFrame=cframe
  2086. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2087. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2088. game:GetService("Debris"):AddItem(prt,5)
  2089. coroutine.resume(coroutine.create(function(Part,Mesh)
  2090. for i=0,1,delay do
  2091. wait()
  2092. Part.Transparency=i
  2093. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2094. end
  2095. Part.Parent=nil
  2096. end),prt,msh)
  2097. end
  2098.  
  2099. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2100. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2101. prt.Anchored=true
  2102. prt.Material = "Neon"
  2103. prt.CFrame=cframe
  2104. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2105. game:GetService("Debris"):AddItem(prt,5)
  2106. coroutine.resume(coroutine.create(function(Part,Mesh)
  2107. local rtype = rottype
  2108. for i=0,1,delay do
  2109. swait()
  2110. if rtype == 1 then
  2111. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2112. elseif rtype == 2 then
  2113. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2114. end
  2115. Part.Transparency=i
  2116. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2117. end
  2118. Part.Parent=nil
  2119. end),prt,msh)
  2120. end
  2121.  
  2122. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2123. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2124. prt.Anchored=true
  2125. prt.Material = "Neon"
  2126. prt.CFrame=cframe
  2127. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2128. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2129. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2130. game:GetService("Debris"):AddItem(prt,5)
  2131. coroutine.resume(coroutine.create(function(Part,Mesh)
  2132. local rtype = rottype
  2133. for i=0,1,delay do
  2134. swait()
  2135. if rtype == 1 then
  2136. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2137. elseif rtype == 2 then
  2138. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2139. end
  2140. dec.Transparency=i
  2141. dec2.Transparency=i
  2142. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2143. end
  2144. Part.Parent=nil
  2145. end),prt,msh)
  2146. end
  2147.  
  2148. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2149. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2150. prt.Anchored=true
  2151. prt.Material = "Neon"
  2152. prt.CFrame=cframe
  2153. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2154. game:GetService("Debris"):AddItem(prt,5)
  2155. coroutine.resume(coroutine.create(function(Part,Mesh)
  2156. local rtype = rottype
  2157. for i=0,1,delay do
  2158. swait()
  2159. if rtype == 1 then
  2160. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2161. elseif rtype == 2 then
  2162. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2163. end
  2164. prt.Transparency=i
  2165. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2166. end
  2167. Part.Parent=nil
  2168. end),prt,msh)
  2169. end
  2170.  
  2171. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2172. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2173. prt.Anchored=true
  2174. prt.Material = "Neon"
  2175. prt.CFrame=cframe
  2176. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2177. game:GetService("Debris"):AddItem(prt,5)
  2178. coroutine.resume(coroutine.create(function(Part,Mesh)
  2179. local rtype = rottype
  2180. for i=0,1,delay do
  2181. swait()
  2182. if rtype == 1 then
  2183. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2184. elseif rtype == 2 then
  2185. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2186. end
  2187. prt.Transparency=i
  2188. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2189. end
  2190. Part.Parent=nil
  2191. end),prt,msh)
  2192. end
  2193.  
  2194. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2195. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2196. prt.Anchored=true
  2197. prt.Material = "Neon"
  2198. prt.CFrame=cframe
  2199. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2200. game:GetService("Debris"):AddItem(prt,5)
  2201. coroutine.resume(coroutine.create(function(Part,Mesh)
  2202. local rtype = rottype
  2203. for i=0,1,delay do
  2204. swait()
  2205. if rtype == 1 then
  2206. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2207. elseif rtype == 2 then
  2208. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2209. end
  2210. prt.Transparency=i
  2211. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2212. end
  2213. Part.Parent=nil
  2214. end),prt,msh)
  2215. end
  2216.  
  2217. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2218. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2219. prt.Anchored=true
  2220. prt.Material = "Neon"
  2221. prt.CFrame=cframe
  2222. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2223. game:GetService("Debris"):AddItem(prt,5)
  2224. coroutine.resume(coroutine.create(function(Part,Mesh)
  2225. local rtype = rottype
  2226. for i=0,1,delay do
  2227. swait()
  2228. if rtype == 1 then
  2229. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2230. elseif rtype == 2 then
  2231. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2232. end
  2233. prt.Transparency=i
  2234. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2235. end
  2236. Part.Parent=nil
  2237. end),prt,msh)
  2238. end
  2239.  
  2240. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2241. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2242. prt.Anchored=false
  2243. prt.CFrame=cframe
  2244. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2245. local wld=weld(prt,prt,Parent,cframe)
  2246. game:GetService("Debris"):AddItem(prt,5)
  2247. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2248. for i=0,1,delay do
  2249. wait()
  2250. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2251. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2252. Part.Transparency=i
  2253. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2254. end
  2255. Part.Parent=nil
  2256. end),prt,msh,wld)
  2257. end
  2258.  
  2259. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2260. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2261. prt.Anchored=false
  2262. prt.CFrame=cframe
  2263. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2264. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2265. game:GetService("Debris"):AddItem(prt,5)
  2266. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2267. for i=0,1,delay do
  2268. wait()
  2269. Weld.C0=euler(i*20,0,0)
  2270. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2271. Part.Transparency=i
  2272. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2273. end
  2274. Part.Parent=nil
  2275. end),prt,msh,wld)
  2276. end
  2277.  
  2278. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2279. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2280. prt.Anchored=true
  2281. prt.CFrame=cframe
  2282. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2283. game:GetService("Debris"):AddItem(prt,2)
  2284. coroutine.resume(coroutine.create(function(Part,Mesh)
  2285. for i=0,1,delay do
  2286. wait()
  2287. Part.CFrame=Part.CFrame
  2288. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2289. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2290. prt2.Anchored=true
  2291. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2292. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2293. game:GetService("Debris"):AddItem(prt2,2)
  2294. coroutine.resume(coroutine.create(function(Part,Mesh)
  2295. for i=0,1,0.1 do
  2296. wait()
  2297. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2298. end
  2299. Part.Parent=nil
  2300. end),prt2,msh2)
  2301. end
  2302. for i=0,1,delay*2 do
  2303. wait()
  2304. Part.CFrame=Part.CFrame
  2305. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2306. end
  2307. Part.Parent=nil
  2308. end),prt,msh)
  2309. end
  2310.  
  2311. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2312. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2313. prt.Anchored=true
  2314. prt.CFrame=cframe
  2315. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2316. game:GetService("Debris"):AddItem(prt,2)
  2317. coroutine.resume(coroutine.create(function(Part,Mesh)
  2318. for i=0,1,delay do
  2319. wait()
  2320. Part.CFrame=Part.CFrame
  2321. Part.Transparency=i
  2322. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2323. end
  2324. Part.Parent=nil
  2325. end),prt,msh)
  2326. end
  2327.  
  2328. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2329. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2330. prt.Anchored=true
  2331. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2332. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2333. game:GetService("Debris"):AddItem(prt,2)
  2334. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2335. CF=Part.CFrame
  2336. Numbb=0
  2337. randnumb=math.random()/10
  2338. rand1=math.random()/10
  2339. for i=0,1,rand1 do
  2340. wait()
  2341. CF=CF*cf(0,math.random()/2,0)
  2342. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2343. Part.CFrame=CF*euler(Numbb,0,0)
  2344. Part.Transparency=i
  2345. Numbb=Numbb+randnumb
  2346. end
  2347. Part.Parent=nil
  2348. end),prt,CF,Numbb,randnumb)
  2349. end
  2350.  
  2351. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2352. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2353. prt.Anchored=true
  2354. prt.CFrame=cframe
  2355. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2356. game:GetService("Debris"):AddItem(prt,5)
  2357. coroutine.resume(coroutine.create(function(Part,Mesh)
  2358. for i=0,1,delay do
  2359. wait()
  2360. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2361. Part.Transparency=i
  2362. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2363. end
  2364. Part.Parent=nil
  2365. end),prt,msh)
  2366. end
  2367.  
  2368. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2369. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2370. prt.Anchored=true
  2371. prt.CFrame=cframe
  2372. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2373. game:GetService("Debris"):AddItem(prt,2)
  2374. coroutine.resume(coroutine.create(function(Part,Mesh)
  2375. for i=0,1,delay do
  2376. wait()
  2377. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2378. Part.Transparency=i
  2379. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2380. end
  2381. Part.Parent=nil
  2382. end),prt,msh)
  2383. end
  2384.  
  2385. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2386. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2387. prt.Anchored=true
  2388. prt.CFrame=cframe*cf(x,y,z)
  2389. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2390. game:GetService("Debris"):AddItem(prt,5)
  2391. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2392. local num=math.random()
  2393. local num2=math.random(-3,2)+math.random()
  2394. local numm=0
  2395. for i=0,1,delay*2 do
  2396. swait()
  2397. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2398. Part.Transparency=i
  2399. numm=numm+0.01
  2400. end
  2401. Part.Parent=nil
  2402. Mesh.Parent=nil
  2403. end),prt,msh,x,y,z)
  2404. end
  2405.  
  2406. function dmgstart(dmg,what)
  2407. hitcon = what.Touched:connect(function(hit)
  2408. local hum = hit.Parent:FindFirstChild("Humanoid")
  2409. if hum and not hum:IsDescendantOf(Character) then
  2410. hum:TakeDamage(dmg)
  2411. end
  2412. end)
  2413. end
  2414.  
  2415. function dmgstop()
  2416. hitcon:disconnect()
  2417. end
  2418.  
  2419. function Cloak()
  2420. Face.Parent=nil
  2421. cloaked=true
  2422. for _,v in pairs(Torso.Parent:children()) do
  2423. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2424. coroutine.resume(coroutine.create(function()
  2425. for i=0,1,0.2 do
  2426. wait()
  2427. v.Transparency=i
  2428. end
  2429. v.Transparency=1
  2430. end))
  2431. end
  2432. if v.className=="Hat" then
  2433. hatp=v.Handle
  2434. coroutine.resume(coroutine.create(function(derp)
  2435. for i=0,1,0.2 do
  2436. wait()
  2437. derp.Transparency=i
  2438. end
  2439. derp.Transparency=1
  2440. end),hatp)
  2441. end
  2442. end
  2443. for _,v in pairs(m:children()) do
  2444. if v.className=="Part" then
  2445. coroutine.resume(coroutine.create(function()
  2446. for i=0,1,0.2 do
  2447. wait()
  2448. v.Transparency=i
  2449. end
  2450. v.Transparency=1
  2451. end))
  2452. end
  2453. end
  2454. end
  2455.  
  2456. function UnCloak()
  2457. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2458. Face.Parent=Head
  2459. cloaked=false
  2460. for _,v in pairs(Torso.Parent:children()) do
  2461. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2462. coroutine.resume(coroutine.create(function()
  2463. for i=0,1,0.1 do
  2464. wait()
  2465. v.Transparency=v.Transparency-0.1
  2466. end
  2467. v.Transparency=0
  2468. end))
  2469. end
  2470. if v.className=="Hat" then
  2471. hatp=v.Handle
  2472. coroutine.resume(coroutine.create(function(derp)
  2473. for i=0,1,0.1 do
  2474. wait()
  2475. derp.Transparency=derp.Transparency-0.1
  2476. end
  2477. derp.Transparency=0
  2478. end),hatp)
  2479. end
  2480. end
  2481. for _,v in pairs(m:children()) do
  2482. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2483. coroutine.resume(coroutine.create(function()
  2484. for i=0,1,0.1 do
  2485. wait()
  2486. v.Transparency=v.Transparency-0.1
  2487. end
  2488. v.Transparency=0
  2489. end))
  2490. v.Transparency=0
  2491. end
  2492. end
  2493. end
  2494.  
  2495. local origcolor = BrickColor.new("Pastel light blue")
  2496. ---- This section of explosions.
  2497.  
  2498. ----
  2499.  
  2500.  
  2501. function ring(type,pos,scale,value)
  2502. local type = type
  2503. local rng = Instance.new("Part", char)
  2504. rng.Anchored = true
  2505. rng.BrickColor = origcolor
  2506. rng.CanCollide = false
  2507. rng.FormFactor = 3
  2508. rng.Name = "Ring"
  2509. rng.Size = Vector3.new(1, 1, 1)
  2510. rng.Transparency = 0
  2511. rng.TopSurface = 0
  2512. rng.BottomSurface = 0
  2513. rng.CFrame = pos
  2514. local rngm = Instance.new("SpecialMesh", rng)
  2515. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2516. rngm.Scale = scale
  2517. local scaler2 = 1
  2518. if type == "Add" then
  2519. scaler2 = 1*value
  2520. elseif type == "Divide" then
  2521. scaler2 = 1/value
  2522. end
  2523. coroutine.resume(coroutine.create(function()
  2524. for i = 0,10,0.1 do
  2525. swait()
  2526. if type == "Add" then
  2527. scaler2 = scaler2 - 0.01*value
  2528. elseif type == "Divide" then
  2529. scaler2 = scaler2 - 0.01/value
  2530. end
  2531. rng.Transparency = rng.Transparency + 0.01
  2532. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2533. end
  2534. rng:Destroy()
  2535. end))
  2536. end
  2537.  
  2538.  
  2539. function wave(type,pos,scale,value)
  2540. local type = type
  2541. local rng = Instance.new("Part", char)
  2542. rng.Anchored = true
  2543. rng.BrickColor = origcolor
  2544. rng.CanCollide = false
  2545. rng.FormFactor = 3
  2546. rng.Name = "Ring"
  2547. rng.Size = Vector3.new(1, 1, 1)
  2548. rng.Transparency = 0
  2549. rng.TopSurface = 0
  2550. rng.BottomSurface = 0
  2551. rng.CFrame = pos
  2552. local rngm = Instance.new("SpecialMesh", rng)
  2553. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2554. rngm.Scale = scale
  2555. local scaler2 = 1
  2556. if type == "Add" then
  2557. scaler2 = 1*value
  2558. elseif type == "Divide" then
  2559. scaler2 = 1/value
  2560. end
  2561. coroutine.resume(coroutine.create(function()
  2562. for i = 0,10,0.1 do
  2563. swait()
  2564. if type == "Add" then
  2565. scaler2 = scaler2 - 0.01*value
  2566. elseif type == "Divide" then
  2567. scaler2 = scaler2 - 0.01/value
  2568. end
  2569. rng.Transparency = rng.Transparency + 0.01
  2570. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2571. end
  2572. rng:Destroy()
  2573. end))
  2574. end
  2575.  
  2576. function wind(type,pos,scale,value,speed)
  2577. local type = type
  2578. local rng = Instance.new("Part", char)
  2579. rng.Anchored = true
  2580. rng.BrickColor = origcolor
  2581. rng.CanCollide = false
  2582. rng.FormFactor = 3
  2583. rng.Name = "Ring"
  2584. rng.Size = Vector3.new(1, 1, 1)
  2585. rng.Transparency = 0
  2586. rng.TopSurface = 0
  2587. rng.BottomSurface = 0
  2588. rng.CFrame = pos
  2589. local rngm = Instance.new("SpecialMesh", rng)
  2590. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2591. rngm.Scale = scale
  2592. local scaler2 = 1
  2593. if type == "Add" then
  2594. scaler2 = 1*value
  2595. elseif type == "Divide" then
  2596. scaler2 = 1/value
  2597. end
  2598. coroutine.resume(coroutine.create(function()
  2599. for i = 0,10,0.1 do
  2600. swait()
  2601. if type == "Add" then
  2602. scaler2 = scaler2 - 0.01*value
  2603. elseif type == "Divide" then
  2604. scaler2 = scaler2 - 0.01/value
  2605. end
  2606. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2607. rng.Transparency = rng.Transparency + 0.01
  2608. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2609. end
  2610. rng:Destroy()
  2611. end))
  2612. end
  2613.  
  2614. function groundwind(type,pos,scale,value,speed)
  2615. local type = type
  2616. local rng = Instance.new("Part", char)
  2617. rng.Anchored = true
  2618. rng.BrickColor = origcolor
  2619. rng.CanCollide = false
  2620. rng.FormFactor = 3
  2621. rng.Name = "Ring"
  2622. rng.Size = Vector3.new(1, 1, 1)
  2623. rng.Transparency = 0
  2624. rng.TopSurface = 0
  2625. rng.BottomSurface = 0
  2626. rng.CFrame = pos
  2627. local rngm = Instance.new("SpecialMesh", rng)
  2628. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2629. rngm.Scale = scale
  2630. local scaler2 = 1
  2631. if type == "Add" then
  2632. scaler2 = 1*value
  2633. elseif type == "Divide" then
  2634. scaler2 = 1/value
  2635. end
  2636. coroutine.resume(coroutine.create(function()
  2637. for i = 0,10,0.1 do
  2638. swait()
  2639. if type == "Add" then
  2640. scaler2 = scaler2 - 0.01*value
  2641. elseif type == "Divide" then
  2642. scaler2 = scaler2 - 0.01/value
  2643. end
  2644. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2645. rng.Transparency = rng.Transparency + 0.01
  2646. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2647. end
  2648. rng:Destroy()
  2649. end))
  2650. end
  2651.  
  2652. function CameraManager()
  2653. if TwoD and not CamInterrupt then
  2654. if Humanoid.Health > 0 then
  2655. Camera.CameraSubject = Humanoid
  2656. Camera.CameraType = "Scriptable"
  2657. Humanoid.AutoRotate = false
  2658. if Booleans.GyroUse then
  2659. Directer.MaxTorque = Vec3(0, huge, 0)
  2660. else
  2661. Directer.MaxTorque = Vec3(0, 0, 0)
  2662. end
  2663. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2664. if Booleans.CamFollow then
  2665. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2666. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2667. else
  2668. CPart.Position = RootPart.Position
  2669. end
  2670. else
  2671. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2672. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2673. end
  2674. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2675. else
  2676. Camera.CameraSubject = Humanoid
  2677. Camera.CameraType = "Custom"
  2678. Controller.Disabled = false
  2679. end
  2680. end
  2681. end
  2682.  
  2683. function ring(type,pos,scale,value)
  2684. local type = type
  2685. local rng = Instance.new("Part", char)
  2686. rng.Anchored = true
  2687. rng.BrickColor = origcolor
  2688. rng.CanCollide = false
  2689. rng.FormFactor = 3
  2690. rng.Name = "Ring"
  2691. rng.Size = Vector3.new(1, 1, 1)
  2692. rng.Transparency = 0
  2693. rng.TopSurface = 0
  2694. rng.BottomSurface = 0
  2695. rng.CFrame = pos
  2696. local rngm = Instance.new("SpecialMesh", rng)
  2697. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2698. rngm.Scale = scale
  2699. local scaler2 = 1
  2700. if type == "Add" then
  2701. scaler2 = 1*value
  2702. elseif type == "Divide" then
  2703. scaler2 = 1/value
  2704. end
  2705. coroutine.resume(coroutine.create(function()
  2706. for i = 0,10,0.1 do
  2707. swait()
  2708. if type == "Add" then
  2709. scaler2 = scaler2 - 0.01*value
  2710. elseif type == "Divide" then
  2711. scaler2 = scaler2 - 0.01/value
  2712. end
  2713. rng.Transparency = rng.Transparency + 0.01
  2714. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2715. end
  2716. rng:Destroy()
  2717. end))
  2718. end
  2719.  
  2720.  
  2721. function wave(type,pos,scale,value)
  2722. local type = type
  2723. local rng = Instance.new("Part", char)
  2724. rng.Anchored = true
  2725. rng.BrickColor = origcolor
  2726. rng.CanCollide = false
  2727. rng.FormFactor = 3
  2728. rng.Name = "Ring"
  2729. rng.Size = Vector3.new(1, 1, 1)
  2730. rng.Transparency = 0
  2731. rng.TopSurface = 0
  2732. rng.BottomSurface = 0
  2733. rng.CFrame = pos
  2734. local rngm = Instance.new("SpecialMesh", rng)
  2735. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2736. rngm.Scale = scale
  2737. local scaler2 = 1
  2738. if type == "Add" then
  2739. scaler2 = 1*value
  2740. elseif type == "Divide" then
  2741. scaler2 = 1/value
  2742. end
  2743. coroutine.resume(coroutine.create(function()
  2744. for i = 0,10,0.1 do
  2745. swait()
  2746. if type == "Add" then
  2747. scaler2 = scaler2 - 0.01*value
  2748. elseif type == "Divide" then
  2749. scaler2 = scaler2 - 0.01/value
  2750. end
  2751. rng.Transparency = rng.Transparency + 0.01
  2752. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2753. end
  2754. rng:Destroy()
  2755. end))
  2756. end
  2757.  
  2758. function sphere(bonuspeed,type,pos,scale,value,color)
  2759. local type = type
  2760. local rng = Instance.new("Part", char)
  2761. rng.Anchored = true
  2762. if ModeOfGlitch ~= 9 then
  2763. rng.BrickColor = color
  2764. elseif ModeOfGlitch == 9 then
  2765. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2766. end
  2767. rng.CanCollide = false
  2768. rng.FormFactor = 3
  2769. rng.Name = "Ring"
  2770. rng.Material = "Neon"
  2771. rng.Size = Vector3.new(1, 1, 1)
  2772. rng.Transparency = 0
  2773. rng.TopSurface = 0
  2774. rng.BottomSurface = 0
  2775. rng.CFrame = pos
  2776. local rngm = Instance.new("SpecialMesh", rng)
  2777. rngm.MeshType = "Sphere"
  2778. rngm.Scale = scale
  2779. if rainbowmode == true then
  2780. rng.Color = Color3.new(r/255,g/255,b/255)
  2781. end
  2782. if ModeOfGlitch == 9 then
  2783. coroutine.resume(coroutine.create(function()
  2784. while true do
  2785. swait()
  2786. if rng.Parent ~= nil then
  2787. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2788. else
  2789. break
  2790. end
  2791. end
  2792. end))
  2793. end
  2794. local scaler2 = 1
  2795. if type == "Add" then
  2796. scaler2 = 1*value
  2797. elseif type == "Divide" then
  2798. scaler2 = 1/value
  2799. end
  2800. coroutine.resume(coroutine.create(function()
  2801. for i = 0,10/bonuspeed,0.1 do
  2802. swait()
  2803. if rainbowmode == true then
  2804. rng.Color = Color3.new(r/255,g/255,b/255)
  2805. end
  2806. if type == "Add" then
  2807. scaler2 = scaler2 - 0.01*value/bonuspeed
  2808. elseif type == "Divide" then
  2809. scaler2 = scaler2 - 0.01/value*bonuspeed
  2810. end
  2811. if chaosmode == true then
  2812. rng.BrickColor = BrickColor.random()
  2813. end
  2814. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2815. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2816. end
  2817. rng:Destroy()
  2818. end))
  2819. end
  2820.  
  2821. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2822. local type = type
  2823. local rng = Instance.new("Part", char)
  2824. rng.Anchored = true
  2825. if ModeOfGlitch ~= 9 then
  2826. rng.BrickColor = color
  2827. elseif ModeOfGlitch == 9 then
  2828. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2829. end
  2830. rng.CanCollide = false
  2831. rng.FormFactor = 3
  2832. rng.Name = "Ring"
  2833. rng.Material = "Neon"
  2834. rng.Size = Vector3.new(1, 1, 1)
  2835. rng.Transparency = 0
  2836. rng.TopSurface = 0
  2837. rng.BottomSurface = 0
  2838. rng.CFrame = pos
  2839. local rngm = Instance.new("SpecialMesh", rng)
  2840. rngm.MeshType = "Sphere"
  2841. rngm.Scale = scale
  2842. local scaler2 = 1
  2843. local scaler2b = 1
  2844. local scaler2c = 1
  2845. if type == "Add" then
  2846. scaler2 = 1*value
  2847. scaler2b = 1*value2
  2848. scaler2c = 1*value3
  2849. elseif type == "Divide" then
  2850. scaler2 = 1/value
  2851. scaler2b = 1/value2
  2852. scaler2c = 1/value3
  2853. end
  2854. if ModeOfGlitch == 9 then
  2855. coroutine.resume(coroutine.create(function()
  2856. while true do
  2857. swait()
  2858. if rng.Parent ~= nil then
  2859. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2860. else
  2861. break
  2862. end
  2863. end
  2864. end))
  2865. end
  2866. coroutine.resume(coroutine.create(function()
  2867. for i = 0,10/bonuspeed,0.1 do
  2868. swait()
  2869. if type == "Add" then
  2870. scaler2 = scaler2 - 0.01*value/bonuspeed
  2871. scaler2b = scaler2b - 0.01*value/bonuspeed
  2872. scaler2c = scaler2c - 0.01*value/bonuspeed
  2873. elseif type == "Divide" then
  2874. scaler2 = scaler2 - 0.01/value*bonuspeed
  2875. scaler2b = scaler2b - 0.01/value*bonuspeed
  2876. scaler2c = scaler2c - 0.01/value*bonuspeed
  2877. end
  2878. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2879. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2880. end
  2881. rng:Destroy()
  2882. end))
  2883. end
  2884.  
  2885. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2886. local type = type
  2887. local rotenable = rotatingop
  2888. local rng = Instance.new("Part", char)
  2889. rng.Anchored = true
  2890. rng.BrickColor = color
  2891. rng.CanCollide = false
  2892. rng.FormFactor = 3
  2893. rng.Name = "Ring"
  2894. rng.Material = "Neon"
  2895. rng.Size = Vector3.new(1, 1, 1)
  2896. rng.Transparency = 0
  2897. if typeoftrans == "In" then
  2898. rng.Transparency = 1
  2899. end
  2900. rng.TopSurface = 0
  2901. rng.BottomSurface = 0
  2902. rng.CFrame = pos
  2903. local rngm = Instance.new("SpecialMesh", rng)
  2904. rngm.MeshType = "FileMesh"
  2905. if typeofshape == "Normal" then
  2906. rngm.MeshId = "rbxassetid://662586858"
  2907. elseif typeofshape == "Round" then
  2908. rngm.MeshId = "rbxassetid://662585058"
  2909. end
  2910. rngm.Scale = scale
  2911. local scaler2 = 1/10
  2912. if type == "Add" then
  2913. scaler2 = 1*value/10
  2914. elseif type == "Divide" then
  2915. scaler2 = 1/value/10
  2916. end
  2917. local randomrot = math.random(1,2)
  2918. coroutine.resume(coroutine.create(function()
  2919. for i = 0,10/bonuspeed,0.1 do
  2920. swait()
  2921. if type == "Add" then
  2922. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2923. elseif type == "Divide" then
  2924. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2925. end
  2926. if rotenable == true then
  2927. if randomrot == 1 then
  2928. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2929. elseif randomrot == 2 then
  2930. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2931. end
  2932. end
  2933. if typeoftrans == "Out" then
  2934. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2935. elseif typeoftrans == "In" then
  2936. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2937. end
  2938. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2939. end
  2940. rng:Destroy()
  2941. end))
  2942. end
  2943.  
  2944. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2945. local type = type
  2946. local rng = Instance.new("Part", char)
  2947. rng.Anchored = true
  2948. rng.BrickColor = color
  2949. rng.CanCollide = false
  2950. rng.FormFactor = 3
  2951. rng.Name = "Ring"
  2952. rng.Material = "Neon"
  2953. rng.Size = Vector3.new(1, 1, 1)
  2954. rng.Transparency = 0
  2955. rng.TopSurface = 0
  2956. rng.BottomSurface = 0
  2957. rng.CFrame = pos
  2958. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2959. local rngm = Instance.new("SpecialMesh", rng)
  2960. rngm.MeshType = "Brick"
  2961. rngm.Scale = vt(x1,y1,z1)
  2962. if rainbowmode == true then
  2963. rng.Color = Color3.new(r/255,g/255,b/255)
  2964. end
  2965. local scaler2 = 1
  2966. local speeder = FastSpeed/10
  2967. if type == "Add" then
  2968. scaler2 = 1*value
  2969. elseif type == "Divide" then
  2970. scaler2 = 1/value
  2971. end
  2972. coroutine.resume(coroutine.create(function()
  2973. for i = 0,10/bonuspeed,0.1 do
  2974. swait()
  2975. if rainbowmode == true then
  2976. rng.Color = Color3.new(r/255,g/255,b/255)
  2977. end
  2978. if type == "Add" then
  2979. scaler2 = scaler2 - 0.01*value/bonuspeed
  2980. elseif type == "Divide" then
  2981. scaler2 = scaler2 - 0.01/value*bonuspeed
  2982. end
  2983. if chaosmode == true then
  2984. rng.BrickColor = BrickColor.random()
  2985. end
  2986. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2987. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2988. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2989. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2990. end
  2991. rng:Destroy()
  2992. end))
  2993. end
  2994.  
  2995. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2996. local type = type
  2997. local rng = Instance.new("Part", char)
  2998. rng.Anchored = true
  2999. rng.BrickColor = color
  3000. rng.CanCollide = false
  3001. rng.FormFactor = 3
  3002. rng.Name = "Ring"
  3003. rng.Material = "Neon"
  3004. rng.Size = Vector3.new(1, 1, 1)
  3005. rng.Transparency = 0
  3006. rng.TopSurface = 0
  3007. rng.BottomSurface = 0
  3008. rng.CFrame = pos
  3009. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3010. local rngm = Instance.new("SpecialMesh", rng)
  3011. rngm.MeshType = "Brick"
  3012. rngm.Scale = vt(x1,y1,z1)
  3013. if rainbowmode == true then
  3014. rng.Color = Color3.new(r/255,g/255,b/255)
  3015. end
  3016. local scaler2 = 1
  3017. local speeder = FastSpeed/10
  3018. if type == "Add" then
  3019. scaler2 = 1*value
  3020. elseif type == "Divide" then
  3021. scaler2 = 1/value
  3022. end
  3023. coroutine.resume(coroutine.create(function()
  3024. for i = 0,10/bonuspeed,0.1 do
  3025. swait()
  3026. if rainbowmode == true then
  3027. rng.Color = Color3.new(r/255,g/255,b/255)
  3028. end
  3029. if type == "Add" then
  3030. scaler2 = scaler2 - 0.01*value/bonuspeed
  3031. elseif type == "Divide" then
  3032. scaler2 = scaler2 - 0.01/value*bonuspeed
  3033. end
  3034. if chaosmode == true then
  3035. rng.BrickColor = BrickColor.random()
  3036. end
  3037. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3038. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3039. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3040. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3041. end
  3042. rng:Destroy()
  3043. end))
  3044. end
  3045.  
  3046. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3047. local type = type
  3048. local rng = Instance.new("Part", char)
  3049. rng.Anchored = true
  3050. rng.BrickColor = color
  3051. rng.CanCollide = false
  3052. rng.FormFactor = 3
  3053. rng.Name = "Ring"
  3054. rng.Material = "Neon"
  3055. rng.Size = Vector3.new(1, 1, 1)
  3056. rng.Transparency = 0
  3057. rng.TopSurface = 0
  3058. rng.BottomSurface = 0
  3059. rng.CFrame = pos
  3060. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3061. local rngm = Instance.new("SpecialMesh", rng)
  3062. rngm.MeshType = "Brick"
  3063. rngm.Scale = vt(x1,y1,z1)
  3064. if rainbowmode == true then
  3065. rng.Color = Color3.new(r/255,g/255,b/255)
  3066. end
  3067. local scaler2 = 0
  3068. local speeder = FastSpeed/10
  3069. if type == "Add" then
  3070. scaler2 = 1*value
  3071. elseif type == "Divide" then
  3072. scaler2 = 1/value
  3073. end
  3074. coroutine.resume(coroutine.create(function()
  3075. for i = 0,10/bonuspeed,0.1 do
  3076. swait()
  3077. if rainbowmode == true then
  3078. rng.Color = Color3.new(r/255,g/255,b/255)
  3079. end
  3080. if type == "Add" then
  3081. scaler2 = scaler2 - 0.01*value/bonuspeed
  3082. elseif type == "Divide" then
  3083. scaler2 = scaler2 - 0.01/value*bonuspeed
  3084. end
  3085. if chaosmode == true then
  3086. rng.BrickColor = BrickColor.random()
  3087. end
  3088. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3089. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3090. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3091. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3092. end
  3093. rng:Destroy()
  3094. end))
  3095. end
  3096.  
  3097. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3098. local type = type
  3099. local rng = Instance.new("Part", char)
  3100. rng.Anchored = true
  3101. rng.BrickColor = color
  3102. rng.Color = color3
  3103. rng.CanCollide = false
  3104. rng.FormFactor = 3
  3105. rng.Name = "Ring"
  3106. rng.Material = "Neon"
  3107. rng.Size = Vector3.new(1, 1, 1)
  3108. rng.Transparency = 0
  3109. rng.TopSurface = 0
  3110. rng.BottomSurface = 0
  3111. rng.CFrame = pos
  3112. local rngm = Instance.new("SpecialMesh", rng)
  3113. rngm.MeshType = "Brick"
  3114. rngm.Scale = scale
  3115. local scaler2 = 1
  3116. local scaler2b = 1
  3117. local scaler2c = 1
  3118. if type == "Add" then
  3119. scaler2 = 1*value
  3120. scaler2b = 1*value2
  3121. scaler2c = 1*value3
  3122. elseif type == "Divide" then
  3123. scaler2 = 1/value
  3124. scaler2b = 1/value2
  3125. scaler2c = 1/value3
  3126. end
  3127. coroutine.resume(coroutine.create(function()
  3128. for i = 0,10/bonuspeed,0.1 do
  3129. swait()
  3130. if type == "Add" then
  3131. scaler2 = scaler2 - 0.01*value/bonuspeed
  3132. scaler2b = scaler2b - 0.01*value/bonuspeed
  3133. scaler2c = scaler2c - 0.01*value/bonuspeed
  3134. elseif type == "Divide" then
  3135. scaler2 = scaler2 - 0.01/value*bonuspeed
  3136. scaler2b = scaler2b - 0.01/value*bonuspeed
  3137. scaler2c = scaler2c - 0.01/value*bonuspeed
  3138. end
  3139. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3140. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3141. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3142. end
  3143. rng:Destroy()
  3144. end))
  3145. end
  3146.  
  3147. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3148. local type = type
  3149. local rng = Instance.new("Part", char)
  3150. rng.Anchored = true
  3151. if ModeOfGlitch ~= 9 then
  3152. rng.BrickColor = color
  3153. elseif ModeOfGlitch == 9 then
  3154. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3155. end
  3156. rng.CanCollide = false
  3157. rng.FormFactor = 3
  3158. rng.Name = "Ring"
  3159. rng.Material = "Neon"
  3160. rng.Size = Vector3.new(1, 1, 1)
  3161. rng.Transparency = 0
  3162. rng.TopSurface = 0
  3163. rng.BottomSurface = 0
  3164. rng.CFrame = pos
  3165. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3166. local rngm = Instance.new("SpecialMesh", rng)
  3167. rngm.MeshType = "Sphere"
  3168. rngm.Scale = vt(x1,y1,z1)
  3169. if rainbowmode == true then
  3170. rng.Color = Color3.new(r/255,g/255,b/255)
  3171. end
  3172. if ModeOfGlitch == 9 then
  3173. coroutine.resume(coroutine.create(function()
  3174. while true do
  3175. swait()
  3176. if rng.Parent ~= nil then
  3177. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3178. else
  3179. break
  3180. end
  3181. end
  3182. end))
  3183. end
  3184. local scaler2 = 1
  3185. local speeder = FastSpeed
  3186. if type == "Add" then
  3187. scaler2 = 1*value
  3188. elseif type == "Divide" then
  3189. scaler2 = 1/value
  3190. end
  3191. coroutine.resume(coroutine.create(function()
  3192. for i = 0,10/bonuspeed,0.1 do
  3193. swait()
  3194. if rainbowmode == true then
  3195. rng.Color = Color3.new(r/255,g/255,b/255)
  3196. end
  3197. if type == "Add" then
  3198. scaler2 = scaler2 - 0.01*value/bonuspeed
  3199. elseif type == "Divide" then
  3200. scaler2 = scaler2 - 0.01/value*bonuspeed
  3201. end
  3202. if chaosmode == true then
  3203. rng.BrickColor = BrickColor.random()
  3204. end
  3205. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3206. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3207. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3208. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3209. end
  3210. rng:Destroy()
  3211. end))
  3212. end
  3213.  
  3214.  
  3215. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3216. local type = type
  3217. local rng = Instance.new("Part", char)
  3218. rng.Anchored = true
  3219. if ModeOfGlitch ~= 9 then
  3220. rng.BrickColor = color
  3221. elseif ModeOfGlitch == 9 then
  3222. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3223. end
  3224. rng.CanCollide = false
  3225. rng.FormFactor = 3
  3226. rng.Name = "Ring"
  3227. rng.Material = "Neon"
  3228. rng.Size = Vector3.new(1, 1, 1)
  3229. rng.Transparency = 1
  3230. rng.TopSurface = 0
  3231. rng.BottomSurface = 0
  3232. rng.CFrame = pos
  3233. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3234. local rngm = Instance.new("SpecialMesh", rng)
  3235. rngm.MeshType = "Sphere"
  3236. rngm.Scale = vt(x1,y1,z1)
  3237. if rainbowmode == true then
  3238. rng.Color = Color3.new(r/255,g/255,b/255)
  3239. end
  3240. if ModeOfGlitch == 9 then
  3241. coroutine.resume(coroutine.create(function()
  3242. while true do
  3243. swait()
  3244. if rng.Parent ~= nil then
  3245. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3246. else
  3247. break
  3248. end
  3249. end
  3250. end))
  3251. end
  3252. local scaler2 = 1
  3253. local speeder = FastSpeed
  3254. if type == "Add" then
  3255. scaler2 = 1*value
  3256. elseif type == "Divide" then
  3257. scaler2 = 1/value
  3258. end
  3259. coroutine.resume(coroutine.create(function()
  3260. for i = 0,10/bonuspeed,0.1 do
  3261. swait()
  3262. if rainbowmode == true then
  3263. rng.Color = Color3.new(r/255,g/255,b/255)
  3264. end
  3265. if type == "Add" then
  3266. scaler2 = scaler2 - 0.01*value/bonuspeed
  3267. elseif type == "Divide" then
  3268. scaler2 = scaler2 - 0.01/value*bonuspeed
  3269. end
  3270. if chaosmode == true then
  3271. rng.BrickColor = BrickColor.random()
  3272. end
  3273. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3274. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3275. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3276. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3277. end
  3278. rng:Destroy()
  3279. end))
  3280. end
  3281.  
  3282. function dmg(dude)
  3283. if dude.Name ~= Character then
  3284. local keptcolor = MAINRUINCOLOR
  3285. local bgf = Instance.new("BodyGyro",dude.Head)
  3286. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3287. --[[local val = Instance.new("BoolValue",dude)
  3288. val.Name = "IsHit"]]--
  3289. local ds = coroutine.wrap(function()
  3290. dude:WaitForChild("Head"):BreakJoints()
  3291. for i, v in pairs(dude:GetChildren()) do
  3292. if v:IsA("Part") or v:IsA("MeshPart") then
  3293. v.Name = "DEMINISHED"
  3294. end
  3295. end
  3296. wait(0.5)
  3297. targetted = nil
  3298. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3299. coroutine.resume(coroutine.create(function()
  3300. for i, v in pairs(dude:GetChildren()) do
  3301. if v:IsA("Accessory") then
  3302. v:Destroy()
  3303. end
  3304. if v:IsA("Humanoid") then
  3305. v:Destroy()
  3306. end
  3307. if v:IsA("CharacterMesh") then
  3308. v:Destroy()
  3309. end
  3310. if v:IsA("Model") then
  3311. v:Destroy()
  3312. end
  3313. if v:IsA("Part") or v:IsA("MeshPart") then
  3314. for x, o in pairs(v:GetChildren()) do
  3315. if o:IsA("Decal") then
  3316. o:Destroy()
  3317. end
  3318. end
  3319. coroutine.resume(coroutine.create(function()
  3320. v.Material = "Neon"
  3321. v.CanCollide = false
  3322. v.Anchored = false
  3323. local bld = Instance.new("ParticleEmitter",v)
  3324. bld.LightEmission = 0.75
  3325. bld.Texture = "rbxassetid://363275192" ---284205403
  3326. bld.Color = ColorSequence.new(keptcolor.Color)
  3327. bld.Rate = 500
  3328. bld.Lifetime = NumberRange.new(1)
  3329. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3330. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3331. bld.Speed = NumberRange.new(2,5)
  3332. bld.VelocitySpread = 50000
  3333. bld.Rotation = NumberRange.new(-500,500)
  3334. bld.RotSpeed = NumberRange.new(-500,500)
  3335. local sbs = Instance.new("BodyPosition", v)
  3336. sbs.P = 3000
  3337. sbs.D = 1000
  3338. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3339. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3340. v.Color = keptcolor.Color
  3341. coroutine.resume(coroutine.create(function()
  3342. for i = 0, 49 do
  3343. swait(1)
  3344. v:BreakJoints()
  3345. v.Transparency = v.Transparency + 0.02
  3346. end
  3347. v:BreakJoints()
  3348. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3349. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3350. bld.Speed = NumberRange.new(10,25)
  3351. bld.Drag = 5
  3352. bld.Acceleration = vt(0,2,0)
  3353. wait(0.5)
  3354. bld.Enabled = false
  3355. wait(8)
  3356. v:Destroy()
  3357. dude:Destroy()
  3358. end))
  3359. end))
  3360. end
  3361. end
  3362. end))
  3363. end)
  3364. ds()
  3365. end
  3366. end
  3367.  
  3368.  
  3369. function FindNearestHead(Position, Distance, SinglePlayer)
  3370. if SinglePlayer then
  3371. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3372. end
  3373. local List = {}
  3374. for i, v in pairs(workspace:GetChildren()) do
  3375. if v:IsA("Model") then
  3376. if v:findFirstChild("Head") then
  3377. if v ~= Character then
  3378. if (v.Head.Position - Position).magnitude <= Distance then
  3379. table.insert(List, v)
  3380. end
  3381. end
  3382. end
  3383. end
  3384. end
  3385. return List
  3386. end
  3387.  
  3388. function FaceMouse()
  3389. Cam = workspace.CurrentCamera
  3390. return {
  3391. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3392. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3393. }
  3394. end
  3395.  
  3396. function FaceMouse2()
  3397. Cam = workspace.CurrentCamera
  3398. return {
  3399. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3400. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3401. }
  3402. end
  3403.  
  3404. local ModeOfGlitch = 1
  3405. -- Functions are ready.
  3406. local storehumanoidWS = 16
  3407.  
  3408. function CorruptBlink()
  3409. for i = 0, 14 do
  3410. 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)
  3411. end
  3412. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3413. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3414. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3415. CameraEnshaking(2,10)
  3416. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3417. if v:FindFirstChild('Head') then
  3418. dmg(v)
  3419. end
  3420. end
  3421. for i = 0, 14 do
  3422. 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)
  3423. end
  3424. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3425. end
  3426. function PureBomb()
  3427. attack = true
  3428. hum.WalkSpeed = 0
  3429. local orb = Instance.new("Part", char)
  3430. orb.Anchored = true
  3431. orb.BrickColor = BrickColor.new("Toothpaste")
  3432. orb.CanCollide = false
  3433. orb.FormFactor = 3
  3434. orb.Name = "Ring"
  3435. orb.Material = "Neon"
  3436. orb.Size = Vector3.new(1, 1, 1)
  3437. orb.Transparency = 0
  3438. orb.TopSurface = 0
  3439. orb.BottomSurface = 0
  3440. local orbm = Instance.new("SpecialMesh", orb)
  3441. orbm.MeshType = "Sphere"
  3442. orbm.Name = "SizeMesh"
  3443. orbm.Scale = vt(0,0,0)
  3444. local scaled = 0.1
  3445. local posid = 0
  3446. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3447. for i = 0, 5, 0.1 do
  3448. swait()
  3449. scaled = scaled - 0.001
  3450. posid = posid - scaled
  3451. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3452. local scaled = 0.1
  3453. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3454. 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)
  3455. 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)
  3456. 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)
  3457. 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)
  3458. 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)
  3459. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3460. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3461. 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)
  3462. end
  3463. for i = 0, 2, 0.1 do
  3464. swait()
  3465. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3466. 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)
  3467. 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)
  3468. 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)
  3469. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3470. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3471. 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)
  3472. end
  3473. coroutine.resume(coroutine.create(function()
  3474. orb.Anchored = false
  3475. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3476. local a = Instance.new("Part",workspace)
  3477. a.Name = "Direction"
  3478. a.Anchored = true
  3479. a.BrickColor = bc("Bright red")
  3480. a.Material = "Neon"
  3481. a.Transparency = 1
  3482. a.CanCollide = false
  3483. local ray = Ray.new(
  3484. orb.CFrame.p, -- origin
  3485. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3486. )
  3487. local ignore = orb
  3488. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3489. a.BottomSurface = 10
  3490. a.TopSurface = 10
  3491. local distance = (orb.CFrame.p - position).magnitude
  3492. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3493. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3494. orb.CFrame = a.CFrame
  3495. a:Destroy()
  3496. local bv = Instance.new("BodyVelocity")
  3497. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3498. bv.velocity = orb.CFrame.lookVector*125
  3499. bv.Parent = orb
  3500. local hitted = false
  3501. game:GetService("Debris"):AddItem(orb, 15)
  3502. wait()
  3503. local hit =orb.Touched:connect(function(hit)
  3504. if hitted == false then
  3505. hitted = true
  3506. CameraEnshaking(10,2.5)
  3507. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3508. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3509. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3510. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3511. for i = 0, 49 do
  3512. 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)
  3513. end
  3514. for i = 0, 9 do
  3515. 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)
  3516. 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)
  3517. end
  3518. orb.Anchored = true
  3519. orb.Transparency = 1
  3520. wait(8)
  3521. orb:Destroy()
  3522. end
  3523. end)
  3524. end))
  3525. for i = 0, 1, 0.1 do
  3526. swait()
  3527. 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)
  3528. 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)
  3529. 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)
  3530. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3531. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3532. 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)
  3533. end
  3534. hum.WalkSpeed = storehumanoidWS
  3535. attack = false
  3536. end
  3537.  
  3538. function BanishingOrb()
  3539. attack = true
  3540. hum.WalkSpeed = 0
  3541. local radm = math.random(1,3)
  3542. if radm == 1 then
  3543. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3544. elseif radm == 2 then
  3545. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3546. elseif radm == 3 then
  3547. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3548. end
  3549. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3550. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3551. local orb = Instance.new("Part", char)
  3552. orb.Anchored = true
  3553. orb.BrickColor = BrickColor.new("Lime green")
  3554. orb.CanCollide = false
  3555. orb.FormFactor = 3
  3556. orb.Name = "Ring"
  3557. orb.Material = "Neon"
  3558. orb.Size = Vector3.new(1, 1, 1)
  3559. orb.Transparency = 0
  3560. orb.TopSurface = 0
  3561. orb.BottomSurface = 0
  3562. local orbm = Instance.new("SpecialMesh", orb)
  3563. orbm.MeshType = "Sphere"
  3564. orbm.Name = "SizeMesh"
  3565. orbm.Scale = vt(0,0,0)
  3566. local scaled = 0.1
  3567. local posid = 0
  3568. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3569. for i = 0, 5, 0.1 do
  3570. swait()
  3571. scaled = scaled - 0.001
  3572. posid = posid - scaled
  3573. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3574. local scaled = 0.1
  3575. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3576. 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)
  3577. 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)
  3578. 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)
  3579. 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)
  3580. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3581. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3582. 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)
  3583. end
  3584. for i = 0, 2, 0.1 do
  3585. swait()
  3586. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3587. 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)
  3588. 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)
  3589. 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)
  3590. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3591. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3592. 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)
  3593. end
  3594. coroutine.resume(coroutine.create(function()
  3595. orb.Anchored = false
  3596. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3597. local a = Instance.new("Part",workspace)
  3598. a.Name = "Direction"
  3599. a.Anchored = true
  3600. a.BrickColor = bc("Lime green")
  3601. a.Material = "Neon"
  3602. a.Transparency = 1
  3603. a.CanCollide = false
  3604. local ray = Ray.new(
  3605. orb.CFrame.p, -- origin
  3606. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3607. )
  3608. local ignore = orb
  3609. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3610. a.BottomSurface = 10
  3611. a.TopSurface = 10
  3612. local distance = (orb.CFrame.p - position).magnitude
  3613. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3614. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3615. orb.CFrame = a.CFrame
  3616. a:Destroy()
  3617. local bv = Instance.new("BodyVelocity")
  3618. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3619. bv.velocity = orb.CFrame.lookVector*0
  3620. bv.Parent = orb
  3621. local hitted = false
  3622. local rate = 0
  3623. coroutine.resume(coroutine.create(function()
  3624. for i = 0, 24 do
  3625. wait(0.1)
  3626. rate = rate + 0.25
  3627. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3628. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3629. if v:FindFirstChild('Head') then
  3630. dmg(v)
  3631. end
  3632. end
  3633. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3634. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3635. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3636. end
  3637. orb.Anchored = true
  3638. orb.Transparency = 1
  3639. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3640. if v:FindFirstChild('Head') then
  3641. dmg(v)
  3642. end
  3643. end
  3644. local eff = Instance.new("ParticleEmitter",orb)
  3645. eff.Texture = "rbxassetid://296874871"
  3646. eff.LightEmission = 0.95
  3647. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3648. eff.Rate = 1000000000
  3649. eff.Lifetime = NumberRange.new(3)
  3650. 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)})
  3651. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3652. eff.Speed = NumberRange.new(30)
  3653. eff.Acceleration = vt(0,-15,0)
  3654. eff.Rotation = NumberRange.new(-500,500)
  3655. eff.VelocitySpread = 100000
  3656. eff.RotSpeed = NumberRange.new(-500,500)
  3657. coroutine.resume(coroutine.create(function()
  3658. wait(0.6)
  3659. eff.Enabled = false
  3660. end))
  3661. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3662. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3663. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3664. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3665. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3666. game:GetService("Debris"):AddItem(orb, 15)
  3667. end))
  3668. end))
  3669. for i = 0, 1, 0.1 do
  3670. swait()
  3671. 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)
  3672. 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)
  3673. 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)
  3674. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3675. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3676. 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)
  3677. end
  3678. hum.WalkSpeed = storehumanoidWS
  3679. attack = false
  3680. end
  3681.  
  3682.  
  3683. function ChaosGroundStrike()
  3684. attack = true
  3685. for i = 0, 2, 0.1 do
  3686. swait()
  3687. 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)
  3688. 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)
  3689. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3690. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3691. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3692. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3693. end
  3694. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3695. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3696. CameraEnshaking(4,12)
  3697. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3698. if v:FindFirstChild('Head') then
  3699. dmg(v)
  3700. end
  3701. end
  3702. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3703. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3704. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3705. for i = 0, 2, 0.1 do
  3706. swait()
  3707. 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)
  3708. 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)
  3709. 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)
  3710. 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)
  3711. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3712. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3713. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3714. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3715. end
  3716. attack = false
  3717. end
  3718.  
  3719.  
  3720.  
  3721. function Starfall()
  3722. attack = true
  3723. hum.WalkSpeed = 0
  3724. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3725. for i = 0, 5, 0.1 do
  3726. swait()
  3727. 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)
  3728. 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)
  3729. 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)
  3730. 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)
  3731. 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)
  3732. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3733. 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)
  3734. 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)
  3735. end
  3736. local Overed = false
  3737. CameraEnshaking(2,20)
  3738. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3739. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3740. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3741. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3742. local orb = Instance.new("Part", char)
  3743. orb.Anchored = true
  3744. orb.BrickColor = BrickColor.new("Toothpaste")
  3745. orb.CanCollide = false
  3746. orb.FormFactor = 3
  3747. orb.Name = "Remenant"
  3748. orb.Material = "Neon"
  3749. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3750. orb.Size = Vector3.new(1, 1, 1)
  3751. orb.Transparency = 1
  3752. orb.TopSurface = 0
  3753. orb.BottomSurface = 0
  3754. hum.WalkSpeed = storehumanoidWS
  3755. coroutine.resume(coroutine.create(function()
  3756. for i = 0, 9 do
  3757. swait(10)
  3758. local lb = Instance.new("Part")
  3759. lb.Color = MAINRUINCOLOR.Color
  3760. lb.CanCollide = false
  3761. lb.Material = "Neon"
  3762. lb.Anchored = true
  3763. lb.TopSurface = 0
  3764. lb.BottomSurface = 0
  3765. lb.Transparency = 0
  3766. lb.Size = vt(1,1,1)
  3767. 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)))
  3768. lb.Anchored = false
  3769. lb.Parent = char
  3770. local thingery = Instance.new("SpecialMesh",lb)
  3771. thingery.MeshType = "Sphere"
  3772. thingery.Scale = vt(20,20,20)
  3773. game:GetService("Debris"):AddItem(lb, 10)
  3774. local bv = Instance.new("BodyVelocity")
  3775. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3776. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3777. bv.Parent = lb
  3778. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3779. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3780. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3781. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3782. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3783. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3784. local hitted = false
  3785. coroutine.resume(coroutine.create(function()
  3786. while true do
  3787. swait(1)
  3788. if lb.Parent ~= nil and hitted == false then
  3789. 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)
  3790. elseif lb.Parent == nil then
  3791. break
  3792. end
  3793. end
  3794. end))
  3795.  
  3796. game:GetService("Debris"):AddItem(a, 0.1)
  3797.  
  3798. coroutine.resume(coroutine.create(function()
  3799. swait(1)
  3800. lb.Touched:connect(function(hit)
  3801. if hitted == false then
  3802. hitted = true
  3803. lb.Transparency = 1
  3804. lb.Anchored = true
  3805. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3806. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3807. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3808. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3809. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3810. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3811. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3812. CameraEnshaking(1,5)
  3813. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3814. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3815. for i = 0, 9 do
  3816. 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)
  3817. end
  3818. for i = 0, 49 do
  3819. swait()
  3820. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3821. 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)
  3822. end
  3823. end
  3824. end)
  3825. end))
  3826. end
  3827. Overed = true
  3828. orb:Destroy()
  3829. end))
  3830.  
  3831. attack = false
  3832. end
  3833.  
  3834. function StarfallEX()
  3835. attack = true
  3836. hum.WalkSpeed = 0
  3837. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3838. for i = 0, 10, 0.1 do
  3839. swait()
  3840. 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)
  3841. 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)
  3842. 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)
  3843. 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)
  3844. 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)
  3845. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3846. 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)
  3847. 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)
  3848. end
  3849. local Overed = false
  3850. CameraEnshaking(2,20)
  3851. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3852. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3853. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3854. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3855. local orb = Instance.new("Part", char)
  3856. orb.Anchored = true
  3857. orb.BrickColor = BrickColor.new("Toothpaste")
  3858. orb.CanCollide = false
  3859. orb.FormFactor = 3
  3860. orb.Name = "Remenant"
  3861. orb.Material = "Neon"
  3862. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3863. orb.Size = Vector3.new(1, 1, 1)
  3864. orb.Transparency = 1
  3865. orb.TopSurface = 0
  3866. orb.BottomSurface = 0
  3867. hum.WalkSpeed = storehumanoidWS
  3868. coroutine.resume(coroutine.create(function()
  3869. for i = 0, 4 do
  3870. swait(15)
  3871. local lb = Instance.new("Part")
  3872. lb.Color = MAINRUINCOLOR.Color
  3873. lb.CanCollide = false
  3874. lb.Material = "Neon"
  3875. lb.Anchored = true
  3876. lb.TopSurface = 0
  3877. lb.BottomSurface = 0
  3878. lb.Transparency = 0
  3879. lb.Size = vt(1,1,1)
  3880. 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)))
  3881. lb.Anchored = false
  3882. lb.Parent = char
  3883. local thingery = Instance.new("SpecialMesh",lb)
  3884. thingery.MeshType = "Sphere"
  3885. thingery.Scale = vt(50,50,50)
  3886. game:GetService("Debris"):AddItem(lb, 10)
  3887. local bv = Instance.new("BodyVelocity")
  3888. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3889. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3890. bv.Parent = lb
  3891. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3892. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3893. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3894. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3895. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3896. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3897. local hitted = false
  3898. coroutine.resume(coroutine.create(function()
  3899. while true do
  3900. swait(1)
  3901. if lb.Parent ~= nil and hitted == false then
  3902. 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)
  3903. elseif lb.Parent == nil then
  3904. break
  3905. end
  3906. end
  3907. end))
  3908.  
  3909. game:GetService("Debris"):AddItem(a, 0.1)
  3910.  
  3911. coroutine.resume(coroutine.create(function()
  3912. swait(1)
  3913. lb.Touched:connect(function(hit)
  3914. if hitted == false then
  3915. hitted = true
  3916. lb.Transparency = 1
  3917. lb.Anchored = true
  3918. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3919. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3920. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3921. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3922. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3923. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3924. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3925. CameraEnshaking(1,5)
  3926. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3927. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3928. for i = 0, 9 do
  3929. 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)
  3930. end
  3931. for i = 0, 99 do
  3932. swait()
  3933. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3934. 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)
  3935. end
  3936. end
  3937. end)
  3938. end))
  3939. end
  3940. Overed = true
  3941. orb:Destroy()
  3942. end))
  3943.  
  3944. attack = false
  3945. end
  3946.  
  3947. function DivineBlast()
  3948. attack = true
  3949. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3950. hum.WalkSpeed = 0
  3951. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3952. elocacenter.Anchored = true
  3953. elocacenter.CFrame = sorb.CFrame
  3954. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3955. eloca1.Anchored = true
  3956. eloca1.CFrame = elocacenter.CFrame
  3957. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3958. eloca2.Anchored = true
  3959. eloca2.CFrame = elocacenter.CFrame
  3960. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3961. eloca3.Anchored = true
  3962. eloca3.CFrame = elocacenter.CFrame
  3963. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3964. eloca4.Anchored = true
  3965. eloca4.CFrame = elocacenter.CFrame
  3966. local lookavec = 0
  3967. local speeds = 0
  3968. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3969. for i = 0, 3, 0.1 do
  3970. swait()
  3971. ---
  3972. lookavec = lookavec + 0.1
  3973. speeds = speeds + 10
  3974. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3975. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3976. 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)
  3977.  
  3978. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3979. 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)
  3980.  
  3981. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3982. 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)
  3983.  
  3984. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3985. 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)
  3986. ---
  3987. root.CFrame = FaceMouse()[1]
  3988. 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)
  3989. 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)
  3990. 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)
  3991. 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)
  3992. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3993. 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)
  3994. end
  3995. for i = 0, 3, 0.1 do
  3996. swait()
  3997. ---
  3998. speeds = speeds + 10
  3999. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4000. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4001. 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)
  4002.  
  4003. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4004. 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)
  4005.  
  4006. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4007. 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)
  4008.  
  4009. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4010. 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)
  4011. ---
  4012. root.CFrame = FaceMouse()[1]
  4013. 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)
  4014. 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)
  4015. 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)
  4016. 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)
  4017. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4018. 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)
  4019. end
  4020. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4021. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4022. for i = 0, 3, 0.1 do
  4023. swait()
  4024. ---
  4025. speeds = speeds + 10
  4026. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4027. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4028. 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)
  4029.  
  4030. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4031. 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)
  4032.  
  4033. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4034. 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)
  4035.  
  4036. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4037. 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)
  4038. ---
  4039. root.CFrame = FaceMouse()[1]
  4040. 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)
  4041. 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)
  4042. 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)
  4043. 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)
  4044. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4045. 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)
  4046. end
  4047. coroutine.resume(coroutine.create(function()
  4048. local a = Instance.new("Part",Character)
  4049. a.Name = "Direction"
  4050. a.Anchored = true
  4051. a.BrickColor = bc("White")
  4052. a.Material = "Neon"
  4053. a.Transparency = 0
  4054. a.Shape = "Cylinder"
  4055. a.CanCollide = false
  4056. local a2 = Instance.new("Part",Character)
  4057. a2.Name = "Direction"
  4058. a2.Anchored = true
  4059. a2.BrickColor = bc("Bright yellow")
  4060. a2.Material = "Neon"
  4061. a2.Transparency = 0
  4062. a2.Shape = "Cylinder"
  4063. a2.CanCollide = false
  4064. local b = Instance.new("Part",Character)
  4065. b.Name = "HitDirect"
  4066. b.Anchored = true
  4067. b.BrickColor = bc("Cool yellow")
  4068. b.Material = "Neon"
  4069. b.Transparency = 1
  4070. b.CanCollide = false
  4071. local ray = Ray.new(
  4072. elocacenter.CFrame.p, -- origin
  4073. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4074. )
  4075. local ignore = Character
  4076. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4077. a.BottomSurface = 10
  4078. a.TopSurface = 10
  4079. a2.BottomSurface = 10
  4080. a2.TopSurface = 10
  4081. local distance = (elocacenter.CFrame.p - position).magnitude
  4082. a.Size = Vector3.new(distance, 1, 1)
  4083. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4084. a2.Size = Vector3.new(distance, 1, 1)
  4085. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4086. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4087. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4088. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4089. game:GetService("Debris"):AddItem(a, 10)
  4090. game:GetService("Debris"):AddItem(a2, 10)
  4091. game:GetService("Debris"):AddItem(b, 10)
  4092. local eff = Instance.new("ParticleEmitter",b)
  4093. eff.Texture = "rbxassetid://2273224484"
  4094. eff.LightEmission = 1
  4095. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4096. eff.Rate = 500000
  4097. eff.Lifetime = NumberRange.new(0.5,2)
  4098. 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)})
  4099. 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)})
  4100. eff.Speed = NumberRange.new(20,250)
  4101. eff.Drag = 5
  4102. eff.Rotation = NumberRange.new(-500,500)
  4103. eff.VelocitySpread = 9000
  4104. eff.RotSpeed = NumberRange.new(-50,50)
  4105. coroutine.resume(coroutine.create(function()
  4106. wait(0.25)
  4107. eff.Enabled = false
  4108. end))
  4109. local msh = Instance.new("SpecialMesh",a)
  4110. msh.MeshType = "Cylinder"
  4111. msh.Scale = vt(1,2,2)
  4112. local msh2 = Instance.new("SpecialMesh",a2)
  4113. msh2.MeshType = "Cylinder"
  4114. msh2.Scale = vt(1,2.5,2.5)
  4115. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4116. coroutine.resume(coroutine.create(function()
  4117. for i = 0,10,0.1 do
  4118. swait()
  4119. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4120. a.Transparency = a.Transparency + 0.025
  4121. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4122. a2.Transparency = a2.Transparency + 0.05
  4123. end
  4124. a:Destroy()
  4125. a2:Destroy()
  4126. end))
  4127. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4128. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4129. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4130. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4131. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4132. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4133. MagniDamage(b, 25, 40,65, 0, "Normal")
  4134. for i = 0, 49 do
  4135. 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)
  4136. 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)
  4137. end
  4138. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4139. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4140. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4141. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4142. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4143. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4144. end))
  4145. game:GetService("Debris"):AddItem(elocacenter, 5)
  4146. hum.WalkSpeed = storehumanoidWS
  4147. attack = false
  4148. end
  4149.  
  4150. function StarDivision()
  4151. attack = true
  4152. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4153. for i = 0, 2, 0.1 do
  4154. swait()
  4155. 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)
  4156. 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)
  4157. 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)
  4158. 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)
  4159. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4160. 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)
  4161. end
  4162. local orb = Instance.new("Part", char)
  4163. orb.BrickColor = MAINRUINCOLOR
  4164. orb.CanCollide = false
  4165. orb.FormFactor = 3
  4166. orb.Name = "Ring"
  4167. orb.Material = "Neon"
  4168. orb.Size = Vector3.new(1, 1, 1)
  4169. orb.Transparency = 0
  4170. orb.TopSurface = 0
  4171. orb.BottomSurface = 0
  4172. local orbm = Instance.new("SpecialMesh", orb)
  4173. orbm.MeshType = "Sphere"
  4174. orbm.Name = "SizeMesh"
  4175. orbm.Scale = vt(2,2,2)
  4176. local a = Instance.new("Part",workspace)
  4177. a.Name = "Direction"
  4178. a.Anchored = true
  4179. a.BrickColor = bc("Bright red")
  4180. a.Material = "Neon"
  4181. a.Transparency = 1
  4182. a.CanCollide = false
  4183. local ray = Ray.new(
  4184. sorb.CFrame.p, -- origin
  4185. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4186. )
  4187. local ignore = sorb
  4188. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4189. a.BottomSurface = 10
  4190. a.TopSurface = 10
  4191. local distance = (sorb.CFrame.p - position).magnitude
  4192. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4193. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4194. orb.CFrame = a.CFrame
  4195. a:Destroy()
  4196. local bv = Instance.new("BodyVelocity")
  4197. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4198. bv.velocity = orb.CFrame.lookVector*100
  4199. bv.Parent = orb
  4200. local hitted = false
  4201. game:GetService("Debris"):AddItem(orb, 10)
  4202. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4203. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4204. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4205. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4206. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4207. coroutine.resume(coroutine.create(function()
  4208. while true do
  4209. swait(1)
  4210. if orb.Parent ~= nil and hitted == false then
  4211. 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)
  4212. elseif orb.Parent == nil then
  4213. break
  4214. end
  4215. end
  4216. end))
  4217. coroutine.resume(coroutine.create(function()
  4218. swait(1)
  4219. orb.Touched:connect(function(hit)
  4220. if hitted == false then
  4221. hitted = true
  4222. game:GetService("Debris"):AddItem(orb, 5)
  4223. orb.Transparency = 1
  4224. orb.Anchored = true
  4225. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4226. elocacenter.Anchored = true
  4227. elocacenter.CFrame = orb.CFrame
  4228. elocacenter.Orientation = vt(0,0,0)
  4229. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4230. eloca1.Anchored = true
  4231. eloca1.CFrame = elocacenter.CFrame
  4232. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4233. eloca2.Anchored = true
  4234. eloca2.CFrame = elocacenter.CFrame
  4235. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4236. eloca3.Anchored = true
  4237. eloca3.CFrame = elocacenter.CFrame
  4238. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4239. eloca4.Anchored = true
  4240. eloca4.CFrame = elocacenter.CFrame
  4241. local lookavec = 0
  4242. local speeds = 0
  4243. CameraEnshaking(1,1)
  4244. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4245. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4246. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4247. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4248. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4249. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4250. for i = 0, 99 do
  4251. swait()
  4252. lookavec = lookavec + 1
  4253. speeds = speeds + 0.1
  4254. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4255. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4256. 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)
  4257.  
  4258. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4259. 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)
  4260.  
  4261. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4262. 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)
  4263.  
  4264. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4265. 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)
  4266. end
  4267.  
  4268. for i = 0, 149 do
  4269. swait()
  4270. speeds = speeds + 0.1
  4271. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4272. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4273. 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)
  4274.  
  4275. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4276. 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)
  4277.  
  4278. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4279. 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)
  4280.  
  4281. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4282. 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)
  4283. end
  4284. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4285. if v:FindFirstChild('Head') then
  4286. dmg(v)
  4287. end
  4288. end
  4289. CameraEnshaking(7,30)
  4290. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4291. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4292. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4293. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4294. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4295. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4296. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4297. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4298. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4299. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4300. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4301. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4302. for i = 0, 24 do
  4303. 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)
  4304. 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)
  4305. 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)
  4306. 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)
  4307. end
  4308. coroutine.resume(coroutine.create(function()
  4309. for i = 0, 499 do
  4310. swait(1)
  4311. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4312. 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)
  4313. end
  4314. elocacenter:Destroy()
  4315. eloca1:Destroy()
  4316. eloca2:Destroy()
  4317. eloca3:Destroy()
  4318. eloca4:Destroy()
  4319. end))
  4320. end
  4321. end)
  4322. end))
  4323. attack = false
  4324. end
  4325.  
  4326.  
  4327. function THE_TRUE_POWER_OF_VIOLENCE()
  4328. attack = true
  4329. hum.WalkSpeed = 0
  4330. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4331. for i = 0, 10, 0.1 do
  4332. swait()
  4333. 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)
  4334. 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)
  4335. 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)
  4336. 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)
  4337. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4338. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4339. 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)
  4340. end
  4341. local orb = Instance.new("Part", char)
  4342. orb.BrickColor = MAINRUINCOLOR
  4343. orb.CanCollide = false
  4344. orb.FormFactor = 3
  4345. orb.Name = "Ring"
  4346. orb.Material = "Neon"
  4347. orb.Size = Vector3.new(1, 1, 1)
  4348. orb.Transparency = 0
  4349. orb.TopSurface = 0
  4350. orb.BottomSurface = 0
  4351. orb.CFrame = sorb.CFrame
  4352. local orbm = Instance.new("SpecialMesh", orb)
  4353. orbm.MeshType = "Sphere"
  4354. orbm.Name = "SizeMesh"
  4355. orbm.Scale = vt(0,0,0)
  4356. local sbs = Instance.new("BodyPosition", orb)
  4357. sbs.P = 3000
  4358. sbs.D = 1000
  4359. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4360. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4361. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4362. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4363. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4364. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4365. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4366. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4367. for i = 0, 10, 0.1 do
  4368. swait()
  4369. 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)
  4370. 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)
  4371. 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)
  4372. 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)
  4373. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4374. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4375. 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)
  4376. end
  4377. orb.Anchored = true
  4378. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4379. elocacenter.Anchored = true
  4380. elocacenter.CFrame = orb.CFrame
  4381. elocacenter.Orientation = vt(0,0,0)
  4382. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4383. eloca1.Anchored = true
  4384. eloca1.CFrame = elocacenter.CFrame
  4385. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4386. eloca2.Anchored = true
  4387. eloca2.CFrame = elocacenter.CFrame
  4388. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4389. eloca3.Anchored = true
  4390. eloca3.CFrame = elocacenter.CFrame
  4391. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4392. eloca4.Anchored = true
  4393. eloca4.CFrame = elocacenter.CFrame
  4394. local lookavec = 0
  4395. local speeds = 0
  4396. CameraEnshaking(1,1)
  4397. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4398. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4399. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4400. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4401. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4402. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4403. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4404. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4405. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4406. for i = 0, 99 do
  4407. swait()
  4408. lookavec = lookavec + 2.5
  4409. speeds = speeds + 0.25
  4410. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4411. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4412. 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)
  4413.  
  4414. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4415. 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)
  4416.  
  4417. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4418. 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)
  4419.  
  4420. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4421. 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)
  4422. end
  4423.  
  4424. for i = 0, 149 do
  4425. swait()
  4426. speeds = speeds + 0.25
  4427. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4428. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4429. 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)
  4430.  
  4431. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4432. 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)
  4433.  
  4434. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4435. 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)
  4436.  
  4437. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4438. 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)
  4439. end
  4440. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4441. for i = 0, 99 do
  4442. swait()
  4443. lookavec = lookavec - 2.5
  4444. speeds = speeds + 0.25
  4445. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4446. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4447. 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)
  4448.  
  4449. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4450. 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)
  4451.  
  4452. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4453. 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)
  4454.  
  4455. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4456. 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)
  4457. end
  4458. local scaled = 0.1*75
  4459. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4460. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4461. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4462. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4463. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4464. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4465. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4466. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4467. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4468. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4469. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470.  
  4471. for i = 0, 10, 0.1 do
  4472. swait()
  4473. scaled = scaled - 0.001*75
  4474. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4475. 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)
  4476. 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)
  4477. 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)
  4478. 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)
  4479. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4480. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4481. 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)
  4482. end
  4483. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4484. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4485. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4486. for x = 0, 4 do
  4487. for i = 0, 9 do
  4488. 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)
  4489. end
  4490. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4491. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4492. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4493. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4494. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4495. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4496. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4497. for i = 0, 5, 0.1 do
  4498. swait()
  4499. 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)
  4500. 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)
  4501. 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)
  4502. 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)
  4503. 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)
  4504. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4505. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4506. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4507. end
  4508. end
  4509. local speedearn = 0
  4510. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4511. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4512. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4513. for i = 0, 30, 0.1 do
  4514. swait()
  4515. scaled = scaled - 0.001*75/10
  4516. speedearn = speedearn + 0.5
  4517. for i = 0, 4 do
  4518. 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)
  4519. end
  4520. 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)
  4521. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4522. 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)
  4523. 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)
  4524. 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)
  4525. 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)
  4526. 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)
  4527. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4528. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4529. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4530. end
  4531. orb.Transparency = 1
  4532. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4533. if v:FindFirstChild('Head') then
  4534. dmg(v)
  4535. end
  4536. end
  4537. CameraEnshaking(7,30)
  4538. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4539. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4540. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4541. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4542. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4543. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4544. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4545. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4546. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4547. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4548. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4549. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4550. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4551. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4552. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4553. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4554. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4555. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4556. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4557. for i = 0, 99 do
  4558. 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)
  4559. 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)
  4560. end
  4561. for i = 0, 24 do
  4562. 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)
  4563. 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)
  4564. 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)
  4565. 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)
  4566. 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)
  4567. end
  4568. game:GetService("Debris"):AddItem(orb, 10)
  4569. hum.WalkSpeed = storehumanoidWS
  4570. attack = false
  4571. end
  4572.  
  4573.  
  4574. function ViolentRing()
  4575. attack = true
  4576. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4577. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4578. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4579. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4580. for i = 0, 2, 0.1 do
  4581. swait()
  4582. local snap = math.random(1,10)
  4583. if snap == 1 then
  4584. 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)
  4585. end
  4586. 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)
  4587. 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)
  4588. 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)
  4589. 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)
  4590. 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)
  4591. 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)
  4592. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4593. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4594. 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)
  4595. RootPart.CFrame = FaceMouse()[1]
  4596. end
  4597. local orb = Instance.new("Part", char)
  4598. orb.BrickColor = MAINRUINCOLOR
  4599. orb.CanCollide = false
  4600. orb.FormFactor = 3
  4601. orb.Name = "Ring"
  4602. orb.Material = "Neon"
  4603. orb.Size = Vector3.new(1, 1, 1)
  4604. orb.Transparency = 0
  4605. orb.TopSurface = 0
  4606. orb.BottomSurface = 0
  4607. local orbm = Instance.new("SpecialMesh", orb)
  4608. orbm.MeshType = "Sphere"
  4609. orbm.Name = "SizeMesh"
  4610. orbm.Scale = vt(2,2,2)
  4611. orb.CFrame = mouse.Hit
  4612. local bv = Instance.new("BodyVelocity")
  4613. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4614. bv.velocity = orb.CFrame.lookVector*100
  4615. bv.Parent = orb
  4616. local hitted = false
  4617. coroutine.resume(coroutine.create(function()
  4618. game:GetService("Debris"):AddItem(orb, 5)
  4619. orb.Transparency = 1
  4620. orb.Anchored = true
  4621. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4622. elocacenter.Anchored = true
  4623. elocacenter.CFrame = orb.CFrame
  4624. elocacenter.Orientation = vt(0,0,0)
  4625. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4626. eloca1.Anchored = true
  4627. eloca1.CFrame = elocacenter.CFrame
  4628. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4629. eloca2.Anchored = true
  4630. eloca2.CFrame = elocacenter.CFrame
  4631. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4632. eloca3.Anchored = true
  4633. eloca3.CFrame = elocacenter.CFrame
  4634. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4635. eloca4.Anchored = true
  4636. eloca4.CFrame = elocacenter.CFrame
  4637. local lookavec = 0
  4638. local speeds = 0
  4639. CameraEnshaking(1,1)
  4640. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4641. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4642. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4643. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4644. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4645. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4646. for i = 0, 24 do
  4647. swait()
  4648. lookavec = lookavec + 3.5
  4649. speeds = speeds + 1
  4650. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4651. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4652. 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)
  4653.  
  4654. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4655. 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)
  4656.  
  4657. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4658. 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)
  4659.  
  4660. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4661. 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)
  4662. end
  4663.  
  4664. local risen = 0
  4665. for i = 0, 49 do
  4666. swait()
  4667. risen = risen + 0.05
  4668. speeds = speeds + 0.1
  4669. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4670. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4671. 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)
  4672.  
  4673. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4674. 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)
  4675.  
  4676. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4677. 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)
  4678.  
  4679. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4680. 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)
  4681. end
  4682. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4683. if v:FindFirstChild('Head') then
  4684. dmg(v)
  4685. end
  4686. end
  4687. CameraEnshaking(4,10)
  4688. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4689. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4690. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4691. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4692. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4693. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4694. local eff = Instance.new("ParticleEmitter",elocacenter)
  4695. eff.Texture = "rbxassetid://2273224484"
  4696. eff.LightEmission = 1
  4697. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4698. eff.Rate = 1000000
  4699. eff.Lifetime = NumberRange.new(0.5,2)
  4700. 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)})
  4701. 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)})
  4702. eff.Speed = NumberRange.new(20,250)
  4703. eff.Drag = 5
  4704. eff.Rotation = NumberRange.new(-500,500)
  4705. eff.VelocitySpread = 5000000
  4706. eff.RotSpeed = NumberRange.new(-50,50)
  4707. coroutine.resume(coroutine.create(function()
  4708. wait(1)
  4709. eff.Enabled = false
  4710. end))
  4711. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4712. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4713. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4714. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4715. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4716. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4717. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4718. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4719. for i = 0, 24 do
  4720. 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)
  4721. 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)
  4722. 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)
  4723. 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)
  4724. end
  4725. coroutine.resume(coroutine.create(function()
  4726. wait(10)
  4727. elocacenter:Destroy()
  4728. eloca1:Destroy()
  4729. eloca2:Destroy()
  4730. eloca3:Destroy()
  4731. eloca4:Destroy()
  4732. end))
  4733. end))
  4734. attack = false
  4735. end
  4736.  
  4737. function UniversalCollapse()
  4738. attack = true
  4739. local speedearn = 0
  4740. hum.WalkSpeed = 0
  4741. local sbs = Instance.new("BodyPosition", root)
  4742. sbs.P = 3000
  4743. sbs.D = 1000
  4744. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4745. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4746. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4747. for i = 0, 85, 0.1 do
  4748. swait()
  4749. speedearn = speedearn + 0.1
  4750. 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)
  4751. 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)
  4752. 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)
  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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4756. 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)
  4757. 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)
  4758. 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)
  4759. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4760. 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)
  4761. 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)
  4762. end
  4763. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4764. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4765. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4766. for i = 0, 25, 0.1 do
  4767. swait()
  4768. speedearn = speedearn + 0.1
  4769. 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)
  4770. 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)
  4771. 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)
  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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4775. 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)
  4776. 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)
  4777. 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)
  4778. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4779. 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)
  4780. 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)
  4781. end
  4782. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4783. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4784. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4785. CameraEnshaking(5,50)
  4786. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4787. for i = 0, 2 do
  4788. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4789. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4790. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4791. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4792. end
  4793. for i = 0, 49 do
  4794. 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)
  4795. 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)
  4796. 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)
  4797. 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)
  4798. end
  4799. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4800. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4801. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4802. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4803. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4804. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4805. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4806. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4807. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4808. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4809. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4810. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4811. for i = 0, 99 do
  4812. 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)
  4813. 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)
  4814. end
  4815. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4816. if v:FindFirstChild('Head') then
  4817. dmg(v)
  4818. end
  4819. end
  4820. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4821. sbs:Destroy()
  4822. hum.WalkSpeed = storehumanoidWS
  4823. attack = false
  4824. end
  4825.  
  4826.  
  4827. function ChaosEND()
  4828. attack = true
  4829. local speedearn = 0
  4830. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4831. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4832. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4833. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4834. for i = 0, 15, 0.1 do
  4835. swait()
  4836. speedearn = speedearn + 0.25
  4837. 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)
  4838. 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)
  4839. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4840. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),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. 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)
  4843. 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)
  4844. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4845. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4846. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4847. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4848. end
  4849. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4850. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4851. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4852. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4853. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4854. CameraEnshaking(5,25)
  4855. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4856. if v:FindFirstChild('Head') then
  4857. dmg(v)
  4858. end
  4859. end
  4860. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4861. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4862. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4863. for i = 0, 3, 0.1 do
  4864. swait()
  4865. 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)
  4866. 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)
  4867. 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)
  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. 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)
  4870. 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)
  4871. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4872. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4873. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4874. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4875. end
  4876. attack = false
  4877. end
  4878.  
  4879. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4880. local orb = Instance.new("Part", char)
  4881. orb.Anchored = true
  4882. orb.BrickColor = color
  4883. orb.CanCollide = false
  4884. orb.FormFactor = 3
  4885. orb.Name = "Ring"
  4886. orb.Material = "Neon"
  4887. orb.Size = Vector3.new(1, 1, 1)
  4888. orb.Transparency = 0
  4889. orb.TopSurface = 0
  4890. orb.BottomSurface = 0
  4891. local orbm = Instance.new("SpecialMesh", orb)
  4892. orbm.MeshType = "Sphere"
  4893. orb.CFrame = positted
  4894. orbm.Name = "SizeMesh"
  4895. orbm.Scale = vt(1,1,1)
  4896. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4897. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4898. --[[for i = 0, 2 do
  4899. 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)
  4900. end]]--
  4901. coroutine.resume(coroutine.create(function()
  4902. wait(timer)
  4903. CameraEnshaking(3,ShakePower)
  4904. orb.Transparency = 1
  4905. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4906. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4907. --[[for i = 0, 4 do
  4908. 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)
  4909. end]]--
  4910. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4911. wait(3)
  4912. orb:Destroy()
  4913. end))
  4914. end
  4915.  
  4916. function orb_spawn(positted,timer)
  4917. local randomcol = math.random(1,2)
  4918. local orb = Instance.new("Part", char)
  4919. orb.Anchored = true
  4920. if randomcol == 1 then
  4921. orb.BrickColor = BrickColor.new("White")
  4922. elseif randomcol == 2 then
  4923. orb.BrickColor = BrickColor.new("Really black")
  4924. end
  4925. orb.CanCollide = false
  4926. orb.FormFactor = 3
  4927. orb.Name = "Ring"
  4928. orb.Material = "Neon"
  4929. orb.Size = Vector3.new(1, 1, 1)
  4930. orb.Transparency = 0
  4931. orb.TopSurface = 0
  4932. orb.BottomSurface = 0
  4933. local orbm = Instance.new("SpecialMesh", orb)
  4934. orbm.MeshType = "Sphere"
  4935. orb.CFrame = positted
  4936. orbm.Name = "SizeMesh"
  4937. orbm.Scale = vt(1,1,1)
  4938. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4939. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4940. for i = 0, 2 do
  4941. 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)
  4942. end
  4943. coroutine.resume(coroutine.create(function()
  4944. wait(timer)
  4945. CameraEnshaking(3,2)
  4946. orb.Transparency = 1
  4947. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4948. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4949. for i = 0, 4 do
  4950. 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)
  4951. end
  4952. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4953. wait(3)
  4954. orb:Destroy()
  4955. end))
  4956. end
  4957.  
  4958. function scattercorrupt()
  4959. attack = true
  4960. hum.WalkSpeed = 0
  4961. for i = 0, 2, 0.1 do
  4962. swait()
  4963. 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)
  4964. 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)
  4965. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4966. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4967. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4968. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4969. end
  4970. local rot = 0
  4971. local randomrotations = math.random(1,2)
  4972. local lookv = 2.5
  4973. local power = 7
  4974. local radm = math.random(1,3)
  4975. if radm == 1 then
  4976. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4977. elseif radm == 2 then
  4978. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4979. elseif radm == 3 then
  4980. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4981. end
  4982. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4983. for i = 0, 1, 0.1 do
  4984. swait()
  4985. 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)
  4986. 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)
  4987. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4988. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4989. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4990. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4991. end
  4992. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4993. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4994. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4995. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4996. for i = 0, 9 do
  4997. 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)
  4998. end
  4999. local hite = Instance.new("Part", char)
  5000. hite.Anchored = true
  5001. hite.CanCollide = false
  5002. hite.FormFactor = 3
  5003. hite.Name = "Ring"
  5004. hite.Material = "Neon"
  5005. hite.Size = Vector3.new(1, 1, 1)
  5006. hite.Transparency = 1
  5007. hite.TopSurface = 0
  5008. hite.BottomSurface = 0
  5009. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5010. local rem = Instance.new("Part", char)
  5011. rem.Anchored = true
  5012. rem.CanCollide = false
  5013. rem.FormFactor = 3
  5014. rem.Name = "Ring"
  5015. rem.Material = "Neon"
  5016. rem.Size = Vector3.new(1, 1, 1)
  5017. rem.Transparency = 1
  5018. rem.TopSurface = 0
  5019. rem.BottomSurface = 0
  5020. rem.CFrame = hite.CFrame
  5021. local rem2 = rem:Clone()
  5022. rem2.Parent = char
  5023. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5024. local rem3 = rem:Clone()
  5025. rem3.Parent = char
  5026. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5027. local rem4 = rem:Clone()
  5028. rem4.Parent = char
  5029. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5030. hite:Destroy()
  5031. coroutine.resume(coroutine.create(function()
  5032. for i = 0, 24 do
  5033. swait(1)
  5034. if randomrotations == 1 then
  5035. rot = rot + 1
  5036. elseif randomrotations == 2 then
  5037. rot = rot - 1
  5038. end
  5039. power = power + 0.5
  5040. lookv = lookv + 7.5
  5041. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5042. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5043. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5044. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5045. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5046. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5047. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5048. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5049. end
  5050. end))
  5051. wait(2)
  5052. hum.WalkSpeed = storehumanoidWS
  5053. attack = false
  5054. end
  5055. function yinyangi()
  5056. attack = true
  5057. for i = 0, 2, 0.1 do
  5058. swait()
  5059. 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)
  5060. 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)
  5061. 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)
  5062. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5063. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5064. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5065. end
  5066. local bv = Instance.new("BodyVelocity")
  5067. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5068. bv.velocity = root.CFrame.lookVector*175
  5069. bv.Parent = root
  5070. for Rotations = 0, 9 do
  5071. for i = 0, 1, 0.5 do
  5072. swait()
  5073. bv.velocity = root.CFrame.lookVector*175
  5074. 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)
  5075. 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)
  5076. 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)
  5077. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5078. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5079. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5080. end
  5081. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5082. for i = 0, 1, 0.5 do
  5083. swait()
  5084. bv.velocity = root.CFrame.lookVector*175
  5085. 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)
  5086. 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)
  5087. 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)
  5088. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5089. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5090. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5091. end
  5092. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5093. for i = 0, 1, 0.5 do
  5094. swait()
  5095. bv.velocity = root.CFrame.lookVector*175
  5096. 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)
  5097. 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)
  5098. 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)
  5099. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5100. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5101. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5102. end
  5103. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5104. for i = 0, 1, 0.5 do
  5105. swait()
  5106. bv.velocity = root.CFrame.lookVector*175
  5107. 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)
  5108. 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)
  5109. 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)
  5110. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5111. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5112. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5113. end
  5114. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5115. end
  5116. bv:Destroy()
  5117. attack = false
  5118. end
  5119.  
  5120. function createBGCircle(size,parent,color)
  5121. local bgui = Instance.new("BillboardGui",parent)
  5122. bgui.Size = UDim2.new(size, 0, size, 0)
  5123. local imgc = Instance.new("ImageLabel",bgui)
  5124. imgc.BackgroundTransparency = 1
  5125. imgc.ImageTransparency = 0
  5126. imgc.Size = UDim2.new(1,0,1,0)
  5127. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5128. imgc.ImageColor3 = color
  5129. return bgui,imgc
  5130. end
  5131.  
  5132. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5133. local bgui,imgc = createBGCircle(size,guipar,color)
  5134. bgui.AlwaysOnTop = true
  5135. imgc.Image = "rbxassetid://" ..img
  5136. local rrot = math.random(1,2)
  5137. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5138. coroutine.resume(coroutine.create(function()
  5139. for i = 0, 24*delay do
  5140. swait()
  5141. if rotationenabled == true then
  5142. if rrot == 1 then
  5143. imgc.Rotation = imgc.Rotation + rotsp
  5144. elseif rrot == 2 then
  5145. imgc.Rotation = imgc.Rotation - rotsp
  5146. end
  5147. end
  5148. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5149. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5150. end
  5151. bgui:Destroy()
  5152. end))
  5153. end
  5154. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5155. for i, v in pairs(mw2:GetChildren()) do
  5156. if v:IsA("Part") then
  5157. v.BrickColor = one
  5158. v.Material = "Neon"
  5159. end
  5160. end
  5161. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5162. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5163. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5164. tr1.Color = ColorSequence.new(one.Color)
  5165. tr2.Color = ColorSequence.new(one.Color)
  5166. tr3.Color = ColorSequence.new(one.Color)
  5167. for i, v in pairs(mw1:GetChildren()) do
  5168. if v:IsA("Part") then
  5169. if secondaryenabled == false then
  5170. v.Transparency = 1
  5171. elseif secondaryenabled == true then
  5172. v.Transparency = 0
  5173. end
  5174. v.BrickColor = two
  5175. v.Material = "Neon"
  5176. end
  5177. end
  5178. if secondaryenabled == false then
  5179. tl1.Enabled = false
  5180. tl2.Enabled = false
  5181. tl3.Enabled = false
  5182. elseif secondaryenabled == true then
  5183. tl1.Enabled = true
  5184. tl2.Enabled = true
  5185. tl3.Enabled = true
  5186. end
  5187. tl1.Color = ColorSequence.new(two.Color)
  5188. tl2.Color = ColorSequence.new(two.Color)
  5189. tl3.Color = ColorSequence.new(two.Color)
  5190. for i, v in pairs(m:GetChildren()) do
  5191. if v:IsA("Part") then
  5192. v.BrickColor = three
  5193. v.Material = "Ice"
  5194. end
  5195. end
  5196. for i, v in pairs(m2:GetChildren()) do
  5197. if v:IsA("Part") then
  5198. v.BrickColor = four
  5199. v.Material = "Ice"
  5200. end
  5201. end
  5202. for i, v in pairs(m3:GetChildren()) do
  5203. if v:IsA("Part") then
  5204. v.BrickColor = five
  5205. v.Material = "Neon"
  5206. end
  5207. end
  5208. for i, v in pairs(extrawingmod1:GetChildren()) do
  5209. if v:IsA("Part") then
  5210. v.Transparency = exonetran
  5211. v.BrickColor = exone
  5212. v.Material = "Neon"
  5213. end
  5214. end
  5215. for i, v in pairs(extrawingmod2:GetChildren()) do
  5216. if v:IsA("Part") then
  5217. v.Transparency = extwotran
  5218. v.BrickColor = extwo
  5219. v.Material = "Neon"
  5220. end
  5221. end
  5222. end
  5223.  
  5224.  
  5225. function normalmog()
  5226. attack = true
  5227. hum.WalkSpeed = 0
  5228. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5229. for i = 0,6,0.1 do
  5230. swait()
  5231. 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)
  5232. 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)
  5233. 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)
  5234. 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)
  5235. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5236. 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)
  5237. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5238. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5239. end
  5240. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5241. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5242. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5243. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5244. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5245. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5246. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5247. rainbowmode = false
  5248. chaosmode = false
  5249. ModeOfGlitch = 1
  5250. storehumanoidWS = 16
  5251. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5252. RecolorTextAndRename("Ridgebreaker",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5253. CameraEnshaking(5,2.5)
  5254. MAINRUINCOLOR = BrickColor.new("Really red")
  5255. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5256. for i = 0, 49 do
  5257. 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)
  5258. end
  5259. for i = 0, 24 do
  5260. 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)
  5261. 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"))
  5262. end
  5263. for i = 0,3,0.1 do
  5264. 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)
  5265. end
  5266. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5267. for i = 0,2,0.1 do
  5268. swait()
  5269. 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)
  5270. 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)
  5271. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5272. 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)
  5273. 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)
  5274. 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)
  5275. end
  5276. hum.WalkSpeed = storehumanoidWS
  5277. attack = false
  5278. end
  5279.  
  5280. function attackone()
  5281. attack = true
  5282. local keptcolor = MAINRUINCOLOR
  5283. for i = 0,1,0.1 do
  5284. swait()
  5285. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5286. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5287. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5288. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5289. 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)
  5290. 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)
  5291. end
  5292. local distlook = 5
  5293. coroutine.resume(coroutine.create(function()
  5294. for i = 0, 4 do
  5295. swait(2)
  5296. CameraEnshaking(2,3)
  5297. local hite = Instance.new("Part", char)
  5298. hite.Anchored = true
  5299. hite.CanCollide = false
  5300. hite.FormFactor = 3
  5301. hite.Name = "Ring"
  5302. hite.Material = "Neon"
  5303. hite.Size = Vector3.new(1, 1, 1)
  5304. hite.Transparency = 1
  5305. hite.TopSurface = 0
  5306. hite.BottomSurface = 0
  5307. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5308. 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)
  5309. 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)
  5310. 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)
  5311. 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)
  5312. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5313. for i = 0, 14 do
  5314. local rsiz = math.random(5,20)
  5315. 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)
  5316. end
  5317. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5318. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5319. game:GetService("Debris"):AddItem(hite, 5)
  5320. distlook = distlook + 10
  5321. end
  5322. end))
  5323. for i = 0,1,0.1 do
  5324. swait()
  5325. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5326. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5327. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5328. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5329. 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)
  5330. 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)
  5331. end
  5332. attack = false
  5333. end
  5334.  
  5335. function attacktwo()
  5336. attack = true
  5337. hum.WalkSpeed = 2
  5338. local keptcolor = MAINRUINCOLOR
  5339. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5340. 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)
  5341. 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)
  5342. for i = 0, 14 do
  5343. 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)
  5344. end
  5345. for i = 0,1,0.1 do
  5346. swait()
  5347. 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)
  5348. 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)
  5349. 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)
  5350. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5351. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5352. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5353. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5354. end
  5355. for i = 0, 1 do
  5356. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5357. for i = 0,1,0.6 do
  5358. swait()
  5359. 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)
  5360. 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"))
  5361. 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)
  5362. 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)
  5363. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5365. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5366. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5367. end
  5368. for i = 0,1,0.6 do
  5369. swait()
  5370. 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)
  5371. 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"))
  5372. 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)
  5373. 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)
  5374. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5375. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5376. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5377. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5378. end
  5379. for i = 0,1,0.6 do
  5380. swait()
  5381. 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)
  5382. 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"))
  5383. 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)
  5384. 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)
  5385. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5386. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5387. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5388. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5389. end
  5390. for i = 0,1,0.6 do
  5391. swait()
  5392. 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)
  5393. 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"))
  5394. 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)
  5395. 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)
  5396. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5397. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5398. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5399. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5400. end
  5401. local rot = 0
  5402. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5403. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5404. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5405. CreateMesh(dis,"Sphere",10,1,10)
  5406. local at1 = Instance.new("Attachment",dis)
  5407. at1.Position = vt(-5,0,0)
  5408. local at2 = Instance.new("Attachment",dis)
  5409. at2.Position = vt(5,0,0)
  5410. local trl = Instance.new('Trail',wed)
  5411. trl.Attachment0 = at1
  5412. trl.Attachment1 = at2
  5413. trl.Texture = "rbxassetid://1049219073"
  5414. trl.LightEmission = 1
  5415. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5416. trl.Color = ColorSequence.new(dis.Color)
  5417. trl.Lifetime = 0.6
  5418. local a = Instance.new("Part",workspace)
  5419. a.Name = "Direction"
  5420. a.Anchored = true
  5421. a.BrickColor = bc("Bright red")
  5422. a.Material = "Neon"
  5423. a.Transparency = 1
  5424. a.CanCollide = false
  5425. local ray = Ray.new(
  5426. dis.CFrame.p, -- origin
  5427. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5428. )
  5429. local ignore = dis
  5430. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5431. a.BottomSurface = 10
  5432. a.TopSurface = 10
  5433. local distance = (dis.CFrame.p - position).magnitude
  5434. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5435. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5436. dis.CFrame = a.CFrame
  5437. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5438. a:Destroy()
  5439. local bv = Instance.new("BodyVelocity")
  5440. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5441. bv.velocity = dis.CFrame.lookVector*250
  5442. bv.Parent = dis
  5443. game:GetService("Debris"):AddItem(dis, 5)
  5444. local hitted = false
  5445. coroutine.resume(coroutine.create(function()
  5446. dis.Touched:connect(function(hit)
  5447. if hitted == false and hit.Parent ~= char then
  5448. hitted = true
  5449. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5450. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5451. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5452. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5453. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5454. coroutine.resume(coroutine.create(function()
  5455. for i = 0, 9 do
  5456. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5457. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5458. local at1 = Instance.new("Attachment",disr)
  5459. at1.Position = vt(-5,0,0)
  5460. local at2 = Instance.new("Attachment",disr)
  5461. at2.Position = vt(5,0,0)
  5462. local trl = Instance.new('Trail',disr)
  5463. trl.Attachment0 = at1
  5464. trl.FaceCamera = true
  5465. trl.Attachment1 = at2
  5466. trl.Texture = "rbxassetid://2342682798"
  5467. trl.LightEmission = 1
  5468. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5469. trl.Color = ColorSequence.new(keptcolor.Color)
  5470. trl.Lifetime = 0.5
  5471. local bv = Instance.new("BodyVelocity")
  5472. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5473. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5474. bv.Parent = disr
  5475. local val = 0
  5476. coroutine.resume(coroutine.create(function()
  5477. swait(30)
  5478. for i = 0, 9 do
  5479. swait()
  5480. val = val + 0.1
  5481. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5482. end
  5483. game:GetService("Debris"):AddItem(disr, 3)
  5484. end))
  5485. end
  5486. local eff = Instance.new("ParticleEmitter",dis)
  5487. eff.Texture = "rbxassetid://2273224484"
  5488. eff.LightEmission = 1
  5489. eff.Color = ColorSequence.new(keptcolor.Color)
  5490. eff.Rate = 500000
  5491. eff.Lifetime = NumberRange.new(0.5,2)
  5492. 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)})
  5493. 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)})
  5494. eff.Speed = NumberRange.new(20,250)
  5495. eff.Drag = 5
  5496. eff.Rotation = NumberRange.new(-500,500)
  5497. eff.VelocitySpread = 9000
  5498. eff.RotSpeed = NumberRange.new(-50,50)
  5499. wait(0.25)
  5500. eff.Enabled = false
  5501. end))
  5502. for i = 0, 9 do
  5503. 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"))
  5504. end
  5505. for i = 0, 19 do
  5506. 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)
  5507. end
  5508. coroutine.resume(coroutine.create(function()
  5509. for i = 0, 19 do
  5510. swait()
  5511. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5512. end
  5513. hum.CameraOffset = vt(0,0,0)
  5514. end))
  5515. dis.Anchored = true
  5516. dis.Transparency = 1
  5517. wait(8)
  5518. dis:Destroy()
  5519. end
  5520. end)
  5521. end))
  5522. rot = rot - 15
  5523. end
  5524. for i = 0,2,0.1 do
  5525. swait()
  5526. 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)
  5527. 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)
  5528. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5529. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5530. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5531. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5532. end
  5533. attack = false
  5534. hum.WalkSpeed = storehumanoidWS
  5535. end
  5536.  
  5537. function attackthree()
  5538. attack = true
  5539. local keptcolor = MAINRUINCOLOR
  5540. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5541. for i = 0,2,0.1 do
  5542. swait()
  5543. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5544. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5545. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5546. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5547. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5548. 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)
  5549. 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)
  5550. end
  5551. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5552. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5553. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5554. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5555. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5556. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5557. for i = 0, 24 do
  5558. 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"))
  5559. end
  5560. for i = 0,4,0.1 do
  5561. swait()
  5562. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5563. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5564. CreateMesh(dis,"Sphere",1,1,1)
  5565. dis.Anchored = true
  5566. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5567. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5568. coroutine.resume(coroutine.create(function()
  5569. swait(30)
  5570. dis.Transparency = 1
  5571. coroutine.resume(coroutine.create(function()
  5572. for i = 0, 19 do
  5573. swait()
  5574. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5575. end
  5576. hum.CameraOffset = vt(0,0,0)
  5577. end))
  5578. coroutine.resume(coroutine.create(function()
  5579. local eff = Instance.new("ParticleEmitter",dis)
  5580. eff.Texture = "rbxassetid://2273224484"
  5581. eff.LightEmission = 1
  5582. eff.Color = ColorSequence.new(dis.Color)
  5583. eff.Rate = 500000
  5584. eff.Lifetime = NumberRange.new(0.5,2)
  5585. 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)})
  5586. 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)})
  5587. eff.Speed = NumberRange.new(50,450)
  5588. eff.Drag = 5
  5589. eff.Rotation = NumberRange.new(-500,500)
  5590. eff.VelocitySpread = 9000
  5591. eff.RotSpeed = NumberRange.new(-50,50)
  5592. wait(0.125)
  5593. eff.Enabled = false
  5594. end))
  5595. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5596. for i = 0, 2 do
  5597. 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)
  5598. end
  5599. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5600. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5601. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5602. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5603. end))
  5604. game:GetService("Debris"):AddItem(dis, 5)
  5605. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5606. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5607. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5608. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5609. 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)
  5610. 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)
  5611. end
  5612. attack = false
  5613. end
  5614. ----------------------------------- Abilities
  5615.  
  5616. function ExtinctiveHeartbreak()
  5617. local targetted = nil
  5618. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5619. targetted = mouse.Target.Parent
  5620. end
  5621. if targetted ~= nil then
  5622. attack = true
  5623. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5624. for i = 0, 9 do
  5625. 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)
  5626. end
  5627. for i = 0, 24 do
  5628. 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)
  5629. end
  5630. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5631. local originalpos = root.CFrame
  5632. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5633. for i = 0, 9 do
  5634. 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)
  5635. end
  5636. for i = 0, 24 do
  5637. 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)
  5638. end
  5639. hum.WalkSpeed = 0
  5640. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5641. local radm = math.random(1,3)
  5642. if radm == 1 then
  5643. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5644. elseif radm == 2 then
  5645. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5646. elseif radm == 3 then
  5647. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5648. end
  5649. for i = 0,2,0.1 do
  5650. swait()
  5651. 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)
  5652. 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)
  5653. 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)
  5654. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5655. 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)
  5656. 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)
  5657. end
  5658. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5659. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5660. for i = 0,2,0.1 do
  5661. swait()
  5662. coroutine.resume(coroutine.create(function()
  5663. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5664. for i,v in pairs(targetted:GetChildren()) do
  5665. if v:IsA("Part") or v:IsA("MeshPart") then
  5666. v.Velocity = vt(0,0,0)
  5667. end
  5668. end
  5669. end))
  5670. 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)
  5671. 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)
  5672. 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)
  5673. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5674. 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)
  5675. 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)
  5676. end
  5677. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5678. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5679. for i = 0, 1 do
  5680. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5681. end
  5682. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5683. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5684. for i = 0,4,0.1 do
  5685. swait()
  5686. coroutine.resume(coroutine.create(function()
  5687. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5688. 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)))
  5689. local at1 = Instance.new("Attachment",dis)
  5690. at1.Position = vt(-25000,0,0)
  5691. local at2 = Instance.new("Attachment",dis)
  5692. at2.Position = vt(25000,0,0)
  5693. local trl = Instance.new('Trail',dis)
  5694. trl.Attachment0 = at1
  5695. trl.FaceCamera = true
  5696. trl.Attachment1 = at2
  5697. trl.Texture = "rbxassetid://1049219073"
  5698. trl.LightEmission = 1
  5699. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5700. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5701. trl.Lifetime = 5
  5702. local bv = Instance.new("BodyVelocity")
  5703. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5704. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5705. bv.Parent = dis
  5706. game:GetService("Debris"):AddItem(dis, 5)
  5707. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5708. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5709. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5710. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5711. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5712. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5713. 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)
  5714. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5715. for i = 0, 2 do
  5716. 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"))
  5717. end
  5718. 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)
  5719. for i,v in pairs(targetted:GetChildren()) do
  5720. if v:IsA("Part") or v:IsA("MeshPart") then
  5721. v.Velocity = vt(0,0,0)
  5722. end
  5723. end
  5724. end))
  5725. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5726. 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)
  5727. 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)
  5728. 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)
  5729. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5730. 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)
  5731. 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)
  5732. end
  5733. hum.CameraOffset = vt(0,0,0)
  5734. for i = 0, 49 do
  5735. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5736. 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)))
  5737. local at1 = Instance.new("Attachment",dis)
  5738. at1.Position = vt(-50000,0,0)
  5739. local at2 = Instance.new("Attachment",dis)
  5740. at2.Position = vt(50000,0,0)
  5741. local trl = Instance.new('Trail',dis)
  5742. trl.Attachment0 = at1
  5743. trl.FaceCamera = true
  5744. trl.Attachment1 = at2
  5745. trl.Texture = "rbxassetid://1049219073"
  5746. trl.LightEmission = 1
  5747. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5748. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5749. trl.Lifetime = 5
  5750. local bv = Instance.new("BodyVelocity")
  5751. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5752. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5753. bv.Parent = dis
  5754. game:GetService("Debris"):AddItem(dis, 5)
  5755. end
  5756. for i = 0, 49 do
  5757. 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)
  5758. 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"))
  5759. end
  5760. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5761. for i = 0, 1 do
  5762. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5763. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5764. end
  5765. for i = 0, 4 do
  5766. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5767. end
  5768. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5769. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5770. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5771. dmg(targetted)
  5772. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5773. for i = 0, 9 do
  5774. 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)
  5775. end
  5776. for i = 0, 24 do
  5777. 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)
  5778. end
  5779. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5780. root.CFrame = originalpos
  5781. for i = 0, 9 do
  5782. 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)
  5783. end
  5784. for i = 0, 24 do
  5785. 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)
  5786. end
  5787. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5788. attack = false
  5789. hum.WalkSpeed = storehumanoidWS
  5790. end
  5791. end
  5792.  
  5793. function CorruptionEvent()
  5794. attack = true
  5795. hum.WalkSpeed = 0
  5796. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5797. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5798. local keptcolor = MAINRUINCOLOR
  5799. for i = 0,4,0.1 do
  5800. swait()
  5801. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5802. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5803. 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)
  5804. 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)
  5805. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5806. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5807. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5808. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5809. end
  5810. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5811. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5812. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5813. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5814. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5815. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5816. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5817. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5818. hum.CameraOffset = vt(0,0,0)
  5819. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5820. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5821. for i = 0, 24 do
  5822. 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"))
  5823. end
  5824. local rrot = 0
  5825. coroutine.resume(coroutine.create(function()
  5826. for i = 0, 4 do
  5827. rrot = rrot + 45
  5828. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5829. xa.Anchored = true
  5830. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5831. xb.Anchored = true
  5832. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5833. xc.Anchored = true
  5834. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5835. xd.Anchored = true
  5836. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5837. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5838. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5839. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5840. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5841. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5842. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5843. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5844. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5845. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5846. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5847. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5848. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5849. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5850. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5851. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5852. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5853. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5854. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5855. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5856. for i = 0, 9 do
  5857. 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"))
  5858. 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"))
  5859. 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"))
  5860. 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"))
  5861. end
  5862. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5863. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5864. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5865. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5866. 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)
  5867. 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)
  5868. 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)
  5869. 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)
  5870. 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))
  5871. 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))
  5872. 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))
  5873. 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))
  5874. game:GetService("Debris"):AddItem(xa, 5)
  5875. game:GetService("Debris"):AddItem(xb, 5)
  5876. game:GetService("Debris"):AddItem(xc, 5)
  5877. game:GetService("Debris"):AddItem(xd, 5)
  5878. coroutine.resume(coroutine.create(function()
  5879. for i = 0, 19 do
  5880. swait()
  5881. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5882. end
  5883. hum.CameraOffset = vt(0,0,0)
  5884. end))
  5885. swait(9)
  5886. end
  5887. end))
  5888. for i = 0,2,0.1 do
  5889. swait()
  5890. 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)
  5891. 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)
  5892. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5893. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5894. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5895. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5896. end
  5897. attack = false
  5898. hum.WalkSpeed = storehumanoidWS
  5899. end
  5900.  
  5901. function EndGROUND()
  5902. attack = true
  5903. hum.WalkSpeed = 0
  5904. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5905. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5906. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5907. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5908. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5909. local keptcolor = MAINRUINCOLOR
  5910. for i = 0,4,0.1 do
  5911. swait()
  5912. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5913. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5914. 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"))
  5915. 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)
  5916. 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)
  5917. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5918. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5919. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5920. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5921. end
  5922. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5923. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5924. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5925. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5926. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5927. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5928. coroutine.resume(coroutine.create(function()
  5929. local shval = 10
  5930. for i = 0, 99 do
  5931. swait()
  5932. shval = shval - 0.1
  5933. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5934. end
  5935. hum.CameraOffset = vt(0,0,0)
  5936. end))
  5937. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5938. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5939. for i = 0, 24 do
  5940. 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"))
  5941. end
  5942. local rrot = 0
  5943. local xam = 1
  5944. coroutine.resume(coroutine.create(function()
  5945. for i = 0, 14 do
  5946. --swait()
  5947. rrot = rrot + 40*xam
  5948. xam = xam + 0.25
  5949. local bonus = xam
  5950. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5951. xa.Anchored = true
  5952. xa.Color = Color3.new(0,0,0)
  5953. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5954. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5955. local xc = 0
  5956. coroutine.resume(coroutine.create(function()
  5957. for i = 0, 99 do
  5958. swait()
  5959. xc = xc + 0.01
  5960. xa.Color = Color3.new(xc,0,0)
  5961. end
  5962. xa.Transparency = 1
  5963. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5964. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5965. for i = 0, 9 do
  5966. 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"))
  5967. end
  5968. 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)
  5969. 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)
  5970. 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))
  5971. game:GetService("Debris"):AddItem(xa, 5)
  5972. coroutine.resume(coroutine.create(function()
  5973. for i = 0, 19 do
  5974. swait()
  5975. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5976. end
  5977. hum.CameraOffset = vt(0,0,0)
  5978. end))
  5979. end))
  5980. end
  5981. end))
  5982. for i = 0,2,0.1 do
  5983. swait()
  5984. 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)
  5985. 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)
  5986. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5987. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5988. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5989. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5990. end
  5991. attack = false
  5992. hum.WalkSpeed = storehumanoidWS
  5993. end
  5994.  
  5995. function HeavenlyDisk()
  5996. attack = true
  5997. hum.WalkSpeed = 2
  5998. local keptcolor = MAINRUINCOLOR
  5999. local radm = math.random(1,3)
  6000. if radm == 1 then
  6001. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  6002. elseif radm == 2 then
  6003. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6004. elseif radm == 3 then
  6005. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6006. end
  6007. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6008. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  6009. 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)
  6010. 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)
  6011. for i = 0, 14 do
  6012. 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)
  6013. end
  6014. for i = 0,2,0.1 do
  6015. swait()
  6016. 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)
  6017. 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)
  6018. 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)
  6019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6022. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6023. end
  6024. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6025. for i = 0,1,0.6 do
  6026. swait()
  6027. 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)
  6028. 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"))
  6029. 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)
  6030. 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)
  6031. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6032. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6033. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6034. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6035. end
  6036. for i = 0,1,0.6 do
  6037. swait()
  6038. 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)
  6039. 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"))
  6040. 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)
  6041. 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)
  6042. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6043. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6044. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6045. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6046. end
  6047. for i = 0,1,0.6 do
  6048. swait()
  6049. 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)
  6050. 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"))
  6051. 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)
  6052. 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)
  6053. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6054. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6055. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6056. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6057. end
  6058. for i = 0,1,0.6 do
  6059. swait()
  6060. 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)
  6061. 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"))
  6062. 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)
  6063. 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)
  6064. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6067. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6068. end
  6069. local rot = 15
  6070. for i = 0, 2 do
  6071. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6072. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6073. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6074. CreateMesh(dis,"Sphere",10,1,10)
  6075. local at1 = Instance.new("Attachment",dis)
  6076. at1.Position = vt(-5,0,0)
  6077. local at2 = Instance.new("Attachment",dis)
  6078. at2.Position = vt(5,0,0)
  6079. local trl = Instance.new('Trail',wed)
  6080. trl.Attachment0 = at1
  6081. trl.Attachment1 = at2
  6082. trl.Texture = "rbxassetid://1049219073"
  6083. trl.LightEmission = 1
  6084. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6085. trl.Color = ColorSequence.new(dis.Color)
  6086. trl.Lifetime = 0.6
  6087. local a = Instance.new("Part",workspace)
  6088. a.Name = "Direction"
  6089. a.Anchored = true
  6090. a.BrickColor = bc("Bright red")
  6091. a.Material = "Neon"
  6092. a.Transparency = 1
  6093. a.CanCollide = false
  6094. local ray = Ray.new(
  6095. dis.CFrame.p, -- origin
  6096. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6097. )
  6098. local ignore = dis
  6099. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6100. a.BottomSurface = 10
  6101. a.TopSurface = 10
  6102. local distance = (dis.CFrame.p - position).magnitude
  6103. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6104. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6105. dis.CFrame = a.CFrame
  6106. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6107. a:Destroy()
  6108. local bv = Instance.new("BodyVelocity")
  6109. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6110. bv.velocity = dis.CFrame.lookVector*250
  6111. bv.Parent = dis
  6112. game:GetService("Debris"):AddItem(dis, 5)
  6113. local hitted = false
  6114. coroutine.resume(coroutine.create(function()
  6115. dis.Touched:connect(function(hit)
  6116. if hitted == false and hit.Parent ~= char then
  6117. hitted = true
  6118. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6119. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6120. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6121. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6122. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6123. coroutine.resume(coroutine.create(function()
  6124. for i = 0, 9 do
  6125. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6126. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6127. local at1 = Instance.new("Attachment",disr)
  6128. at1.Position = vt(-2,0,0)
  6129. local at2 = Instance.new("Attachment",disr)
  6130. at2.Position = vt(2,0,0)
  6131. local trl = Instance.new('Trail',disr)
  6132. trl.Attachment0 = at1
  6133. trl.FaceCamera = true
  6134. trl.Attachment1 = at2
  6135. trl.Texture = "rbxassetid://2342682798"
  6136. trl.LightEmission = 1
  6137. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6138. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6139. trl.Lifetime = 0.5
  6140. local bv = Instance.new("BodyVelocity")
  6141. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6142. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6143. bv.Parent = disr
  6144. local val = 0
  6145. coroutine.resume(coroutine.create(function()
  6146. swait(30)
  6147. for i = 0, 9 do
  6148. swait()
  6149. val = val + 0.1
  6150. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6151. end
  6152. game:GetService("Debris"):AddItem(disr, 3)
  6153. end))
  6154. end
  6155. local eff = Instance.new("ParticleEmitter",dis)
  6156. eff.Texture = "rbxassetid://2273224484"
  6157. eff.LightEmission = 1
  6158. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6159. eff.Rate = 500000
  6160. eff.Lifetime = NumberRange.new(0.5,2)
  6161. 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)})
  6162. 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)})
  6163. eff.Speed = NumberRange.new(20,250)
  6164. eff.Drag = 5
  6165. eff.Rotation = NumberRange.new(-500,500)
  6166. eff.VelocitySpread = 9000
  6167. eff.RotSpeed = NumberRange.new(-50,50)
  6168. wait(0.25)
  6169. eff.Enabled = false
  6170. end))
  6171. for i = 0, 9 do
  6172. 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"))
  6173. end
  6174. for i = 0, 19 do
  6175. 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)
  6176. end
  6177. coroutine.resume(coroutine.create(function()
  6178. for i = 0, 19 do
  6179. swait()
  6180. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6181. end
  6182. hum.CameraOffset = vt(0,0,0)
  6183. end))
  6184. dis.Anchored = true
  6185. dis.Transparency = 1
  6186. wait(8)
  6187. dis:Destroy()
  6188. end
  6189. end)
  6190. end))
  6191. rot = rot - 15
  6192. end
  6193. for i = 0,2,0.1 do
  6194. swait()
  6195. 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)
  6196. 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)
  6197. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6198. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6199. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6200. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6201. end
  6202. attack = false
  6203. hum.WalkSpeed = storehumanoidWS
  6204. end
  6205.  
  6206.  
  6207. function RapidBurst()
  6208. attack = true
  6209. hum.WalkSpeed = 0
  6210. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6211. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6212. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6213. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6214. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6215. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6216. local keptcolor = MAINRUINCOLOR
  6217. for i = 0,8,0.1 do
  6218. swait()
  6219. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6220. 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())
  6221. 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)
  6222. 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)
  6223. 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)
  6224. 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)
  6225. 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)
  6226. 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)
  6227. 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)
  6228. end
  6229. for i = 0, 99 do
  6230. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6231. 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)))
  6232. local at1 = Instance.new("Attachment",dis)
  6233. at1.Position = vt(-25000,0,0)
  6234. local at2 = Instance.new("Attachment",dis)
  6235. at2.Position = vt(25000,0,0)
  6236. local trl = Instance.new('Trail',dis)
  6237. trl.Attachment0 = at1
  6238. trl.FaceCamera = true
  6239. trl.Attachment1 = at2
  6240. trl.Texture = "rbxassetid://1049219073"
  6241. trl.LightEmission = 1
  6242. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6243. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6244. trl.Lifetime = 5
  6245. local bv = Instance.new("BodyVelocity")
  6246. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6247. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6248. bv.Parent = dis
  6249. game:GetService("Debris"):AddItem(dis, 5)
  6250. end
  6251. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6252. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6253. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6254. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6255. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6256. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6257. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6258. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6259. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6260. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6261. hum.CameraOffset = vt(0,0,0)
  6262. for i = 0, 24 do
  6263. 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())
  6264. end
  6265. local distam = 0
  6266. coroutine.resume(coroutine.create(function()
  6267. for i = 0, 99 do
  6268. wait()
  6269. distam = distam + 1
  6270. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6271. xa.Anchored = true
  6272. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6273. game:GetService("Debris"):AddItem(xa, 5)
  6274. for i = 0, 4 do
  6275. 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())
  6276. end
  6277. coroutine.resume(coroutine.create(function()
  6278. local eff = Instance.new("ParticleEmitter",xa)
  6279. eff.Texture = "rbxassetid://2273224484"
  6280. eff.LightEmission = 1
  6281. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6282. eff.Rate = 500000
  6283. eff.Lifetime = NumberRange.new(1,3)
  6284. 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)})
  6285. 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)})
  6286. eff.Speed = NumberRange.new(50,500)
  6287. eff.Drag = 5
  6288. eff.Rotation = NumberRange.new(-500,500)
  6289. eff.VelocitySpread = 9000
  6290. eff.RotSpeed = NumberRange.new(-50,50)
  6291. wait(0.25)
  6292. eff.Enabled = false
  6293. end))
  6294. coroutine.resume(coroutine.create(function()
  6295. for i = 0, 19 do
  6296. swait()
  6297. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6298. end
  6299. hum.CameraOffset = vt(0,0,0)
  6300. end))
  6301. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6302. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6303. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6304. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6305. end
  6306. end))
  6307. attack = false
  6308. hum.WalkSpeed = storehumanoidWS
  6309. end
  6310.  
  6311. function InsaneDrop()
  6312. attack = true
  6313. hum.WalkSpeed = 0
  6314. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6315. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6316. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6317. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6318. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6319. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6320. local keptcolor = MAINRUINCOLOR
  6321. for i = 0,8,0.1 do
  6322. swait()
  6323. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6324. 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())
  6325. 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)
  6326. 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)
  6327. 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)
  6328. 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)
  6329. 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)
  6330. 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)
  6331. 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)
  6332. end
  6333. for i = 0, 99 do
  6334. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6335. 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)))
  6336. local at1 = Instance.new("Attachment",dis)
  6337. at1.Position = vt(-25000,0,0)
  6338. local at2 = Instance.new("Attachment",dis)
  6339. at2.Position = vt(25000,0,0)
  6340. local trl = Instance.new('Trail',dis)
  6341. trl.Attachment0 = at1
  6342. trl.FaceCamera = true
  6343. trl.Attachment1 = at2
  6344. trl.Texture = "rbxassetid://1049219073"
  6345. trl.LightEmission = 1
  6346. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6347. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6348. trl.Lifetime = 5
  6349. local bv = Instance.new("BodyVelocity")
  6350. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6351. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6352. bv.Parent = dis
  6353. game:GetService("Debris"):AddItem(dis, 5)
  6354. end
  6355. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6356. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6357. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6358. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6359. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6360. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6361. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6362. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6363. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6364. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6365. hum.CameraOffset = vt(0,0,0)
  6366. for i = 0, 24 do
  6367. 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())
  6368. end
  6369. local distam = 0
  6370. coroutine.resume(coroutine.create(function()
  6371. for i = 0, 99 do
  6372. wait()
  6373. distam = distam + 1
  6374. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6375. xa.Anchored = true
  6376. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6377. game:GetService("Debris"):AddItem(xa, 5)
  6378. for i = 0, 4 do
  6379. 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())
  6380. end
  6381. coroutine.resume(coroutine.create(function()
  6382. local eff = Instance.new("ParticleEmitter",xa)
  6383. eff.Texture = "rbxassetid://2273224484"
  6384. eff.LightEmission = 1
  6385. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6386. eff.Rate = 500000
  6387. eff.Lifetime = NumberRange.new(1,3)
  6388. 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)})
  6389. 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)})
  6390. eff.Speed = NumberRange.new(50,500)
  6391. eff.Drag = 5
  6392. eff.Rotation = NumberRange.new(-500,500)
  6393. eff.VelocitySpread = 9000
  6394. eff.RotSpeed = NumberRange.new(-50,50)
  6395. wait(0.25)
  6396. eff.Enabled = false
  6397. end))
  6398. coroutine.resume(coroutine.create(function()
  6399. for i = 0, 19 do
  6400. swait()
  6401. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6402. end
  6403. hum.CameraOffset = vt(0,0,0)
  6404. end))
  6405. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6406. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6407. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6408. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6409. end
  6410. end))
  6411. attack = false
  6412. hum.WalkSpeed = storehumanoidWS
  6413. end
  6414.  
  6415. function FallenOrbs()
  6416. attack = true
  6417. hum.WalkSpeed = 2
  6418. local keptcolor = MAINRUINCOLOR
  6419. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6420. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6421. local radm = math.random(1,3)
  6422. if radm == 1 then
  6423. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6424. elseif radm == 2 then
  6425. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6426. elseif radm == 3 then
  6427. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6428. end
  6429. coroutine.resume(coroutine.create(function()
  6430. for i = 0, 29 do
  6431. swait(2)
  6432. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6433. dis.Anchored = true
  6434. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6435. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6436. CreateMesh(dis,"Sphere",2,2,2)
  6437. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6438. 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"))
  6439. coroutine.resume(coroutine.create(function()
  6440. wait(0.5)
  6441. dis.Anchored = false
  6442. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6443. local at1 = Instance.new("Attachment",dis)
  6444. at1.Position = vt(-1,0,0)
  6445. local at2 = Instance.new("Attachment",dis)
  6446. at2.Position = vt(1,0,0)
  6447. local trl = Instance.new('Trail',dis)
  6448. trl.Attachment0 = at1
  6449. trl.FaceCamera = true
  6450. trl.Attachment1 = at2
  6451. trl.Texture = "rbxassetid://1049219073"
  6452. trl.LightEmission = 1
  6453. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6454. trl.Color = ColorSequence.new(dis.Color)
  6455. trl.Lifetime = 0.6
  6456. local a = Instance.new("Part",workspace)
  6457. a.Name = "Direction"
  6458. a.Anchored = true
  6459. a.BrickColor = bc("Bright red")
  6460. a.Material = "Neon"
  6461. a.Transparency = 1
  6462. a.CanCollide = false
  6463. local ray = Ray.new(
  6464. dis.CFrame.p, -- origin
  6465. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6466. )
  6467. local ignore = dis
  6468. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6469. a.BottomSurface = 10
  6470. a.TopSurface = 10
  6471. local distance = (dis.CFrame.p - position).magnitude
  6472. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6473. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6474. dis.CFrame = a.CFrame
  6475. a:Destroy()
  6476. local bv = Instance.new("BodyVelocity")
  6477. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6478. bv.velocity = dis.CFrame.lookVector*500
  6479. bv.Parent = dis
  6480. game:GetService("Debris"):AddItem(dis, 5)
  6481. local hitted = false
  6482. coroutine.resume(coroutine.create(function()
  6483. dis.Touched:connect(function(hit)
  6484. if hitted == false and hit.Parent ~= char then
  6485. hitted = true
  6486. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6487. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6488. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6489. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6490. coroutine.resume(coroutine.create(function()
  6491. for i = 0, 4 do
  6492. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6493. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6494. local at1 = Instance.new("Attachment",disr)
  6495. at1.Position = vt(-10,0,0)
  6496. local at2 = Instance.new("Attachment",disr)
  6497. at2.Position = vt(10,0,0)
  6498. local trl = Instance.new('Trail',disr)
  6499. trl.Attachment0 = at1
  6500. trl.FaceCamera = true
  6501. trl.Attachment1 = at2
  6502. trl.Texture = "rbxassetid://2342682798"
  6503. trl.LightEmission = 1
  6504. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6505. trl.Color = ColorSequence.new(disr.Color)
  6506. trl.Lifetime = 0.5
  6507. local bv = Instance.new("BodyVelocity")
  6508. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6509. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6510. bv.Parent = disr
  6511. local val = 0
  6512. coroutine.resume(coroutine.create(function()
  6513. swait(30)
  6514. for i = 0, 9 do
  6515. swait()
  6516. val = val + 0.1
  6517. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6518. end
  6519. game:GetService("Debris"):AddItem(disr, 3)
  6520. end))
  6521. end
  6522. local eff = Instance.new("ParticleEmitter",dis)
  6523. eff.Texture = "rbxassetid://1049219073"
  6524. eff.LightEmission = 1
  6525. eff.Color = ColorSequence.new(dis.Color)
  6526. eff.Rate = 500000
  6527. eff.Lifetime = NumberRange.new(0.5,2)
  6528. 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)})
  6529. 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)})
  6530. eff.Speed = NumberRange.new(20,250)
  6531. eff.Drag = 5
  6532. eff.Rotation = NumberRange.new(-500,500)
  6533. eff.VelocitySpread = 9000
  6534. eff.RotSpeed = NumberRange.new(-50,50)
  6535. wait(0.5)
  6536. eff.Enabled = false
  6537. end))
  6538. for i = 0, 4 do
  6539. 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"))
  6540. end
  6541. coroutine.resume(coroutine.create(function()
  6542. for i = 0, 19 do
  6543. swait()
  6544. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6545. end
  6546. hum.CameraOffset = vt(0,0,0)
  6547. end))
  6548. dis.Anchored = true
  6549. dis.Transparency = 1
  6550. wait(8)
  6551. dis:Destroy()
  6552. end
  6553. end)
  6554. end))
  6555. end))
  6556. end
  6557. end))
  6558. for i = 0,9,0.1 do
  6559. swait()
  6560. 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)
  6561. 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)
  6562. 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)
  6563. 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)
  6564. 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)
  6565. 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)
  6566. 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)
  6567. end
  6568. attack = false
  6569. hum.WalkSpeed = storehumanoidWS
  6570. end
  6571.  
  6572. function CyberSlash()
  6573. local posit = -2
  6574. attack = true
  6575. hum.WalkSpeed = 5
  6576. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6577. local radm = math.random(1,3)
  6578. if radm == 1 then
  6579. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6580. elseif radm == 2 then
  6581. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6582. elseif radm == 3 then
  6583. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6584. end
  6585. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6586. for i = 0,2,0.1 do
  6587. swait()
  6588. 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)
  6589. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6590. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6591. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6592. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6593. 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)
  6594. 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)
  6595. end
  6596. for i = 0, 2 do
  6597. CameraEnshaking(1,2)
  6598. local hite = Instance.new("Part", char)
  6599. hite.Anchored = true
  6600. hite.CanCollide = false
  6601. hite.FormFactor = 3
  6602. hite.Name = "Ring"
  6603. hite.Material = "Neon"
  6604. hite.Size = Vector3.new(1, 1, 1)
  6605. hite.Transparency = 1
  6606. hite.TopSurface = 0
  6607. hite.BottomSurface = 0
  6608. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6609. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6610. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6611. coroutine.resume(coroutine.create(function()
  6612. for i = 0, 1 do
  6613. swait()
  6614. 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)
  6615. 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)
  6616. 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)
  6617. end
  6618. end))
  6619. 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)
  6620. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6621. game:GetService("Debris"):AddItem(hite, 5)
  6622. posit = posit + 2
  6623. end
  6624. for i = 0,1,0.1 do
  6625. swait()
  6626. 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)
  6627. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6628. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6629. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6630. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6631. 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)
  6632. 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)
  6633. end
  6634. for i = 0,1,0.1 do
  6635. swait()
  6636. 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)
  6637. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6638. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6639. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6640. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6641. 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)
  6642. 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)
  6643. end
  6644. posit = -6
  6645. for i = 0, 6 do
  6646. CameraEnshaking(1,3)
  6647. local hite = Instance.new("Part", char)
  6648. hite.Anchored = true
  6649. hite.CanCollide = false
  6650. hite.FormFactor = 3
  6651. hite.Name = "Ring"
  6652. hite.Material = "Neon"
  6653. hite.Size = Vector3.new(1, 1, 1)
  6654. hite.Transparency = 1
  6655. hite.TopSurface = 0
  6656. hite.BottomSurface = 0
  6657. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6658. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6659. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6660. 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)
  6661. coroutine.resume(coroutine.create(function()
  6662. for i = 0, 2 do
  6663. swait()
  6664. 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)
  6665. 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)
  6666. 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)
  6667. end
  6668. end))
  6669. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6670. game:GetService("Debris"):AddItem(hite, 5)
  6671. posit = posit + 2
  6672. end
  6673. for i = 0,1,0.1 do
  6674. swait()
  6675. 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)
  6676. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6677. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6678. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6679. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6680. 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)
  6681. 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)
  6682. end
  6683. hum.WalkSpeed = storehumanoidWS
  6684. attack = false
  6685. end
  6686.  
  6687. function EquinoxOrbs()
  6688. hum.WalkSpeed = 0
  6689. attack = true
  6690. local radm = math.random(1,3)
  6691. if radm == 1 then
  6692. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6693. elseif radm == 2 then
  6694. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6695. elseif radm == 3 then
  6696. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6697. end
  6698. for i = 0,1,0.1 do
  6699. swait()
  6700. 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)
  6701. 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)
  6702. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6703. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6704. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6705. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6706. end
  6707. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6708. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6709. for i = 0, 24 do
  6710. 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"))
  6711. end
  6712. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6713. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6714. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6715. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6716. for i = 0,4,0.1 do
  6717. swait()
  6718. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6719. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6720. CreateMesh(dis,"Sphere",1,1,1)
  6721. dis.Anchored = true
  6722. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6723. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6724. CreateMesh(dis2,"Sphere",1,1,1)
  6725. dis2.Anchored = true
  6726. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6727. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6728. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6729. coroutine.resume(coroutine.create(function()
  6730. swait(60)
  6731. dis.Transparency = 1
  6732. dis2.Transparency = 1
  6733. coroutine.resume(coroutine.create(function()
  6734. for i = 0, 19 do
  6735. swait()
  6736. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6737. end
  6738. hum.CameraOffset = vt(0,0,0)
  6739. end))
  6740. coroutine.resume(coroutine.create(function()
  6741. local eff = Instance.new("ParticleEmitter",dis)
  6742. eff.Texture = "rbxassetid://2273224484"
  6743. eff.LightEmission = 1
  6744. eff.Color = ColorSequence.new(dis.Color)
  6745. eff.Rate = 500000
  6746. eff.Lifetime = NumberRange.new(0.5,2)
  6747. 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)})
  6748. 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)})
  6749. eff.Speed = NumberRange.new(50,450)
  6750. eff.Drag = 5
  6751. eff.Rotation = NumberRange.new(-500,500)
  6752. eff.VelocitySpread = 9000
  6753. eff.RotSpeed = NumberRange.new(-50,50)
  6754. local eff2 = eff:Clone()
  6755. eff2.Parent = dis2
  6756. eff2.LightEmission = 0
  6757. eff2.Color = ColorSequence.new(dis2.Color)
  6758. wait(0.25)
  6759. eff.Enabled = false
  6760. eff2.Enabled = false
  6761. end))
  6762. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6763. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6764. for i = 0, 2 do
  6765. 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)
  6766. 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)
  6767. end
  6768. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6769. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6770. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6771. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6772. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6773. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6774. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6775. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6776. end))
  6777. game:GetService("Debris"):AddItem(dis, 5)
  6778. game:GetService("Debris"):AddItem(dis2, 5)
  6779. 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)
  6780. 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)
  6781. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6782. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6783. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6784. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6785. end
  6786. attack = false
  6787. hum.WalkSpeed = storehumanoidWS
  6788. end
  6789. function FallenDEMISE()
  6790. attack = true
  6791. hum.WalkSpeed = 0
  6792. local keptcolor = MAINRUINCOLOR
  6793. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6794. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6795. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6796. for i = 0, 15, 0.1 do
  6797. swait()
  6798. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6799. 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)))
  6800. local at1 = Instance.new("Attachment",dis)
  6801. at1.Position = vt(-25000,0,0)
  6802. local at2 = Instance.new("Attachment",dis)
  6803. at2.Position = vt(25000,0,0)
  6804. local trl = Instance.new('Trail',dis)
  6805. trl.Attachment0 = at1
  6806. trl.FaceCamera = true
  6807. trl.Attachment1 = at2
  6808. trl.Texture = "rbxassetid://1049219073"
  6809. trl.LightEmission = 1
  6810. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6811. trl.Color = ColorSequence.new(dis.Color)
  6812. trl.Lifetime = 5
  6813. local bv = Instance.new("BodyVelocity")
  6814. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6815. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6816. bv.Parent = dis
  6817. game:GetService("Debris"):AddItem(dis, 1)
  6818. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6819. 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"))
  6820. 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"))
  6821. 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)
  6822. 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)
  6823. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6824. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6825. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6826. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6827. end
  6828. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6829. for i = 0, 30, 0.1 do
  6830. swait()
  6831. coroutine.resume(coroutine.create(function()
  6832. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6833. if v:FindFirstChild('Head') then
  6834. dmg(v)
  6835. end
  6836. end
  6837. end))
  6838. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6839. 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)))
  6840. local at1 = Instance.new("Attachment",dis)
  6841. at1.Position = vt(-50000,0,0)
  6842. local at2 = Instance.new("Attachment",dis)
  6843. at2.Position = vt(50000,0,0)
  6844. local trl = Instance.new('Trail',dis)
  6845. trl.Attachment0 = at1
  6846. trl.FaceCamera = true
  6847. trl.Attachment1 = at2
  6848. trl.Texture = "rbxassetid://1049219073"
  6849. trl.LightEmission = 1
  6850. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6851. trl.Color = ColorSequence.new(dis.Color)
  6852. trl.Lifetime = 10
  6853. local bv = Instance.new("BodyVelocity")
  6854. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6855. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6856. bv.Parent = dis
  6857. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6858. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6859. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6860. 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"))
  6861. 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"))
  6862. 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"))
  6863. 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"))
  6864. for i = 0, 2 do
  6865. 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)
  6866. end
  6867. 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)
  6868. 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)
  6869. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6870. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6871. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6872. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6873. end
  6874. attack = false
  6875. hum.WalkSpeed = storehumanoidWS
  6876. end
  6877.  
  6878. function SpeedDrop()
  6879. attack = true
  6880. hum.WalkSpeed = 0
  6881. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6882. local poste = 3
  6883. local rotation = 0
  6884. local rate = 0
  6885. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6886. for i = 0, 124 do
  6887. swait()
  6888. rotation = rotation + rate
  6889. poste = poste + 0.1
  6890. rate = rate + 0.1
  6891. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6892. 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)
  6893. 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)
  6894. 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)
  6895. 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)
  6896. 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)
  6897. 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)
  6898. 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)
  6899. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6900. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6901. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6902. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6903. end
  6904. CameraEnshaking(3,7)
  6905. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6906. local loc = Instance.new("Part", char)
  6907. loc.BrickColor = MAINRUINCOLOR
  6908. loc.CanCollide = false
  6909. loc.FormFactor = 3
  6910. loc.Name = "Ring"
  6911. loc.Material = "Neon"
  6912. loc.Size = Vector3.new(1, 1, 1)
  6913. loc.Transparency = 1
  6914. loc.TopSurface = 0
  6915. loc.BottomSurface = 0
  6916. loc.Anchored = true
  6917. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6918. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6919. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6920. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6921. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6922. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6923. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6924. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6925. coroutine.resume(coroutine.create(function()
  6926. local eff = Instance.new("ParticleEmitter",loc)
  6927. eff.Texture = "rbxassetid://363275192"
  6928. eff.LightEmission = 0.95
  6929. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6930. eff.Rate = 10000
  6931. eff.Lifetime = NumberRange.new(1)
  6932. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6933. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6934. eff.Speed = NumberRange.new(100,500)
  6935. eff.Drag = 5
  6936. eff.Rotation = NumberRange.new(-500,500)
  6937. eff.VelocitySpread = 9000
  6938. eff.RotSpeed = NumberRange.new(-50,50)
  6939. wait(0.5)
  6940. eff.Enabled = false
  6941. end))
  6942. for i = 0, 49 do
  6943. 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)
  6944. end
  6945. for i = 0, 9 do
  6946. 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)
  6947. end
  6948. game:GetService("Debris"):AddItem(loc, 5)
  6949. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6950. hum.WalkSpeed = storehumanoidWS
  6951. attack = false
  6952. end
  6953.  
  6954. function cutesigh()
  6955. attack = true
  6956. hum.WalkSpeed = 0
  6957. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6958. local blush = Instance.new("Decal",hed)
  6959. blush.Texture = "rbxassetid://898404027"
  6960. blush.Face = "Front"
  6961. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6962. for i = 0, 9, 0.1 do
  6963. swait()
  6964. 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)
  6965. 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)
  6966. 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)
  6967. 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)
  6968. 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)
  6969. 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)
  6970. end
  6971. coroutine.resume(coroutine.create(function()
  6972. for i = 0, 49 do
  6973. swait()
  6974. blush.Transparency = blush.Transparency + 0.02
  6975. end
  6976. blush:Destroy()
  6977. end))
  6978. hum.WalkSpeed = storehumanoidWS
  6979. attack = false
  6980. end
  6981.  
  6982. function smiter()
  6983. local targetted = nil
  6984. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6985. targetted = mouse.Target.Parent
  6986. end
  6987. if targetted ~= nil then
  6988. RootPart.CFrame = FaceMouse()[1]
  6989. attack = true
  6990. local radm = math.random(1,3)
  6991. if radm == 1 then
  6992. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  6993. elseif radm == 2 then
  6994. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  6995. elseif radm == 3 then
  6996. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  6997. end
  6998. hum.WalkSpeed = 0
  6999. coroutine.resume(coroutine.create(function()
  7000. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7001. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7002. local vel = Instance.new("BodyPosition", targetted.Head)
  7003. vel.P = 12500
  7004. vel.D = 1000
  7005. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7006. vel.position = targetted.Head.CFrame.p
  7007. end))
  7008. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7009. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7010. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7011. for i = 0,4,0.1 do
  7012. swait()
  7013. 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)
  7014. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7015. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7016. 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)
  7017. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7018. 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)
  7019. 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)
  7020. end
  7021. coroutine.resume(coroutine.create(function()
  7022. CameraEnshaking(6,5)
  7023. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7024. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7025. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7026. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7027. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7028. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7029. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7030. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7031. coroutine.resume(coroutine.create(function()
  7032. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7033. eff.Texture = "rbxassetid://2273224484"
  7034. eff.LightEmission = 1
  7035. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7036. eff.Rate = 500000
  7037. eff.Lifetime = NumberRange.new(0.5,2)
  7038. 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)})
  7039. 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)})
  7040. eff.Speed = NumberRange.new(20,250)
  7041. eff.Drag = 5
  7042. eff.Rotation = NumberRange.new(-500,500)
  7043. eff.VelocitySpread = 9000
  7044. eff.RotSpeed = NumberRange.new(-50,50)
  7045. wait(0.25)
  7046. eff.Enabled = false
  7047. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7048. eff.Texture = "rbxassetid://363275192"
  7049. eff.LightEmission = 0.95
  7050. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7051. eff.Rate = 10000
  7052. eff.Lifetime = NumberRange.new(1.5)
  7053. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7054. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7055. eff.Speed = NumberRange.new(25,150)
  7056. eff.Drag = 5
  7057. eff.Rotation = NumberRange.new(-500,500)
  7058. eff.VelocitySpread = 9000
  7059. eff.RotSpeed = NumberRange.new(-50,50)
  7060. local eff2 = eff:Clone()
  7061. eff2.Parent = targetted.Head
  7062. eff2.Texture = "rbxassetid://284205403"
  7063. eff2.Rate = 10000
  7064. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7065. eff2.Drag = 5
  7066. eff2.Rotation = NumberRange.new(-500,500)
  7067. eff2.VelocitySpread = 9000
  7068. wait(0.5)
  7069. eff2.Enabled = false
  7070. eff.Enabled = false
  7071. end))
  7072. for i = 0, 9 do
  7073. 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)
  7074. end
  7075. for i = 0, 49 do
  7076. local rsiz = math.random(10,50)
  7077. 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)
  7078. end
  7079. game:GetService("Debris"):AddItem(vel,1)
  7080. dmg(targetted)
  7081. end))
  7082. for i = 0,1,0.1 do
  7083. swait()
  7084. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7085. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7086. 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)
  7087. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7088. 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)
  7089. 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)
  7090. end
  7091. attack = false
  7092. hum.WalkSpeed = storehumanoidWS
  7093. end
  7094. end
  7095.  
  7096. function shytaunty()
  7097. attack = true
  7098. hum.WalkSpeed = 0
  7099. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7100. local blush = Instance.new("Decal",hed)
  7101. blush.Texture = "rbxassetid://898404027"
  7102. blush.Face = "Front"
  7103. for i = 0, 13, 0.1 do
  7104. swait()
  7105. 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)
  7106. 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)
  7107. 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)
  7108. 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)
  7109. 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)
  7110. 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)
  7111. end
  7112. coroutine.resume(coroutine.create(function()
  7113. for i = 0, 49 do
  7114. swait()
  7115. blush.Transparency = blush.Transparency + 0.02
  7116. end
  7117. blush:Destroy()
  7118. end))
  7119. hum.WalkSpeed = storehumanoidWS
  7120. attack = false
  7121. end
  7122.  
  7123. function PureBomb()
  7124. attack = true
  7125. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7126. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7127. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7128. local orb = Instance.new("Part", char)
  7129. orb.Anchored = true
  7130. orb.BrickColor = BrickColor.new("Toothpaste")
  7131. orb.CanCollide = false
  7132. orb.FormFactor = 3
  7133. orb.Name = "Ring"
  7134. orb.Material = "Neon"
  7135. orb.Size = Vector3.new(1, 1, 1)
  7136. orb.Transparency = 0
  7137. orb.TopSurface = 0
  7138. orb.BottomSurface = 0
  7139. local orbm = Instance.new("SpecialMesh", orb)
  7140. orbm.MeshType = "Sphere"
  7141. orbm.Name = "SizeMesh"
  7142. orbm.Scale = vt(0,0,0)
  7143. local scaled = 0.1
  7144. local posid = 0
  7145. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7146. for i = 0, 5, 0.1 do
  7147. swait()
  7148. scaled = scaled - 0.001
  7149. posid = posid - scaled
  7150. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7151. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7152. 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)
  7153. 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)
  7154. 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)
  7155. 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)
  7156. 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)
  7157. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7158. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7159. 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)
  7160. end
  7161. for i = 0, 2, 0.1 do
  7162. swait()
  7163. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7164. 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)
  7165. 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)
  7166. 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)
  7167. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7168. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7169. 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)
  7170. end
  7171. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7172. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7173. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7174. coroutine.resume(coroutine.create(function()
  7175. orb.Anchored = false
  7176. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7177. local a = Instance.new("Part",workspace)
  7178. a.Name = "Direction"
  7179. a.Anchored = true
  7180. a.BrickColor = bc("Bright red")
  7181. a.Material = "Neon"
  7182. a.Transparency = 1
  7183. a.CanCollide = false
  7184. local ray = Ray.new(
  7185. orb.CFrame.p, -- origin
  7186. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7187. )
  7188. local ignore = orb
  7189. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7190. a.BottomSurface = 10
  7191. a.TopSurface = 10
  7192. local distance = (orb.CFrame.p - position).magnitude
  7193. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7194. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7195. orb.CFrame = a.CFrame
  7196. a:Destroy()
  7197. local bv = Instance.new("BodyVelocity")
  7198. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7199. bv.velocity = orb.CFrame.lookVector*125
  7200. bv.Parent = orb
  7201. local hitted = false
  7202. game:GetService("Debris"):AddItem(orb, 15)
  7203. wait()
  7204. local hit =orb.Touched:connect(function(hit)
  7205. if hitted == false then
  7206. hitted = true
  7207. CameraEnshaking(10,2.5)
  7208. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7209. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7210. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7211. for i = 0, 49 do
  7212. 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)
  7213. end
  7214. local eff = Instance.new("ParticleEmitter",orb)
  7215. eff.Texture = "rbxassetid://2273224484"
  7216. eff.LightEmission = 1
  7217. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7218. eff.Rate = 500000
  7219. eff.Lifetime = NumberRange.new(0.5,2)
  7220. 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)})
  7221. 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)})
  7222. eff.Speed = NumberRange.new(20,250)
  7223. eff.Drag = 5
  7224. eff.Rotation = NumberRange.new(-500,500)
  7225. eff.VelocitySpread = 9000
  7226. eff.RotSpeed = NumberRange.new(-50,50)
  7227. coroutine.resume(coroutine.create(function()
  7228. wait(0.25)
  7229. eff.Enabled = false
  7230. end))
  7231. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7232. for i = 0, 9 do
  7233. 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)
  7234. 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)
  7235. end
  7236. orb.Anchored = true
  7237. orb.Transparency = 1
  7238. local eff = Instance.new("ParticleEmitter",orb)
  7239. eff.Texture = "rbxassetid://2273224484"
  7240. eff.LightEmission = 1
  7241. eff.Color = ColorSequence.new(Color3.new(M))
  7242. eff.Rate = 500000
  7243. eff.Lifetime = NumberRange.new(0.5,2)
  7244. 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)})
  7245. 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)})
  7246. eff.Speed = NumberRange.new(20,250)
  7247. eff.Drag = 5
  7248. eff.Rotation = NumberRange.new(-500,500)
  7249. eff.VelocitySpread = 9000
  7250. eff.RotSpeed = NumberRange.new(-50,50)
  7251. coroutine.resume(coroutine.create(function()
  7252. wait(1)
  7253. eff.Enabled = false
  7254. end))
  7255. wait(8)
  7256. orb:Destroy()
  7257. end
  7258. end)
  7259. end))
  7260. for i = 0, 1, 0.1 do
  7261. swait()
  7262. 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)
  7263. 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)
  7264. 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)
  7265. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7266. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7267. 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)
  7268. end
  7269. attack = false
  7270. end
  7271.  
  7272.  
  7273. function BeamOfDeath()
  7274. coroutine.resume(coroutine.create(function()
  7275. attack = true
  7276. hum.WalkSpeed = 0
  7277. for i = 0, 11, 0.1 do
  7278. swait()
  7279. 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)
  7280. 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)
  7281. 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)
  7282. 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)
  7283. 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)
  7284. 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)
  7285. end
  7286. for i = 0, 1, 0.1 do
  7287. swait()
  7288. 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)
  7289. 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)
  7290. 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)
  7291. 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)
  7292. 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)
  7293. 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)
  7294. end
  7295. hum.WalkSpeed = storehumanoidWS
  7296. attack = false
  7297. end))
  7298. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7299. local radm = math.random(1,3)
  7300. if radm == 1 then
  7301. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7302. elseif radm == 2 then
  7303. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7304. elseif radm == 3 then
  7305. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7306. end
  7307. local keptcolor = MAINRUINCOLOR
  7308. local orb = Instance.new("Part", char)
  7309. orb.BrickColor = keptcolor
  7310. orb.CanCollide = false
  7311. orb.FormFactor = 3
  7312. orb.Name = "Ring"
  7313. orb.Material = "Neon"
  7314. orb.Size = Vector3.new(1, 1, 1)
  7315. orb.Transparency = 1
  7316. orb.TopSurface = 0
  7317. orb.BottomSurface = 0
  7318. local orbm = Instance.new("SpecialMesh", orb)
  7319. orbm.MeshType = "Sphere"
  7320. orbm.Name = "SizeMesh"
  7321. orbm.Scale = vt(22.5,10000,22.5)
  7322. orb.CFrame = mouse.Hit
  7323. orb.Anchored = true
  7324. orb.Orientation = vt(0,0,0)
  7325. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7326. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7327. coroutine.resume(coroutine.create(function()
  7328. coroutine.resume(coroutine.create(function()
  7329. for i = 0, 175 do
  7330. swait()
  7331. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7332. orb.Transparency = orb.Transparency - 0.005
  7333. end
  7334. end))
  7335. wait(2)
  7336. coroutine.resume(coroutine.create(function()
  7337. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7338. if hfr ~= nil then
  7339. for i = 0, 24.5 do
  7340. local deb = Instance.new("Part", char)
  7341. deb.Anchored = true
  7342. deb.CanCollide = false
  7343. deb.FormFactor = 3
  7344. deb.Name = "Ring"
  7345. deb.Material = hitfloor.Material
  7346. deb.Color = hitfloor.Color
  7347. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7348. deb.Transparency = 0
  7349. deb.TopSurface = 0
  7350. deb.BottomSurface = 0
  7351. 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)))
  7352. local deb2 = Instance.new("Part", char)
  7353. deb2.CanCollide = false
  7354. deb2.FormFactor = 3
  7355. deb2.Name = "Ring"
  7356. deb2.Material = hitfloor.Material
  7357. deb2.Color = hitfloor.Color
  7358. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7359. deb2.Transparency = 0
  7360. deb2.TopSurface = 0
  7361. deb2.BottomSurface = 0
  7362. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7363. 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)))
  7364. local eff = Instance.new("ParticleEmitter",deb)
  7365. eff.Texture = "rbxassetid://363275192"
  7366. eff.LightEmission = 0.95
  7367. eff.Color = ColorSequence.new(keptcolor.Color)
  7368. eff.Rate = 100
  7369. eff.Lifetime = NumberRange.new(1)
  7370. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7371. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7372. eff.Speed = NumberRange.new(0,5)
  7373. eff.Rotation = NumberRange.new(-500,500)
  7374. eff.VelocitySpread = 9000
  7375. eff.RotSpeed = NumberRange.new(-10,10)
  7376. local at1 = Instance.new('Attachment',deb2)
  7377. at1.Position = vt(0,15,0)
  7378. local at2 = Instance.new('Attachment',deb2)
  7379. at2.Position = vt(0,-15,0)
  7380. local tl = Instance.new('Trail',deb2)
  7381. tl.Attachment0 = at1
  7382. tl.Attachment1 = at2
  7383. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7384. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7385. tl.Lifetime = 1
  7386. game:GetService("Debris"):AddItem(deb,30)
  7387. game:GetService("Debris"):AddItem(deb2,30)
  7388. coroutine.resume(coroutine.create(function()
  7389. wait(15)
  7390. eff.Enabled = false
  7391. for i = 0, 49 do
  7392. swait()
  7393. deb.Transparency = deb.Transparency + 0.02
  7394. end
  7395. wait(1)
  7396. deb:Destroy()
  7397. end))
  7398. end
  7399. end
  7400. end))
  7401. for i = 0, 199 do
  7402. swait(1.5)
  7403. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7404. if v:FindFirstChild('Head') then
  7405. dmg(v)
  7406. end
  7407. end
  7408. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7409. 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)
  7410. 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)
  7411. 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)
  7412. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7413. end
  7414. orb:Destroy()
  7415. end))
  7416. end
  7417.  
  7418. function Beams()
  7419. attack = true
  7420. hum.WalkSpeed = 0
  7421. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7422. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7423. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7424. local keptcolor = MAINRUINCOLOR
  7425. coroutine.resume(coroutine.create(function()
  7426. for i = 0, 96 do
  7427. swait(5)
  7428. local orb = Instance.new("Part", char)
  7429. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7430. orb.BrickColor = keptcolor
  7431. orb.CanCollide = false
  7432. orb.FormFactor = 3
  7433. orb.Name = "Ring"
  7434. orb.Material = "Neon"
  7435. orb.Size = Vector3.new(1, 1, 1)
  7436. orb.Transparency = 0
  7437. orb.TopSurface = 0
  7438. orb.BottomSurface = 0
  7439. orb.Anchored = true
  7440. local orbm = Instance.new("SpecialMesh", orb)
  7441. orbm.MeshType = "Sphere"
  7442. orbm.Name = "SizeMesh"
  7443. orbm.Scale = vt(1.25,1.25,1.25)
  7444. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7445. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7446. coroutine.resume(coroutine.create(function()
  7447. wait(0.5)
  7448. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7449. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7450. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7451. orb.Transparency = 1
  7452. local a = Instance.new("Part",char)
  7453. a.Name = "Direction"
  7454. a.Anchored = true
  7455. a.BrickColor = keptcolor
  7456. a.Material = "Neon"
  7457. a.Transparency = 0.25
  7458. a.Shape = "Cylinder"
  7459. local ht = Instance.new("Part",char)
  7460. ht.Name = "DirectionHit"
  7461. ht.Anchored = true
  7462. ht.BrickColor = keptcolor
  7463. ht.CanCollide = false
  7464. ht.Transparency = 1
  7465. ht.Size = vt(0.1,0.1,0.1)
  7466. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7467. a.CanCollide = false
  7468. local ray = Ray.new(
  7469. orb.CFrame.p, -- origin
  7470. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7471. )
  7472. local ignore = char
  7473. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7474. a.BottomSurface = 10
  7475. a.TopSurface = 10
  7476. local distance = (orb.CFrame.p - position).magnitude
  7477. a.Size = Vector3.new(distance,1,1)
  7478. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7479. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7480. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7481. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7482. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7483. coroutine.resume(coroutine.create(function()
  7484. local eff = Instance.new("ParticleEmitter",ht)
  7485. eff.Texture = "rbxassetid://284205403"
  7486. eff.LightEmission = 0.95
  7487. eff.Color = ColorSequence.new(keptcolor.Color)
  7488. eff.Rate = 500
  7489. eff.Lifetime = NumberRange.new(0.5)
  7490. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7491. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7492. eff.Speed = NumberRange.new(10,50)
  7493. eff.Drag = 5
  7494. eff.Rotation = NumberRange.new(-500,500)
  7495. eff.VelocitySpread = 9000
  7496. eff.RotSpeed = NumberRange.new(-500,500)
  7497. wait(0.25)
  7498. eff.Enabled = false
  7499. end))
  7500. for i = 0, 4 do
  7501. 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)
  7502. 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)
  7503. local rsiz = math.random(10,30)
  7504. 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)
  7505. end
  7506. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7507. local msh = Instance.new("SpecialMesh",a)
  7508. msh.MeshType = "Cylinder"
  7509. msh.Scale = vt(1,1,1)
  7510. for i = 0, 49 do
  7511. swait()
  7512. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7513. a.Transparency = a.Transparency + 0.02
  7514. end
  7515. orb:Destroy()
  7516. a:Destroy()
  7517. ht:Destroy()
  7518. end))
  7519. game:GetService("Debris"):AddItem(orb, 10)
  7520. end
  7521. end))
  7522. for i = 0,6,0.1 do
  7523. swait()
  7524. 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)
  7525. 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)
  7526. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7527. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7528. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7529. 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)
  7530. 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)
  7531. end
  7532. hum.WalkSpeed = storehumanoidWS
  7533. attack = false
  7534. end
  7535.  
  7536. function CalamityTrans()
  7537. attack = true
  7538. rainbowmode = false
  7539. chaosmode = false
  7540. ModeOfGlitch = 8889
  7541. hum.WalkSpeed = 0
  7542. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7543. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7544. elocacenter.Anchored = true
  7545. elocacenter.CFrame = root.CFrame
  7546. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7547. eloca1.Anchored = true
  7548. eloca1.CFrame = elocacenter.CFrame
  7549. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7550. eloca2.Anchored = true
  7551. eloca2.CFrame = elocacenter.CFrame
  7552. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7553. eloca3.Anchored = true
  7554. eloca3.CFrame = elocacenter.CFrame
  7555. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7556. eloca4.Anchored = true
  7557. eloca4.CFrame = elocacenter.CFrame
  7558. local lookavec = 0
  7559. local speeds = 0
  7560. CameraEnshaking(3,2.5)
  7561. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7562. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7563. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7564. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7565. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7566. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7567. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7568. for i = 0, 5, 0.1 do
  7569. swait()
  7570. ---
  7571. lookavec = lookavec + 1
  7572. speeds = speeds + 10
  7573. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7574. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7575. 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)
  7576. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7577. 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)
  7578. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7579. 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)
  7580. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7581. 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)
  7582. ---
  7583. 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)
  7584. 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)
  7585. 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)
  7586. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7587. 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)
  7588. 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)
  7589. end
  7590. for i = 0, 5, 0.1 do
  7591. swait()
  7592. ---
  7593. speeds = speeds + 10
  7594. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7595. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7596. 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)
  7597. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7598. 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)
  7599. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7600. 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)
  7601. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7602. 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)
  7603. ---
  7604. 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)
  7605. 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)
  7606. 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)
  7607. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7608. 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)
  7609. 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)
  7610. end
  7611. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7612. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7613. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7614. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7615. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7616. CameraEnshaking(1,3)
  7617. for i = 0, 24 do
  7618. 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)
  7619. 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)
  7620. 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)
  7621. 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)
  7622. end
  7623. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7624. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7625. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7626. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7627. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7628. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7629. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7630. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7631. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7632. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7633. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7634. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7635. for i = 0, 5, 0.1 do
  7636. swait()
  7637. ---
  7638. lookavec = lookavec - 1
  7639. speeds = speeds + 10
  7640. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7641. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7642. 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)
  7643. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7644. 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)
  7645. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7646. 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)
  7647. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7648. 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)
  7649. ---
  7650. 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)
  7651. 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)
  7652. 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)
  7653. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7654. 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)
  7655. 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)
  7656. end
  7657. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7658. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7659. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7660. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7661. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7662. for i = 0, 49 do
  7663. 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)
  7664. 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)
  7665. end
  7666. CameraEnshaking(5,6)
  7667. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7668. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7669. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7670. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7671. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7672. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7673. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7674. storehumanoidWS = 100
  7675. hum.WalkSpeed = 100
  7676. rainbowmode = false
  7677. chaosmode = false
  7678. tl1.Enabled = true
  7679. tl2.Enabled = true
  7680. tl3.Enabled = true
  7681. RecolorTextAndRename("Tempest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7682. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7683. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7684. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7685. for i, v in pairs(mw2:GetChildren()) do
  7686. if v:IsA("Part") then
  7687. v.BrickColor = MAINRUINCOLOR
  7688. v.Material = "Neon"
  7689. end
  7690. end
  7691. for i, v in pairs(mw1:GetChildren()) do
  7692. if v:IsA("Part") then
  7693. v.Transparency = 0
  7694. v.BrickColor = MAINRUINCOLOR
  7695. v.Material = "Neon"
  7696. end
  7697. end
  7698. for i, v in pairs(m:GetChildren()) do
  7699. if v:IsA("Part") then
  7700. v.Color = Color3.new(0.5,0,1)
  7701. v.Material = "Neon"
  7702. end
  7703. end
  7704. for i, v in pairs(m2:GetChildren()) do
  7705. if v:IsA("Part") then
  7706. v.Color = Color3.new(0.25,0,1)
  7707. v.Material = "Neon"
  7708. end
  7709. end
  7710. for i, v in pairs(m3:GetChildren()) do
  7711. if v:IsA("Part") then
  7712. v.Color = Color3.new(0.45,0,1)
  7713. v.Material = "Neon"
  7714. end
  7715. end
  7716. for i, v in pairs(extrawingmod1:GetChildren()) do
  7717. if v:IsA("Part") then
  7718. v.Transparency = 0.75
  7719. v.Color = Color3.new(0.25,0,1)
  7720. v.Material = "Neon"
  7721. end
  7722. end
  7723. for i, v in pairs(extrawingmod2:GetChildren()) do
  7724. if v:IsA("Part") then
  7725. v.Transparency = 0.75
  7726. v.Color = Color3.new(0.5,0,1)
  7727. v.Material = "Neon"
  7728. end
  7729. end
  7730. attack = false
  7731. end
  7732.  
  7733. function InsaneTrans()
  7734. attack = true
  7735. rainbowmode = false
  7736. chaosmode = false
  7737. ModeOfGlitch = 8889
  7738. hum.WalkSpeed = 0
  7739. newThemeCust("rbxassetid://183142252",1,1,10)
  7740. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7741. elocacenter.Anchored = true
  7742. elocacenter.CFrame = root.CFrame
  7743. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7744. eloca1.Anchored = true
  7745. eloca1.CFrame = elocacenter.CFrame
  7746. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7747. eloca2.Anchored = true
  7748. eloca2.CFrame = elocacenter.CFrame
  7749. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7750. eloca3.Anchored = true
  7751. eloca3.CFrame = elocacenter.CFrame
  7752. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7753. eloca4.Anchored = true
  7754. eloca4.CFrame = elocacenter.CFrame
  7755. local lookavec = 0
  7756. local speeds = 0
  7757. CameraEnshaking(3,2.5)
  7758. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7759. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7760. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7761. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7762. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7763. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7764. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7765. for i = 0, 5, 0.1 do
  7766. swait()
  7767. ---
  7768. lookavec = lookavec + 1
  7769. speeds = speeds + 10
  7770. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7771. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7772. 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)
  7773. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7774. 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)
  7775. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7776. 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)
  7777. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7778. 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)
  7779. ---
  7780. 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)
  7781. 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)
  7782. 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)
  7783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7784. 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)
  7785. 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)
  7786. end
  7787. for i = 0, 5, 0.1 do
  7788. swait()
  7789. ---
  7790. speeds = speeds + 10
  7791. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7792. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7793. 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)
  7794. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7795. 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)
  7796. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7797. 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)
  7798. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7799. 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)
  7800. ---
  7801. 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)
  7802. 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)
  7803. 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)
  7804. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7805. 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)
  7806. 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)
  7807. end
  7808. MAINRUINCOLOR = BrickColor.new("Really black")
  7809. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7810. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7811. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7812. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7813. CameraEnshaking(1,3)
  7814. for i = 0, 24 do
  7815. 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)
  7816. 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)
  7817. 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)
  7818. 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)
  7819. end
  7820. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7821. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7822. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7823. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7824. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7825. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7826. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7827. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7828. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7829. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7830. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7831. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7832. for i = 0, 5, 0.1 do
  7833. swait()
  7834. ---
  7835. lookavec = lookavec - 1
  7836. speeds = speeds + 10
  7837. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7838. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7839. 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)
  7840. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7841. 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)
  7842. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7843. 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)
  7844. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7845. 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)
  7846. ---
  7847. 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)
  7848. 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)
  7849. 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)
  7850. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7851. 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)
  7852. 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)
  7853. end
  7854. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7855. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7856. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7857. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7858. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7859. for i = 0, 49 do
  7860. 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)
  7861. 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)
  7862. end
  7863. CameraEnshaking(5,6)
  7864. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7865. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7866. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7867. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7868. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7869. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7870. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7871. storehumanoidWS = 100
  7872. hum.WalkSpeed = 100
  7873. rainbowmode = false
  7874. chaosmode = false
  7875. tl1.Enabled = true
  7876. tl2.Enabled = true
  7877. tl3.Enabled = true
  7878. RecolorTextAndRename("Nagifar",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7879. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7880. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7881. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7882. for i, v in pairs(mw2:GetChildren()) do
  7883. if v:IsA("Part") then
  7884. v.BrickColor = MAINRUINCOLOR
  7885. v.Material = "Neon"
  7886. end
  7887. end
  7888. for i, v in pairs(mw1:GetChildren()) do
  7889. if v:IsA("Part") then
  7890. v.Transparency = 0
  7891. v.BrickColor = MAINRUINCOLOR
  7892. v.Material = "Neon"
  7893. end
  7894. end
  7895. for i, v in pairs(m:GetChildren()) do
  7896. if v:IsA("Part") then
  7897. v.Color = Color3.new(170,0,0)
  7898. v.Material = "Neon"
  7899. end
  7900. end
  7901. for i, v in pairs(m2:GetChildren()) do
  7902. if v:IsA("Part") then
  7903. v.Color = Color3.new(0,0,0)
  7904. v.Material = "Neon"
  7905. end
  7906. end
  7907. for i, v in pairs(m3:GetChildren()) do
  7908. if v:IsA("Part") then
  7909. v.Color = Color3.new(0,0,0)
  7910. v.Material = "Neon"
  7911. end
  7912. end
  7913. for i, v in pairs(extrawingmod1:GetChildren()) do
  7914. if v:IsA("Part") then
  7915. v.Transparency = 0.75
  7916. v.Color = Color3.new(0,0,0)
  7917. v.Material = "Neon"
  7918. end
  7919. end
  7920. for i, v in pairs(extrawingmod2:GetChildren()) do
  7921. if v:IsA("Part") then
  7922. v.Transparency = 0.75
  7923. v.Color = Color3.new(0,0,0)
  7924. v.Material = "Neon"
  7925. end
  7926. end
  7927. attack = false
  7928. end
  7929.  
  7930. function GleamingBeam()
  7931. attack = true
  7932. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7933. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7934. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7935. local rsiz = math.random(1,15)
  7936. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7937. hb.Anchored = true
  7938. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7939. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7940. for i = 0, 16, 0.1 do
  7941. swait()
  7942. rsiz = math.random(5,15)
  7943. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7944. 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)
  7945. 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)
  7946. 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)
  7947. 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)
  7948. 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)
  7949. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7950. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7951. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7952. end
  7953. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7954. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7955. for i = 0, 2 do
  7956. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7957. end
  7958. 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)
  7959. 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)
  7960. 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)
  7961. for i = 0, 49 do
  7962. local rsiza = math.random(1,15)
  7963. 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)
  7964. end
  7965. local a = Instance.new("Part",Character)
  7966. a.Name = "Direction"
  7967. a.Anchored = true
  7968. a.BrickColor = MAINRUINCOLOR
  7969. a.Material = "Neon"
  7970. a.Transparency = 0
  7971. a.Shape = "Cylinder"
  7972. a.CanCollide = false
  7973. local ba = Instance.new("Part",Character)
  7974. ba.Name = "HitDirect"
  7975. ba.Anchored = true
  7976. ba.BrickColor = bc("Cool yellow")
  7977. ba.Material = "Neon"
  7978. ba.Transparency = 1
  7979. ba.CanCollide = false
  7980. local ray = Ray.new(
  7981. hb.CFrame.p, -- origin
  7982. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7983. )
  7984. local ignore = Character
  7985. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7986. a.BottomSurface = 10
  7987. a.TopSurface = 10
  7988. local distance = (hb.CFrame.p - position).magnitude
  7989. a.Size = Vector3.new(distance, 1, 1)
  7990. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7991. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7992. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7993. local msh = Instance.new("SpecialMesh",a)
  7994. msh.MeshType = "Cylinder"
  7995. msh.Scale = vt(1,4,4)
  7996. game:GetService("Debris"):AddItem(a, 30)
  7997. game:GetService("Debris"):AddItem(ba, 30)
  7998. for i = 0, 25, 0.1 do
  7999. swait()
  8000. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8001. ray = Ray.new(
  8002. hb.CFrame.p, -- origin
  8003. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8004. )
  8005. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8006. distance = (hb.CFrame.p - position).magnitude
  8007. a.Size = Vector3.new(distance, 1, 1)
  8008. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8009. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8010. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8011. rsiz = math.random(5,25)
  8012. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8013. 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)
  8014. for c = 0, 2 do
  8015. 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)
  8016. end
  8017. 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)
  8018. 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)
  8019. 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)
  8020. 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)
  8021. 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)
  8022. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8023. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8024. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8025. end
  8026. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8027. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8028. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8029. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8030. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8031. 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)
  8032. 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)
  8033. 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)
  8034. 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)
  8035. 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)
  8036. 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)
  8037. for i = 0, 49 do
  8038. local rsiza = math.random(1,15)
  8039. 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)
  8040. end
  8041. for i = 0, 49 do
  8042. rsiz = math.random(1,8)
  8043. 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)
  8044. end
  8045. coroutine.resume(coroutine.create(function()
  8046. for i = 0, 99 do
  8047. swait()
  8048. a.Transparency = a.Transparency + 0.01
  8049. end
  8050. a:Destroy()
  8051. ba:Destroy()
  8052. end))
  8053. hb:Destroy()
  8054. attack = false
  8055. end
  8056.  
  8057. function DualGleamingBeam()
  8058. attack = true
  8059. hum.WalkSpeed = 0
  8060. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8061. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8062. local radm = math.random(1,3)
  8063. if radm == 1 then
  8064. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8065. elseif radm == 2 then
  8066. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8067. elseif radm == 3 then
  8068. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8069. end
  8070. local rsiz = math.random(1,15)
  8071. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8072. hb.Anchored = true
  8073. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8074. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8075. hb2.Anchored = true
  8076. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8077. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8078. for i = 0, 14, 0.1 do
  8079. swait()
  8080. rsiz = math.random(5,15)
  8081. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8082. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8083. 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)
  8084. 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)
  8085. 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)
  8086. 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"))
  8087. 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)
  8088. 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)
  8089. 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)
  8090. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8091. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8092. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8093. end
  8094. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8095. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8096. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8097. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8098. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8099. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8100. 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)
  8101. 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)
  8102. 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)
  8103. 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"))
  8104. 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"))
  8105. 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"))
  8106. for i = 0, 49 do
  8107. local rsiza = math.random(1,15)
  8108. 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)
  8109. 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)
  8110. end
  8111. local a = Instance.new("Part",Character)
  8112. a.Name = "Direction"
  8113. a.Anchored = true
  8114. a.BrickColor = MAINRUINCOLOR
  8115. a.Material = "Neon"
  8116. a.Transparency = 0
  8117. a.Shape = "Cylinder"
  8118. a.CanCollide = false
  8119. local a2 = Instance.new("Part",Character)
  8120. a2.Name = "Direction"
  8121. a2.Anchored = true
  8122. a2.BrickColor = MAINRUINCOLOR
  8123. a2.Material = "Neon"
  8124. a2.Transparency = 0
  8125. a2.Shape = "Cylinder"
  8126. a2.CanCollide = false
  8127. local ba = Instance.new("Part",Character)
  8128. ba.Name = "HitDirect"
  8129. ba.Anchored = true
  8130. ba.BrickColor = MAINRUINCOLOR
  8131. ba.Material = "Neon"
  8132. ba.Transparency = 1
  8133. ba.CanCollide = false
  8134. local ba2 = Instance.new("Part",Character)
  8135. ba2.Name = "HitDirect"
  8136. ba2.Anchored = true
  8137. ba2.BrickColor = MAINRUINCOLOR
  8138. ba2.Material = "Neon"
  8139. ba2.Transparency = 1
  8140. ba2.CanCollide = false
  8141. local ray = Ray.new(
  8142. hb.CFrame.p, -- origin
  8143. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8144. )
  8145. local ignore = Character
  8146. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8147. local ray2 = Ray.new(
  8148. hb2.CFrame.p, -- origin
  8149. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8150. )
  8151. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8152. local distance2 = (hb2.CFrame.p - position).magnitude
  8153.  
  8154. a.BottomSurface = 10
  8155. a.TopSurface = 10
  8156. local distance = (hb.CFrame.p - position).magnitude
  8157. a.Size = Vector3.new(distance, 1, 1)
  8158. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8159. a2.BottomSurface = 10
  8160. a2.TopSurface = 10
  8161. a2.Size = Vector3.new(distance2, 1, 1)
  8162. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8163. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8164. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8165. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8166. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8167. local msh = Instance.new("SpecialMesh",a)
  8168. msh.MeshType = "Cylinder"
  8169. msh.Scale = vt(1,4,4)
  8170. local msh2 = Instance.new("SpecialMesh",a2)
  8171. msh2.MeshType = "Cylinder"
  8172. msh2.Scale = vt(1,4,4)
  8173. game:GetService("Debris"):AddItem(a, 30)
  8174. game:GetService("Debris"):AddItem(a2, 30)
  8175. game:GetService("Debris"):AddItem(ba, 30)
  8176. game:GetService("Debris"):AddItem(ba2, 30)
  8177. for i = 0, 20, 0.1 do
  8178. swait()
  8179. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8180. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8181. ray = Ray.new(
  8182. hb.CFrame.p, -- origin
  8183. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8184. )
  8185. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8186. distance = (hb.CFrame.p - position).magnitude
  8187. ray2 = Ray.new(
  8188. hb2.CFrame.p, -- origin
  8189. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8190. )
  8191. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8192. distance2 = (hb2.CFrame.p - position).magnitude
  8193. a.Size = Vector3.new(distance, 1, 1)
  8194. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8195. a2.Size = Vector3.new(distance2, 1, 1)
  8196. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8197. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8198. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8199. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8200. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8201. rsiz = math.random(5,25)
  8202. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8203. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8204. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8205. if v:FindFirstChild('Head') then
  8206. dmg(v)
  8207. end
  8208. end
  8209. coroutine.resume(coroutine.create(function()
  8210. local bx = Instance.new("Part",Character)
  8211. bx.Name = "Location"
  8212. bx.Anchored = true
  8213. bx.BrickColor = MAINRUINCOLOR
  8214. bx.Material = "Neon"
  8215. bx.Transparency = 1
  8216. bx.CanCollide = false
  8217. bx.Position = ba.Position
  8218. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8219. wait(math.random(1,2))
  8220. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8221. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8222. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8223. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8224. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8225. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8226. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8227. if v:FindFirstChild('Head') then
  8228. dmg(v)
  8229. end
  8230. end
  8231. wait(5)
  8232. bx:Destroy()
  8233. end))
  8234. 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)
  8235. 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)
  8236. for c = 0, 2 do
  8237. 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)
  8238. end
  8239. 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)
  8240. 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)
  8241. 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)
  8242. 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)
  8243. 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)
  8244. 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)
  8245. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8246. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8247. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8248. end
  8249. for i = 0, 1 do
  8250. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8251. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8252. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8253. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8254. end
  8255. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8256. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8257. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8258. if v:FindFirstChild('Head') then
  8259. dmg(v)
  8260. end
  8261. end
  8262. 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)
  8263. 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)
  8264. 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)
  8265. 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)
  8266. 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)
  8267. 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)
  8268. 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"))
  8269. 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"))
  8270. 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"))
  8271. for i = 0, 49 do
  8272. local rsiza = math.random(1,15)
  8273. 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)
  8274. 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)
  8275. end
  8276. for i = 0, 49 do
  8277. rsiz = math.random(1,8)
  8278. 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)
  8279. end
  8280. coroutine.resume(coroutine.create(function()
  8281. for i = 0, 99 do
  8282. swait()
  8283. a.Transparency = a.Transparency + 0.01
  8284. a2.Transparency = a2.Transparency + 0.01
  8285. end
  8286. a:Destroy()
  8287. ba:Destroy()
  8288. a2:Destroy()
  8289. ba2:Destroy()
  8290. end))
  8291. hum.WalkSpeed = storehumanoidWS
  8292. hb:Destroy()
  8293. hb2:Destroy()
  8294. attack = false
  8295. end
  8296.  
  8297. function dragin()
  8298. local targetted = nil
  8299. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8300. targetted = mouse.Target.Parent
  8301. end
  8302. if targetted ~= nil then
  8303. RootPart.CFrame = FaceMouse()[1]
  8304. attack = true
  8305. hum.WalkSpeed = 0
  8306. for x = 0, 1 do
  8307. for i = 0,1,0.5 do
  8308. swait()
  8309. 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)
  8310. 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)
  8311. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8312. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8313. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8314. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8315. end
  8316. for i = 0,1,0.5 do
  8317. swait()
  8318. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8319. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8320. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8321. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8322. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8323. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8324. end
  8325. for i = 0,1,0.5 do
  8326. swait()
  8327. 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)
  8328. 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)
  8329. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8330. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8331. 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)
  8332. 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)
  8333. end
  8334. for i = 0,1,0.5 do
  8335. swait()
  8336. 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)
  8337. 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)
  8338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8340. 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)
  8341. 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)
  8342. end
  8343. end
  8344. coroutine.resume(coroutine.create(function()
  8345. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8346. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8347. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8348. end))
  8349. local A1 = Instance.new("Attachment",targetted.Head)
  8350. local A2 = Instance.new("Attachment",sorb)
  8351. local Beem = Instance.new("Beam",tors)
  8352. Beem.Attachment0 = A1
  8353. Beem.Attachment1 = A2
  8354. Beem.Texture = "rbxassetid://897585362"
  8355. Beem.LightEmission = 0.75
  8356. Beem.FaceCamera = true
  8357. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8358. Beem.Width0 = 1
  8359. Beem.Width1 = 1
  8360. Beem.TextureMode = "Wrap"
  8361. Beem.TextureLength = 1
  8362. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8363. 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)
  8364. 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)
  8365. for x = 0, 24 do
  8366. local rsiz = math.random(5,15)
  8367. 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)
  8368. end
  8369.  
  8370. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8371. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8372. local radm = math.random(1,2)
  8373. if radm == 1 then
  8374. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8375. elseif radm == 2 then
  8376. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8377. end
  8378. for i = 0,3,0.1 do
  8379. swait()
  8380. coroutine.resume(coroutine.create(function()
  8381. local rsiz = math.random(5,15)
  8382. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8383. 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)
  8384. end))
  8385. 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)
  8386. 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)
  8387. 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)
  8388. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8389. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8390. 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)
  8391. 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)
  8392. end
  8393. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8394. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8395. local vel = Instance.new("BodyPosition", targetted.Head)
  8396. vel.P = 12500
  8397. vel.D = 1000
  8398. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8399. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8400. for i = 0,4,0.1 do
  8401. swait()
  8402. coroutine.resume(coroutine.create(function()
  8403. local rsiz = math.random(5,15)
  8404. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8405. 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)
  8406. end))
  8407. 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)
  8408. 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)
  8409. 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)
  8410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8411. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8412. 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)
  8413. 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)
  8414. end
  8415. local visibility = 0
  8416. coroutine.resume(coroutine.create(function()
  8417. for i = 0, 49 do
  8418. swait()
  8419. visibility = visibility + 0.02
  8420. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8421. end
  8422. Beem:Destroy()
  8423. A1:Destroy()
  8424. A2:Destroy()
  8425. end))
  8426. game:GetService("Debris"):AddItem(vel,0.75)
  8427. attack = false
  8428. hum.WalkSpeed = storehumanoidWS
  8429.  
  8430. end
  8431. end
  8432.  
  8433. function hugg()
  8434. attack = true
  8435. hum.WalkSpeed = 5
  8436. local rsiz = math.random(5,15)
  8437. for i = 0, 2, 0.1 do
  8438. swait()
  8439. 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)
  8440. 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)
  8441. 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)
  8442. 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)
  8443. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8444. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8445. end
  8446. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8447. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8448. hb.Anchored = true
  8449. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8450. local huggedperson = nil
  8451. local act = false
  8452. local alreadydid = false
  8453. for i = 0, 3, 0.1 do
  8454. swait()
  8455. if act == false then
  8456. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8457. if v:FindFirstChild('Head') then
  8458. if alreadydid == false then
  8459. huggedperson = v
  8460. hum.WalkSpeed = 0
  8461. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8462. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8463. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8464. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8465. local radm = math.random(1,3)
  8466. if radm == 1 then
  8467. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8468. elseif radm == 2 then
  8469. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8470. elseif radm == 3 then
  8471. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8472. end
  8473. root.Anchored = true
  8474. coroutine.resume(coroutine.create(function()
  8475. huggedperson.Humanoid.WalkSpeed = 0
  8476. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8477. end))
  8478. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8479. alreadydid = true
  8480. act = true
  8481. print(huggedperson.Name)
  8482. end
  8483. end
  8484. end
  8485. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8486. 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)
  8487. elseif act == true then
  8488. coroutine.resume(coroutine.create(function()
  8489. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8490. end))
  8491. rsiz = math.random(5,15)
  8492. 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)
  8493. 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)
  8494. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8495. end
  8496. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8497. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8498. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8499. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8500. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8501. end
  8502. hb:Destroy()
  8503. if act == true then
  8504. for x = 0, 2 do
  8505. for i = 0, 2, 0.1 do
  8506. swait()
  8507. coroutine.resume(coroutine.create(function()
  8508. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8509. end))
  8510. rsiz = math.random(5,15)
  8511. 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)
  8512. 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)
  8513. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8514. 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)
  8515. 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)
  8516. 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)
  8517. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8518. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8519. end
  8520. for i = 0, 2, 0.1 do
  8521. swait()
  8522. coroutine.resume(coroutine.create(function()
  8523. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8524. end))
  8525. rsiz = math.random(5,15)
  8526. 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)
  8527. 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)
  8528. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8529. 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)
  8530. 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)
  8531. 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)
  8532. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8533. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8534. end
  8535. end
  8536. end
  8537. hum.WalkSpeed = storehumanoidWS
  8538. root.Anchored = false
  8539. if act == true then
  8540. coroutine.resume(coroutine.create(function()
  8541. huggedperson.Humanoid.WalkSpeed = 16
  8542. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8543. end))
  8544. end
  8545. hum.WalkSpeed = storehumanoidWS
  8546. attack = false
  8547. end
  8548.  
  8549. function Counter()
  8550. hum.WalkSpeed = 0
  8551. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8552. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8553. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8554. attack = true
  8555. for i = 0,1,0.1 do
  8556. swait()
  8557. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8558. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8559. 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)
  8560. 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)
  8561. 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)
  8562. 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)
  8563. end
  8564. CameraEnshaking(3,4)
  8565. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8566. 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)
  8567. 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)
  8568. 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)
  8569. coroutine.resume(coroutine.create(function()
  8570. local eff = Instance.new("ParticleEmitter",root)
  8571. eff.Texture = "rbxassetid://363275192"
  8572. eff.LightEmission = 0.95
  8573. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8574. eff.Rate = 10000
  8575. eff.Lifetime = NumberRange.new(1)
  8576. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8577. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8578. eff.Speed = NumberRange.new(10,125)
  8579. eff.Drag = 5
  8580. eff.Rotation = NumberRange.new(-500,500)
  8581. eff.VelocitySpread = 9000
  8582. eff.RotSpeed = NumberRange.new(-50,50)
  8583. local eff2 = eff:Clone()
  8584. eff2.Parent = root
  8585. eff2.Texture = "rbxassetid://284205403"
  8586. eff2.Rate = 10000
  8587. 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)})
  8588. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8589. eff2.Drag = 5
  8590. eff2.Speed = NumberRange.new(10,50)
  8591. eff2.Rotation = NumberRange.new(-500,500)
  8592. eff2.VelocitySpread = 9000
  8593. wait(0.25)
  8594. eff2.Enabled = false
  8595. eff.Enabled = false
  8596. wait(3)
  8597. eff2:Destroy()
  8598. eff:Destroy()
  8599. end))
  8600. for i = 0, 9 do
  8601. 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)
  8602. end
  8603. for i = 0, 24 do
  8604. local rsiz = math.random(5,20)
  8605. 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)
  8606. end
  8607. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8608. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8609. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8610. for i = 0,2,0.1 do
  8611. swait()
  8612. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8613. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8614. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8615. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8616. 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)
  8617. 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)
  8618. end
  8619. hum.WalkSpeed = storehumanoidWS
  8620. attack = false
  8621. end
  8622.  
  8623. function superjump()
  8624. attack = true
  8625. hum.WalkSpeed = 0
  8626. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8627. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8628. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8629. for i = 0, 2, 0.1 do
  8630. swait()
  8631. root.Velocity = vt(0,0,0)
  8632. 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"))
  8633. 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)
  8634. 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)
  8635. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8636. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8637. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8638. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8639. end
  8640. MagniDamage(root, 28, 25,50, 25, "Normal")
  8641. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8642. hum.Jump = true
  8643. swait()
  8644. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8645. 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)
  8646. 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)
  8647. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8648. for i = 0, 3, 0.1 do
  8649. swait()
  8650. 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)
  8651. 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)
  8652. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8653. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8654. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8655. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8656. end
  8657. attack = false
  8658. if equipped == false then
  8659. hum.WalkSpeed = 16
  8660. else
  8661. hum.WalkSpeed = 24
  8662. end
  8663. end
  8664.  
  8665.  
  8666. -------------------------------------
  8667.  
  8668.  
  8669.  
  8670. Humanoid.Animator.Parent = nil
  8671.  
  8672.  
  8673.  
  8674. -------------------------------------
  8675.  
  8676. local attacktype = 1
  8677. mouse.Button1Down:connect(function()
  8678. if attack == false and attacktype == 1 then
  8679. attacktype = 2
  8680. attackone()
  8681. elseif attack == false and attacktype == 2 then
  8682. attacktype = 3
  8683. attacktwo()
  8684. elseif attack == false and attacktype == 3 then
  8685. attacktype = 1
  8686. attackthree()
  8687. elseif attack == false and attacktype == 4 then
  8688. attacktype = 1
  8689. --attackfour()
  8690. end
  8691. end)
  8692. mouse.KeyDown:connect(function(k)
  8693. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8694. --normalmog()
  8695. ModeOfGlitch = 1
  8696. storehumanoidWS = 16
  8697. hum.WalkSpeed = 16
  8698. rainbowmode = false
  8699. chaosmode = false
  8700. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8701. RecolorTextAndRename("Ridgebreaker",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8702. MAINRUINCOLOR = BrickColor.new("Really red")
  8703. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8704. end
  8705. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8706. ModeOfGlitch = 2
  8707. storehumanoidWS = 16
  8708. hum.WalkSpeed = 16
  8709. rainbowmode = false
  8710. chaosmode = false
  8711. RecolorTextAndRename("Sovereign",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8712. newTheme("rbxassetid://1539245059",0,1,0.85)
  8713. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8714. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8715. end
  8716. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8717. ModeOfGlitch = 3
  8718. storehumanoidWS = 14
  8719. hum.WalkSpeed = 14
  8720. rainbowmode = false
  8721. chaosmode = false
  8722. RecolorTextAndRename("Archeon",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8723. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8724. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8725. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8726. end
  8727. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8728. ModeOfGlitch = 4
  8729. storehumanoidWS = 14
  8730. hum.WalkSpeed = 14
  8731. rainbowmode = false
  8732. chaosmode = true
  8733. RecolorTextAndRename("Leviathan",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8734. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8735. MAINRUINCOLOR = BrickColor.new("Crimson")
  8736. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8737. end
  8738. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8739. ModeOfGlitch = 5
  8740. storehumanoidWS = 14
  8741. hum.WalkSpeed = 14
  8742. rainbowmode = false
  8743. chaosmode = false
  8744. RecolorTextAndRename("Borealis",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8745. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8746. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8747. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8748. end
  8749. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8750. ModeOfGlitch = 6
  8751. storehumanoidWS = 65
  8752. hum.WalkSpeed = 65
  8753. rainbowmode = false
  8754. chaosmode = false
  8755. RecolorTextAndRename("Aegis",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8756. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8757. MAINRUINCOLOR = BrickColor.new("White")
  8758. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8759. end
  8760. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8761. ModeOfGlitch = 8
  8762. storehumanoidWS = 100
  8763. hum.WalkSpeed = 100
  8764. rainbowmode = false
  8765. chaosmode = false
  8766. RecolorTextAndRename("Lazarus",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8767. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8768. MAINRUINCOLOR = BrickColor.new("Alder")
  8769. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8770. end
  8771. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8772. ModeOfGlitch = 9
  8773. storehumanoidWS = 85
  8774. hum.WalkSpeed = 85
  8775. rainbowmode = false
  8776. chaosmode = false
  8777. RecolorTextAndRename("Andromeda",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8778. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8779. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8780. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8781. end
  8782. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8783. ModeOfGlitch = 5555
  8784. storehumanoidWS = 30
  8785. hum.WalkSpeed = 30
  8786. rainbowmode = false
  8787. chaosmode = false
  8788. RecolorTextAndRename("Vanguard",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8789. newTheme("rbxassetid://736003449",0,1,1.25)
  8790. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8791. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8792. end
  8793. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8794. CalamityTrans()
  8795. end
  8796. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8797. InsaneTrans()
  8798. end
  8799. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8800. ModeOfGlitch = 55469696922
  8801. storehumanoidWS = 95
  8802. hum.WalkSpeed = 95
  8803. rainbowmode = false
  8804. chaosmode = false
  8805. RecolorTextAndRename("Icarus",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8806. newTheme("rbxassetid://790661474",0,1.005,0.9)
  8807. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8808. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8809. end
  8810. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8811. ModeOfGlitch = 4367677813
  8812. storehumanoidWS = 75
  8813. hum.WalkSpeed = 75
  8814. rainbowmode = false
  8815. chaosmode = false
  8816. RecolorTextAndRename("Nyx",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8817. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8818. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8819. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8820. end
  8821. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8822. ModeOfGlitch = 9999999921111
  8823. storehumanoidWS = 145
  8824. hum.WalkSpeed = 145
  8825. rainbowmode = false
  8826. chaosmode = false
  8827. RecolorTextAndRename("Behemoth",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8828. newTheme("rbxassetid://643309199",0,1.01,1)
  8829. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8830. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8831. end
  8832. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8833. ModeOfGlitch = 999999999556
  8834. storehumanoidWS = 115
  8835. hum.WalkSpeed = 115
  8836. rainbowmode = false
  8837. chaosmode = false
  8838. RecolorTextAndRename("Hasatan",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8839. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8840. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8841. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8842. end
  8843. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8844. ModeOfGlitch = 12
  8845. storehumanoidWS = 19
  8846. hum.WalkSpeed = 19
  8847. rainbowmode = false
  8848. chaosmode = false
  8849. print'Mode was meant for Vengeful Program or those other fans out there'
  8850. RecolorTextAndRename("Apocalypse",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8851. newTheme("rbxassetid://1873219898",0,1,1.7)
  8852. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8853. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8854. end
  8855.  
  8856. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8857. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8858. for i = 0, 49 do
  8859. 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)
  8860. end
  8861. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8862. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8863. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8864. hum.WalkSpeed = storehumanoidWS
  8865. attack = false
  8866. ModeOfGlitch = 50
  8867. storehumanoidWS = 18
  8868. hum.WalkSpeed = 18
  8869. rainbowmode = false
  8870. chaosmode = false
  8871. RecolorTextAndRename("Warlock",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8872. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8873. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8874. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8875. end
  8876.  
  8877. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8878. hum.WalkSpeed = 0
  8879. attack = true
  8880. for i = 0,1,0.1 do
  8881. swait()
  8882. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8883. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8884. 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)
  8885. 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)
  8886. 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)
  8887. 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)
  8888. end
  8889. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8890. for i = 0, 148 do
  8891. 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)
  8892. end
  8893. for i = 0,3,0.1 do
  8894. 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)
  8895. end
  8896. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8897. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8898. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8899. hum.WalkSpeed = storehumanoidWS
  8900. attack = false
  8901. ModeOfGlitch = 66
  8902. storehumanoidWS = 16
  8903. hum.WalkSpeed = 16
  8904. rainbowmode = false
  8905. chaosmode = false
  8906. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8907. MAINRUINCOLOR = BrickColor.new("Really black")
  8908. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8909. for i = 0,2,0.1 do
  8910. swait()
  8911. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8912. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8913. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8914. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8915. 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)
  8916. 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)
  8917. end
  8918. end
  8919.  
  8920. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8921. hum.WalkSpeed = 0
  8922. attack = true
  8923. for i = 0,1,0.1 do
  8924. swait()
  8925. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8926. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8927. 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)
  8928. 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)
  8929. 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)
  8930. 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)
  8931. end
  8932. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8933. for i = 0, 49 do
  8934. 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)
  8935. end
  8936. for i = 0,3,0.1 do
  8937. 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)
  8938. end
  8939. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8940. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8941. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8942. hum.WalkSpeed = storehumanoidWS
  8943. attack = false
  8944. ModeOfGlitch = 13
  8945. storehumanoidWS = 45
  8946. hum.WalkSpeed = 45
  8947. rainbowmode = false
  8948. chaosmode = false
  8949. RecolorTextAndRename("Legionnaire",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8950. newTheme("rbxassetid://190845741",0,1,1.35)
  8951. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8952. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8953. for i = 0,2,0.1 do
  8954. swait()
  8955. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8956. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8957. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8958. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8959. 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)
  8960. 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)
  8961. end
  8962. end
  8963. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8964. ModeOfGlitch = 1002
  8965. storehumanoidWS = 45
  8966. hum.WalkSpeed = 45
  8967. rainbowmode = false
  8968. chaosmode = false
  8969. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8970. newTheme("rbxassetid://2027652726",0,1,0.85)
  8971. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8972. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8973. end
  8974. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8975. ModeOfGlitch = 1003
  8976. storehumanoidWS = 90
  8977. hum.WalkSpeed = 90
  8978. rainbowmode = false
  8979. chaosmode = false
  8980. RecolorTextAndRename("Hawklight",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8981. newTheme("rbxassetid://257453119",0,1,0.85)
  8982. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8983. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8984. end
  8985. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8986. ModeOfGlitch = 1264532489
  8987. storehumanoidWS = 175
  8988. hum.WalkSpeed = 175
  8989. rainbowmode = false
  8990. chaosmode = false
  8991. RecolorTextAndRename("Osiris",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8992. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8993. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8994. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8995. end
  8996. if k == "l" and mutedtog == false then
  8997. mutedtog = true
  8998. kan.Volume = 0.85
  8999. elseif k == "l" and mutedtog == true then
  9000. mutedtog = false
  9001. kan.Volume = 0.85
  9002. end
  9003. if k == "p" and toggleTag == false then
  9004. toggleTag = true
  9005. modet.TextTransparency = 0
  9006. modet.TextStrokeTransparency = 0
  9007. elseif k == "p" and toggleTag == true then
  9008. toggleTag = false
  9009. modet.TextTransparency = 1
  9010. modet.TextStrokeTransparency = 1
  9011. end
  9012. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9013. ExtinctiveHeartbreak()
  9014. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9015. HeavenlyDisk()
  9016. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9017. DualGleamingBeam()
  9018. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9019. BanishingOrb()
  9020. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9021. hugg()
  9022. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9023. cutesigh()
  9024. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9025. Counter()
  9026. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9027. superjump()
  9028. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9029. dragin()
  9030. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9031. UniversalCollapse()
  9032. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9033. PureBomb()
  9034. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9035. Beams()
  9036. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9037. BeamOfDeath()
  9038. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9039. THE_TRUE_POWER_OF_VIOLENCE()
  9040. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9041. GleamingBeam()
  9042. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9043. ViolentRing()
  9044. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9045. CorruptionEvent()
  9046. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9047. CorruptBlink()
  9048. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9049. scattercorrupt()
  9050. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9051. shytaunty()
  9052. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9053. RapidBurst()
  9054. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9055. InsaneDrop()
  9056. wait(2)
  9057. ChaosEND()
  9058. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9059. ChaosEND()
  9060. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9061. CyberSlash()
  9062. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9063. smiter()
  9064. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9065. SpeedDrop()
  9066. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9067. --DivineLights()
  9068. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9069. DivineBlast()
  9070. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9071. EquinoxOrbs()
  9072. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9073. yinyangi()
  9074. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9075. FallenOrbs()
  9076. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9077. StarfallEX()
  9078. end
  9079. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9080. FallenDEMISE()
  9081. end
  9082. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9083. EndGROUND()
  9084. end
  9085. end)
  9086.  
  9087. coroutine.resume(coroutine.create(function()
  9088. while true do
  9089. swait()
  9090. 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
  9091. 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)
  9092. end
  9093. if ModeOfGlitch == 5555 then
  9094. 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)
  9095. end
  9096. end
  9097. end))
  9098. --[[coroutine.resume(coroutine.create(function()
  9099. while true do
  9100. swait(2)
  9101. if chaosmode == true then
  9102. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9103. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9104. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9105. RecolorTextAndRename("Retribution",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9106. for i, v in pairs(mw1:GetChildren()) do
  9107. if v:IsA("Part") then
  9108. v.Transparency = 0.75
  9109. v.BrickColor = BrickColor.random()
  9110. v.Material = "Neon"
  9111. end
  9112. end
  9113. for i, v in pairs(m2:GetChildren()) do
  9114. if v:IsA("Part") then
  9115. v.BrickColor = BrickColor.random()
  9116. v.Material = "Neon"
  9117. end
  9118. end
  9119. end
  9120. end
  9121. end))]]
  9122.  
  9123.  
  9124.  
  9125. ff = Instance.new("ForceField",char)
  9126. ff.Visible = false
  9127. hum.Name = "Base"
  9128. hum.MaxHealth = 1.0E298
  9129. hum.Health = 1.0E298
  9130. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9131. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9132. hum.MaxHealth = 1.0E298
  9133. hum.Health = 1.0E298
  9134. end
  9135. end)
  9136.  
  9137. local Hair = Instance.new("Part", char)
  9138. Hair.Name = "Hair"
  9139. Hair.CanCollide = false
  9140. Hair.BrickColor = BrickColor.new("Institutional white")
  9141. Hair.Transparency = 0
  9142. Hair.Material = "Plastic"
  9143. Hair.Size = Vector3.new(1, 1, 2)
  9144. Hair.TopSurface = Enum.SurfaceType.Smooth
  9145. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9146.  
  9147.  
  9148. local bguis = Instance.new("BillboardGui",tors)
  9149. bguis.Size = UDim2.new(25, 0, 25, 0)
  9150. local imgca = Instance.new("ImageLabel",bguis)
  9151. imgca.BackgroundTransparency = 1
  9152. imgca.ImageTransparency = 1
  9153. imgca.Size = UDim2.new(1,0,1,0)
  9154. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9155. imgca.ImageColor3 = Color3.new(0,0,0)
  9156.  
  9157.  
  9158. local bguis2 = Instance.new("BillboardGui",tors)
  9159. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9160. local imgca2 = Instance.new("ImageLabel",bguis)
  9161. imgca2.BackgroundTransparency = 1
  9162. imgca2.ImageTransparency = 1
  9163. imgca2.Size = UDim2.new(1,0,1,0)
  9164. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9165. imgca2.ImageColor3 = Color3.new(0,0,0)
  9166.  
  9167.  
  9168.  
  9169. idleanim=.4
  9170. while true do
  9171. if mutedtog == false then
  9172. kan.Volume = currentVol
  9173. elseif mutedtog == true then
  9174. kan.Volume = 0
  9175. end
  9176. kan.PlaybackSpeed = currentPitch
  9177. kan.Pitch = currentPitch
  9178. kan.SoundId = currentThemePlaying
  9179. kan.Looped = true
  9180. kan.Parent = char
  9181. kan:Resume()
  9182. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9183. imgca.ImageTransparency = 1
  9184. imgca2.ImageTransparency = 1
  9185. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9186. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9187. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9188. elseif ModeOfGlitch == 13 then
  9189. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9190. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9191. end
  9192. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9193. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9194. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9195. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9196. coroutine.resume(coroutine.create(function()
  9197. if chaosmode == true then
  9198. for i, v in pairs(mw1:GetChildren()) do
  9199. if v:IsA("Part") then
  9200. v.Transparency = 0
  9201. v.BrickColor = BrickColor.random()
  9202. v.Material = "Neon"
  9203. end
  9204. end
  9205. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9206. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9207. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9208. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9209. end
  9210. end))
  9211. coroutine.resume(coroutine.create(function()
  9212. if ModeOfGlitch == 66 then
  9213. for i, v in pairs(m:GetChildren()) do
  9214. if v:IsA("Part") then
  9215. v.Transparency = 0
  9216. v.BrickColor = BrickColor.random()
  9217. v.Material = "Neon"
  9218. end
  9219. end
  9220. for i, v in pairs(m2:GetChildren()) do
  9221. if v:IsA("Part") then
  9222. v.Transparency = 0
  9223. v.BrickColor = BrickColor.random()
  9224. v.Material = "Neon"
  9225. end
  9226. end
  9227. for i, v in pairs(mw1:GetChildren()) do
  9228. if v:IsA("Part") then
  9229. v.Transparency = 0
  9230. v.BrickColor = BrickColor.random()
  9231. v.Material = "Neon"
  9232. end
  9233. end
  9234. for i, v in pairs(extrawingmod1:GetChildren()) do
  9235. if v:IsA("Part") then
  9236. v.Transparency = 0.5
  9237. v.BrickColor = BrickColor.random()
  9238. v.Material = "Neon"
  9239. end
  9240. end
  9241. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9242. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9243. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9244. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9245. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9246. end
  9247. end))
  9248.  
  9249. coroutine.resume(coroutine.create(function()
  9250. if ModeOfGlitch == 66 then
  9251. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9252. end
  9253. end))
  9254.  
  9255. if chaosmode == false then
  9256. modet.Position = UDim2.new(0,0,0,0)
  9257. modet.Rotation = -5 * math.cos(sine / 32)
  9258. techc.Rotation = techc.Rotation + 1
  9259. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9260. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9261. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9262. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9263. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9264. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9265. else
  9266. techc.Rotation = techc.Rotation + 1
  9267. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9268. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9269. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9270. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9271. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9272. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9273. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9274. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9275. end
  9276. CameraManager()
  9277. swait()
  9278. 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)
  9279. 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)
  9280. 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)
  9281. 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)
  9282. 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)
  9283. 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)
  9284. 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)
  9285. 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)
  9286. 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)
  9287. 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)
  9288. 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)
  9289. 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)
  9290. sine = sine + change
  9291. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9292. local velderp=RootPart.Velocity.y
  9293. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9294. coroutine.resume(coroutine.create(function()
  9295. 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
  9296. if hitfloor ~= nil then
  9297. 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"))
  9298. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9299. 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)
  9300. end
  9301. end
  9302. end
  9303. end))
  9304. if equipped==true or equipped==false then
  9305. if attack==false then
  9306. idle=idle+1
  9307. else
  9308. idle=0
  9309. end
  9310. if idle>=500 then
  9311. if attack==false then
  9312. --Sheath()
  9313. end
  9314. end
  9315. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9316. Anim="Jump"
  9317. if attack==false then
  9318. 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)
  9319. 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)
  9320. 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)
  9321. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9322. 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)
  9323. 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)
  9324. end
  9325. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9326. Anim="Fall"
  9327. if attack==false then
  9328. 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)
  9329. 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)
  9330. 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)
  9331. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9332. 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)
  9333. 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)
  9334. end
  9335. elseif torvel<1 and hitfloor~=nil then
  9336. Anim="Idle"
  9337. if attack==false then
  9338. if ModeOfGlitch == 1 then
  9339. local snap = math.random(1,10)
  9340. if snap == 1 then
  9341. 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)
  9342. end
  9343. 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)
  9344. 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)
  9345. 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)
  9346. 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)
  9347. 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)
  9348. 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)
  9349. elseif ModeOfGlitch == 2 then
  9350. 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)
  9351. 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)
  9352. 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)
  9353. 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)
  9354. 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)
  9355. 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)
  9356. elseif ModeOfGlitch == 2 then
  9357. 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)
  9358. 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)
  9359. 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)
  9360. 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)
  9361. 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)
  9362. 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)
  9363. elseif ModeOfGlitch == 50 then
  9364. 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)
  9365. 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)
  9366. 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)
  9367. 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)
  9368. 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)
  9369. 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)
  9370. elseif ModeOfGlitch == 5555 then --5555
  9371. 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)
  9372. 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)
  9373. 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)
  9374. 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)
  9375. 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)
  9376. 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)
  9377. elseif ModeOfGlitch == 1002 then
  9378. 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)
  9379. 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)
  9380. 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)
  9381. 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)
  9382. 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)
  9383. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9384. elseif ModeOfGlitch == 12 then
  9385. 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)
  9386. 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)
  9387. 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)
  9388. 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)
  9389. 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)
  9390. 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)
  9391. elseif ModeOfGlitch == 3 then
  9392. local snap = math.random(1,32)
  9393. if snap == 1 then
  9394. 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)
  9395. end
  9396. 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)
  9397. 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)
  9398. 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)
  9399. 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)
  9400. 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)
  9401. 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)
  9402. elseif ModeOfGlitch == 4 then
  9403. local snap = math.random(1,5)
  9404. if snap == 1 then
  9405. 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)
  9406. 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)
  9407. 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)
  9408. end
  9409. 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)
  9410. 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)
  9411. 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)
  9412. 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)
  9413. 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)
  9414. 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)
  9415. elseif ModeOfGlitch == 66 then
  9416. local snap = math.random(1,2)
  9417. if snap == 1 then
  9418. 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)
  9419. 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)
  9420. 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)
  9421. end
  9422. 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)
  9423. 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)
  9424. 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)
  9425. 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)
  9426. 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)
  9427. 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)
  9428. elseif ModeOfGlitch == 5 then
  9429. 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)
  9430. 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)
  9431. 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)
  9432. 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)
  9433. 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)
  9434. 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)
  9435. elseif ModeOfGlitch == 6 then
  9436. 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)
  9437. 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)
  9438. 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)
  9439. 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)
  9440. 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)
  9441. 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)
  9442. elseif ModeOfGlitch == 13 then
  9443. 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)
  9444. 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)
  9445. 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)
  9446. 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)
  9447. 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)
  9448. 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)
  9449. elseif ModeOfGlitch == 8 then
  9450. 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)
  9451. 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)
  9452. 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)
  9453. 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)
  9454. 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)
  9455. 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)
  9456. elseif ModeOfGlitch == 9 then
  9457. 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)
  9458. 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))
  9459. 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)
  9460. 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)
  9461. 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)
  9462. 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)
  9463. 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)
  9464. 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)
  9465. elseif ModeOfGlitch == 1003 then
  9466. 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)
  9467. 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)
  9468. 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)
  9469. 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)
  9470. 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)
  9471. 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)
  9472.  
  9473. elseif ModeOfGlitch == 8889 then
  9474. 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)
  9475. 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)
  9476. 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)
  9477. 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)
  9478. 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)
  9479. 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)
  9480. elseif ModeOfGlitch == 1264532489 then
  9481. 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)
  9482. 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)
  9483. 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)
  9484. 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)
  9485. 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)
  9486. 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)
  9487. 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)
  9488. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9489. 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)
  9490. 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)
  9491. 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)
  9492. 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)
  9493. 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)
  9494. 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)
  9495. elseif ModeOfGlitch == 4367677813 then
  9496. 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)
  9497. 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)
  9498. 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)
  9499. 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)
  9500. 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)
  9501. 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)
  9502. elseif ModeOfGlitch == 55469696922 then --5555
  9503. 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)
  9504. 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)
  9505. 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)
  9506. 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)
  9507. 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)
  9508. 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)
  9509. elseif ModeOfGlitch == 999999999556 then
  9510. 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)
  9511. 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)
  9512. 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)
  9513. 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)
  9514. 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)
  9515. 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)
  9516. end
  9517. end
  9518. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9519. Anim="Walk"
  9520. if attack==false and ModeOfGlitch ~= 66 then
  9521. 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)
  9522. 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)
  9523. 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)
  9524. 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)
  9525. 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)
  9526. 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)
  9527. elseif attack==false and ModeOfGlitch == 66 then
  9528. 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)
  9529. 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)
  9530. 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)
  9531. 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)
  9532. 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)
  9533. 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)
  9534. end
  9535. elseif torvel>=22 and hitfloor~=nil then
  9536. Anim="Run"
  9537. if attack==false then
  9538. 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
  9539. 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)
  9540. 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)
  9541. 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)
  9542. 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)
  9543. 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)
  9544. 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)
  9545. if ModeOfGlitch == 12 then
  9546. 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)
  9547. 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)
  9548. 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)
  9549. 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)
  9550. 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)
  9551. 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)
  9552. end
  9553. if ModeOfGlitch == 9 then
  9554. 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)
  9555. 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))
  9556. 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)
  9557. end
  9558. 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
  9559. 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)
  9560. 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)
  9561. 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)
  9562. 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)
  9563. 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)
  9564. 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)
  9565. elseif ModeOfGlitch == 13 then
  9566. 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)
  9567. 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)
  9568. 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)
  9569. 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)
  9570. 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)
  9571. 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)
  9572. end
  9573. end
  9574. end
  9575. end
  9576. end
Advertisement
Add Comment
Please, Sign In to add comment