Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 469.66 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4. script.Parent = Player.Character
  5. local CAS = {Actions={}}
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput_Event"
  8. Event.Parent = Player.Character
  9. local fakeEvent = function()
  10. local t = {_fakeEvent=true}
  11. t.Connect = function(self,f)self.Function=f end
  12. t.connect = t.Connect
  13. return t
  14. end
  15. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17. function CAS:BindAction(name,fun,touch,...)
  18. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19. end
  20. function CAS:UnbindAction(name)
  21. CAS.Actions[name] = nil
  22. end
  23. local function te(self,ev,...)
  24. local t = m[ev]
  25. if t and t._fakeEvent and t.Function then
  26. t.Function(...)
  27. end
  28. end
  29. m.TrigEvent = te
  30. UIS.TrigEvent = te
  31. Event.OnServerEvent:Connect(function(plr,io)
  32. if plr~=Player then return end
  33. if io.isMouse then
  34. m.Target = io.Target
  35. m.Hit = io.Hit
  36. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37. if io.UserInputState == Enum.UserInputState.Begin then
  38. m:TrigEvent("Button1Down")
  39. else
  40. m:TrigEvent("Button1Up")
  41. end
  42. else
  43. for n,t in pairs(CAS.Actions) do
  44. for _,k in pairs(t.Keys) do
  45. if k==io.KeyCode then
  46. t.Function(t.Name,io.UserInputState,io)
  47. end
  48. end
  49. end
  50. if io.UserInputState == Enum.UserInputState.Begin then
  51. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52. UIS:TrigEvent("InputBegan",io,false)
  53. else
  54. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent("InputEnded",io,false)
  56. end
  57. end
  58. end)
  59. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60. end
  61.  
  62. wait(0.2)
  63.  
  64.  
  65. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  66. The super switcher.
  67. Velnorum is one of the first wielders.
  68.  
  69. Created, Reworked by NoobyGames12
  70. Edited by GodzPlaysRB
  71. Edited by wanTH092 (Gam_Filano CH)
  72. SpectrumGlitcher Developers ^^^
  73. ]])
  74.  
  75.  
  76. ------------- ORIGINAL WIELDER OC: Velnorum
  77. print([[Icons:
  78. ! = New
  79. ? = Spoilers
  80. * = Exclusivity
  81. C = Changes
  82.  
  83. ]])
  84. warn([[V 4.35 Update Log:
  85. ! - Added Betrayal mode (Chaos M)
  86.  
  87. !? - Added z move to destiny
  88. !c? = Added calamity transition
  89. !? - upcoming transition for some mode..
  90. - Removed some voice sound effects because they didnt sound right
  91. ]])
  92. --- its obs smooth af do not touch
  93. ---- Sources and functions might be taken from others
  94. plr = game:GetService("Players").LocalPlayer
  95. char = plr.Character
  96. hum = char.Humanoid
  97. local cam = game.Workspace.CurrentCamera
  98. Camera = cam
  99. local CamInterrupt = false
  100. local TwoD = false
  101. local TargetInfo = {nil, nil}
  102. cam.CameraType = "Custom"
  103. t = char.Torso
  104. h = char.Head
  105. ra = char["Right Arm"]
  106. la = char["Left Arm"]
  107. rl = char["Right Leg"]
  108. ll = char["Left Leg"]
  109. tors = char.Torso
  110. lleg = char["Left Leg"]
  111. root = char.HumanoidRootPart
  112. hed = char.Head
  113. rleg = char["Right Leg"]
  114. rarm = char["Right Arm"]
  115. larm = char["Left Arm"]
  116. radian = math.rad
  117. random = math.random
  118. Vec3 = Vector3.new
  119. Inst = Instance.new
  120. cFrame = CFrame.new
  121. Euler = CFrame.fromEulerAnglesXYZ
  122. vt = Vector3.new
  123. bc = BrickColor.new
  124. br = BrickColor.random
  125. it = Instance.new
  126. cf = CFrame.new
  127. local Player_Size = 0
  128. cam = game.Workspace.CurrentCamera
  129. CF = CFrame.new
  130. angles = CFrame.Angles
  131. attack = false
  132. Euler = CFrame.fromEulerAnglesXYZ
  133. Rad = math.rad
  134. IT = Instance.new
  135. BrickC = BrickColor.new
  136. Cos = math.cos
  137. Acos = math.acos
  138. Sin = math.sin
  139. Asin = math.asin
  140. Abs = math.abs
  141. Mrandom = math.random
  142. Floor = math.floor
  143. IT = Instance.new
  144. CF = CFrame.new
  145. VT = Vector3.new
  146. RAD = math.rad
  147. C3 = Color3.new
  148. UD2 = UDim2.new
  149. BRICKC = BrickColor.new
  150. ANGLES = CFrame.Angles
  151. EULER = CFrame.fromEulerAnglesXYZ
  152. COS = math.cos
  153. ACOS = math.acos
  154. SIN = math.sin
  155. ASIN = math.asin
  156. ABS = math.abs
  157. MRANDOM = math.random
  158. FLOOR = math.floor
  159. local SINE = 0
  160.  
  161. local Booleans = {
  162. CamFollow = true,
  163. GyroUse = true
  164. }
  165.  
  166. function lerp(object, newCFrame, alpha)
  167. return object:lerp(newCFrame, alpha)
  168. end
  169.  
  170. local Directer = Inst("BodyGyro", root)
  171. Directer.MaxTorque = Vec3(0, 0, 0)
  172. Directer.P = 600000
  173. local CPart = Inst("Part")
  174. CPart.Anchored = true
  175. CPart.CanCollide = false
  176. CPart.Locked = true
  177. CPart.Transparency = 1
  178.  
  179. local rainbowmode = false
  180. local chaosmode = false
  181.  
  182. local kan = Instance.new("Sound",tors)
  183. kan.Volume = 0.85
  184. kan.TimePosition = 0
  185. kan.PlaybackSpeed = 1
  186. kan.Pitch = 1
  187. kan.SoundId = "rbxassetid://1255569288"
  188. kan.Name = "wrecked"
  189. kan.Looped = true
  190. kan:Play()
  191.  
  192. local currentThemePlaying = kan.SoundId
  193. local currentPitch = kan.Pitch
  194. local currentVol = kan.Volume
  195. function newTheme(ID,timepos,pitch,vol)
  196. local kanz = kan
  197. --kanz:Stop()
  198. kanz.Volume = vol
  199. --kanz.TimePosition = timepos
  200. kanz.PlaybackSpeed = pitch
  201. kanz.Pitch = pitch
  202. kanz.SoundId = ID
  203. kanz.Name = "wrecked"
  204. kanz.Looped = true
  205. currentThemePlaying = kanz.SoundId
  206. currentVol = kanz.Volume
  207. currentPitch = kanz.Pitch
  208. --kanz:Play()
  209. --coroutine.resume(coroutine.create(function()
  210. --wait(0.05)
  211. --end))
  212. end
  213.  
  214.  
  215. function newThemeCust(ID,timepos,pitch,vol)
  216. local kanz = kan
  217. kanz:Stop()
  218. kanz.Volume = vol
  219. kanz.TimePosition = timepos
  220. kanz.PlaybackSpeed = pitch
  221. kanz.Pitch = pitch
  222. kanz.SoundId = ID
  223. kanz.Name = "wrecked"
  224. kanz.Looped = true
  225. currentThemePlaying = kanz.SoundId
  226. currentVol = kanz.Volume
  227. currentPitch = kanz.Pitch
  228. kanz:Play()
  229. coroutine.resume(coroutine.create(function()
  230. wait(0.05)
  231. end))
  232. end
  233.  
  234. local mutedtog = false
  235.  
  236. function CameraEnshaking(Length,Intensity)
  237. coroutine.resume(coroutine.create(function()
  238. local intensity = 1*Intensity
  239. local rotM = 0.01*Intensity
  240. for i = 0, Length, 0.1 do
  241. swait()
  242. intensity = intensity - 0.05*Intensity/Length
  243. rotM = rotM - 0.0005*Intensity/Length
  244. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  245. 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)
  246. end
  247. Humanoid.CameraOffset = Vec3(0, 0, 0)
  248. end))
  249. end
  250. CamShake=function(Part,Distan,Power,Times)
  251. local de=Part.Position
  252. for i,v in pairs(workspace:children()) do
  253. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  254. for _,c in pairs(v:children()) do
  255. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  256. local Noob=v.Humanoid
  257. if Noob~=nil then
  258. coroutine.resume(coroutine.create(function()
  259. FV = Instance.new("BoolValue", Noob)
  260. FV.Name = "CameraShake"
  261. for ShakeNum=1,Times do
  262. swait()
  263. local ef=Power
  264. if ef>=1 then
  265. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  266. else
  267. ef=Power*10
  268. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  269. end
  270. end
  271. Humanoid.CameraOffset = Vector3.new(0,0,0)
  272. FV:Destroy()
  273. end))
  274. CameraShake(Times, Power, Noob)
  275. end
  276. end
  277. end
  278. end
  279. end
  280. end
  281.  
  282. local toggleTag = true
  283. local bilguit = Instance.new("BillboardGui", hed)
  284. bilguit.Adornee = nil
  285. bilguit.Name = "ModeName"
  286. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  287. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  288. local modet = Instance.new("TextLabel", bilguit)
  289. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  290. modet.FontSize = "Size8"
  291. modet.TextScaled = true
  292. modet.TextTransparency = 0
  293. modet.BackgroundTransparency = 1
  294. modet.TextTransparency = 0
  295. modet.TextStrokeTransparency = 0
  296. modet.Font = "Antique"
  297. modet.TextStrokeColor3 = Color3.new(1,0,0)
  298. modet.TextColor3 = Color3.new(0.25,0,0)
  299. modet.Text = "MAYHEM"
  300.  
  301.  
  302. function chatfunc(text,color,typet,font,timeex)
  303. local chat = coroutine.wrap(function()
  304. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  305. Character:FindFirstChild("TalkingBillBoard"):destroy()
  306. end
  307. local naeeym2 = Instance.new("BillboardGui",Character)
  308. naeeym2.Size = UDim2.new(0,100,0,40)
  309. naeeym2.StudsOffset = Vector3.new(0,3,0)
  310. naeeym2.Adornee = Character.Head
  311. naeeym2.Name = "TalkingBillBoard"
  312. local tecks2 = Instance.new("TextLabel",naeeym2)
  313. tecks2.BackgroundTransparency = 1
  314. tecks2.BorderSizePixel = 0
  315. tecks2.Text = ""
  316. tecks2.Font = font
  317. tecks2.TextSize = 30
  318. tecks2.TextStrokeTransparency = 0
  319. tecks2.TextColor3 = color
  320. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  321. tecks2.Size = UDim2.new(1,0,0.5,0)
  322. local tecks3 = Instance.new("TextLabel",naeeym2)
  323. tecks3.BackgroundTransparency = 1
  324. tecks3.BorderSizePixel = 0
  325. tecks3.Text = ""
  326. tecks3.Font = font
  327. tecks3.TextSize = 30
  328. tecks3.TextStrokeTransparency = 0
  329. if typet == "Inverted" then
  330. tecks3.TextColor3 = Color3.new(0,0,0)
  331. tecks3.TextStrokeColor3 = color
  332. elseif typet == "Normal" then
  333. tecks3.TextColor3 = color
  334. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  335. end
  336. tecks3.Size = UDim2.new(1,0,0.5,0)
  337. coroutine.resume(coroutine.create(function()
  338. while true do
  339. swait(1)
  340. if chaosmode == true then
  341. tecks2.TextColor3 = BrickColor.random().Color
  342. tecks3.TextStrokeColor3 = BrickColor.random().Color
  343. end
  344. end
  345. end))
  346. modet.TextTransparency = modet.TextTransparency + 1
  347. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  348. for i = 0, 74*timeex do
  349. swait()
  350. modet.TextTransparency = 1
  351. modet.TextStrokeTransparency = 1
  352. tecks2.Text = text
  353. tecks3.Text = text
  354. end
  355. local randomrot = math.random(1,2)
  356. if randomrot == 1 then
  357. for i = 1, 50 do
  358. swait()
  359. tecks2.Text = text
  360. tecks3.Text = text
  361. modet.TextTransparency = modet.TextTransparency - .02
  362. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  363. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  364. tecks2.TextTransparency = tecks2.TextTransparency + .04
  365. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  366. tecks3.TextTransparency = tecks2.TextTransparency + .04
  367. end
  368. elseif randomrot == 2 then
  369. for i = 1, 50 do
  370. swait()
  371. tecks2.Text = text
  372. tecks3.Text = text
  373. modet.TextTransparency = modet.TextTransparency - .02
  374. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  375. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  376. tecks2.TextTransparency = tecks2.TextTransparency + .04
  377. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  378. tecks3.TextTransparency = tecks2.TextTransparency + .04
  379. end
  380. end
  381. modet.TextTransparency = 0
  382. modet.TextStrokeTransparency = 0
  383. if toggleTag == false then
  384. modet.TextTransparency = 1
  385. modet.TextStrokeTransparency = 1
  386. end
  387. naeeym2:Destroy()
  388. end)
  389. chat()
  390. end
  391.  
  392. function bosschatfunc(text,color,watval)
  393. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  394. coroutine.resume(coroutine.create(function()
  395. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  396. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  397. end
  398. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  399. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  400. scrg.Name = "Dialog"
  401. local txtlb = Instance.new("TextLabel",scrg)
  402. txtlb.Text = ""
  403. txtlb.Font = "Bodoni"
  404. txtlb.TextColor3 = Color3.new(0,0,0)
  405. txtlb.TextStrokeTransparency = 0
  406. txtlb.BackgroundTransparency = 0.75
  407. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  408. txtlb.TextStrokeColor3 = color
  409. txtlb.TextScaled = true
  410. txtlb.Size = UDim2.new(1,0,0.25,0)
  411. txtlb.TextXAlignment = "Left"
  412. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  413. local txtlb2 = Instance.new("TextLabel",scrg)
  414. txtlb2.Text = plr.Name.." The Glitcher:"
  415. txtlb2.Font = "Arcade"
  416. txtlb2.TextColor3 = Color3.new(0,0,0)
  417. txtlb2.TextStrokeTransparency = 0
  418. txtlb2.BackgroundTransparency = 1
  419. txtlb2.TextStrokeColor3 = color
  420. txtlb2.TextSize = 40
  421. txtlb2.Size = UDim2.new(1,0,0.25,0)
  422. txtlb2.TextXAlignment = "Left"
  423. txtlb2.Position = UDim2.new(0,0,1,0)
  424. local fvalen = 0.55
  425. local fval = -0.49
  426. coroutine.resume(coroutine.create(function()
  427. while true do
  428. swait()
  429. if chaosmode == true then
  430. txtlb.Rotation = math.random(-1,1)
  431. txtlb2.Rotation = math.random(-1,1)
  432. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  433. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  434. txtlb.TextStrokeColor3 = BrickColor.random().Color
  435. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  436. end
  437. end
  438. end))
  439. coroutine.resume(coroutine.create(function()
  440. while true do
  441. swait()
  442. if scrg.Parent ~= nil then
  443. fvalen = fvalen - 0.0001
  444. elseif scrg.Parent == nil then
  445. break
  446. end
  447. end
  448. end))
  449. local flol = 1.75
  450. local flil = 1.6
  451. coroutine.resume(coroutine.create(function()
  452. for i = 0, 9 do
  453. swait()
  454. fval = fval + 0.05
  455. flol = flol - 0.1
  456. flil = flil - 0.1
  457. txtlb.Text = ""
  458. txtlb.Position = UDim2.new(0,0,flol,0)
  459. txtlb2.Position = UDim2.new(0,0,flil,0)
  460. end
  461. txtlb.Text = text
  462. wait(watval)
  463. local valinc = 0
  464. for i = 0, 99 do
  465. swait()
  466. valinc = valinc + 0.0001
  467. flol = flol + valinc
  468. flil = flil + valinc
  469. txtlb.Rotation = txtlb.Rotation + valinc*20
  470. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  471. txtlb.Position = UDim2.new(0,0,flol,0)
  472. txtlb2.Position = UDim2.new(0,0,flil,0)
  473. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  474. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  475. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  476. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  477. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  478. end
  479. scrg:Destroy()
  480. end))
  481. end))
  482. end
  483. end
  484.  
  485.  
  486. local Create = LoadLibrary("RbxUtility").Create
  487.  
  488. CFuncs = {
  489. ["Part"] = {
  490. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  491. local Part = Create("Part"){
  492. Parent = Parent,
  493. Reflectance = Reflectance,
  494. Transparency = Transparency,
  495. CanCollide = false,
  496. Locked = true,
  497. BrickColor = BrickColor.new(tostring(BColor)),
  498. Name = Name,
  499. Size = Size,
  500. Material = Material,
  501. }
  502. RemoveOutlines(Part)
  503. return Part
  504. end;
  505. };
  506.  
  507. ["Mesh"] = {
  508. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  509. local Msh = Create(Mesh){
  510. Parent = Part,
  511. Offset = OffSet,
  512. Scale = Scale,
  513. }
  514. if Mesh == "SpecialMesh" then
  515. Msh.MeshType = MeshType
  516. Msh.MeshId = MeshId
  517. end
  518. return Msh
  519. end;
  520. };
  521.  
  522. ["Mesh"] = {
  523. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  524. local Msh = Create(Mesh){
  525. Parent = Part,
  526. Offset = OffSet,
  527. Scale = Scale,
  528. }
  529. if Mesh == "SpecialMesh" then
  530. Msh.MeshType = MeshType
  531. Msh.MeshId = MeshId
  532. end
  533. return Msh
  534. end;
  535. };
  536.  
  537. ["Weld"] = {
  538. Create = function(Parent, Part0, Part1, C0, C1)
  539. local Weld = Create("Weld"){
  540. Parent = Parent,
  541. Part0 = Part0,
  542. Part1 = Part1,
  543. C0 = C0,
  544. C1 = C1,
  545. }
  546. return Weld
  547. end;
  548. };
  549.  
  550. ["Sound"] = {
  551. Create = function(id, par, vol, pit)
  552. coroutine.resume(coroutine.create(function()
  553. local S = Create("Sound"){
  554. Volume = vol,
  555. Name = "EffectSoundo",
  556. Pitch = pit or 1,
  557. SoundId = id,
  558. Parent = par or workspace,
  559. }
  560. wait()
  561. S:play()
  562. game:GetService("Debris"):AddItem(S, 10)
  563. end))
  564. end;
  565. };
  566.  
  567. ["TimeSound"] = {
  568. Create = function(id, par, vol, pit, timepos)
  569. coroutine.resume(coroutine.create(function()
  570. local S = Create("Sound"){
  571. Volume = vol,
  572. Name = "EffectSoundo",
  573. Pitch = pit or 1,
  574. SoundId = id,
  575. TimePosition = timepos,
  576. Parent = par or workspace,
  577. }
  578. wait()
  579. S:play()
  580. game:GetService("Debris"):AddItem(S, 10)
  581. end))
  582. end;
  583. };
  584. ["EchoSound"] = {
  585. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  586. coroutine.resume(coroutine.create(function()
  587. local Sas = Create("Sound"){
  588. Volume = vol,
  589. Name = "EffectSoundo",
  590. Pitch = pit or 1,
  591. SoundId = id,
  592. TimePosition = timepos,
  593. Parent = par or workspace,
  594. }
  595. local E = Create("EchoSoundEffect"){
  596. Delay = echodelay,
  597. Name = "Echo",
  598. Feedback = fedb,
  599. DryLevel = dryl,
  600. Parent = Sas,
  601. }
  602. wait()
  603. Sas:play()
  604. game:GetService("Debris"):AddItem(Sas, delays)
  605. end))
  606. end;
  607. };
  608.  
  609. ["LongSound"] = {
  610. Create = function(id, par, vol, pit)
  611. coroutine.resume(coroutine.create(function()
  612. local S = Create("Sound"){
  613. Volume = vol,
  614. Pitch = pit or 1,
  615. SoundId = id,
  616. Parent = par or workspace,
  617. }
  618. wait()
  619. S:play()
  620. game:GetService("Debris"):AddItem(S, 60)
  621. end))
  622. end;
  623. };
  624.  
  625. ["ParticleEmitter"] = {
  626. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  627. local fp = Create("ParticleEmitter"){
  628. Parent = Parent,
  629. Color = ColorSequence.new(Color1, Color2),
  630. LightEmission = LightEmission,
  631. Size = Size,
  632. Texture = Texture,
  633. Transparency = Transparency,
  634. ZOffset = ZOffset,
  635. Acceleration = Accel,
  636. Drag = Drag,
  637. LockedToPart = LockedToPart,
  638. VelocityInheritance = VelocityInheritance,
  639. EmissionDirection = EmissionDirection,
  640. Enabled = Enabled,
  641. Lifetime = LifeTime,
  642. Rate = Rate,
  643. Rotation = Rotation,
  644. RotSpeed = RotSpeed,
  645. Speed = Speed,
  646. VelocitySpread = VelocitySpread,
  647. }
  648. return fp
  649. end;
  650. };
  651.  
  652. CreateTemplate = {
  653.  
  654. };
  655. }
  656.  
  657.  
  658.  
  659. New = function(Object, Parent, Name, Data)
  660. local Object = Instance.new(Object)
  661. for Index, Value in pairs(Data or {}) do
  662. Object[Index] = Value
  663. end
  664. Object.Parent = Parent
  665. Object.Name = Name
  666. return Object
  667. end
  668. local halocolor = BrickColor.new("Pastel light blue")
  669. local halocolor2 = BrickColor.new("Cool yellow")
  670. local starcolor = BrickColor.new("Bright yellow")
  671. local lunacolor = BrickColor.new("Navy blue")
  672. local lunacolor2 = BrickColor.new("Bright blue")
  673. local wepcolor = BrickColor.new("Really black")
  674. local maincolor = BrickColor.new("Really black")
  675. local m = Instance.new("Model",char)
  676. local m2 = Instance.new("Model",char)
  677. local m3 = Instance.new("Model",char)
  678. local mw1 = Instance.new("Model",char)
  679. local mw2 = Instance.new("Model",char)
  680.  
  681.  
  682. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  683. local gui = it(GuiType)
  684. gui.Parent = parent
  685. gui.Text = text
  686. gui.BackgroundTransparency = backtrans
  687. gui.BackgroundColor3 = backcol
  688. gui.SizeConstraint = "RelativeXY"
  689. gui.TextXAlignment = "Center"
  690. gui.TextYAlignment = "Center"
  691. gui.Position = pos
  692. gui.Size = size
  693. gui.Font = "SourceSans"
  694. gui.FontSize = "Size14"
  695. gui.TextWrapped = false
  696. gui.TextStrokeTransparency = 0
  697. gui.TextColor = BrickColor.new("White")
  698. return gui
  699. end
  700. --------------------------- GUI STUFF
  701. local basgui = it("GuiMain")
  702. basgui.Parent = plr.PlayerGui
  703. basgui.Name = "VISgui"
  704. local fullscreenz = it("Frame")
  705. fullscreenz.Parent = basgui
  706. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  707. fullscreenz.BackgroundTransparency = 1
  708. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  709. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  710. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  711. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  712. imgl2.BackgroundTransparency = 1
  713. imgl2.BorderSizePixel = 0
  714. imgl2.ImageTransparency = 0.5
  715. imgl2.ImageColor3 = Color3.new(1,0,0)
  716. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  717. imgl2.Size = UDim2.new(0,1000,0,1000)
  718. imgl2.Image = "rbxassetid://2325939897"
  719. local techc = imgl2:Clone()
  720. techc.Parent = fullscreenz
  721. techc.ImageTransparency = 0
  722. techc.Size = UDim2.new(0,900,0,900)
  723. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  724. techc.ImageColor3 = Color3.new(1,0,0)
  725. techc.Image = "rbxassetid://2273224484"
  726. local circl = imgl2:Clone()
  727. circl.Parent = fullscreenz
  728. circl.ImageTransparency = 0
  729. circl.Size = UDim2.new(0,550,0,550)
  730. circl.Position = UDim2.new(0.75,25,0.55,25)
  731. circl.ImageColor3 = Color3.new(0,0,0)
  732. circl.Image = "rbxassetid://2312119891"
  733. local circl2 = imgl2:Clone()
  734. circl2.Parent = fullscreenz
  735. circl2.ImageTransparency = 0
  736. circl2.Size = UDim2.new(0,700,0,700)
  737. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  738. circl2.ImageColor3 = Color3.new(1,0,0)
  739. circl2.Image = "rbxassetid://2312119891"
  740. local imgl2b = imgl2:Clone()
  741. imgl2b.Parent = fullscreenz
  742. imgl2b.ImageTransparency = 0
  743. imgl2b.Size = UDim2.new(0,800,0,800)
  744. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  745. imgl2b.ImageColor3 = Color3.new(0,0,0)
  746. local ned = Instance.new("TextLabel",fullscreenz)
  747. ned.ZIndex = 2
  748. ned.Font = "Arcade"
  749. ned.BackgroundTransparency = 1
  750. ned.BorderSizePixel = 0.65
  751. ned.Size = UDim2.new(0.3,0,0.2,0)
  752. ned.Position = UDim2.new(0.7,0,0.8,0)
  753. ned.TextColor3 = BrickColor.new("Really red").Color
  754. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  755. ned.TextScaled = true
  756. ned.TextStrokeTransparency = 0
  757. ned.Text = "MAYHEM"
  758. ned.TextSize = 24
  759. ned.Rotation = 1
  760. ned.TextXAlignment = "Right"
  761. ned.TextYAlignment = "Bottom"
  762.  
  763. local extrawingmod1 = Instance.new("Model",char)
  764. local extrawingmod2 = Instance.new("Model",char)
  765.  
  766. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  767. local p = Instance.new("Part")
  768. p.TopSurface = 0
  769. p.BottomSurface = 0
  770. p.Parent = parent
  771. p.Size = Vector3.new(0.1,0.1,0.1)
  772. p.Transparency = transparency
  773. p.Reflectance = reflectance
  774. p.CanCollide = false
  775. p.Locked = true
  776. p.BrickColor = brickcolor
  777. p.Material = material
  778. return p
  779. end
  780.  
  781. function CreateMesh(parent,meshtype,x1,y1,z1)
  782. local mesh = Instance.new("SpecialMesh",parent)
  783. mesh.MeshType = meshtype
  784. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  785. return mesh
  786. end
  787.  
  788. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  789. local mesh = Instance.new("SpecialMesh",parent)
  790. mesh.MeshType = "FileMesh"
  791. mesh.MeshId = meshid
  792. mesh.Scale = Vector3.new(x1,y1,z1)
  793. return mesh
  794. end
  795.  
  796.  
  797. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  798. local mesh = Instance.new("SpecialMesh",parent)
  799. mesh.MeshType = "FileMesh"
  800. mesh.MeshId = meshid
  801. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  802. mesh.Scale = Vector3.new(x1,y1,z1)
  803. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  804. return mesh
  805. end
  806.  
  807. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  808. local weld = Instance.new("Weld")
  809. weld.Parent = parent
  810. weld.Part0 = part0
  811. weld.Part1 = part1
  812. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  813. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  814. return weld
  815. end
  816.  
  817.  
  818. --------------
  819. --------------
  820. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  821. 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))
  822. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  823. 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))
  824.  
  825. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  826. CreateMesh(handle,"Brick",0,0,0)
  827. 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))
  828. local valuaring = 10
  829. for i = 0, 49 do
  830. valuaring = valuaring + 10
  831. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  832. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  833. 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))
  834. end
  835.  
  836. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  837. CreateMesh(handle,"Brick",0,0,0)
  838. 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))
  839. local valuaring = 10
  840. for i = 0, 49 do
  841. valuaring = valuaring + 10
  842. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  843. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  844. 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))
  845. end
  846.  
  847.  
  848. local handle = CreateParta(m,1,1,"Neon",maincolor)
  849. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  850. 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))
  851.  
  852. --- Left wing.
  853.  
  854. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  855. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  856. 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))
  857.  
  858. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  859. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  860. 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))
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. 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))
  864. A0 = Instance.new('Attachment',wed)
  865. A0.Position = vt(0,0.25,0.25)
  866. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  867. CreateMesh(wed,"Wedge",0.05,0.5,3)
  868. 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))
  869. A1 = Instance.new('Attachment',wed)
  870. A1.Position = vt(0,-0.25,-2)
  871. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,3,0.5)
  873. 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))
  874.  
  875. tl1 = Instance.new('Trail',wed)
  876. tl1.Attachment0 = A1
  877. tl1.Attachment1 = A0
  878. tl1.Texture = "rbxassetid://2108945559"
  879. tl1.LightEmission = 1
  880. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  881. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  882. tl1.Lifetime = 0.6
  883.  
  884.  
  885. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  886. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  887. 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))
  888.  
  889. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  891. 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))
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  894. 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))
  895. A0 = Instance.new('Attachment',wed)
  896. A0.Position = vt(0,0.25,0.25)
  897. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,3)
  899. 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))
  900. A1 = Instance.new('Attachment',wed)
  901. A1.Position = vt(0,-0.25,-2)
  902. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,3,0.5)
  904. 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))
  905.  
  906. tl2 = Instance.new('Trail',wed)
  907. tl2.Attachment0 = A1
  908. tl2.Attachment1 = A0
  909. tl2.Texture = "rbxassetid://2108945559"
  910. tl2.LightEmission = 1
  911. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  912. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  913. tl2.Lifetime = 0.6
  914.  
  915. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  916. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  917. 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))
  918.  
  919. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  920. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  921. 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))
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  924. 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))
  925. A0 = Instance.new('Attachment',wed)
  926. A0.Position = vt(0,0.25,0.25)
  927. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,0.5,3)
  929. 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))
  930. A1 = Instance.new('Attachment',wed)
  931. A1.Position = vt(0,-0.25,-2)
  932. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  933. CreateMesh(wed,"Wedge",0.05,3,0.5)
  934. 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))
  935.  
  936. tl3 = Instance.new('Trail',wed)
  937. tl3.Attachment0 = A1
  938. tl3.Attachment1 = A0
  939. tl3.Texture = "rbxassetid://2108945559"
  940. tl3.LightEmission = 1
  941. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  942. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  943. tl3.Lifetime = 0.6
  944.  
  945. tl1.Enabled = false
  946. tl2.Enabled = false
  947. tl3.Enabled = false
  948. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  949. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  950. 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))
  951.  
  952. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  954. 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))
  955. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  957. 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))
  958. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,0.5,3)
  960. 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))
  961. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,3,0.5)
  963. 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))
  964.  
  965. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  966. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  967. 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))
  968.  
  969. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  970. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  971. 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))
  972. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  973. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  974. 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))
  975. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  976. CreateMesh(wed,"Wedge",0.05,0.5,3)
  977. 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))
  978. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  979. CreateMesh(wed,"Wedge",0.05,3,0.5)
  980. 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))
  981.  
  982. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  983. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  984. 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))
  985.  
  986. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  987. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  988. 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))
  989. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  991. 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))
  992. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  993. CreateMesh(wed,"Wedge",0.05,0.5,3)
  994. 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))
  995. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  996. CreateMesh(wed,"Wedge",0.05,3,0.5)
  997. 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))
  998.  
  999. -- Right wing.
  1000.  
  1001. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1002. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1003. 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))
  1004.  
  1005. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1006. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1007. 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))
  1008. A0 = Instance.new('Attachment',wed)
  1009. A0.Position = vt(0,0.25,0.25)
  1010. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1012. 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))
  1013. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1015. 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))
  1016. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1018. 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))
  1019. A1 = Instance.new('Attachment',wed)
  1020. A1.Position = vt(0,2,0.25)
  1021.  
  1022. tr1 = Instance.new('Trail',wed)
  1023. tr1.Attachment0 = A1
  1024. tr1.Attachment1 = A0
  1025. tr1.Texture = "rbxassetid://2108945559"
  1026. tr1.LightEmission = 1
  1027. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1028. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1029. tr1.Lifetime = 0.6
  1030.  
  1031. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1032. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1033. 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))
  1034.  
  1035. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1036. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1037. 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))
  1038. A0 = Instance.new('Attachment',wed)
  1039. A0.Position = vt(0,0.25,0.25)
  1040. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1041. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1042. 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))
  1043. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1045. 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))
  1046. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1048. 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))
  1049. A1 = Instance.new('Attachment',wed)
  1050. A1.Position = vt(0,2,0.25)
  1051.  
  1052. tr2 = Instance.new('Trail',wed)
  1053. tr2.Attachment0 = A1
  1054. tr2.Attachment1 = A0
  1055. tr2.Texture = "rbxassetid://2108945559"
  1056. tr2.LightEmission = 1
  1057. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1058. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1059. tr2.Lifetime = 0.6
  1060.  
  1061. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1062. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1063. 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))
  1064.  
  1065. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1066. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1067. 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))
  1068. A0 = Instance.new('Attachment',wed)
  1069. A0.Position = vt(0,0.25,0.25)
  1070. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1071. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1072. 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))
  1073. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1074. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1075. 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))
  1076. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1077. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1078. 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))
  1079. A1 = Instance.new('Attachment',wed)
  1080. A1.Position = vt(0,2,0.25)
  1081.  
  1082. tr3 = Instance.new('Trail',wed)
  1083. tr3.Attachment0 = A1
  1084. tr3.Attachment1 = A0
  1085. tr3.Texture = "rbxassetid://2108945559"
  1086. tr3.LightEmission = 1
  1087. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1088. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1089. tr3.Lifetime = 0.6
  1090.  
  1091.  
  1092. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1093. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1094. 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))
  1095.  
  1096. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1097. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1098. 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))
  1099. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1101. 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))
  1102. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1103. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1104. 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))
  1105. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1106. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1107. 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))
  1108.  
  1109. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1110. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1111. 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))
  1112.  
  1113. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1114. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1115. 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))
  1116. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1117. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1118. 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))
  1119. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1120. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1121. 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))
  1122. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1123. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1124. 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))
  1125.  
  1126. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1127. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1128. 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))
  1129.  
  1130. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1131. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1132. 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))
  1133. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1135. 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))
  1136. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1137. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1138. 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))
  1139. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1140. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1141. 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))
  1142.  
  1143. --HERES THE RING
  1144.  
  1145.  
  1146. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1147. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1148. 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))
  1149. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1150. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1151. 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))
  1152. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1153. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1154. 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))
  1155.  
  1156.  
  1157. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1158. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1159. 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))
  1160.  
  1161. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1162. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1163. 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))
  1164.  
  1165.  
  1166.  
  1167. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1168. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1169. 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))
  1170.  
  1171. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1172. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1173. 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))
  1174.  
  1175. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1176. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1177. 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))
  1178.  
  1179. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1180. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1181. 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))
  1182. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1183. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1184. 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))]]--
  1185.  
  1186. --- second ring
  1187.  
  1188.  
  1189. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1190. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1191. 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))
  1192.  
  1193. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1194. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1195. 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))
  1196.  
  1197.  
  1198.  
  1199. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1200. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1201. 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))
  1202.  
  1203. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1204. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1205. 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))
  1206.  
  1207. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1208. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1209. 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))
  1210.  
  1211. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1212. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1213. 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))
  1214. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1215. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1216. 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))
  1217.  
  1218.  
  1219.  
  1220. for i, v in pairs(m:GetChildren()) do
  1221. if v:IsA("Part") then
  1222. v.BrickColor = BrickColor.new("Really black")
  1223. v.Material = "Glass"
  1224. end
  1225. end
  1226. for i, v in pairs(m2:GetChildren()) do
  1227. if v:IsA("Part") then
  1228. v.BrickColor = BrickColor.new("Crimson")
  1229. v.Material = "Granite"
  1230. end
  1231. end
  1232. for i, v in pairs(m3:GetChildren()) do
  1233. if v:IsA("Part") then
  1234. v.BrickColor = BrickColor.new("Really red")
  1235. v.Material = "Neon"
  1236. end
  1237. end
  1238. for i, v in pairs(mw2:GetChildren()) do
  1239. if v:IsA("Part") then
  1240. v.BrickColor = BrickColor.new("Really red")
  1241. v.Material = "Neon"
  1242. end
  1243. end
  1244. for i, v in pairs(mw1:GetChildren()) do
  1245. if v:IsA("Part") then
  1246. v.Transparency = 1
  1247. v.BrickColor = BrickColor.new("Really red")
  1248. v.Material = "Neon"
  1249. end
  1250. end
  1251. for i, v in pairs(extrawingmod1:GetChildren()) do
  1252. if v:IsA("Part") then
  1253. v.Transparency = 1
  1254. v.BrickColor = BrickColor.new("White")
  1255. v.Material = "Neon"
  1256. end
  1257. end
  1258. for i, v in pairs(extrawingmod2:GetChildren()) do
  1259. if v:IsA("Part") then
  1260. v.Transparency = 1
  1261. v.BrickColor = BrickColor.new("White")
  1262. v.Material = "Neon"
  1263. end
  1264. end
  1265. local MAINRUINCOLOR = BrickColor.new("Really red")
  1266. ------
  1267.  
  1268.  
  1269. function RemoveOutlines(part)
  1270. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1271. end
  1272. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1273. local Part = Create("Part")({
  1274. Parent = Parent,
  1275. Reflectance = Reflectance,
  1276. Transparency = Transparency,
  1277. CanCollide = false,
  1278. Locked = true,
  1279. BrickColor = BrickColor.new(tostring(BColor)),
  1280. Name = Name,
  1281. Size = Size,
  1282. Material = Material
  1283. })
  1284. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1285. RemoveOutlines(Part)
  1286. return Part
  1287. end
  1288. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1289. local Msh = Create(Mesh)({
  1290. Parent = Part,
  1291. Offset = OffSet,
  1292. Scale = Scale
  1293. })
  1294. if Mesh == "SpecialMesh" then
  1295. Msh.MeshType = MeshType
  1296. Msh.MeshId = MeshId
  1297. end
  1298. return Msh
  1299. end
  1300. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1301. local Weld = Create("Weld")({
  1302. Parent = Parent,
  1303. Part0 = Part0,
  1304. Part1 = Part1,
  1305. C0 = C0,
  1306. C1 = C1
  1307. })
  1308. return Weld
  1309. end
  1310.  
  1311. Player = plr
  1312. Character=Player.Character
  1313. PlayerGui=Player.PlayerGui
  1314. Backpack=Player.Backpack
  1315. Torso=Character.Torso
  1316. Head=Character.Head
  1317. Humanoid=Character.Humanoid
  1318. m=Instance.new('Model',Character)
  1319. LeftArm=Character["Left Arm"]
  1320. LeftLeg=Character["Left Leg"]
  1321. RightArm=Character["Right Arm"]
  1322. RightLeg=Character["Right Leg"]
  1323. LS=Torso["Left Shoulder"]
  1324. LH=Torso["Left Hip"]
  1325. RS=Torso["Right Shoulder"]
  1326. RH=Torso["Right Hip"]
  1327. Face = Head.face
  1328. Neck=Torso.Neck
  1329. it=Instance.new
  1330. attacktype=1
  1331. vt=Vector3.new
  1332. cf=CFrame.new
  1333. euler=CFrame.fromEulerAnglesXYZ
  1334. angles=CFrame.Angles
  1335. cloaked=false
  1336. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1337. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1338. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1339. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1340. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1341. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1342. RootPart=Character.HumanoidRootPart
  1343. RootJoint=RootPart.RootJoint
  1344. RootCF=euler(-1.57,0,3.14)
  1345. attack = false
  1346. attackdebounce = false
  1347. deb=false
  1348. equipped=true
  1349. hand=false
  1350. combo=0
  1351. mana=0
  1352. trispeed=.2
  1353. attackmode='none'
  1354. local idle=0
  1355. local Anim="Idle"
  1356. local Effects={}
  1357. local gun=false
  1358. local shoot=false
  1359. local sine = 0
  1360. local change = 1
  1361.  
  1362. function RecolorTextAndRename(name,col1,col2,font)
  1363. modet.TextStrokeColor3 = col2
  1364. modet.TextColor3 = col1
  1365. modet.Font = font
  1366. modet.Text = name
  1367. techc.ImageColor3 = col2
  1368. circl.ImageColor3 = col2
  1369. circl2.ImageColor3 = col1
  1370. imgl2.ImageColor3 = col1
  1371. imgl2b.ImageColor3 = col2
  1372. ned.Text = name
  1373. ned.TextColor3 = col1
  1374. ned.TextStrokeColor3 = col2
  1375. end
  1376. --save shoulders
  1377. RSH, LSH=nil, nil
  1378. --welds
  1379. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1380. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1381. LH=Torso["Left Hip"]
  1382. RH=Torso["Right Hip"]
  1383. TorsoColor=Torso.BrickColor
  1384. function NoOutline(Part)
  1385. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1386. end
  1387. ch=Character
  1388. RSH=ch.Torso["Right Shoulder"]
  1389. LSH=ch.Torso["Left Shoulder"]
  1390. --
  1391. RSH.Parent=nil
  1392. LSH.Parent=nil
  1393. --
  1394. RW.Name="Right Shoulder"
  1395. RW.Part0=ch.Torso
  1396. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1397. RW.C1=cf(0, 0.5, 0)
  1398. RW.Part1=ch["Right Arm"]
  1399. RW.Parent=ch.Torso
  1400. --
  1401. LW.Name="Left Shoulder"
  1402. LW.Part0=ch.Torso
  1403. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1404. LW.C1=cf(0, 0.5, 0)
  1405. LW.Part1=ch["Left Arm"]
  1406. LW.Parent=ch.Torso
  1407.  
  1408. local Stats=Instance.new("BoolValue")
  1409. Stats.Name="Stats"
  1410. Stats.Parent=Character
  1411. local Atk=Instance.new("NumberValue")
  1412. Atk.Name="Damage"
  1413. Atk.Parent=Stats
  1414. Atk.Value=1
  1415. local Def=Instance.new("NumberValue")
  1416. Def.Name="Defense"
  1417. Def.Parent=Stats
  1418. Def.Value=1
  1419. local Speed=Instance.new("NumberValue")
  1420. Speed.Name="Speed"
  1421. Speed.Parent=Stats
  1422. Speed.Value=1
  1423. local Mvmt=Instance.new("NumberValue")
  1424. Mvmt.Name="Movement"
  1425. Mvmt.Parent=Stats
  1426. Mvmt.Value=1
  1427.  
  1428. local donum=0
  1429. local ast = {744586075,385254610}
  1430.  
  1431. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1432. local fp=it("Part")
  1433. fp.formFactor=formfactor
  1434. fp.Parent=parent
  1435. fp.Reflectance=reflectance
  1436. fp.Transparency=transparency
  1437. fp.CanCollide=false
  1438. fp.Locked=true
  1439. fp.BrickColor=brickcolor
  1440. fp.Name=name
  1441. fp.Size=size
  1442. fp.Position=Torso.Position
  1443. NoOutline(fp)
  1444. fp.Material="SmoothPlastic"
  1445. fp:BreakJoints()
  1446. return fp
  1447. end
  1448.  
  1449. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1450. local mesh=it(Mesh)
  1451. mesh.Parent=part
  1452. if Mesh=="SpecialMesh" then
  1453. mesh.MeshType=meshtype
  1454. if meshid~="nil" then
  1455. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1456. end
  1457. end
  1458. mesh.Offset=offset
  1459. mesh.Scale=scale
  1460. return mesh
  1461. end
  1462.  
  1463. function weld(parent,part0,part1,c0)
  1464. local weld=it("Weld")
  1465. weld.Parent=parent
  1466. weld.Part0=part0
  1467. weld.Part1=part1
  1468. weld.C0=c0
  1469. return weld
  1470. end
  1471.  
  1472. local Color1=Torso.BrickColor
  1473.  
  1474. local bodvel=Instance.new("BodyVelocity")
  1475. local bg=Instance.new("BodyGyro")
  1476.  
  1477. --------- SazEreno's Artificial HB --------------
  1478. ArtificialHB = Instance.new("BindableEvent", script)
  1479. ArtificialHB.Name = "ArtificialHB"
  1480.  
  1481. script:WaitForChild("ArtificialHB")
  1482. Frame_Speed = 1 / 60
  1483. frame = Frame_Speed
  1484. tf = 0
  1485. allowframeloss = false
  1486. tossremainder = false
  1487. lastframe = tick()
  1488. script.ArtificialHB:Fire()
  1489.  
  1490. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1491. tf = tf + s
  1492. if tf >= frame then
  1493. if allowframeloss then
  1494. script.ArtificialHB:Fire()
  1495. lastframe = tick()
  1496. else
  1497. for i = 1, math.floor(tf / frame) do
  1498. script.ArtificialHB:Fire()
  1499. end
  1500. lastframe = tick()
  1501. end
  1502. if tossremainder then
  1503. tf = 0
  1504. else
  1505. tf = tf - frame * math.floor(tf / frame)
  1506. end
  1507. end
  1508. end)
  1509.  
  1510. ------------------
  1511. function swait(num)
  1512. if num == 0 or num == nil then
  1513. ArtificialHB.Event:wait()
  1514. else
  1515. for i = 1, num do
  1516. ArtificialHB.Event:wait()
  1517. end
  1518. end
  1519. end
  1520. -------- RAINBOW LEAVE IT TO ME
  1521. local r = 255
  1522. local g = 0
  1523. local b = 0
  1524. coroutine.resume(coroutine.create(function()
  1525. while wait() do
  1526. for i = 0, 254/5 do
  1527. swait()
  1528. g = g + 5
  1529. end
  1530. for i = 0, 254/5 do
  1531. swait()
  1532. r = r - 5
  1533. end
  1534. for i = 0, 254/5 do
  1535. swait()
  1536. b = b + 5
  1537. end
  1538. for i = 0, 254/5 do
  1539. swait()
  1540. g = g - 5
  1541. end
  1542. for i = 0, 254/5 do
  1543. swait()
  1544. r = r + 5
  1545. end
  1546. for i = 0, 254/5 do
  1547. swait()
  1548. b = b - 5
  1549. end
  1550. end
  1551. end))
  1552.  
  1553.  
  1554. so = function(id,par,vol,pit)
  1555. coroutine.resume(coroutine.create(function()
  1556. local sou = Instance.new("Sound",par or workspace)
  1557. sou.Volume=vol
  1558. sou.Pitch=pit or 1
  1559. sou.SoundId=id
  1560. swait()
  1561. sou:play()
  1562. game:GetService("Debris"):AddItem(sou,6)
  1563. end))
  1564. end
  1565.  
  1566. function clerp(a,b,t)
  1567. local qa = {QuaternionFromCFrame(a)}
  1568. local qb = {QuaternionFromCFrame(b)}
  1569. local ax, ay, az = a.x, a.y, a.z
  1570. local bx, by, bz = b.x, b.y, b.z
  1571. local _t = 1-t
  1572. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1573. end
  1574.  
  1575. function QuaternionFromCFrame(cf)
  1576. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1577. local trace = m00 + m11 + m22
  1578. if trace > 0 then
  1579. local s = math.sqrt(1 + trace)
  1580. local recip = 0.5/s
  1581. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1582. else
  1583. local i = 0
  1584. if m11 > m00 then
  1585. i = 1
  1586. end
  1587. if m22 > (i == 0 and m00 or m11) then
  1588. i = 2
  1589. end
  1590. if i == 0 then
  1591. local s = math.sqrt(m00-m11-m22+1)
  1592. local recip = 0.5/s
  1593. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1594. elseif i == 1 then
  1595. local s = math.sqrt(m11-m22-m00+1)
  1596. local recip = 0.5/s
  1597. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1598. elseif i == 2 then
  1599. local s = math.sqrt(m22-m00-m11+1)
  1600. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1601. end
  1602. end
  1603. end
  1604.  
  1605. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1606. local xs, ys, zs = x + x, y + y, z + z
  1607. local wx, wy, wz = w*xs, w*ys, w*zs
  1608. local xx = x*xs
  1609. local xy = x*ys
  1610. local xz = x*zs
  1611. local yy = y*ys
  1612. local yz = y*zs
  1613. local zz = z*zs
  1614. 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))
  1615. end
  1616.  
  1617. function QuaternionSlerp(a, b, t)
  1618. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1619. local startInterp, finishInterp;
  1620. if cosTheta >= 0.0001 then
  1621. if (1 - cosTheta) > 0.0001 then
  1622. local theta = math.acos(cosTheta)
  1623. local invSinTheta = 1/math.sin(theta)
  1624. startInterp = math.sin((1-t)*theta)*invSinTheta
  1625. finishInterp = math.sin(t*theta)*invSinTheta
  1626. else
  1627. startInterp = 1-t
  1628. finishInterp = t
  1629. end
  1630. else
  1631. if (1+cosTheta) > 0.0001 then
  1632. local theta = math.acos(-cosTheta)
  1633. local invSinTheta = 1/math.sin(theta)
  1634. startInterp = math.sin((t-1)*theta)*invSinTheta
  1635. finishInterp = math.sin(t*theta)*invSinTheta
  1636. else
  1637. startInterp = t-1
  1638. finishInterp = t
  1639. end
  1640. end
  1641. 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
  1642. end
  1643.  
  1644. local function CFrameFromTopBack(at, top, back)
  1645. local right = top:Cross(back)
  1646. return CFrame.new(at.x, at.y, at.z,
  1647. right.x, top.x, back.x,
  1648. right.y, top.y, back.y,
  1649. right.z, top.z, back.z)
  1650. end
  1651.  
  1652. function Triangle(a, b, c)
  1653. local edg1 = (c-a):Dot((b-a).unit)
  1654. local edg2 = (a-b):Dot((c-b).unit)
  1655. local edg3 = (b-c):Dot((a-c).unit)
  1656. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1657. a, b, c = a, b, c
  1658. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1659. a, b, c = b, c, a
  1660. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1661. a, b, c = c, a, b
  1662. else
  1663. assert(false, "unreachable")
  1664. end
  1665.  
  1666. local len1 = (c-a):Dot((b-a).unit)
  1667. local len2 = (b-a).magnitude - len1
  1668. local width = (a + (b-a).unit*len1 - c).magnitude
  1669.  
  1670. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1671.  
  1672. local list = {}
  1673.  
  1674. if len1 > 0.01 then
  1675. local w1 = Instance.new('WedgePart', m)
  1676. game:GetService("Debris"):AddItem(w1,5)
  1677. w1.Material = "SmoothPlastic"
  1678. w1.FormFactor = 'Custom'
  1679. w1.BrickColor = BrickColor.new("Really red")
  1680. w1.Transparency = 0
  1681. w1.Reflectance = 0
  1682. w1.Material = "SmoothPlastic"
  1683. w1.CanCollide = false
  1684. local l1 = Instance.new("PointLight",w1)
  1685. l1.Color = Color3.new(170,0,0)
  1686. NoOutline(w1)
  1687. local sz = Vector3.new(0.2, width, len1)
  1688. w1.Size = sz
  1689. local sp = Instance.new("SpecialMesh",w1)
  1690. sp.MeshType = "Wedge"
  1691. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1692. w1:BreakJoints()
  1693. w1.Anchored = true
  1694. w1.Parent = workspace
  1695. w1.Transparency = 0.7
  1696. table.insert(Effects,{w1,"Disappear",.01})
  1697. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1698. table.insert(list,w1)
  1699. end
  1700.  
  1701. if len2 > 0.01 then
  1702. local w2 = Instance.new('WedgePart', m)
  1703. game:GetService("Debris"):AddItem(w2,5)
  1704. w2.Material = "SmoothPlastic"
  1705. w2.FormFactor = 'Custom'
  1706. w2.BrickColor = BrickColor.new("Really red")
  1707. w2.Transparency = 0
  1708. w2.Reflectance = 0
  1709. w2.Material = "SmoothPlastic"
  1710. w2.CanCollide = false
  1711. local l2 = Instance.new("PointLight",w2)
  1712. l2.Color = Color3.new(170,0,0)
  1713. NoOutline(w2)
  1714. local sz = Vector3.new(0.2, width, len2)
  1715. w2.Size = sz
  1716. local sp = Instance.new("SpecialMesh",w2)
  1717. sp.MeshType = "Wedge"
  1718. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1719. w2:BreakJoints()
  1720. w2.Anchored = true
  1721. w2.Parent = workspace
  1722. w2.Transparency = 0.7
  1723. table.insert(Effects,{w2,"Disappear",.01})
  1724. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1725. table.insert(list,w2)
  1726. end
  1727. return unpack(list)
  1728. end
  1729.  
  1730.  
  1731. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1732. if hit.Parent == nil then
  1733. return
  1734. end
  1735. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1736. for _, v in pairs(hit.Parent:children()) do
  1737. if v:IsA("Humanoid") then
  1738. h = v
  1739. end
  1740. end
  1741. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1742. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1743. return
  1744. end
  1745. local c = Create("ObjectValue")({
  1746. Name = "creator",
  1747. Value = game:GetService("Players").LocalPlayer,
  1748. Parent = h
  1749. })
  1750. game:GetService("Debris"):AddItem(c, 0.5)
  1751. if HitSound ~= nil and HitPitch ~= nil then
  1752. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1753. end
  1754. local Damage = math.random(minim, maxim)
  1755. local blocked = false
  1756. local block = hit.Parent:findFirstChild("Block")
  1757. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1758. blocked = true
  1759. block.Value = block.Value - 1
  1760. print(block.Value)
  1761. end
  1762. if blocked == false then
  1763. HitHealth = h.Health
  1764. h.MaxHealth = 100
  1765. h.Health = h.Health - Damage
  1766. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1767. print("gained kill")
  1768. dmg(h.Parent)
  1769. end
  1770. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1771. else
  1772. h.Health = h.Health - Damage / 2
  1773. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1774. end
  1775. if Type == "Knockdown" then
  1776. local hum = hit.Parent.Humanoid
  1777. hum.PlatformStand = true
  1778. coroutine.resume(coroutine.create(function(HHumanoid)
  1779. swait(1)
  1780. HHumanoid.PlatformStand = false
  1781. end), hum)
  1782. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1783. local bodvol = Create("BodyVelocity")({
  1784. velocity = angle * knockback,
  1785. P = 5000,
  1786. maxForce = Vector3.new(8000, 8000, 8000),
  1787. Parent = hit
  1788. })
  1789. local rl = Create("BodyAngularVelocity")({
  1790. P = 3000,
  1791. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1792. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1793. Parent = hit
  1794. })
  1795. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1796. game:GetService("Debris"):AddItem(rl, 0.5)
  1797. elseif Type == "Normal" then
  1798. local vp = Create("BodyVelocity")({
  1799. P = 500,
  1800. maxForce = Vector3.new(math.huge, 0, math.huge),
  1801. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1802. })
  1803. if knockback > 0 then
  1804. vp.Parent = hit.Parent.Head
  1805. end
  1806. game:GetService("Debris"):AddItem(vp, 0.5)
  1807. elseif Type == "Up" then
  1808. local bodyVelocity = Create("BodyVelocity")({
  1809. velocity = Vector3.new(0, 20, 0),
  1810. P = 5000,
  1811. maxForce = Vector3.new(8000, 8000, 8000),
  1812. Parent = hit
  1813. })
  1814. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1815. local bodyVelocity = Create("BodyVelocity")({
  1816. velocity = Vector3.new(0, 20, 0),
  1817. P = 5000,
  1818. maxForce = Vector3.new(8000, 8000, 8000),
  1819. Parent = hit
  1820. })
  1821. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1822. elseif Type == "Leech" then
  1823. local hum = hit.Parent.Humanoid
  1824. if hum ~= nil then
  1825. for i = 0, 2 do
  1826. 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)
  1827. end
  1828. Humanoid.Health = Humanoid.Health + 10
  1829. end
  1830. elseif Type == "UpKnock" then
  1831. local hum = hit.Parent.Humanoid
  1832. hum.PlatformStand = true
  1833. if hum ~= nil then
  1834. hitr = true
  1835. end
  1836. coroutine.resume(coroutine.create(function(HHumanoid)
  1837. swait(5)
  1838. HHumanoid.PlatformStand = false
  1839. hitr = false
  1840. end), hum)
  1841. local bodyVelocity = Create("BodyVelocity")({
  1842. velocity = Vector3.new(0, 20, 0),
  1843. P = 5000,
  1844. maxForce = Vector3.new(8000, 8000, 8000),
  1845. Parent = hit
  1846. })
  1847. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1848. local bodyVelocity = Create("BodyVelocity")({
  1849. velocity = Vector3.new(0, 20, 0),
  1850. P = 5000,
  1851. maxForce = Vector3.new(8000, 8000, 8000),
  1852. Parent = hit
  1853. })
  1854. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1855. elseif Type == "Snare" then
  1856. local bp = Create("BodyPosition")({
  1857. P = 2000,
  1858. D = 100,
  1859. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1860. position = hit.Parent.Torso.Position,
  1861. Parent = hit.Parent.Torso
  1862. })
  1863. game:GetService("Debris"):AddItem(bp, 1)
  1864. elseif Type == "Slashnare" then
  1865. 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)
  1866. for i = 1, math.random(4, 5) do
  1867. 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)
  1868. end
  1869. local bp = Create("BodyPosition")({
  1870. P = 2000,
  1871. D = 100,
  1872. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1873. position = hit.Parent.Torso.Position,
  1874. Parent = hit.Parent.Torso
  1875. })
  1876. game:GetService("Debris"):AddItem(bp, 1)
  1877. elseif Type == "Spike" then
  1878. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1879. local bp = Create("BodyPosition")({
  1880. P = 2000,
  1881. D = 100,
  1882. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1883. position = hit.Parent.Torso.Position,
  1884. Parent = hit.Parent.Torso
  1885. })
  1886. game:GetService("Debris"):AddItem(bp, 1)
  1887. elseif Type == "Freeze" then
  1888. local BodPos = Create("BodyPosition")({
  1889. P = 50000,
  1890. D = 1000,
  1891. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1892. position = hit.Parent.Torso.Position,
  1893. Parent = hit.Parent.Torso
  1894. })
  1895. local BodGy = Create("BodyGyro")({
  1896. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1897. P = 20000,
  1898. Parent = hit.Parent.Torso,
  1899. cframe = hit.Parent.Torso.CFrame
  1900. })
  1901. hit.Parent.Torso.Anchored = true
  1902. coroutine.resume(coroutine.create(function(Part)
  1903. swait(1.5)
  1904. Part.Anchored = false
  1905. end), hit.Parent.Torso)
  1906. game:GetService("Debris"):AddItem(BodPos, 3)
  1907. game:GetService("Debris"):AddItem(BodGy, 3)
  1908. end
  1909. local debounce = Create("BoolValue")({
  1910. Name = "DebounceHit",
  1911. Parent = hit.Parent,
  1912. Value = true
  1913. })
  1914. game:GetService("Debris"):AddItem(debounce, Delay)
  1915. c = Instance.new("ObjectValue")
  1916. c.Name = "creator"
  1917. c.Value = Player
  1918. c.Parent = h
  1919. game:GetService("Debris"):AddItem(c, 0.5)
  1920. end
  1921. end
  1922. function ShowDamage(Pos, Text, Time, Color)
  1923. local Rate = 0.03333333333333333
  1924. local Pos = Pos or Vector3.new(0, 0, 0)
  1925. local Text = Text or ""
  1926. local Time = Time or 2
  1927. local Color = Color or Color3.new(1, 0, 1)
  1928. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1929. EffectPart.Anchored = true
  1930. local BillboardGui = Create("BillboardGui")({
  1931. Size = UDim2.new(3, 0, 3, 0),
  1932. Adornee = EffectPart,
  1933. Parent = EffectPart
  1934. })
  1935. local TextLabel = Create("TextLabel")({
  1936. BackgroundTransparency = 1,
  1937. Size = UDim2.new(1, 0, 1, 0),
  1938. Text = Text,
  1939. TextColor3 = Color,
  1940. TextScaled = true,
  1941. Font = Enum.Font.ArialBold,
  1942. Parent = BillboardGui
  1943. })
  1944. game.Debris:AddItem(EffectPart, Time + 0.1)
  1945. EffectPart.Parent = game:GetService("Workspace")
  1946. delay(0, function()
  1947. local Frames = Time / Rate
  1948. for Frame = 1, Frames do
  1949. wait(Rate)
  1950. local Percent = Frame / Frames
  1951. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1952. TextLabel.TextTransparency = Percent
  1953. end
  1954. if EffectPart and EffectPart.Parent then
  1955. EffectPart:Destroy()
  1956. end
  1957. end)
  1958. end
  1959. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1960. for _, c in pairs(workspace:children()) do
  1961. local hum = c:findFirstChildOfClass("Humanoid")
  1962. if hum ~= nil then
  1963. local head = c:findFirstChild("Head")
  1964. if head ~= nil then
  1965. local targ = head.Position - Part.Position
  1966. local mag = targ.magnitude
  1967. if magni >= mag and c.Name ~= Player.Name then
  1968. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1969. end
  1970. end
  1971. end
  1972. end
  1973. end
  1974.  
  1975. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1976. for _, c in pairs(workspace:children()) do
  1977. local hum = c:findFirstChild("Humanoid")
  1978. if hum ~= nil then
  1979. local head = c:findFirstChild("Torso")
  1980. if head ~= nil then
  1981. local targ = head.Position - Part.Position
  1982. local mag = targ.magnitude
  1983. if magni >= mag and c.Name ~= Player.Name then
  1984. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1985. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991.  
  1992. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1993. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1994. end
  1995.  
  1996. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1997. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1998. prt.Anchored=true
  1999. prt.CFrame=cframe
  2000. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2001. --http://www.roblox.com/asset/?id=4770560
  2002. game:GetService("Debris"):AddItem(prt,2)
  2003. CF=prt.CFrame
  2004. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2005. for i=0,1,0.2 do
  2006. wait()
  2007. Part.CFrame=CF*cf(0,0,-0.4)
  2008. end
  2009. for i=0,1,delay do
  2010. wait()
  2011. --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)
  2012. Mesh.Scale=Mesh.Scale
  2013. end
  2014. for i=0,1,0.1 do
  2015. wait()
  2016. Part.Transparency=i
  2017. end
  2018. Part.Parent=nil
  2019. end),prt,msh,CF)
  2020. end
  2021.  
  2022. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2023. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2024. prt.Anchored=true
  2025. prt.Material = "Neon"
  2026. prt.CFrame=cframe
  2027. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2028. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2029. game:GetService("Debris"):AddItem(prt,5)
  2030. coroutine.resume(coroutine.create(function(Part,Mesh)
  2031. for i=0,1,delay do
  2032. swait()
  2033. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2034. Part.Transparency=i
  2035. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2036. end
  2037. Part.Parent=nil
  2038. end),prt,msh)
  2039. end
  2040.  
  2041. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2042. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2043. prt.Anchored=true
  2044. prt.Material = "Neon"
  2045. prt.CFrame=cframe
  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. local rtype = rottype
  2050. for i=0,1,delay do
  2051. swait()
  2052. if rtype == 1 then
  2053. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2054. elseif rtype == 2 then
  2055. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2056. end
  2057. Part.Transparency=i
  2058. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2059. end
  2060. Part.Parent=nil
  2061. end),prt,msh)
  2062. end
  2063.  
  2064. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2065. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2066. prt.Anchored=true
  2067. prt.CFrame=cframe
  2068. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2069. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2070. game:GetService("Debris"):AddItem(prt,5)
  2071. coroutine.resume(coroutine.create(function(Part,Mesh)
  2072. for i=0,1,delay do
  2073. wait()
  2074. Part.Transparency=i
  2075. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2076. end
  2077. Part.Parent=nil
  2078. end),prt,msh)
  2079. end
  2080.  
  2081. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2082. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2083. prt.Anchored=true
  2084. prt.Material = "Neon"
  2085. prt.CFrame=cframe
  2086. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2087. game:GetService("Debris"):AddItem(prt,5)
  2088. coroutine.resume(coroutine.create(function(Part,Mesh)
  2089. local rtype = rottype
  2090. for i=0,1,delay do
  2091. swait()
  2092. if rtype == 1 then
  2093. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2094. elseif rtype == 2 then
  2095. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2096. end
  2097. Part.Transparency=i
  2098. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2099. end
  2100. Part.Parent=nil
  2101. end),prt,msh)
  2102. end
  2103.  
  2104. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2105. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2106. prt.Anchored=true
  2107. prt.Material = "Neon"
  2108. prt.CFrame=cframe
  2109. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2110. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2111. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2112. game:GetService("Debris"):AddItem(prt,5)
  2113. coroutine.resume(coroutine.create(function(Part,Mesh)
  2114. local rtype = rottype
  2115. for i=0,1,delay do
  2116. swait()
  2117. if rtype == 1 then
  2118. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2119. elseif rtype == 2 then
  2120. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2121. end
  2122. dec.Transparency=i
  2123. dec2.Transparency=i
  2124. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2125. end
  2126. Part.Parent=nil
  2127. end),prt,msh)
  2128. end
  2129.  
  2130. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2131. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2132. prt.Anchored=true
  2133. prt.Material = "Neon"
  2134. prt.CFrame=cframe
  2135. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2136. game:GetService("Debris"):AddItem(prt,5)
  2137. coroutine.resume(coroutine.create(function(Part,Mesh)
  2138. local rtype = rottype
  2139. for i=0,1,delay do
  2140. swait()
  2141. if rtype == 1 then
  2142. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2143. elseif rtype == 2 then
  2144. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2145. end
  2146. prt.Transparency=i
  2147. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2148. end
  2149. Part.Parent=nil
  2150. end),prt,msh)
  2151. end
  2152.  
  2153. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2154. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2155. prt.Anchored=true
  2156. prt.Material = "Neon"
  2157. prt.CFrame=cframe
  2158. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2159. game:GetService("Debris"):AddItem(prt,5)
  2160. coroutine.resume(coroutine.create(function(Part,Mesh)
  2161. local rtype = rottype
  2162. for i=0,1,delay do
  2163. swait()
  2164. if rtype == 1 then
  2165. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2166. elseif rtype == 2 then
  2167. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2168. end
  2169. prt.Transparency=i
  2170. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2171. end
  2172. Part.Parent=nil
  2173. end),prt,msh)
  2174. end
  2175.  
  2176. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2177. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2178. prt.Anchored=true
  2179. prt.Material = "Neon"
  2180. prt.CFrame=cframe
  2181. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2182. game:GetService("Debris"):AddItem(prt,5)
  2183. coroutine.resume(coroutine.create(function(Part,Mesh)
  2184. local rtype = rottype
  2185. for i=0,1,delay do
  2186. swait()
  2187. if rtype == 1 then
  2188. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2189. elseif rtype == 2 then
  2190. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2191. end
  2192. prt.Transparency=i
  2193. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2194. end
  2195. Part.Parent=nil
  2196. end),prt,msh)
  2197. end
  2198.  
  2199. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2200. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2201. prt.Anchored=true
  2202. prt.Material = "Neon"
  2203. prt.CFrame=cframe
  2204. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2205. game:GetService("Debris"):AddItem(prt,5)
  2206. coroutine.resume(coroutine.create(function(Part,Mesh)
  2207. local rtype = rottype
  2208. for i=0,1,delay do
  2209. swait()
  2210. if rtype == 1 then
  2211. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2212. elseif rtype == 2 then
  2213. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2214. end
  2215. prt.Transparency=i
  2216. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2217. end
  2218. Part.Parent=nil
  2219. end),prt,msh)
  2220. end
  2221.  
  2222. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2223. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2224. prt.Anchored=false
  2225. prt.CFrame=cframe
  2226. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2227. local wld=weld(prt,prt,Parent,cframe)
  2228. game:GetService("Debris"):AddItem(prt,5)
  2229. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2230. for i=0,1,delay do
  2231. wait()
  2232. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2233. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2234. Part.Transparency=i
  2235. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2236. end
  2237. Part.Parent=nil
  2238. end),prt,msh,wld)
  2239. end
  2240.  
  2241. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2242. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2243. prt.Anchored=false
  2244. prt.CFrame=cframe
  2245. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2246. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2247. game:GetService("Debris"):AddItem(prt,5)
  2248. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2249. for i=0,1,delay do
  2250. wait()
  2251. Weld.C0=euler(i*20,0,0)
  2252. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2253. Part.Transparency=i
  2254. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2255. end
  2256. Part.Parent=nil
  2257. end),prt,msh,wld)
  2258. end
  2259.  
  2260. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2261. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2262. prt.Anchored=true
  2263. prt.CFrame=cframe
  2264. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2265. game:GetService("Debris"):AddItem(prt,2)
  2266. coroutine.resume(coroutine.create(function(Part,Mesh)
  2267. for i=0,1,delay do
  2268. wait()
  2269. Part.CFrame=Part.CFrame
  2270. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2271. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2272. prt2.Anchored=true
  2273. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2274. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2275. game:GetService("Debris"):AddItem(prt2,2)
  2276. coroutine.resume(coroutine.create(function(Part,Mesh)
  2277. for i=0,1,0.1 do
  2278. wait()
  2279. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2280. end
  2281. Part.Parent=nil
  2282. end),prt2,msh2)
  2283. end
  2284. for i=0,1,delay*2 do
  2285. wait()
  2286. Part.CFrame=Part.CFrame
  2287. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2288. end
  2289. Part.Parent=nil
  2290. end),prt,msh)
  2291. end
  2292.  
  2293. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2294. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2295. prt.Anchored=true
  2296. prt.CFrame=cframe
  2297. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2298. game:GetService("Debris"):AddItem(prt,2)
  2299. coroutine.resume(coroutine.create(function(Part,Mesh)
  2300. for i=0,1,delay do
  2301. wait()
  2302. Part.CFrame=Part.CFrame
  2303. Part.Transparency=i
  2304. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2305. end
  2306. Part.Parent=nil
  2307. end),prt,msh)
  2308. end
  2309.  
  2310. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2311. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2312. prt.Anchored=true
  2313. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2314. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2315. game:GetService("Debris"):AddItem(prt,2)
  2316. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2317. CF=Part.CFrame
  2318. Numbb=0
  2319. randnumb=math.random()/10
  2320. rand1=math.random()/10
  2321. for i=0,1,rand1 do
  2322. wait()
  2323. CF=CF*cf(0,math.random()/2,0)
  2324. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2325. Part.CFrame=CF*euler(Numbb,0,0)
  2326. Part.Transparency=i
  2327. Numbb=Numbb+randnumb
  2328. end
  2329. Part.Parent=nil
  2330. end),prt,CF,Numbb,randnumb)
  2331. end
  2332.  
  2333. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2334. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2335. prt.Anchored=true
  2336. prt.CFrame=cframe
  2337. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2338. game:GetService("Debris"):AddItem(prt,5)
  2339. coroutine.resume(coroutine.create(function(Part,Mesh)
  2340. for i=0,1,delay do
  2341. wait()
  2342. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2343. Part.Transparency=i
  2344. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2345. end
  2346. Part.Parent=nil
  2347. end),prt,msh)
  2348. end
  2349.  
  2350. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2351. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2352. prt.Anchored=true
  2353. prt.CFrame=cframe
  2354. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2355. game:GetService("Debris"):AddItem(prt,2)
  2356. coroutine.resume(coroutine.create(function(Part,Mesh)
  2357. for i=0,1,delay do
  2358. wait()
  2359. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2360. Part.Transparency=i
  2361. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2362. end
  2363. Part.Parent=nil
  2364. end),prt,msh)
  2365. end
  2366.  
  2367. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2368. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2369. prt.Anchored=true
  2370. prt.CFrame=cframe*cf(x,y,z)
  2371. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2372. game:GetService("Debris"):AddItem(prt,5)
  2373. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2374. local num=math.random()
  2375. local num2=math.random(-3,2)+math.random()
  2376. local numm=0
  2377. for i=0,1,delay*2 do
  2378. swait()
  2379. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2380. Part.Transparency=i
  2381. numm=numm+0.01
  2382. end
  2383. Part.Parent=nil
  2384. Mesh.Parent=nil
  2385. end),prt,msh,x,y,z)
  2386. end
  2387.  
  2388. function dmgstart(dmg,what)
  2389. hitcon = what.Touched:connect(function(hit)
  2390. local hum = hit.Parent:FindFirstChild("Humanoid")
  2391. if hum and not hum:IsDescendantOf(Character) then
  2392. hum:TakeDamage(dmg)
  2393. end
  2394. end)
  2395. end
  2396.  
  2397. function dmgstop()
  2398. hitcon:disconnect()
  2399. end
  2400.  
  2401. function Cloak()
  2402. Face.Parent=nil
  2403. cloaked=true
  2404. for _,v in pairs(Torso.Parent:children()) do
  2405. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2406. coroutine.resume(coroutine.create(function()
  2407. for i=0,1,0.2 do
  2408. wait()
  2409. v.Transparency=i
  2410. end
  2411. v.Transparency=1
  2412. end))
  2413. end
  2414. if v.className=="Hat" then
  2415. hatp=v.Handle
  2416. coroutine.resume(coroutine.create(function(derp)
  2417. for i=0,1,0.2 do
  2418. wait()
  2419. derp.Transparency=i
  2420. end
  2421. derp.Transparency=1
  2422. end),hatp)
  2423. end
  2424. end
  2425. for _,v in pairs(m:children()) do
  2426. if v.className=="Part" then
  2427. coroutine.resume(coroutine.create(function()
  2428. for i=0,1,0.2 do
  2429. wait()
  2430. v.Transparency=i
  2431. end
  2432. v.Transparency=1
  2433. end))
  2434. end
  2435. end
  2436. end
  2437.  
  2438. function UnCloak()
  2439. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2440. Face.Parent=Head
  2441. cloaked=false
  2442. for _,v in pairs(Torso.Parent:children()) do
  2443. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2444. coroutine.resume(coroutine.create(function()
  2445. for i=0,1,0.1 do
  2446. wait()
  2447. v.Transparency=v.Transparency-0.1
  2448. end
  2449. v.Transparency=0
  2450. end))
  2451. end
  2452. if v.className=="Hat" then
  2453. hatp=v.Handle
  2454. coroutine.resume(coroutine.create(function(derp)
  2455. for i=0,1,0.1 do
  2456. wait()
  2457. derp.Transparency=derp.Transparency-0.1
  2458. end
  2459. derp.Transparency=0
  2460. end),hatp)
  2461. end
  2462. end
  2463. for _,v in pairs(m:children()) do
  2464. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2465. coroutine.resume(coroutine.create(function()
  2466. for i=0,1,0.1 do
  2467. wait()
  2468. v.Transparency=v.Transparency-0.1
  2469. end
  2470. v.Transparency=0
  2471. end))
  2472. v.Transparency=0
  2473. end
  2474. end
  2475. end
  2476.  
  2477. local origcolor = BrickColor.new("Pastel light blue")
  2478. ---- This section of explosions.
  2479.  
  2480. ----
  2481.  
  2482.  
  2483. function ring(type,pos,scale,value)
  2484. local type = type
  2485. local rng = Instance.new("Part", char)
  2486. rng.Anchored = true
  2487. rng.BrickColor = origcolor
  2488. rng.CanCollide = false
  2489. rng.FormFactor = 3
  2490. rng.Name = "Ring"
  2491. rng.Size = Vector3.new(1, 1, 1)
  2492. rng.Transparency = 0
  2493. rng.TopSurface = 0
  2494. rng.BottomSurface = 0
  2495. rng.CFrame = pos
  2496. local rngm = Instance.new("SpecialMesh", rng)
  2497. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2498. rngm.Scale = scale
  2499. local scaler2 = 1
  2500. if type == "Add" then
  2501. scaler2 = 1*value
  2502. elseif type == "Divide" then
  2503. scaler2 = 1/value
  2504. end
  2505. coroutine.resume(coroutine.create(function()
  2506. for i = 0,10,0.1 do
  2507. swait()
  2508. if type == "Add" then
  2509. scaler2 = scaler2 - 0.01*value
  2510. elseif type == "Divide" then
  2511. scaler2 = scaler2 - 0.01/value
  2512. end
  2513. rng.Transparency = rng.Transparency + 0.01
  2514. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2515. end
  2516. rng:Destroy()
  2517. end))
  2518. end
  2519.  
  2520.  
  2521. function wave(type,pos,scale,value)
  2522. local type = type
  2523. local rng = Instance.new("Part", char)
  2524. rng.Anchored = true
  2525. rng.BrickColor = origcolor
  2526. rng.CanCollide = false
  2527. rng.FormFactor = 3
  2528. rng.Name = "Ring"
  2529. rng.Size = Vector3.new(1, 1, 1)
  2530. rng.Transparency = 0
  2531. rng.TopSurface = 0
  2532. rng.BottomSurface = 0
  2533. rng.CFrame = pos
  2534. local rngm = Instance.new("SpecialMesh", rng)
  2535. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2536. rngm.Scale = scale
  2537. local scaler2 = 1
  2538. if type == "Add" then
  2539. scaler2 = 1*value
  2540. elseif type == "Divide" then
  2541. scaler2 = 1/value
  2542. end
  2543. coroutine.resume(coroutine.create(function()
  2544. for i = 0,10,0.1 do
  2545. swait()
  2546. if type == "Add" then
  2547. scaler2 = scaler2 - 0.01*value
  2548. elseif type == "Divide" then
  2549. scaler2 = scaler2 - 0.01/value
  2550. end
  2551. rng.Transparency = rng.Transparency + 0.01
  2552. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2553. end
  2554. rng:Destroy()
  2555. end))
  2556. end
  2557.  
  2558. function wind(type,pos,scale,value,speed)
  2559. local type = type
  2560. local rng = Instance.new("Part", char)
  2561. rng.Anchored = true
  2562. rng.BrickColor = origcolor
  2563. rng.CanCollide = false
  2564. rng.FormFactor = 3
  2565. rng.Name = "Ring"
  2566. rng.Size = Vector3.new(1, 1, 1)
  2567. rng.Transparency = 0
  2568. rng.TopSurface = 0
  2569. rng.BottomSurface = 0
  2570. rng.CFrame = pos
  2571. local rngm = Instance.new("SpecialMesh", rng)
  2572. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2573. rngm.Scale = scale
  2574. local scaler2 = 1
  2575. if type == "Add" then
  2576. scaler2 = 1*value
  2577. elseif type == "Divide" then
  2578. scaler2 = 1/value
  2579. end
  2580. coroutine.resume(coroutine.create(function()
  2581. for i = 0,10,0.1 do
  2582. swait()
  2583. if type == "Add" then
  2584. scaler2 = scaler2 - 0.01*value
  2585. elseif type == "Divide" then
  2586. scaler2 = scaler2 - 0.01/value
  2587. end
  2588. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2589. rng.Transparency = rng.Transparency + 0.01
  2590. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2591. end
  2592. rng:Destroy()
  2593. end))
  2594. end
  2595.  
  2596. function groundwind(type,pos,scale,value,speed)
  2597. local type = type
  2598. local rng = Instance.new("Part", char)
  2599. rng.Anchored = true
  2600. rng.BrickColor = origcolor
  2601. rng.CanCollide = false
  2602. rng.FormFactor = 3
  2603. rng.Name = "Ring"
  2604. rng.Size = Vector3.new(1, 1, 1)
  2605. rng.Transparency = 0
  2606. rng.TopSurface = 0
  2607. rng.BottomSurface = 0
  2608. rng.CFrame = pos
  2609. local rngm = Instance.new("SpecialMesh", rng)
  2610. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2611. rngm.Scale = scale
  2612. local scaler2 = 1
  2613. if type == "Add" then
  2614. scaler2 = 1*value
  2615. elseif type == "Divide" then
  2616. scaler2 = 1/value
  2617. end
  2618. coroutine.resume(coroutine.create(function()
  2619. for i = 0,10,0.1 do
  2620. swait()
  2621. if type == "Add" then
  2622. scaler2 = scaler2 - 0.01*value
  2623. elseif type == "Divide" then
  2624. scaler2 = scaler2 - 0.01/value
  2625. end
  2626. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2627. rng.Transparency = rng.Transparency + 0.01
  2628. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2629. end
  2630. rng:Destroy()
  2631. end))
  2632. end
  2633.  
  2634. function CameraManager()
  2635. if TwoD and not CamInterrupt then
  2636. if Humanoid.Health > 0 then
  2637. Camera.CameraSubject = Humanoid
  2638. Camera.CameraType = "Scriptable"
  2639. Humanoid.AutoRotate = false
  2640. if Booleans.GyroUse then
  2641. Directer.MaxTorque = Vec3(0, huge, 0)
  2642. else
  2643. Directer.MaxTorque = Vec3(0, 0, 0)
  2644. end
  2645. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2646. if Booleans.CamFollow then
  2647. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2648. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2649. else
  2650. CPart.Position = RootPart.Position
  2651. end
  2652. else
  2653. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2654. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2655. end
  2656. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2657. else
  2658. Camera.CameraSubject = Humanoid
  2659. Camera.CameraType = "Custom"
  2660. Controller.Disabled = false
  2661. end
  2662. end
  2663. end
  2664.  
  2665. function ring(type,pos,scale,value)
  2666. local type = type
  2667. local rng = Instance.new("Part", char)
  2668. rng.Anchored = true
  2669. rng.BrickColor = origcolor
  2670. rng.CanCollide = false
  2671. rng.FormFactor = 3
  2672. rng.Name = "Ring"
  2673. rng.Size = Vector3.new(1, 1, 1)
  2674. rng.Transparency = 0
  2675. rng.TopSurface = 0
  2676. rng.BottomSurface = 0
  2677. rng.CFrame = pos
  2678. local rngm = Instance.new("SpecialMesh", rng)
  2679. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2680. rngm.Scale = scale
  2681. local scaler2 = 1
  2682. if type == "Add" then
  2683. scaler2 = 1*value
  2684. elseif type == "Divide" then
  2685. scaler2 = 1/value
  2686. end
  2687. coroutine.resume(coroutine.create(function()
  2688. for i = 0,10,0.1 do
  2689. swait()
  2690. if type == "Add" then
  2691. scaler2 = scaler2 - 0.01*value
  2692. elseif type == "Divide" then
  2693. scaler2 = scaler2 - 0.01/value
  2694. end
  2695. rng.Transparency = rng.Transparency + 0.01
  2696. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2697. end
  2698. rng:Destroy()
  2699. end))
  2700. end
  2701.  
  2702.  
  2703. function wave(type,pos,scale,value)
  2704. local type = type
  2705. local rng = Instance.new("Part", char)
  2706. rng.Anchored = true
  2707. rng.BrickColor = origcolor
  2708. rng.CanCollide = false
  2709. rng.FormFactor = 3
  2710. rng.Name = "Ring"
  2711. rng.Size = Vector3.new(1, 1, 1)
  2712. rng.Transparency = 0
  2713. rng.TopSurface = 0
  2714. rng.BottomSurface = 0
  2715. rng.CFrame = pos
  2716. local rngm = Instance.new("SpecialMesh", rng)
  2717. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2718. rngm.Scale = scale
  2719. local scaler2 = 1
  2720. if type == "Add" then
  2721. scaler2 = 1*value
  2722. elseif type == "Divide" then
  2723. scaler2 = 1/value
  2724. end
  2725. coroutine.resume(coroutine.create(function()
  2726. for i = 0,10,0.1 do
  2727. swait()
  2728. if type == "Add" then
  2729. scaler2 = scaler2 - 0.01*value
  2730. elseif type == "Divide" then
  2731. scaler2 = scaler2 - 0.01/value
  2732. end
  2733. rng.Transparency = rng.Transparency + 0.01
  2734. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2735. end
  2736. rng:Destroy()
  2737. end))
  2738. end
  2739.  
  2740. function sphere(bonuspeed,type,pos,scale,value,color)
  2741. local type = type
  2742. local rng = Instance.new("Part", char)
  2743. rng.Anchored = true
  2744. if ModeOfGlitch ~= 0 then
  2745. rng.BrickColor = color
  2746. elseif ModeOfGlitch == 0 then
  2747. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2748. end
  2749. rng.CanCollide = false
  2750. rng.FormFactor = 3
  2751. rng.Name = "Ring"
  2752. rng.Material = "Neon"
  2753. rng.Size = Vector3.new(1, 1, 1)
  2754. rng.Transparency = 0
  2755. rng.TopSurface = 0
  2756. rng.BottomSurface = 0
  2757. rng.CFrame = pos
  2758. local rngm = Instance.new("SpecialMesh", rng)
  2759. rngm.MeshType = "Sphere"
  2760. rngm.Scale = scale
  2761. if rainbowmode == true then
  2762. rng.Color = Color3.new(r/255,g/255,b/255)
  2763. end
  2764. if ModeOfGlitch == 0 then
  2765. coroutine.resume(coroutine.create(function()
  2766. while true do
  2767. swait()
  2768. if rng.Parent ~= nil then
  2769. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2770. else
  2771. break
  2772. end
  2773. end
  2774. end))
  2775. end
  2776. local scaler2 = 1
  2777. if type == "Add" then
  2778. scaler2 = 1*value
  2779. elseif type == "Divide" then
  2780. scaler2 = 1/value
  2781. end
  2782. coroutine.resume(coroutine.create(function()
  2783. for i = 0,10/bonuspeed,0.1 do
  2784. swait()
  2785. if rainbowmode == true then
  2786. rng.Color = Color3.new(r/255,g/255,b/255)
  2787. end
  2788. if type == "Add" then
  2789. scaler2 = scaler2 - 0.01*value/bonuspeed
  2790. elseif type == "Divide" then
  2791. scaler2 = scaler2 - 0.01/value*bonuspeed
  2792. end
  2793. if chaosmode == true then
  2794. rng.BrickColor = BrickColor.random()
  2795. end
  2796. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2797. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2798. end
  2799. rng:Destroy()
  2800. end))
  2801. end
  2802.  
  2803. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2804. local type = type
  2805. local rng = Instance.new("Part", char)
  2806. rng.Anchored = true
  2807. if ModeOfGlitch ~= 0 then
  2808. rng.BrickColor = color
  2809. elseif ModeOfGlitch == 0 then
  2810. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2811. end
  2812. rng.CanCollide = false
  2813. rng.FormFactor = 3
  2814. rng.Name = "Ring"
  2815. rng.Material = "Neon"
  2816. rng.Size = Vector3.new(1, 1, 1)
  2817. rng.Transparency = 0
  2818. rng.TopSurface = 0
  2819. rng.BottomSurface = 0
  2820. rng.CFrame = pos
  2821. local rngm = Instance.new("SpecialMesh", rng)
  2822. rngm.MeshType = "Sphere"
  2823. rngm.Scale = scale
  2824. local scaler2 = 1
  2825. local scaler2b = 1
  2826. local scaler2c = 1
  2827. if type == "Add" then
  2828. scaler2 = 1*value
  2829. scaler2b = 1*value2
  2830. scaler2c = 1*value3
  2831. elseif type == "Divide" then
  2832. scaler2 = 1/value
  2833. scaler2b = 1/value2
  2834. scaler2c = 1/value3
  2835. end
  2836. if ModeOfGlitch == 0 then
  2837. coroutine.resume(coroutine.create(function()
  2838. while true do
  2839. swait()
  2840. if rng.Parent ~= nil then
  2841. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2842. else
  2843. break
  2844. end
  2845. end
  2846. end))
  2847. end
  2848. coroutine.resume(coroutine.create(function()
  2849. for i = 0,10/bonuspeed,0.1 do
  2850. swait()
  2851. if type == "Add" then
  2852. scaler2 = scaler2 - 0.01*value/bonuspeed
  2853. scaler2b = scaler2b - 0.01*value/bonuspeed
  2854. scaler2c = scaler2c - 0.01*value/bonuspeed
  2855. elseif type == "Divide" then
  2856. scaler2 = scaler2 - 0.01/value*bonuspeed
  2857. scaler2b = scaler2b - 0.01/value*bonuspeed
  2858. scaler2c = scaler2c - 0.01/value*bonuspeed
  2859. end
  2860. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2861. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2862. end
  2863. rng:Destroy()
  2864. end))
  2865. end
  2866.  
  2867. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2868. local type = type
  2869. local rotenable = rotatingop
  2870. local rng = Instance.new("Part", char)
  2871. rng.Anchored = true
  2872. rng.BrickColor = color
  2873. rng.CanCollide = false
  2874. rng.FormFactor = 3
  2875. rng.Name = "Ring"
  2876. rng.Material = "Neon"
  2877. rng.Size = Vector3.new(1, 1, 1)
  2878. rng.Transparency = 0
  2879. if typeoftrans == "In" then
  2880. rng.Transparency = 1
  2881. end
  2882. rng.TopSurface = 0
  2883. rng.BottomSurface = 0
  2884. rng.CFrame = pos
  2885. local rngm = Instance.new("SpecialMesh", rng)
  2886. rngm.MeshType = "FileMesh"
  2887. if typeofshape == "Normal" then
  2888. rngm.MeshId = "rbxassetid://662586858"
  2889. elseif typeofshape == "Round" then
  2890. rngm.MeshId = "rbxassetid://662585058"
  2891. end
  2892. rngm.Scale = scale
  2893. local scaler2 = 1/10
  2894. if type == "Add" then
  2895. scaler2 = 1*value/10
  2896. elseif type == "Divide" then
  2897. scaler2 = 1/value/10
  2898. end
  2899. local randomrot = math.random(1,2)
  2900. coroutine.resume(coroutine.create(function()
  2901. for i = 0,10/bonuspeed,0.1 do
  2902. swait()
  2903. if type == "Add" then
  2904. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2905. elseif type == "Divide" then
  2906. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2907. end
  2908. if rotenable == true then
  2909. if randomrot == 1 then
  2910. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2911. elseif randomrot == 2 then
  2912. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2913. end
  2914. end
  2915. if typeoftrans == "Out" then
  2916. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2917. elseif typeoftrans == "In" then
  2918. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2919. end
  2920. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2921. end
  2922. rng:Destroy()
  2923. end))
  2924. end
  2925.  
  2926. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2927. local type = type
  2928. local rng = Instance.new("Part", char)
  2929. rng.Anchored = true
  2930. rng.BrickColor = color
  2931. rng.CanCollide = false
  2932. rng.FormFactor = 3
  2933. rng.Name = "Ring"
  2934. rng.Material = "Neon"
  2935. rng.Size = Vector3.new(1, 1, 1)
  2936. rng.Transparency = 0
  2937. rng.TopSurface = 0
  2938. rng.BottomSurface = 0
  2939. rng.CFrame = pos
  2940. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2941. local rngm = Instance.new("SpecialMesh", rng)
  2942. rngm.MeshType = "Brick"
  2943. rngm.Scale = vt(x1,y1,z1)
  2944. if rainbowmode == true then
  2945. rng.Color = Color3.new(r/255,g/255,b/255)
  2946. end
  2947. local scaler2 = 1
  2948. local speeder = FastSpeed/10
  2949. if type == "Add" then
  2950. scaler2 = 1*value
  2951. elseif type == "Divide" then
  2952. scaler2 = 1/value
  2953. end
  2954. coroutine.resume(coroutine.create(function()
  2955. for i = 0,10/bonuspeed,0.1 do
  2956. swait()
  2957. if rainbowmode == true then
  2958. rng.Color = Color3.new(r/255,g/255,b/255)
  2959. end
  2960. if type == "Add" then
  2961. scaler2 = scaler2 - 0.01*value/bonuspeed
  2962. elseif type == "Divide" then
  2963. scaler2 = scaler2 - 0.01/value*bonuspeed
  2964. end
  2965. if chaosmode == true then
  2966. rng.BrickColor = BrickColor.random()
  2967. end
  2968. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2969. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2970. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2971. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2972. end
  2973. rng:Destroy()
  2974. end))
  2975. end
  2976.  
  2977. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2978. local type = type
  2979. local rng = Instance.new("Part", char)
  2980. rng.Anchored = true
  2981. rng.BrickColor = color
  2982. rng.CanCollide = false
  2983. rng.FormFactor = 3
  2984. rng.Name = "Ring"
  2985. rng.Material = "Neon"
  2986. rng.Size = Vector3.new(1, 1, 1)
  2987. rng.Transparency = 0
  2988. rng.TopSurface = 0
  2989. rng.BottomSurface = 0
  2990. rng.CFrame = pos
  2991. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2992. local rngm = Instance.new("SpecialMesh", rng)
  2993. rngm.MeshType = "Brick"
  2994. rngm.Scale = vt(x1,y1,z1)
  2995. if rainbowmode == true then
  2996. rng.Color = Color3.new(r/255,g/255,b/255)
  2997. end
  2998. local scaler2 = 1
  2999. local speeder = FastSpeed/10
  3000. if type == "Add" then
  3001. scaler2 = 1*value
  3002. elseif type == "Divide" then
  3003. scaler2 = 1/value
  3004. end
  3005. coroutine.resume(coroutine.create(function()
  3006. for i = 0,10/bonuspeed,0.1 do
  3007. swait()
  3008. if rainbowmode == true then
  3009. rng.Color = Color3.new(r/255,g/255,b/255)
  3010. end
  3011. if type == "Add" then
  3012. scaler2 = scaler2 - 0.01*value/bonuspeed
  3013. elseif type == "Divide" then
  3014. scaler2 = scaler2 - 0.01/value*bonuspeed
  3015. end
  3016. if chaosmode == true then
  3017. rng.BrickColor = BrickColor.random()
  3018. end
  3019. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3020. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3021. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3022. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3023. end
  3024. rng:Destroy()
  3025. end))
  3026. end
  3027.  
  3028. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3029. local type = type
  3030. local rng = Instance.new("Part", char)
  3031. rng.Anchored = true
  3032. rng.BrickColor = color
  3033. rng.CanCollide = false
  3034. rng.FormFactor = 3
  3035. rng.Name = "Ring"
  3036. rng.Material = "Neon"
  3037. rng.Size = Vector3.new(1, 1, 1)
  3038. rng.Transparency = 0
  3039. rng.TopSurface = 0
  3040. rng.BottomSurface = 0
  3041. rng.CFrame = pos
  3042. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3043. local rngm = Instance.new("SpecialMesh", rng)
  3044. rngm.MeshType = "Brick"
  3045. rngm.Scale = vt(x1,y1,z1)
  3046. if rainbowmode == true then
  3047. rng.Color = Color3.new(r/255,g/255,b/255)
  3048. end
  3049. local scaler2 = 0
  3050. local speeder = FastSpeed/10
  3051. if type == "Add" then
  3052. scaler2 = 1*value
  3053. elseif type == "Divide" then
  3054. scaler2 = 1/value
  3055. end
  3056. coroutine.resume(coroutine.create(function()
  3057. for i = 0,10/bonuspeed,0.1 do
  3058. swait()
  3059. if rainbowmode == true then
  3060. rng.Color = Color3.new(r/255,g/255,b/255)
  3061. end
  3062. if type == "Add" then
  3063. scaler2 = scaler2 - 0.01*value/bonuspeed
  3064. elseif type == "Divide" then
  3065. scaler2 = scaler2 - 0.01/value*bonuspeed
  3066. end
  3067. if chaosmode == true then
  3068. rng.BrickColor = BrickColor.random()
  3069. end
  3070. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3071. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3072. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3073. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3074. end
  3075. rng:Destroy()
  3076. end))
  3077. end
  3078.  
  3079. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3080. local type = type
  3081. local rng = Instance.new("Part", char)
  3082. rng.Anchored = true
  3083. rng.BrickColor = color
  3084. rng.Color = color3
  3085. rng.CanCollide = false
  3086. rng.FormFactor = 3
  3087. rng.Name = "Ring"
  3088. rng.Material = "Neon"
  3089. rng.Size = Vector3.new(1, 1, 1)
  3090. rng.Transparency = 0
  3091. rng.TopSurface = 0
  3092. rng.BottomSurface = 0
  3093. rng.CFrame = pos
  3094. local rngm = Instance.new("SpecialMesh", rng)
  3095. rngm.MeshType = "Brick"
  3096. rngm.Scale = scale
  3097. local scaler2 = 1
  3098. local scaler2b = 1
  3099. local scaler2c = 1
  3100. if type == "Add" then
  3101. scaler2 = 1*value
  3102. scaler2b = 1*value2
  3103. scaler2c = 1*value3
  3104. elseif type == "Divide" then
  3105. scaler2 = 1/value
  3106. scaler2b = 1/value2
  3107. scaler2c = 1/value3
  3108. end
  3109. coroutine.resume(coroutine.create(function()
  3110. for i = 0,10/bonuspeed,0.1 do
  3111. swait()
  3112. if type == "Add" then
  3113. scaler2 = scaler2 - 0.01*value/bonuspeed
  3114. scaler2b = scaler2b - 0.01*value/bonuspeed
  3115. scaler2c = scaler2c - 0.01*value/bonuspeed
  3116. elseif type == "Divide" then
  3117. scaler2 = scaler2 - 0.01/value*bonuspeed
  3118. scaler2b = scaler2b - 0.01/value*bonuspeed
  3119. scaler2c = scaler2c - 0.01/value*bonuspeed
  3120. end
  3121. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3122. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3123. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3124. end
  3125. rng:Destroy()
  3126. end))
  3127. end
  3128.  
  3129. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3130. local type = type
  3131. local rng = Instance.new("Part", char)
  3132. rng.Anchored = true
  3133. if ModeOfGlitch ~= 0 then
  3134. rng.BrickColor = color
  3135. elseif ModeOfGlitch == 0 then
  3136. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3137. end
  3138. rng.CanCollide = false
  3139. rng.FormFactor = 3
  3140. rng.Name = "Ring"
  3141. rng.Material = "Neon"
  3142. rng.Size = Vector3.new(1, 1, 1)
  3143. rng.Transparency = 0
  3144. rng.TopSurface = 0
  3145. rng.BottomSurface = 0
  3146. rng.CFrame = pos
  3147. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3148. local rngm = Instance.new("SpecialMesh", rng)
  3149. rngm.MeshType = "Sphere"
  3150. rngm.Scale = vt(x1,y1,z1)
  3151. if rainbowmode == true then
  3152. rng.Color = Color3.new(r/255,g/255,b/255)
  3153. end
  3154. if ModeOfGlitch == 0 then
  3155. coroutine.resume(coroutine.create(function()
  3156. while true do
  3157. swait()
  3158. if rng.Parent ~= nil then
  3159. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3160. else
  3161. break
  3162. end
  3163. end
  3164. end))
  3165. end
  3166. local scaler2 = 1
  3167. local speeder = FastSpeed
  3168. if type == "Add" then
  3169. scaler2 = 1*value
  3170. elseif type == "Divide" then
  3171. scaler2 = 1/value
  3172. end
  3173. coroutine.resume(coroutine.create(function()
  3174. for i = 0,10/bonuspeed,0.1 do
  3175. swait()
  3176. if rainbowmode == true then
  3177. rng.Color = Color3.new(r/255,g/255,b/255)
  3178. end
  3179. if type == "Add" then
  3180. scaler2 = scaler2 - 0.01*value/bonuspeed
  3181. elseif type == "Divide" then
  3182. scaler2 = scaler2 - 0.01/value*bonuspeed
  3183. end
  3184. if chaosmode == true then
  3185. rng.BrickColor = BrickColor.random()
  3186. end
  3187. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3188. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3189. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3190. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3191. end
  3192. rng:Destroy()
  3193. end))
  3194. end
  3195.  
  3196.  
  3197. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3198. local type = type
  3199. local rng = Instance.new("Part", char)
  3200. rng.Anchored = true
  3201. if ModeOfGlitch ~= 0 then
  3202. rng.BrickColor = color
  3203. elseif ModeOfGlitch == 0 then
  3204. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3205. end
  3206. rng.CanCollide = false
  3207. rng.FormFactor = 3
  3208. rng.Name = "Ring"
  3209. rng.Material = "Neon"
  3210. rng.Size = Vector3.new(1, 1, 1)
  3211. rng.Transparency = 1
  3212. rng.TopSurface = 0
  3213. rng.BottomSurface = 0
  3214. rng.CFrame = pos
  3215. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3216. local rngm = Instance.new("SpecialMesh", rng)
  3217. rngm.MeshType = "Sphere"
  3218. rngm.Scale = vt(x1,y1,z1)
  3219. if rainbowmode == true then
  3220. rng.Color = Color3.new(r/255,g/255,b/255)
  3221. end
  3222. if ModeOfGlitch == 0 then
  3223. coroutine.resume(coroutine.create(function()
  3224. while true do
  3225. swait()
  3226. if rng.Parent ~= nil then
  3227. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3228. else
  3229. break
  3230. end
  3231. end
  3232. end))
  3233. end
  3234. local scaler2 = 1
  3235. local speeder = FastSpeed
  3236. if type == "Add" then
  3237. scaler2 = 1*value
  3238. elseif type == "Divide" then
  3239. scaler2 = 1/value
  3240. end
  3241. coroutine.resume(coroutine.create(function()
  3242. for i = 0,10/bonuspeed,0.1 do
  3243. swait()
  3244. if rainbowmode == true then
  3245. rng.Color = Color3.new(r/255,g/255,b/255)
  3246. end
  3247. if type == "Add" then
  3248. scaler2 = scaler2 - 0.01*value/bonuspeed
  3249. elseif type == "Divide" then
  3250. scaler2 = scaler2 - 0.01/value*bonuspeed
  3251. end
  3252. if chaosmode == true then
  3253. rng.BrickColor = BrickColor.random()
  3254. end
  3255. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3256. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3257. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3258. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3259. end
  3260. rng:Destroy()
  3261. end))
  3262. end
  3263.  
  3264. function dmg(dude)
  3265. if dude.Name ~= Character then
  3266. local keptcolor = MAINRUINCOLOR
  3267. local bgf = Instance.new("BodyGyro",dude.Head)
  3268. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3269. --[[local val = Instance.new("BoolValue",dude)
  3270. val.Name = "IsHit"]]--
  3271. local ds = coroutine.wrap(function()
  3272. dude:WaitForChild("Head"):BreakJoints()
  3273. for i, v in pairs(dude:GetChildren()) do
  3274. if v:IsA("Part") or v:IsA("MeshPart") then
  3275. v.Name = "DEMINISHED"
  3276. end
  3277. end
  3278. wait(0.5)
  3279. targetted = nil
  3280. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3281. coroutine.resume(coroutine.create(function()
  3282. for i, v in pairs(dude:GetChildren()) do
  3283. if v:IsA("Accessory") then
  3284. v:Destroy()
  3285. end
  3286. if v:IsA("Humanoid") then
  3287. v:Destroy()
  3288. end
  3289. if v:IsA("CharacterMesh") then
  3290. v:Destroy()
  3291. end
  3292. if v:IsA("Model") then
  3293. v:Destroy()
  3294. end
  3295. if v:IsA("Part") or v:IsA("MeshPart") then
  3296. for x, o in pairs(v:GetChildren()) do
  3297. if o:IsA("Decal") then
  3298. o:Destroy()
  3299. end
  3300. end
  3301. coroutine.resume(coroutine.create(function()
  3302. v.Material = "Neon"
  3303. v.CanCollide = false
  3304. v.Anchored = false
  3305. local bld = Instance.new("ParticleEmitter",v)
  3306. bld.LightEmission = 0.75
  3307. bld.Texture = "rbxassetid://363275192" ---284205403
  3308. bld.Color = ColorSequence.new(keptcolor.Color)
  3309. bld.Rate = 500
  3310. bld.Lifetime = NumberRange.new(1)
  3311. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3312. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3313. bld.Speed = NumberRange.new(2,5)
  3314. bld.VelocitySpread = 50000
  3315. bld.Rotation = NumberRange.new(-500,500)
  3316. bld.RotSpeed = NumberRange.new(-500,500)
  3317. local sbs = Instance.new("BodyPosition", v)
  3318. sbs.P = 3000
  3319. sbs.D = 1000
  3320. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3321. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3322. v.Color = keptcolor.Color
  3323. coroutine.resume(coroutine.create(function()
  3324. for i = 0, 49 do
  3325. swait(1)
  3326. v:BreakJoints()
  3327. v.Transparency = v.Transparency + 0.02
  3328. end
  3329. v:BreakJoints()
  3330. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3331. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3332. bld.Speed = NumberRange.new(10,25)
  3333. bld.Drag = 5
  3334. bld.Acceleration = vt(0,2,0)
  3335. wait(0.5)
  3336. bld.Enabled = false
  3337. wait(8)
  3338. v:Destroy()
  3339. dude:Destroy()
  3340. end))
  3341. end))
  3342. end
  3343. end
  3344. end))
  3345. end)
  3346. ds()
  3347. end
  3348. end
  3349.  
  3350.  
  3351. function FindNearestHead(Position, Distance, SinglePlayer)
  3352. if SinglePlayer then
  3353. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3354. end
  3355. local List = {}
  3356. for i, v in pairs(workspace:GetChildren()) do
  3357. if v:IsA("Model") then
  3358. if v:findFirstChild("Head") then
  3359. if v ~= Character then
  3360. if (v.Head.Position - Position).magnitude <= Distance then
  3361. table.insert(List, v)
  3362. end
  3363. end
  3364. end
  3365. end
  3366. end
  3367. return List
  3368. end
  3369.  
  3370. function FaceMouse()
  3371. Cam = workspace.CurrentCamera
  3372. return {
  3373. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3374. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3375. }
  3376. end
  3377.  
  3378. function FaceMouse2()
  3379. Cam = workspace.CurrentCamera
  3380. return {
  3381. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3382. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3383. }
  3384. end
  3385.  
  3386. local ModeOfGlitch = 1
  3387. -- Functions are ready.
  3388. local storehumanoidWS = 16
  3389.  
  3390. function CorruptBlink()
  3391. for i = 0, 14 do
  3392. 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)
  3393. end
  3394. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3395. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3396. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3397. CameraEnshaking(2,10)
  3398. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3399. if v:FindFirstChild('Head') then
  3400. dmg(v)
  3401. end
  3402. end
  3403. for i = 0, 14 do
  3404. 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)
  3405. end
  3406. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3407. end
  3408. function PureBomb()
  3409. attack = true
  3410. hum.WalkSpeed = 0
  3411. local orb = Instance.new("Part", char)
  3412. orb.Anchored = true
  3413. orb.BrickColor = BrickColor.new("Toothpaste")
  3414. orb.CanCollide = false
  3415. orb.FormFactor = 3
  3416. orb.Name = "Ring"
  3417. orb.Material = "Neon"
  3418. orb.Size = Vector3.new(1, 1, 1)
  3419. orb.Transparency = 0
  3420. orb.TopSurface = 0
  3421. orb.BottomSurface = 0
  3422. local orbm = Instance.new("SpecialMesh", orb)
  3423. orbm.MeshType = "Sphere"
  3424. orbm.Name = "SizeMesh"
  3425. orbm.Scale = vt(0,0,0)
  3426. local scaled = 0.1
  3427. local posid = 0
  3428. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3429. for i = 0, 5, 0.1 do
  3430. swait()
  3431. scaled = scaled - 0.001
  3432. posid = posid - scaled
  3433. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3434. local scaled = 0.1
  3435. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3436. 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)
  3437. 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)
  3438. 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)
  3439. 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)
  3440. 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)
  3441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3442. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3443. 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)
  3444. end
  3445. for i = 0, 2, 0.1 do
  3446. swait()
  3447. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3448. 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)
  3449. 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)
  3450. 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)
  3451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3453. 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)
  3454. end
  3455. coroutine.resume(coroutine.create(function()
  3456. orb.Anchored = false
  3457. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3458. local a = Instance.new("Part",workspace)
  3459. a.Name = "Direction"
  3460. a.Anchored = true
  3461. a.BrickColor = bc("Bright red")
  3462. a.Material = "Neon"
  3463. a.Transparency = 1
  3464. a.CanCollide = false
  3465. local ray = Ray.new(
  3466. orb.CFrame.p, -- origin
  3467. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3468. )
  3469. local ignore = orb
  3470. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3471. a.BottomSurface = 10
  3472. a.TopSurface = 10
  3473. local distance = (orb.CFrame.p - position).magnitude
  3474. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3475. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3476. orb.CFrame = a.CFrame
  3477. a:Destroy()
  3478. local bv = Instance.new("BodyVelocity")
  3479. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3480. bv.velocity = orb.CFrame.lookVector*125
  3481. bv.Parent = orb
  3482. local hitted = false
  3483. game:GetService("Debris"):AddItem(orb, 15)
  3484. wait()
  3485. local hit =orb.Touched:connect(function(hit)
  3486. if hitted == false then
  3487. hitted = true
  3488. CameraEnshaking(10,2.5)
  3489. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3490. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3491. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3492. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3493. for i = 0, 49 do
  3494. 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)
  3495. end
  3496. for i = 0, 9 do
  3497. 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)
  3498. 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)
  3499. end
  3500. orb.Anchored = true
  3501. orb.Transparency = 1
  3502. wait(8)
  3503. orb:Destroy()
  3504. end
  3505. end)
  3506. end))
  3507. for i = 0, 1, 0.1 do
  3508. swait()
  3509. 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)
  3510. 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)
  3511. 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)
  3512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3514. 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)
  3515. end
  3516. hum.WalkSpeed = storehumanoidWS
  3517. attack = false
  3518. end
  3519.  
  3520. function BanishingOrb()
  3521. attack = true
  3522. hum.WalkSpeed = 0
  3523. local radm = math.random(1,3)
  3524. if radm == 1 then
  3525. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3526. elseif radm == 2 then
  3527. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3528. elseif radm == 3 then
  3529. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3530. end
  3531. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3532. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3533. local orb = Instance.new("Part", char)
  3534. orb.Anchored = true
  3535. orb.BrickColor = BrickColor.new("Crimson")
  3536. orb.CanCollide = false
  3537. orb.FormFactor = 3
  3538. orb.Name = "Ring"
  3539. orb.Material = "Neon"
  3540. orb.Size = Vector3.new(1, 1, 1)
  3541. orb.Transparency = 0
  3542. orb.TopSurface = 0
  3543. orb.BottomSurface = 0
  3544. local orbm = Instance.new("SpecialMesh", orb)
  3545. orbm.MeshType = "Sphere"
  3546. orbm.Name = "SizeMesh"
  3547. orbm.Scale = vt(0,0,0)
  3548. local scaled = 0.1
  3549. local posid = 0
  3550. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3551. for i = 0, 5, 0.1 do
  3552. swait()
  3553. scaled = scaled - 0.001
  3554. posid = posid - scaled
  3555. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3556. local scaled = 0.1
  3557. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3558. 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)
  3559. 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)
  3560. 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)
  3561. 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)
  3562. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3563. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3564. 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)
  3565. end
  3566. for i = 0, 2, 0.1 do
  3567. swait()
  3568. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3569. 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)
  3570. 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)
  3571. 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)
  3572. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3573. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3574. 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)
  3575. end
  3576. coroutine.resume(coroutine.create(function()
  3577. orb.Anchored = false
  3578. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3579. local a = Instance.new("Part",workspace)
  3580. a.Name = "Direction"
  3581. a.Anchored = true
  3582. a.BrickColor = bc("Crimson")
  3583. a.Material = "Neon"
  3584. a.Transparency = 1
  3585. a.CanCollide = false
  3586. local ray = Ray.new(
  3587. orb.CFrame.p, -- origin
  3588. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3589. )
  3590. local ignore = orb
  3591. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3592. a.BottomSurface = 10
  3593. a.TopSurface = 10
  3594. local distance = (orb.CFrame.p - position).magnitude
  3595. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3596. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3597. orb.CFrame = a.CFrame
  3598. a:Destroy()
  3599. local bv = Instance.new("BodyVelocity")
  3600. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3601. bv.velocity = orb.CFrame.lookVector*0
  3602. bv.Parent = orb
  3603. local hitted = false
  3604. local rate = 0
  3605. coroutine.resume(coroutine.create(function()
  3606. for i = 0, 24 do
  3607. wait(0.1)
  3608. rate = rate + 0.25
  3609. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3610. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3611. if v:FindFirstChild('Head') then
  3612. dmg(v)
  3613. end
  3614. end
  3615. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3616. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Crimson")
  3617. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3618. end
  3619. orb.Anchored = true
  3620. orb.Transparency = 1
  3621. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3622. if v:FindFirstChild('Head') then
  3623. dmg(v)
  3624. end
  3625. end
  3626. local eff = Instance.new("ParticleEmitter",orb)
  3627. eff.Texture = "rbxassetid://296874871"
  3628. eff.LightEmission = 0.95
  3629. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3630. eff.Rate = 1000000000
  3631. eff.Lifetime = NumberRange.new(3)
  3632. 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)})
  3633. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3634. eff.Speed = NumberRange.new(30)
  3635. eff.Acceleration = vt(0,-15,0)
  3636. eff.Rotation = NumberRange.new(-500,500)
  3637. eff.VelocitySpread = 100000
  3638. eff.RotSpeed = NumberRange.new(-500,500)
  3639. coroutine.resume(coroutine.create(function()
  3640. wait(0.6)
  3641. eff.Enabled = false
  3642. end))
  3643. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3644. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3645. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Crimson")
  3646. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3647. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3648. game:GetService("Debris"):AddItem(orb, 15)
  3649. end))
  3650. end))
  3651. for i = 0, 1, 0.1 do
  3652. swait()
  3653. 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)
  3654. 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)
  3655. 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)
  3656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3658. 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)
  3659. end
  3660. hum.WalkSpeed = storehumanoidWS
  3661. attack = false
  3662. end
  3663.  
  3664.  
  3665. function ChaosGroundStrike()
  3666. attack = true
  3667. for i = 0, 2, 0.1 do
  3668. swait()
  3669. 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)
  3670. 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)
  3671. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3672. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3673. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3674. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3675. end
  3676. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3677. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3678. CameraEnshaking(4,12)
  3679. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3680. if v:FindFirstChild('Head') then
  3681. dmg(v)
  3682. end
  3683. end
  3684. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3685. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3686. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3687. for i = 0, 2, 0.1 do
  3688. swait()
  3689. 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)
  3690. 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)
  3691. 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)
  3692. 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)
  3693. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3695. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3696. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3697. end
  3698. attack = false
  3699. end
  3700.  
  3701.  
  3702.  
  3703. function Starfall()
  3704. attack = true
  3705. hum.WalkSpeed = 0
  3706. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3707. for i = 0, 5, 0.1 do
  3708. swait()
  3709. 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)
  3710. 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)
  3711. 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)
  3712. 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)
  3713. 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)
  3714. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3715. 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)
  3716. 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)
  3717. end
  3718. local Overed = false
  3719. CameraEnshaking(2,20)
  3720. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3721. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3722. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3723. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3724. local orb = Instance.new("Part", char)
  3725. orb.Anchored = true
  3726. orb.BrickColor = BrickColor.new("Toothpaste")
  3727. orb.CanCollide = false
  3728. orb.FormFactor = 3
  3729. orb.Name = "Remenant"
  3730. orb.Material = "Neon"
  3731. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3732. orb.Size = Vector3.new(1, 1, 1)
  3733. orb.Transparency = 1
  3734. orb.TopSurface = 0
  3735. orb.BottomSurface = 0
  3736. hum.WalkSpeed = storehumanoidWS
  3737. coroutine.resume(coroutine.create(function()
  3738. for i = 0, 9 do
  3739. swait(10)
  3740. local lb = Instance.new("Part")
  3741. lb.Color = MAINRUINCOLOR.Color
  3742. lb.CanCollide = false
  3743. lb.Material = "Neon"
  3744. lb.Anchored = true
  3745. lb.TopSurface = 0
  3746. lb.BottomSurface = 0
  3747. lb.Transparency = 0
  3748. lb.Size = vt(1,1,1)
  3749. 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)))
  3750. lb.Anchored = false
  3751. lb.Parent = char
  3752. local thingery = Instance.new("SpecialMesh",lb)
  3753. thingery.MeshType = "Sphere"
  3754. thingery.Scale = vt(20,20,20)
  3755. game:GetService("Debris"):AddItem(lb, 10)
  3756. local bv = Instance.new("BodyVelocity")
  3757. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3758. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3759. bv.Parent = lb
  3760. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3761. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3762. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3763. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3764. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3765. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3766. local hitted = false
  3767. coroutine.resume(coroutine.create(function()
  3768. while true do
  3769. swait(1)
  3770. if lb.Parent ~= nil and hitted == false then
  3771. 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)
  3772. elseif lb.Parent == nil then
  3773. break
  3774. end
  3775. end
  3776. end))
  3777.  
  3778. game:GetService("Debris"):AddItem(a, 0.1)
  3779.  
  3780. coroutine.resume(coroutine.create(function()
  3781. swait(1)
  3782. lb.Touched:connect(function(hit)
  3783. if hitted == false then
  3784. hitted = true
  3785. lb.Transparency = 1
  3786. lb.Anchored = true
  3787. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3788. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3789. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3790. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3791. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3792. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3793. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3794. CameraEnshaking(1,5)
  3795. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3796. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3797. for i = 0, 9 do
  3798. 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)
  3799. end
  3800. for i = 0, 49 do
  3801. swait()
  3802. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3803. 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)
  3804. end
  3805. end
  3806. end)
  3807. end))
  3808. end
  3809. Overed = true
  3810. orb:Destroy()
  3811. end))
  3812.  
  3813. attack = false
  3814. end
  3815.  
  3816. function StarfallEX()
  3817. attack = true
  3818. hum.WalkSpeed = 0
  3819. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3820. for i = 0, 10, 0.1 do
  3821. swait()
  3822. 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)
  3823. 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)
  3824. 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)
  3825. 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)
  3826. 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)
  3827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3828. 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)
  3829. 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)
  3830. end
  3831. local Overed = false
  3832. CameraEnshaking(2,20)
  3833. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3834. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3835. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3836. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3837. local orb = Instance.new("Part", char)
  3838. orb.Anchored = true
  3839. orb.BrickColor = BrickColor.new("Toothpaste")
  3840. orb.CanCollide = false
  3841. orb.FormFactor = 3
  3842. orb.Name = "Remenant"
  3843. orb.Material = "Neon"
  3844. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3845. orb.Size = Vector3.new(1, 1, 1)
  3846. orb.Transparency = 1
  3847. orb.TopSurface = 0
  3848. orb.BottomSurface = 0
  3849. hum.WalkSpeed = storehumanoidWS
  3850. coroutine.resume(coroutine.create(function()
  3851. for i = 0, 4 do
  3852. swait(15)
  3853. local lb = Instance.new("Part")
  3854. lb.Color = MAINRUINCOLOR.Color
  3855. lb.CanCollide = false
  3856. lb.Material = "Neon"
  3857. lb.Anchored = true
  3858. lb.TopSurface = 0
  3859. lb.BottomSurface = 0
  3860. lb.Transparency = 0
  3861. lb.Size = vt(1,1,1)
  3862. 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)))
  3863. lb.Anchored = false
  3864. lb.Parent = char
  3865. local thingery = Instance.new("SpecialMesh",lb)
  3866. thingery.MeshType = "Sphere"
  3867. thingery.Scale = vt(50,50,50)
  3868. game:GetService("Debris"):AddItem(lb, 10)
  3869. local bv = Instance.new("BodyVelocity")
  3870. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3871. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3872. bv.Parent = lb
  3873. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3874. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3875. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3876. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3877. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3878. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3879. local hitted = false
  3880. coroutine.resume(coroutine.create(function()
  3881. while true do
  3882. swait(1)
  3883. if lb.Parent ~= nil and hitted == false then
  3884. 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)
  3885. elseif lb.Parent == nil then
  3886. break
  3887. end
  3888. end
  3889. end))
  3890.  
  3891. game:GetService("Debris"):AddItem(a, 0.1)
  3892.  
  3893. coroutine.resume(coroutine.create(function()
  3894. swait(1)
  3895. lb.Touched:connect(function(hit)
  3896. if hitted == false then
  3897. hitted = true
  3898. lb.Transparency = 1
  3899. lb.Anchored = true
  3900. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3901. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3902. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3903. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3904. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3905. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3906. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3907. CameraEnshaking(1,5)
  3908. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3909. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3910. for i = 0, 9 do
  3911. 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)
  3912. end
  3913. for i = 0, 99 do
  3914. swait()
  3915. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3916. 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)
  3917. end
  3918. end
  3919. end)
  3920. end))
  3921. end
  3922. Overed = true
  3923. orb:Destroy()
  3924. end))
  3925.  
  3926. attack = false
  3927. end
  3928.  
  3929. function DivineBlast()
  3930. attack = true
  3931. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3932. hum.WalkSpeed = 0
  3933. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3934. elocacenter.Anchored = true
  3935. elocacenter.CFrame = sorb.CFrame
  3936. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3937. eloca1.Anchored = true
  3938. eloca1.CFrame = elocacenter.CFrame
  3939. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3940. eloca2.Anchored = true
  3941. eloca2.CFrame = elocacenter.CFrame
  3942. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3943. eloca3.Anchored = true
  3944. eloca3.CFrame = elocacenter.CFrame
  3945. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3946. eloca4.Anchored = true
  3947. eloca4.CFrame = elocacenter.CFrame
  3948. local lookavec = 0
  3949. local speeds = 0
  3950. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3951. for i = 0, 3, 0.1 do
  3952. swait()
  3953. ---
  3954. lookavec = lookavec + 0.1
  3955. speeds = speeds + 10
  3956. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3957. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3958. 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)
  3959.  
  3960. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3961. 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)
  3962.  
  3963. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3964. 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)
  3965.  
  3966. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3967. 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)
  3968. ---
  3969. root.CFrame = FaceMouse()[1]
  3970. 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)
  3971. 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)
  3972. 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)
  3973. 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)
  3974. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3975. 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)
  3976. end
  3977. for i = 0, 3, 0.1 do
  3978. swait()
  3979. ---
  3980. speeds = speeds + 10
  3981. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3982. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3983. 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)
  3984.  
  3985. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3986. 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)
  3987.  
  3988. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3989. 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)
  3990.  
  3991. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3992. 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)
  3993. ---
  3994. root.CFrame = FaceMouse()[1]
  3995. 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)
  3996. 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)
  3997. 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)
  3998. 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)
  3999. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4000. 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)
  4001. end
  4002. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4003. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4004. for i = 0, 3, 0.1 do
  4005. swait()
  4006. ---
  4007. speeds = speeds + 10
  4008. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4009. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4010. 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)
  4011.  
  4012. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4013. 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)
  4014.  
  4015. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4016. 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)
  4017.  
  4018. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4019. 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)
  4020. ---
  4021. root.CFrame = FaceMouse()[1]
  4022. 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)
  4023. 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)
  4024. 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)
  4025. 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)
  4026. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4027. 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)
  4028. end
  4029. coroutine.resume(coroutine.create(function()
  4030. local a = Instance.new("Part",Character)
  4031. a.Name = "Direction"
  4032. a.Anchored = true
  4033. a.BrickColor = bc("White")
  4034. a.Material = "Neon"
  4035. a.Transparency = 0
  4036. a.Shape = "Cylinder"
  4037. a.CanCollide = false
  4038. local a2 = Instance.new("Part",Character)
  4039. a2.Name = "Direction"
  4040. a2.Anchored = true
  4041. a2.BrickColor = bc("Bright yellow")
  4042. a2.Material = "Neon"
  4043. a2.Transparency = 0
  4044. a2.Shape = "Cylinder"
  4045. a2.CanCollide = false
  4046. local b = Instance.new("Part",Character)
  4047. b.Name = "HitDirect"
  4048. b.Anchored = true
  4049. b.BrickColor = bc("Cool yellow")
  4050. b.Material = "Neon"
  4051. b.Transparency = 1
  4052. b.CanCollide = false
  4053. local ray = Ray.new(
  4054. elocacenter.CFrame.p, -- origin
  4055. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4056. )
  4057. local ignore = Character
  4058. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4059. a.BottomSurface = 10
  4060. a.TopSurface = 10
  4061. a2.BottomSurface = 10
  4062. a2.TopSurface = 10
  4063. local distance = (elocacenter.CFrame.p - position).magnitude
  4064. a.Size = Vector3.new(distance, 1, 1)
  4065. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4066. a2.Size = Vector3.new(distance, 1, 1)
  4067. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4068. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4069. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4070. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4071. game:GetService("Debris"):AddItem(a, 10)
  4072. game:GetService("Debris"):AddItem(a2, 10)
  4073. game:GetService("Debris"):AddItem(b, 10)
  4074. local eff = Instance.new("ParticleEmitter",b)
  4075. eff.Texture = "rbxassetid://2273224484"
  4076. eff.LightEmission = 1
  4077. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4078. eff.Rate = 500000
  4079. eff.Lifetime = NumberRange.new(0.5,2)
  4080. 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)})
  4081. 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)})
  4082. eff.Speed = NumberRange.new(20,250)
  4083. eff.Drag = 5
  4084. eff.Rotation = NumberRange.new(-500,500)
  4085. eff.VelocitySpread = 9000
  4086. eff.RotSpeed = NumberRange.new(-50,50)
  4087. coroutine.resume(coroutine.create(function()
  4088. wait(0.25)
  4089. eff.Enabled = false
  4090. end))
  4091. local msh = Instance.new("SpecialMesh",a)
  4092. msh.MeshType = "Cylinder"
  4093. msh.Scale = vt(1,2,2)
  4094. local msh2 = Instance.new("SpecialMesh",a2)
  4095. msh2.MeshType = "Cylinder"
  4096. msh2.Scale = vt(1,2.5,2.5)
  4097. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4098. coroutine.resume(coroutine.create(function()
  4099. for i = 0,10,0.1 do
  4100. swait()
  4101. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4102. a.Transparency = a.Transparency + 0.025
  4103. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4104. a2.Transparency = a2.Transparency + 0.05
  4105. end
  4106. a:Destroy()
  4107. a2:Destroy()
  4108. end))
  4109. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4110. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4111. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4112. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4113. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4114. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4115. MagniDamage(b, 25, 40,65, 0, "Normal")
  4116. for i = 0, 49 do
  4117. 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)
  4118. 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)
  4119. end
  4120. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4121. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4122. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4123. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4124. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4125. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4126. end))
  4127. game:GetService("Debris"):AddItem(elocacenter, 5)
  4128. hum.WalkSpeed = storehumanoidWS
  4129. attack = false
  4130. end
  4131.  
  4132. function StarDivision()
  4133. attack = true
  4134. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4135. for i = 0, 2, 0.1 do
  4136. swait()
  4137. 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)
  4138. 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)
  4139. 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)
  4140. 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)
  4141. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4142. 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)
  4143. end
  4144. local orb = Instance.new("Part", char)
  4145. orb.BrickColor = MAINRUINCOLOR
  4146. orb.CanCollide = false
  4147. orb.FormFactor = 3
  4148. orb.Name = "Ring"
  4149. orb.Material = "Neon"
  4150. orb.Size = Vector3.new(1, 1, 1)
  4151. orb.Transparency = 0
  4152. orb.TopSurface = 0
  4153. orb.BottomSurface = 0
  4154. local orbm = Instance.new("SpecialMesh", orb)
  4155. orbm.MeshType = "Sphere"
  4156. orbm.Name = "SizeMesh"
  4157. orbm.Scale = vt(2,2,2)
  4158. local a = Instance.new("Part",workspace)
  4159. a.Name = "Direction"
  4160. a.Anchored = true
  4161. a.BrickColor = bc("Bright red")
  4162. a.Material = "Neon"
  4163. a.Transparency = 1
  4164. a.CanCollide = false
  4165. local ray = Ray.new(
  4166. sorb.CFrame.p, -- origin
  4167. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4168. )
  4169. local ignore = sorb
  4170. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4171. a.BottomSurface = 10
  4172. a.TopSurface = 10
  4173. local distance = (sorb.CFrame.p - position).magnitude
  4174. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4175. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4176. orb.CFrame = a.CFrame
  4177. a:Destroy()
  4178. local bv = Instance.new("BodyVelocity")
  4179. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4180. bv.velocity = orb.CFrame.lookVector*100
  4181. bv.Parent = orb
  4182. local hitted = false
  4183. game:GetService("Debris"):AddItem(orb, 10)
  4184. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4185. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4186. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4187. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4188. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4189. coroutine.resume(coroutine.create(function()
  4190. while true do
  4191. swait(1)
  4192. if orb.Parent ~= nil and hitted == false then
  4193. 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)
  4194. elseif orb.Parent == nil then
  4195. break
  4196. end
  4197. end
  4198. end))
  4199. coroutine.resume(coroutine.create(function()
  4200. swait(1)
  4201. orb.Touched:connect(function(hit)
  4202. if hitted == false then
  4203. hitted = true
  4204. game:GetService("Debris"):AddItem(orb, 5)
  4205. orb.Transparency = 1
  4206. orb.Anchored = true
  4207. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4208. elocacenter.Anchored = true
  4209. elocacenter.CFrame = orb.CFrame
  4210. elocacenter.Orientation = vt(0,0,0)
  4211. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4212. eloca1.Anchored = true
  4213. eloca1.CFrame = elocacenter.CFrame
  4214. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4215. eloca2.Anchored = true
  4216. eloca2.CFrame = elocacenter.CFrame
  4217. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4218. eloca3.Anchored = true
  4219. eloca3.CFrame = elocacenter.CFrame
  4220. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4221. eloca4.Anchored = true
  4222. eloca4.CFrame = elocacenter.CFrame
  4223. local lookavec = 0
  4224. local speeds = 0
  4225. CameraEnshaking(1,1)
  4226. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4227. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4228. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4229. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4230. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4231. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4232. for i = 0, 99 do
  4233. swait()
  4234. lookavec = lookavec + 1
  4235. speeds = speeds + 0.1
  4236. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4237. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4238. 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)
  4239.  
  4240. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4241. 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)
  4242.  
  4243. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4244. 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)
  4245.  
  4246. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4247. 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)
  4248. end
  4249.  
  4250. for i = 0, 149 do
  4251. swait()
  4252. speeds = speeds + 0.1
  4253. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4254. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4255. 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)
  4256.  
  4257. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4258. 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)
  4259.  
  4260. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4261. 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)
  4262.  
  4263. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4264. 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)
  4265. end
  4266. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4267. if v:FindFirstChild('Head') then
  4268. dmg(v)
  4269. end
  4270. end
  4271. CameraEnshaking(7,30)
  4272. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4273. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4274. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4275. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4276. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4277. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4278. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4279. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4280. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4281. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4282. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4283. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4284. for i = 0, 24 do
  4285. 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)
  4286. 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)
  4287. 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)
  4288. 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)
  4289. end
  4290. coroutine.resume(coroutine.create(function()
  4291. for i = 0, 499 do
  4292. swait(1)
  4293. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4294. 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)
  4295. end
  4296. elocacenter:Destroy()
  4297. eloca1:Destroy()
  4298. eloca2:Destroy()
  4299. eloca3:Destroy()
  4300. eloca4:Destroy()
  4301. end))
  4302. end
  4303. end)
  4304. end))
  4305. attack = false
  4306. end
  4307.  
  4308.  
  4309. function THE_TRUE_POWER_OF_VIOLENCE()
  4310. attack = true
  4311. hum.WalkSpeed = 0
  4312. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4313. for i = 0, 10, 0.1 do
  4314. swait()
  4315. 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)
  4316. 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)
  4317. 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)
  4318. 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)
  4319. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4320. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4321. 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)
  4322. end
  4323. local orb = Instance.new("Part", char)
  4324. orb.BrickColor = MAINRUINCOLOR
  4325. orb.CanCollide = false
  4326. orb.FormFactor = 3
  4327. orb.Name = "Ring"
  4328. orb.Material = "Neon"
  4329. orb.Size = Vector3.new(1, 1, 1)
  4330. orb.Transparency = 0
  4331. orb.TopSurface = 0
  4332. orb.BottomSurface = 0
  4333. orb.CFrame = sorb.CFrame
  4334. local orbm = Instance.new("SpecialMesh", orb)
  4335. orbm.MeshType = "Sphere"
  4336. orbm.Name = "SizeMesh"
  4337. orbm.Scale = vt(0,0,0)
  4338. local sbs = Instance.new("BodyPosition", orb)
  4339. sbs.P = 3000
  4340. sbs.D = 1000
  4341. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4342. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4343. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4344. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4345. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4346. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4347. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4348. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4349. for i = 0, 10, 0.1 do
  4350. swait()
  4351. 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)
  4352. 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)
  4353. 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)
  4354. 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)
  4355. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4356. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4357. 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)
  4358. end
  4359. orb.Anchored = true
  4360. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4361. elocacenter.Anchored = true
  4362. elocacenter.CFrame = orb.CFrame
  4363. elocacenter.Orientation = vt(0,0,0)
  4364. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4365. eloca1.Anchored = true
  4366. eloca1.CFrame = elocacenter.CFrame
  4367. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4368. eloca2.Anchored = true
  4369. eloca2.CFrame = elocacenter.CFrame
  4370. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4371. eloca3.Anchored = true
  4372. eloca3.CFrame = elocacenter.CFrame
  4373. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4374. eloca4.Anchored = true
  4375. eloca4.CFrame = elocacenter.CFrame
  4376. local lookavec = 0
  4377. local speeds = 0
  4378. CameraEnshaking(1,1)
  4379. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4380. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4381. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4382. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4383. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4384. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4385. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4386. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4387. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4388. for i = 0, 99 do
  4389. swait()
  4390. lookavec = lookavec + 2.5
  4391. speeds = speeds + 0.25
  4392. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4393. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4394. 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)
  4395.  
  4396. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4397. 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)
  4398.  
  4399. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4400. 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)
  4401.  
  4402. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4403. 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)
  4404. end
  4405.  
  4406. for i = 0, 149 do
  4407. swait()
  4408. speeds = speeds + 0.25
  4409. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4410. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4411. 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)
  4412.  
  4413. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4414. 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)
  4415.  
  4416. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4417. 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)
  4418.  
  4419. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4420. 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)
  4421. end
  4422. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4423. for i = 0, 99 do
  4424. swait()
  4425. lookavec = lookavec - 2.5
  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. local scaled = 0.1*75
  4441. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4442. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4443. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4444. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4445. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4446. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4447. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4448. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4449. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4450. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4451. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4452.  
  4453. for i = 0, 10, 0.1 do
  4454. swait()
  4455. scaled = scaled - 0.001*75
  4456. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4457. 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)
  4458. 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)
  4459. 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)
  4460. 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)
  4461. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4462. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4463. 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)
  4464. end
  4465. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4466. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4467. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4468. for x = 0, 4 do
  4469. for i = 0, 9 do
  4470. 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)
  4471. end
  4472. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4473. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4474. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4475. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4476. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4477. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4478. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4479. for i = 0, 5, 0.1 do
  4480. swait()
  4481. 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)
  4482. 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)
  4483. 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)
  4484. 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)
  4485. 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)
  4486. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4487. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4488. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4489. end
  4490. end
  4491. local speedearn = 0
  4492. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4493. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4494. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4495. for i = 0, 30, 0.1 do
  4496. swait()
  4497. scaled = scaled - 0.001*75/10
  4498. speedearn = speedearn + 0.5
  4499. for i = 0, 4 do
  4500. 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)
  4501. end
  4502. 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)
  4503. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4504. 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)
  4505. 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)
  4506. 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)
  4507. 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)
  4508. 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)
  4509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4510. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4511. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4512. end
  4513. orb.Transparency = 1
  4514. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4515. if v:FindFirstChild('Head') then
  4516. dmg(v)
  4517. end
  4518. end
  4519. CameraEnshaking(7,30)
  4520. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4521. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4522. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4523. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4524. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4525. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4526. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4527. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4528. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4529. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4530. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4531. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4532. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4533. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4534. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4535. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4536. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4537. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4538. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4539. for i = 0, 99 do
  4540. 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)
  4541. 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)
  4542. end
  4543. for i = 0, 24 do
  4544. 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)
  4545. 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)
  4546. 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)
  4547. 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)
  4548. 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)
  4549. end
  4550. game:GetService("Debris"):AddItem(orb, 10)
  4551. hum.WalkSpeed = storehumanoidWS
  4552. attack = false
  4553. end
  4554.  
  4555.  
  4556. function ViolentRing()
  4557. attack = true
  4558. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4559. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4560. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4561. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4562. for i = 0, 2, 0.1 do
  4563. swait()
  4564. local snap = math.random(1,10)
  4565. if snap == 1 then
  4566. 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)
  4567. end
  4568. 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)
  4569. 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)
  4570. 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)
  4571. 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)
  4572. 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)
  4573. 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)
  4574. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4575. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4576. 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)
  4577. RootPart.CFrame = FaceMouse()[1]
  4578. end
  4579. local orb = Instance.new("Part", char)
  4580. orb.BrickColor = MAINRUINCOLOR
  4581. orb.CanCollide = false
  4582. orb.FormFactor = 3
  4583. orb.Name = "Ring"
  4584. orb.Material = "Neon"
  4585. orb.Size = Vector3.new(1, 1, 1)
  4586. orb.Transparency = 0
  4587. orb.TopSurface = 0
  4588. orb.BottomSurface = 0
  4589. local orbm = Instance.new("SpecialMesh", orb)
  4590. orbm.MeshType = "Sphere"
  4591. orbm.Name = "SizeMesh"
  4592. orbm.Scale = vt(2,2,2)
  4593. orb.CFrame = mouse.Hit
  4594. local bv = Instance.new("BodyVelocity")
  4595. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4596. bv.velocity = orb.CFrame.lookVector*100
  4597. bv.Parent = orb
  4598. local hitted = false
  4599. coroutine.resume(coroutine.create(function()
  4600. game:GetService("Debris"):AddItem(orb, 5)
  4601. orb.Transparency = 1
  4602. orb.Anchored = true
  4603. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4604. elocacenter.Anchored = true
  4605. elocacenter.CFrame = orb.CFrame
  4606. elocacenter.Orientation = vt(0,0,0)
  4607. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4608. eloca1.Anchored = true
  4609. eloca1.CFrame = elocacenter.CFrame
  4610. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4611. eloca2.Anchored = true
  4612. eloca2.CFrame = elocacenter.CFrame
  4613. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4614. eloca3.Anchored = true
  4615. eloca3.CFrame = elocacenter.CFrame
  4616. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4617. eloca4.Anchored = true
  4618. eloca4.CFrame = elocacenter.CFrame
  4619. local lookavec = 0
  4620. local speeds = 0
  4621. CameraEnshaking(1,1)
  4622. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4623. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4624. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4625. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4626. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4627. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4628. for i = 0, 24 do
  4629. swait()
  4630. lookavec = lookavec + 3.5
  4631. speeds = speeds + 1
  4632. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4633. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4634. 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)
  4635.  
  4636. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4637. 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)
  4638.  
  4639. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4640. 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)
  4641.  
  4642. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4643. 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)
  4644. end
  4645.  
  4646. local risen = 0
  4647. for i = 0, 49 do
  4648. swait()
  4649. risen = risen + 0.05
  4650. speeds = speeds + 0.1
  4651. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4652. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4653. 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)
  4654.  
  4655. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4656. 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)
  4657.  
  4658. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4659. 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)
  4660.  
  4661. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4662. 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)
  4663. end
  4664. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4665. if v:FindFirstChild('Head') then
  4666. dmg(v)
  4667. end
  4668. end
  4669. CameraEnshaking(4,10)
  4670. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4671. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4672. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4673. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4674. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4675. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4676. local eff = Instance.new("ParticleEmitter",elocacenter)
  4677. eff.Texture = "rbxassetid://2273224484"
  4678. eff.LightEmission = 1
  4679. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4680. eff.Rate = 1000000
  4681. eff.Lifetime = NumberRange.new(0.5,2)
  4682. 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)})
  4683. 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)})
  4684. eff.Speed = NumberRange.new(20,250)
  4685. eff.Drag = 5
  4686. eff.Rotation = NumberRange.new(-500,500)
  4687. eff.VelocitySpread = 5000000
  4688. eff.RotSpeed = NumberRange.new(-50,50)
  4689. coroutine.resume(coroutine.create(function()
  4690. wait(1)
  4691. eff.Enabled = false
  4692. end))
  4693. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4694. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4695. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4696. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4697. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4698. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4699. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4700. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4701. for i = 0, 24 do
  4702. 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)
  4703. 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)
  4704. 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)
  4705. 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)
  4706. end
  4707. coroutine.resume(coroutine.create(function()
  4708. wait(10)
  4709. elocacenter:Destroy()
  4710. eloca1:Destroy()
  4711. eloca2:Destroy()
  4712. eloca3:Destroy()
  4713. eloca4:Destroy()
  4714. end))
  4715. end))
  4716. attack = false
  4717. end
  4718.  
  4719. function UniversalCollapse()
  4720. attack = true
  4721. local speedearn = 0
  4722. hum.WalkSpeed = 0
  4723. local sbs = Instance.new("BodyPosition", root)
  4724. sbs.P = 3000
  4725. sbs.D = 1000
  4726. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4727. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4728. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4729. for i = 0, 85, 0.1 do
  4730. swait()
  4731. speedearn = speedearn + 0.1
  4732. 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)
  4733. 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)
  4734. 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)
  4735. 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)
  4736. 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)
  4737. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4738. 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)
  4739. 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)
  4740. 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)
  4741. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4742. 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)
  4743. 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)
  4744. end
  4745. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4746. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4747. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4748. for i = 0, 25, 0.1 do
  4749. swait()
  4750. speedearn = speedearn + 0.1
  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. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4756. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4757. 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)
  4758. 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)
  4759. 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)
  4760. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4761. 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)
  4762. 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)
  4763. end
  4764. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4765. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4766. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4767. CameraEnshaking(5,50)
  4768. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4769. for i = 0, 2 do
  4770. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4771. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4772. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4773. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4774. end
  4775. for i = 0, 49 do
  4776. 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)
  4777. 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)
  4778. 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)
  4779. 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)
  4780. end
  4781. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4782. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4783. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4784. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4785. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4786. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4787. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4788. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4789. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4790. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4791. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4792. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4793. for i = 0, 99 do
  4794. 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)
  4795. 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)
  4796. end
  4797. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4798. if v:FindFirstChild('Head') then
  4799. dmg(v)
  4800. end
  4801. end
  4802. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4803. sbs:Destroy()
  4804. hum.WalkSpeed = storehumanoidWS
  4805. attack = false
  4806. end
  4807.  
  4808.  
  4809. function TheEndCollapse()
  4810. attack = true
  4811. local speedearn = 0
  4812. hum.WalkSpeed = 0
  4813. local sbs = Instance.new("BodyPosition", root)
  4814. sbs.P = 3000
  4815. sbs.D = 1000
  4816. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4817. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4818. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4819. for i = 0, 85, 0.1 do
  4820. swait()
  4821. speedearn = speedearn + 0.1
  4822. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4823. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4824. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4825. 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)
  4826. 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)
  4827. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4828. 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)
  4829. 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)
  4830. 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)
  4831. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4832. 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)
  4833. 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)
  4834. end
  4835. bosschatfunc("This is...",MAINRUINCOLOR.Color,1)
  4836. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4837. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4838. for i = 0, 25, 0.1 do
  4839. swait()
  4840. speedearn = speedearn + 0.1
  4841. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4842. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4843. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4844. 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)
  4845. 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)
  4846. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4847. 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)
  4848. 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)
  4849. 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)
  4850. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4851. 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)
  4852. 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)
  4853. end
  4854. bosschatfunc("THE END!",MAINRUINCOLOR.Color,1)
  4855. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4856. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4857. CameraEnshaking(5,50)
  4858. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4859. for i = 0, 2 do
  4860. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4861. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4862. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4863. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4864. end
  4865. for i = 0, 49 do
  4866. 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)
  4867. 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)
  4868. 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)
  4869. 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)
  4870. end
  4871. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4872. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4873. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4874. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4875. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4876. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4877. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4878. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4879. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4880. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4881. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4882. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4883. for i = 0, 99 do
  4884. 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)
  4885. 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)
  4886. end
  4887. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4888. if v:FindFirstChild('Head') then
  4889. dmg(v)
  4890. end
  4891. end
  4892. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4893. sbs:Destroy()
  4894. hum.WalkSpeed = storehumanoidWS
  4895. attack = false
  4896. end
  4897.  
  4898.  
  4899. function ChaosEND()
  4900. attack = true
  4901. local speedearn = 0
  4902. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4903. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4904. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4905. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4906. for i = 0, 15, 0.1 do
  4907. swait()
  4908. speedearn = speedearn + 0.25
  4909. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4910. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4911. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4912. 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)
  4913. 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)
  4914. 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)
  4915. 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)
  4916. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4917. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4918. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4919. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4920. end
  4921. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4922. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4923. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4924. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4925. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4926. CameraEnshaking(5,25)
  4927. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4928. if v:FindFirstChild('Head') then
  4929. dmg(v)
  4930. end
  4931. end
  4932. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4933. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4934. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4935. for i = 0, 3, 0.1 do
  4936. swait()
  4937. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4938. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4939. 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)
  4940. 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)
  4941. 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)
  4942. 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)
  4943. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4945. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4946. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4947. end
  4948. attack = false
  4949. end
  4950.  
  4951. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4952. local orb = Instance.new("Part", char)
  4953. orb.Anchored = true
  4954. orb.BrickColor = color
  4955. orb.CanCollide = false
  4956. orb.FormFactor = 3
  4957. orb.Name = "Ring"
  4958. orb.Material = "Neon"
  4959. orb.Size = Vector3.new(1, 1, 1)
  4960. orb.Transparency = 0
  4961. orb.TopSurface = 0
  4962. orb.BottomSurface = 0
  4963. local orbm = Instance.new("SpecialMesh", orb)
  4964. orbm.MeshType = "Sphere"
  4965. orb.CFrame = positted
  4966. orbm.Name = "SizeMesh"
  4967. orbm.Scale = vt(1,1,1)
  4968. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4969. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4970. --[[for i = 0, 2 do
  4971. 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)
  4972. end]]--
  4973. coroutine.resume(coroutine.create(function()
  4974. wait(timer)
  4975. CameraEnshaking(3,ShakePower)
  4976. orb.Transparency = 1
  4977. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4978. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4979. --[[for i = 0, 4 do
  4980. 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)
  4981. end]]--
  4982. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4983. wait(3)
  4984. orb:Destroy()
  4985. end))
  4986. end
  4987.  
  4988. function orb_spawn(positted,timer)
  4989. local randomcol = math.random(1,2)
  4990. local orb = Instance.new("Part", char)
  4991. orb.Anchored = true
  4992. if randomcol == 1 then
  4993. orb.BrickColor = BrickColor.new("White")
  4994. elseif randomcol == 2 then
  4995. orb.BrickColor = BrickColor.new("Really black")
  4996. end
  4997. orb.CanCollide = false
  4998. orb.FormFactor = 3
  4999. orb.Name = "Ring"
  5000. orb.Material = "Neon"
  5001. orb.Size = Vector3.new(1, 1, 1)
  5002. orb.Transparency = 0
  5003. orb.TopSurface = 0
  5004. orb.BottomSurface = 0
  5005. local orbm = Instance.new("SpecialMesh", orb)
  5006. orbm.MeshType = "Sphere"
  5007. orb.CFrame = positted
  5008. orbm.Name = "SizeMesh"
  5009. orbm.Scale = vt(1,1,1)
  5010. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  5011. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5012. for i = 0, 2 do
  5013. 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)
  5014. end
  5015. coroutine.resume(coroutine.create(function()
  5016. wait(timer)
  5017. CameraEnshaking(3,2)
  5018. orb.Transparency = 1
  5019. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5020. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5021. for i = 0, 4 do
  5022. 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)
  5023. end
  5024. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  5025. wait(3)
  5026. orb:Destroy()
  5027. end))
  5028. end
  5029.  
  5030. function scattercorrupt()
  5031. attack = true
  5032. hum.WalkSpeed = 0
  5033. for i = 0, 2, 0.1 do
  5034. swait()
  5035. 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)
  5036. 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)
  5037. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5038. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5039. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  5040. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  5041. end
  5042. local rot = 0
  5043. local randomrotations = math.random(1,2)
  5044. local lookv = 2.5
  5045. local power = 7
  5046. local radm = math.random(1,3)
  5047. if radm == 1 then
  5048. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  5049. elseif radm == 2 then
  5050. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  5051. elseif radm == 3 then
  5052. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  5053. end
  5054. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  5055. for i = 0, 1, 0.1 do
  5056. swait()
  5057. 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)
  5058. 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)
  5059. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  5060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  5061. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  5062. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  5063. end
  5064. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  5065. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  5066. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5067. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5068. for i = 0, 9 do
  5069. 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)
  5070. end
  5071. local hite = Instance.new("Part", char)
  5072. hite.Anchored = true
  5073. hite.CanCollide = false
  5074. hite.FormFactor = 3
  5075. hite.Name = "Ring"
  5076. hite.Material = "Neon"
  5077. hite.Size = Vector3.new(1, 1, 1)
  5078. hite.Transparency = 1
  5079. hite.TopSurface = 0
  5080. hite.BottomSurface = 0
  5081. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5082. local rem = Instance.new("Part", char)
  5083. rem.Anchored = true
  5084. rem.CanCollide = false
  5085. rem.FormFactor = 3
  5086. rem.Name = "Ring"
  5087. rem.Material = "Neon"
  5088. rem.Size = Vector3.new(1, 1, 1)
  5089. rem.Transparency = 1
  5090. rem.TopSurface = 0
  5091. rem.BottomSurface = 0
  5092. rem.CFrame = hite.CFrame
  5093. local rem2 = rem:Clone()
  5094. rem2.Parent = char
  5095. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5096. local rem3 = rem:Clone()
  5097. rem3.Parent = char
  5098. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5099. local rem4 = rem:Clone()
  5100. rem4.Parent = char
  5101. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5102. hite:Destroy()
  5103. coroutine.resume(coroutine.create(function()
  5104. for i = 0, 24 do
  5105. swait(1)
  5106. if randomrotations == 1 then
  5107. rot = rot + 1
  5108. elseif randomrotations == 2 then
  5109. rot = rot - 1
  5110. end
  5111. power = power + 0.5
  5112. lookv = lookv + 7.5
  5113. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5114. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5115. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5116. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5117. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5118. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5119. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5120. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5121. end
  5122. end))
  5123. wait(2)
  5124. hum.WalkSpeed = storehumanoidWS
  5125. attack = false
  5126. end
  5127. function yinyangi()
  5128. attack = true
  5129. for i = 0, 2, 0.1 do
  5130. swait()
  5131. 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)
  5132. 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)
  5133. 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)
  5134. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5135. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5136. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5137. end
  5138. local bv = Instance.new("BodyVelocity")
  5139. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5140. bv.velocity = root.CFrame.lookVector*175
  5141. bv.Parent = root
  5142. for Rotations = 0, 9 do
  5143. for i = 0, 1, 0.5 do
  5144. swait()
  5145. bv.velocity = root.CFrame.lookVector*175
  5146. 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)
  5147. 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)
  5148. 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)
  5149. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5150. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5151. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5152. end
  5153. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5154. for i = 0, 1, 0.5 do
  5155. swait()
  5156. bv.velocity = root.CFrame.lookVector*175
  5157. 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)
  5158. 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)
  5159. 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)
  5160. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5161. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5162. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5163. end
  5164. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5165. for i = 0, 1, 0.5 do
  5166. swait()
  5167. bv.velocity = root.CFrame.lookVector*175
  5168. 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)
  5169. 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)
  5170. 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)
  5171. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5172. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5173. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5174. end
  5175. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5176. for i = 0, 1, 0.5 do
  5177. swait()
  5178. bv.velocity = root.CFrame.lookVector*175
  5179. 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)
  5180. 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)
  5181. 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)
  5182. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5183. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5184. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5185. end
  5186. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5187. end
  5188. bv:Destroy()
  5189. attack = false
  5190. end
  5191.  
  5192. function createBGCircle(size,parent,color)
  5193. local bgui = Instance.new("BillboardGui",parent)
  5194. bgui.Size = UDim2.new(size, 0, size, 0)
  5195. local imgc = Instance.new("ImageLabel",bgui)
  5196. imgc.BackgroundTransparency = 1
  5197. imgc.ImageTransparency = 0
  5198. imgc.Size = UDim2.new(1,0,1,0)
  5199. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5200. imgc.ImageColor3 = color
  5201. return bgui,imgc
  5202. end
  5203.  
  5204. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5205. local bgui,imgc = createBGCircle(size,guipar,color)
  5206. bgui.AlwaysOnTop = true
  5207. imgc.Image = "rbxassetid://" ..img
  5208. local rrot = math.random(1,2)
  5209. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5210. coroutine.resume(coroutine.create(function()
  5211. for i = 0, 24*delay do
  5212. swait()
  5213. if rotationenabled == true then
  5214. if rrot == 1 then
  5215. imgc.Rotation = imgc.Rotation + rotsp
  5216. elseif rrot == 2 then
  5217. imgc.Rotation = imgc.Rotation - rotsp
  5218. end
  5219. end
  5220. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5221. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5222. end
  5223. bgui:Destroy()
  5224. end))
  5225. end
  5226. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5227. for i, v in pairs(mw2:GetChildren()) do
  5228. if v:IsA("Part") then
  5229. v.BrickColor = one
  5230. v.Material = "Neon"
  5231. end
  5232. end
  5233. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5234. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5235. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5236. tr1.Color = ColorSequence.new(one.Color)
  5237. tr2.Color = ColorSequence.new(one.Color)
  5238. tr3.Color = ColorSequence.new(one.Color)
  5239. for i, v in pairs(mw1:GetChildren()) do
  5240. if v:IsA("Part") then
  5241. if secondaryenabled == false then
  5242. v.Transparency = 1
  5243. elseif secondaryenabled == true then
  5244. v.Transparency = 0
  5245. end
  5246. v.BrickColor = two
  5247. v.Material = "Neon"
  5248. end
  5249. end
  5250. if secondaryenabled == false then
  5251. tl1.Enabled = false
  5252. tl2.Enabled = false
  5253. tl3.Enabled = false
  5254. elseif secondaryenabled == true then
  5255. tl1.Enabled = true
  5256. tl2.Enabled = true
  5257. tl3.Enabled = true
  5258. end
  5259. tl1.Color = ColorSequence.new(two.Color)
  5260. tl2.Color = ColorSequence.new(two.Color)
  5261. tl3.Color = ColorSequence.new(two.Color)
  5262. for i, v in pairs(m:GetChildren()) do
  5263. if v:IsA("Part") then
  5264. v.BrickColor = three
  5265. v.Material = "Ice"
  5266. end
  5267. end
  5268. for i, v in pairs(m2:GetChildren()) do
  5269. if v:IsA("Part") then
  5270. v.BrickColor = four
  5271. v.Material = "Ice"
  5272. end
  5273. end
  5274. for i, v in pairs(m3:GetChildren()) do
  5275. if v:IsA("Part") then
  5276. v.BrickColor = five
  5277. v.Material = "Neon"
  5278. end
  5279. end
  5280. for i, v in pairs(extrawingmod1:GetChildren()) do
  5281. if v:IsA("Part") then
  5282. v.Transparency = exonetran
  5283. v.BrickColor = exone
  5284. v.Material = "Neon"
  5285. end
  5286. end
  5287. for i, v in pairs(extrawingmod2:GetChildren()) do
  5288. if v:IsA("Part") then
  5289. v.Transparency = extwotran
  5290. v.BrickColor = extwo
  5291. v.Material = "Neon"
  5292. end
  5293. end
  5294. end
  5295.  
  5296.  
  5297. function normalmog()
  5298. attack = true
  5299. hum.WalkSpeed = 0
  5300. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5301. for i = 0,6,0.1 do
  5302. swait()
  5303. 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)
  5304. 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)
  5305. 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)
  5306. 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)
  5307. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5308. 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)
  5309. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5310. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5311. end
  5312. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5313. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5314. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5315. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5316. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5317. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5318. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5319. rainbowmode = false
  5320. chaosmode = false
  5321. ModeOfGlitch = 1
  5322. storehumanoidWS = 16
  5323. newTheme("rbxassetid://1255569288",48.6,1,1.25)
  5324. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5325. CameraEnshaking(5,2.5)
  5326. MAINRUINCOLOR = BrickColor.new("Really red")
  5327. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5328. for i = 0, 49 do
  5329. 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)
  5330. end
  5331. for i = 0, 24 do
  5332. 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)
  5333. 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"))
  5334. end
  5335. for i = 0,3,0.1 do
  5336. 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)
  5337. end
  5338. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5339. for i = 0,2,0.1 do
  5340. swait()
  5341. 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)
  5342. 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)
  5343. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5344. 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)
  5345. 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)
  5346. 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)
  5347. end
  5348. hum.WalkSpeed = storehumanoidWS
  5349. attack = false
  5350. end
  5351.  
  5352. function attackone()
  5353. attack = true
  5354. local keptcolor = MAINRUINCOLOR
  5355. for i = 0,1,0.1 do
  5356. swait()
  5357. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5358. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5359. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5360. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5361. 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)
  5362. 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)
  5363. end
  5364. local distlook = 5
  5365. coroutine.resume(coroutine.create(function()
  5366. for i = 0, 4 do
  5367. swait(2)
  5368. CameraEnshaking(2,3)
  5369. local hite = Instance.new("Part", char)
  5370. hite.Anchored = true
  5371. hite.CanCollide = false
  5372. hite.FormFactor = 3
  5373. hite.Name = "Ring"
  5374. hite.Material = "Neon"
  5375. hite.Size = Vector3.new(1, 1, 1)
  5376. hite.Transparency = 1
  5377. hite.TopSurface = 0
  5378. hite.BottomSurface = 0
  5379. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5380. 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)
  5381. 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)
  5382. 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)
  5383. 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)
  5384. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5385. for i = 0, 14 do
  5386. local rsiz = math.random(5,20)
  5387. 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)
  5388. end
  5389. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5390. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5391. game:GetService("Debris"):AddItem(hite, 5)
  5392. distlook = distlook + 10
  5393. end
  5394. end))
  5395. for i = 0,1,0.1 do
  5396. swait()
  5397. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5398. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5399. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5400. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5401. 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)
  5402. 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)
  5403. end
  5404. attack = false
  5405. end
  5406.  
  5407. function attacktwo()
  5408. attack = true
  5409. hum.WalkSpeed = 2
  5410. local keptcolor = MAINRUINCOLOR
  5411. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5412. 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)
  5413. 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)
  5414. for i = 0, 14 do
  5415. 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)
  5416. end
  5417. for i = 0,1,0.1 do
  5418. swait()
  5419. 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)
  5420. 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)
  5421. 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)
  5422. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5423. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5424. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5425. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5426. end
  5427. for i = 0, 1 do
  5428. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5429. for i = 0,1,0.6 do
  5430. swait()
  5431. 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)
  5432. 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"))
  5433. 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)
  5434. 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)
  5435. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5436. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5437. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5438. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5439. end
  5440. for i = 0,1,0.6 do
  5441. swait()
  5442. 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)
  5443. 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"))
  5444. 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)
  5445. 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)
  5446. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5448. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5449. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5450. end
  5451. for i = 0,1,0.6 do
  5452. swait()
  5453. 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)
  5454. 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"))
  5455. 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)
  5456. 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)
  5457. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5458. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5459. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5460. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5461. end
  5462. for i = 0,1,0.6 do
  5463. swait()
  5464. 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)
  5465. 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"))
  5466. 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)
  5467. 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)
  5468. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5469. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5470. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5471. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5472. end
  5473. local rot = 0
  5474. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5475. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5476. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5477. CreateMesh(dis,"Sphere",10,1,10)
  5478. local at1 = Instance.new("Attachment",dis)
  5479. at1.Position = vt(-5,0,0)
  5480. local at2 = Instance.new("Attachment",dis)
  5481. at2.Position = vt(5,0,0)
  5482. local trl = Instance.new('Trail',wed)
  5483. trl.Attachment0 = at1
  5484. trl.Attachment1 = at2
  5485. trl.Texture = "rbxassetid://1049219073"
  5486. trl.LightEmission = 1
  5487. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5488. trl.Color = ColorSequence.new(dis.Color)
  5489. trl.Lifetime = 0.6
  5490. local a = Instance.new("Part",workspace)
  5491. a.Name = "Direction"
  5492. a.Anchored = true
  5493. a.BrickColor = bc("Bright red")
  5494. a.Material = "Neon"
  5495. a.Transparency = 1
  5496. a.CanCollide = false
  5497. local ray = Ray.new(
  5498. dis.CFrame.p, -- origin
  5499. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5500. )
  5501. local ignore = dis
  5502. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5503. a.BottomSurface = 10
  5504. a.TopSurface = 10
  5505. local distance = (dis.CFrame.p - position).magnitude
  5506. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5507. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5508. dis.CFrame = a.CFrame
  5509. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5510. a:Destroy()
  5511. local bv = Instance.new("BodyVelocity")
  5512. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5513. bv.velocity = dis.CFrame.lookVector*250
  5514. bv.Parent = dis
  5515. game:GetService("Debris"):AddItem(dis, 5)
  5516. local hitted = false
  5517. coroutine.resume(coroutine.create(function()
  5518. dis.Touched:connect(function(hit)
  5519. if hitted == false and hit.Parent ~= char then
  5520. hitted = true
  5521. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5522. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5523. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5524. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5525. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5526. coroutine.resume(coroutine.create(function()
  5527. for i = 0, 9 do
  5528. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5529. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5530. local at1 = Instance.new("Attachment",disr)
  5531. at1.Position = vt(-5,0,0)
  5532. local at2 = Instance.new("Attachment",disr)
  5533. at2.Position = vt(5,0,0)
  5534. local trl = Instance.new('Trail',disr)
  5535. trl.Attachment0 = at1
  5536. trl.FaceCamera = true
  5537. trl.Attachment1 = at2
  5538. trl.Texture = "rbxassetid://2342682798"
  5539. trl.LightEmission = 1
  5540. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5541. trl.Color = ColorSequence.new(keptcolor.Color)
  5542. trl.Lifetime = 0.5
  5543. local bv = Instance.new("BodyVelocity")
  5544. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5545. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5546. bv.Parent = disr
  5547. local val = 0
  5548. coroutine.resume(coroutine.create(function()
  5549. swait(30)
  5550. for i = 0, 9 do
  5551. swait()
  5552. val = val + 0.1
  5553. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5554. end
  5555. game:GetService("Debris"):AddItem(disr, 3)
  5556. end))
  5557. end
  5558. local eff = Instance.new("ParticleEmitter",dis)
  5559. eff.Texture = "rbxassetid://2273224484"
  5560. eff.LightEmission = 1
  5561. eff.Color = ColorSequence.new(keptcolor.Color)
  5562. eff.Rate = 500000
  5563. eff.Lifetime = NumberRange.new(0.5,2)
  5564. 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)})
  5565. 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)})
  5566. eff.Speed = NumberRange.new(20,250)
  5567. eff.Drag = 5
  5568. eff.Rotation = NumberRange.new(-500,500)
  5569. eff.VelocitySpread = 9000
  5570. eff.RotSpeed = NumberRange.new(-50,50)
  5571. wait(0.25)
  5572. eff.Enabled = false
  5573. end))
  5574. for i = 0, 9 do
  5575. 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"))
  5576. end
  5577. for i = 0, 19 do
  5578. 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)
  5579. end
  5580. coroutine.resume(coroutine.create(function()
  5581. for i = 0, 19 do
  5582. swait()
  5583. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5584. end
  5585. hum.CameraOffset = vt(0,0,0)
  5586. end))
  5587. dis.Anchored = true
  5588. dis.Transparency = 1
  5589. wait(8)
  5590. dis:Destroy()
  5591. end
  5592. end)
  5593. end))
  5594. rot = rot - 15
  5595. end
  5596. for i = 0,2,0.1 do
  5597. swait()
  5598. 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)
  5599. 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)
  5600. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5601. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5602. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5603. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5604. end
  5605. attack = false
  5606. hum.WalkSpeed = storehumanoidWS
  5607. end
  5608.  
  5609. function attackthree()
  5610. attack = true
  5611. local keptcolor = MAINRUINCOLOR
  5612. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5613. for i = 0,2,0.1 do
  5614. swait()
  5615. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5616. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5617. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5618. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5619. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5620. 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)
  5621. 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)
  5622. end
  5623. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5624. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5625. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5626. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5627. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5628. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5629. for i = 0, 24 do
  5630. 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"))
  5631. end
  5632. for i = 0,4,0.1 do
  5633. swait()
  5634. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5635. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5636. CreateMesh(dis,"Sphere",1,1,1)
  5637. dis.Anchored = true
  5638. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5639. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5640. coroutine.resume(coroutine.create(function()
  5641. swait(30)
  5642. dis.Transparency = 1
  5643. coroutine.resume(coroutine.create(function()
  5644. for i = 0, 19 do
  5645. swait()
  5646. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5647. end
  5648. hum.CameraOffset = vt(0,0,0)
  5649. end))
  5650. coroutine.resume(coroutine.create(function()
  5651. local eff = Instance.new("ParticleEmitter",dis)
  5652. eff.Texture = "rbxassetid://2273224484"
  5653. eff.LightEmission = 1
  5654. eff.Color = ColorSequence.new(dis.Color)
  5655. eff.Rate = 500000
  5656. eff.Lifetime = NumberRange.new(0.5,2)
  5657. 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)})
  5658. 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)})
  5659. eff.Speed = NumberRange.new(50,450)
  5660. eff.Drag = 5
  5661. eff.Rotation = NumberRange.new(-500,500)
  5662. eff.VelocitySpread = 9000
  5663. eff.RotSpeed = NumberRange.new(-50,50)
  5664. wait(0.125)
  5665. eff.Enabled = false
  5666. end))
  5667. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5668. for i = 0, 2 do
  5669. 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)
  5670. end
  5671. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5672. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5673. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5674. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5675. end))
  5676. game:GetService("Debris"):AddItem(dis, 5)
  5677. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5678. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5679. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5680. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5681. 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)
  5682. 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)
  5683. end
  5684. attack = false
  5685. end
  5686. ----------------------------------- Abilities
  5687.  
  5688. function ExtinctiveHeartbreak()
  5689. local targetted = nil
  5690. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5691. targetted = mouse.Target.Parent
  5692. end
  5693. if targetted ~= nil then
  5694. attack = true
  5695. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5696. for i = 0, 9 do
  5697. 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)
  5698. end
  5699. for i = 0, 24 do
  5700. 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)
  5701. end
  5702. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5703. local originalpos = root.CFrame
  5704. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5705. for i = 0, 9 do
  5706. 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)
  5707. end
  5708. for i = 0, 24 do
  5709. 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)
  5710. end
  5711. hum.WalkSpeed = 0
  5712. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5713. local radm = math.random(1,3)
  5714. if radm == 1 then
  5715. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5716. elseif radm == 2 then
  5717. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5718. elseif radm == 3 then
  5719. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5720. end
  5721. for i = 0,2,0.1 do
  5722. swait()
  5723. 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)
  5724. 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)
  5725. 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)
  5726. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5727. 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)
  5728. 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)
  5729. end
  5730. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5731. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5732. for i = 0,2,0.1 do
  5733. swait()
  5734. coroutine.resume(coroutine.create(function()
  5735. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5736. for i,v in pairs(targetted:GetChildren()) do
  5737. if v:IsA("Part") or v:IsA("MeshPart") then
  5738. v.Velocity = vt(0,0,0)
  5739. end
  5740. end
  5741. end))
  5742. 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)
  5743. 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)
  5744. 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)
  5745. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5746. 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)
  5747. 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)
  5748. end
  5749. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5750. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5751. for i = 0, 1 do
  5752. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5753. end
  5754. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5755. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5756. for i = 0,4,0.1 do
  5757. swait()
  5758. coroutine.resume(coroutine.create(function()
  5759. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5760. 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)))
  5761. local at1 = Instance.new("Attachment",dis)
  5762. at1.Position = vt(-25000,0,0)
  5763. local at2 = Instance.new("Attachment",dis)
  5764. at2.Position = vt(25000,0,0)
  5765. local trl = Instance.new('Trail',dis)
  5766. trl.Attachment0 = at1
  5767. trl.FaceCamera = true
  5768. trl.Attachment1 = at2
  5769. trl.Texture = "rbxassetid://1049219073"
  5770. trl.LightEmission = 1
  5771. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5772. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5773. trl.Lifetime = 5
  5774. local bv = Instance.new("BodyVelocity")
  5775. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5776. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5777. bv.Parent = dis
  5778. game:GetService("Debris"):AddItem(dis, 5)
  5779. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5780. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5781. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5782. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5783. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5784. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5785. 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)
  5786. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5787. for i = 0, 2 do
  5788. 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"))
  5789. end
  5790. 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)
  5791. for i,v in pairs(targetted:GetChildren()) do
  5792. if v:IsA("Part") or v:IsA("MeshPart") then
  5793. v.Velocity = vt(0,0,0)
  5794. end
  5795. end
  5796. end))
  5797. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5798. 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)
  5799. 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)
  5800. 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)
  5801. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5802. 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)
  5803. 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)
  5804. end
  5805. hum.CameraOffset = vt(0,0,0)
  5806. for i = 0, 49 do
  5807. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5808. 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)))
  5809. local at1 = Instance.new("Attachment",dis)
  5810. at1.Position = vt(-50000,0,0)
  5811. local at2 = Instance.new("Attachment",dis)
  5812. at2.Position = vt(50000,0,0)
  5813. local trl = Instance.new('Trail',dis)
  5814. trl.Attachment0 = at1
  5815. trl.FaceCamera = true
  5816. trl.Attachment1 = at2
  5817. trl.Texture = "rbxassetid://1049219073"
  5818. trl.LightEmission = 1
  5819. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5820. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5821. trl.Lifetime = 5
  5822. local bv = Instance.new("BodyVelocity")
  5823. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5824. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5825. bv.Parent = dis
  5826. game:GetService("Debris"):AddItem(dis, 5)
  5827. end
  5828. for i = 0, 49 do
  5829. 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)
  5830. 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"))
  5831. end
  5832. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5833. for i = 0, 1 do
  5834. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5835. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5836. end
  5837. for i = 0, 4 do
  5838. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5839. end
  5840. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5841. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5842. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5843. dmg(targetted)
  5844. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5845. for i = 0, 9 do
  5846. 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)
  5847. end
  5848. for i = 0, 24 do
  5849. 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)
  5850. end
  5851. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5852. root.CFrame = originalpos
  5853. for i = 0, 9 do
  5854. 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)
  5855. end
  5856. for i = 0, 24 do
  5857. 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)
  5858. end
  5859. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5860. attack = false
  5861. hum.WalkSpeed = storehumanoidWS
  5862. end
  5863. end
  5864.  
  5865. function CorruptionEvent()
  5866. attack = true
  5867. hum.WalkSpeed = 0
  5868. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5869. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5870. local keptcolor = MAINRUINCOLOR
  5871. for i = 0,4,0.1 do
  5872. swait()
  5873. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5874. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5875. 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)
  5876. 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)
  5877. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5878. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5879. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5880. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5881. end
  5882. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5883. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5884. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5885. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5886. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5887. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5888. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5889. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5890. hum.CameraOffset = vt(0,0,0)
  5891. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5892. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5893. for i = 0, 24 do
  5894. 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"))
  5895. end
  5896. local rrot = 0
  5897. coroutine.resume(coroutine.create(function()
  5898. for i = 0, 4 do
  5899. rrot = rrot + 45
  5900. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5901. xa.Anchored = true
  5902. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5903. xb.Anchored = true
  5904. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5905. xc.Anchored = true
  5906. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5907. xd.Anchored = true
  5908. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5909. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5910. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5911. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5912. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5913. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5914. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5915. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5916. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5917. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5918. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5919. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5920. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5921. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5922. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5923. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5924. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5925. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5926. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5927. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5928. for i = 0, 9 do
  5929. 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"))
  5930. 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"))
  5931. 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"))
  5932. 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"))
  5933. end
  5934. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5935. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5936. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5937. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5938. 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)
  5939. 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)
  5940. 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)
  5941. 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)
  5942. 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))
  5943. 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))
  5944. 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))
  5945. 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))
  5946. game:GetService("Debris"):AddItem(xa, 5)
  5947. game:GetService("Debris"):AddItem(xb, 5)
  5948. game:GetService("Debris"):AddItem(xc, 5)
  5949. game:GetService("Debris"):AddItem(xd, 5)
  5950. coroutine.resume(coroutine.create(function()
  5951. for i = 0, 19 do
  5952. swait()
  5953. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5954. end
  5955. hum.CameraOffset = vt(0,0,0)
  5956. end))
  5957. swait(9)
  5958. end
  5959. end))
  5960. for i = 0,2,0.1 do
  5961. swait()
  5962. 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)
  5963. 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)
  5964. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5965. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5966. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5967. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5968. end
  5969. attack = false
  5970. hum.WalkSpeed = storehumanoidWS
  5971. end
  5972.  
  5973. function EndGROUND()
  5974. attack = true
  5975. hum.WalkSpeed = 0
  5976. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5977. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5978. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5979. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5980. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5981. local keptcolor = MAINRUINCOLOR
  5982. for i = 0,4,0.1 do
  5983. swait()
  5984. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5985. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5986. 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"))
  5987. 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)
  5988. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5991. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5992. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5993. end
  5994. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5995. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5996. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5997. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5998. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5999. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6000. coroutine.resume(coroutine.create(function()
  6001. local shval = 10
  6002. for i = 0, 99 do
  6003. swait()
  6004. shval = shval - 0.1
  6005. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6006. end
  6007. hum.CameraOffset = vt(0,0,0)
  6008. end))
  6009. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6010. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6011. for i = 0, 24 do
  6012. 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"))
  6013. end
  6014. local rrot = 0
  6015. local xam = 1
  6016. coroutine.resume(coroutine.create(function()
  6017. for i = 0, 14 do
  6018. --swait()
  6019. rrot = rrot + 40*xam
  6020. xam = xam + 0.25
  6021. local bonus = xam
  6022. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6023. xa.Anchored = true
  6024. xa.Color = Color3.new(0,0,0)
  6025. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6026. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6027. local xc = 0
  6028. coroutine.resume(coroutine.create(function()
  6029. for i = 0, 99 do
  6030. swait()
  6031. xc = xc + 0.01
  6032. xa.Color = Color3.new(xc,0,0)
  6033. end
  6034. xa.Transparency = 1
  6035. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6036. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6037. for i = 0, 9 do
  6038. 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"))
  6039. end
  6040. 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)
  6041. 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)
  6042. 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))
  6043. game:GetService("Debris"):AddItem(xa, 5)
  6044. coroutine.resume(coroutine.create(function()
  6045. for i = 0, 19 do
  6046. swait()
  6047. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6048. end
  6049. hum.CameraOffset = vt(0,0,0)
  6050. end))
  6051. end))
  6052. end
  6053. end))
  6054. for i = 0,2,0.1 do
  6055. swait()
  6056. 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)
  6057. 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)
  6058. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6059. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6060. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6061. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6062. end
  6063. attack = false
  6064. hum.WalkSpeed = storehumanoidWS
  6065. end
  6066.  
  6067. function HeavenlyDisk()
  6068. attack = true
  6069. hum.WalkSpeed = 2
  6070. local keptcolor = MAINRUINCOLOR
  6071. local radm = math.random(1,3)
  6072. if radm == 1 then
  6073. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  6074. elseif radm == 2 then
  6075. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6076. elseif radm == 3 then
  6077. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6078. end
  6079. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6080. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  6081. 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)
  6082. 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)
  6083. for i = 0, 14 do
  6084. 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)
  6085. end
  6086. for i = 0,2,0.1 do
  6087. swait()
  6088. 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)
  6089. 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)
  6090. 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)
  6091. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6092. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6093. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6094. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6095. end
  6096. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6097. for i = 0,1,0.6 do
  6098. swait()
  6099. 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)
  6100. 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"))
  6101. 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)
  6102. 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)
  6103. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6104. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6105. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6106. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6107. end
  6108. for i = 0,1,0.6 do
  6109. swait()
  6110. 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)
  6111. 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"))
  6112. 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)
  6113. 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)
  6114. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6115. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6116. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6117. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6118. end
  6119. for i = 0,1,0.6 do
  6120. swait()
  6121. 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)
  6122. 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"))
  6123. 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)
  6124. 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)
  6125. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6126. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6127. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6128. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6129. end
  6130. for i = 0,1,0.6 do
  6131. swait()
  6132. 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)
  6133. 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"))
  6134. 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)
  6135. 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)
  6136. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6137. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6138. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6139. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6140. end
  6141. local rot = 15
  6142. for i = 0, 2 do
  6143. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6144. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6145. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6146. CreateMesh(dis,"Sphere",10,1,10)
  6147. local at1 = Instance.new("Attachment",dis)
  6148. at1.Position = vt(-5,0,0)
  6149. local at2 = Instance.new("Attachment",dis)
  6150. at2.Position = vt(5,0,0)
  6151. local trl = Instance.new('Trail',wed)
  6152. trl.Attachment0 = at1
  6153. trl.Attachment1 = at2
  6154. trl.Texture = "rbxassetid://1049219073"
  6155. trl.LightEmission = 1
  6156. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6157. trl.Color = ColorSequence.new(dis.Color)
  6158. trl.Lifetime = 0.6
  6159. local a = Instance.new("Part",workspace)
  6160. a.Name = "Direction"
  6161. a.Anchored = true
  6162. a.BrickColor = bc("Bright red")
  6163. a.Material = "Neon"
  6164. a.Transparency = 1
  6165. a.CanCollide = false
  6166. local ray = Ray.new(
  6167. dis.CFrame.p, -- origin
  6168. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6169. )
  6170. local ignore = dis
  6171. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6172. a.BottomSurface = 10
  6173. a.TopSurface = 10
  6174. local distance = (dis.CFrame.p - position).magnitude
  6175. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6176. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6177. dis.CFrame = a.CFrame
  6178. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6179. a:Destroy()
  6180. local bv = Instance.new("BodyVelocity")
  6181. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6182. bv.velocity = dis.CFrame.lookVector*250
  6183. bv.Parent = dis
  6184. game:GetService("Debris"):AddItem(dis, 5)
  6185. local hitted = false
  6186. coroutine.resume(coroutine.create(function()
  6187. dis.Touched:connect(function(hit)
  6188. if hitted == false and hit.Parent ~= char then
  6189. hitted = true
  6190. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6191. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6192. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6193. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6194. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6195. coroutine.resume(coroutine.create(function()
  6196. for i = 0, 9 do
  6197. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6198. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6199. local at1 = Instance.new("Attachment",disr)
  6200. at1.Position = vt(-2,0,0)
  6201. local at2 = Instance.new("Attachment",disr)
  6202. at2.Position = vt(2,0,0)
  6203. local trl = Instance.new('Trail',disr)
  6204. trl.Attachment0 = at1
  6205. trl.FaceCamera = true
  6206. trl.Attachment1 = at2
  6207. trl.Texture = "rbxassetid://2342682798"
  6208. trl.LightEmission = 1
  6209. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6210. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6211. trl.Lifetime = 0.5
  6212. local bv = Instance.new("BodyVelocity")
  6213. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6214. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6215. bv.Parent = disr
  6216. local val = 0
  6217. coroutine.resume(coroutine.create(function()
  6218. swait(30)
  6219. for i = 0, 9 do
  6220. swait()
  6221. val = val + 0.1
  6222. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6223. end
  6224. game:GetService("Debris"):AddItem(disr, 3)
  6225. end))
  6226. end
  6227. local eff = Instance.new("ParticleEmitter",dis)
  6228. eff.Texture = "rbxassetid://2273224484"
  6229. eff.LightEmission = 1
  6230. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6231. eff.Rate = 500000
  6232. eff.Lifetime = NumberRange.new(0.5,2)
  6233. 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)})
  6234. 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)})
  6235. eff.Speed = NumberRange.new(20,250)
  6236. eff.Drag = 5
  6237. eff.Rotation = NumberRange.new(-500,500)
  6238. eff.VelocitySpread = 9000
  6239. eff.RotSpeed = NumberRange.new(-50,50)
  6240. wait(0.25)
  6241. eff.Enabled = false
  6242. end))
  6243. for i = 0, 9 do
  6244. 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"))
  6245. end
  6246. for i = 0, 19 do
  6247. 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)
  6248. end
  6249. coroutine.resume(coroutine.create(function()
  6250. for i = 0, 19 do
  6251. swait()
  6252. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6253. end
  6254. hum.CameraOffset = vt(0,0,0)
  6255. end))
  6256. dis.Anchored = true
  6257. dis.Transparency = 1
  6258. wait(8)
  6259. dis:Destroy()
  6260. end
  6261. end)
  6262. end))
  6263. rot = rot - 15
  6264. end
  6265. for i = 0,2,0.1 do
  6266. swait()
  6267. 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)
  6268. 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)
  6269. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6270. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6271. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6272. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6273. end
  6274. attack = false
  6275. hum.WalkSpeed = storehumanoidWS
  6276. end
  6277.  
  6278. function FuckMeSidewaysAndCallMeGay()
  6279. local whom = (mouse.Target and mouse.Target.Parent)
  6280. --[[local fuckThisBoi = false
  6281. if(whom and whom:FindFirstChildOfClass'Humanoid')then
  6282. for _,v in next, ODers do
  6283. if(v == whom)then
  6284. fuckThisBoi = false
  6285. end
  6286. end
  6287. end
  6288. if(not fuckThisBoi)then
  6289. attack = false
  6290. warn'to fuck that boi you need to target them with z'
  6291. else]]
  6292. if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then
  6293. local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso'
  6294. local hum = whom:FindFirstChildOfClass'Humanoid'
  6295. local ocf = RootPart.CFrame
  6296. hum.WalkSpeed = 0
  6297.  
  6298. hed.Anchored = true
  6299. RootPart.Anchored = true
  6300. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6301. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6302. for i = 0, 9 do
  6303. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6304. end
  6305. for i = 0, 24 do
  6306. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6307. end
  6308. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6309. attack = true
  6310. bosschatfunc("I love you <3",MAINRUINCOLOR.Color,1)
  6311. local speed = 1
  6312. local heck;
  6313. local stopitlol = false;
  6314. heck = mouse.KeyUp:connect(function(k)
  6315. if(k:lower() == 'x')then
  6316. stopitlol = true
  6317. heck:disconnect()
  6318. end
  6319. end)
  6320. local times = 0
  6321. repeat swait()
  6322. speed = speed - .01
  6323. times = times + 1
  6324. if(speed < .1)then
  6325. speed = .1
  6326. end
  6327. for i = 0, speed, .05 do
  6328. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6329. swait()
  6330. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6331. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6332. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6333. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6334. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6335. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6336. end
  6337. CameraEnshaking(5,5)
  6338.  
  6339. CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1)
  6340.  
  6341. for i = 0, speed, .05 do
  6342. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6343. swait()
  6344. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6345. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6346. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6347. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6348. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6349. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6350. end
  6351. until stopitlol and times >= 3
  6352. for i = 1, 3 do
  6353. for i = 0, 1.5, .05 do
  6354. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6355. swait()
  6356. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6357. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6358. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6359. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6360. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6361. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6362. end
  6363. CameraEnshaking(5,25)
  6364.  
  6365. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6366.  
  6367.  
  6368. coroutine.resume(coroutine.create(function()
  6369. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6370. bld.LightEmission = 0.1
  6371. bld.Texture = "rbxassetid://284205403"
  6372. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6373. bld.Rate = 500
  6374. bld.Lifetime = NumberRange.new(1)
  6375. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6376. bld.Acceleration = vt(0,-25,0)
  6377. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6378. bld.Speed = NumberRange.new(10,50)
  6379. bld.EmissionDirection = "Back"
  6380. bld.VelocitySpread = 25
  6381. bld.Rotation = NumberRange.new(-500,500)
  6382. bld.RotSpeed = NumberRange.new(-500,500)
  6383. bld.Enabled = false
  6384. bld:Emit(250)
  6385. end))
  6386. coroutine.resume(coroutine.create(function()
  6387. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6388. bld.LightEmission = 0.1
  6389. bld.Texture = "rbxassetid://284205403"
  6390. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6391. bld.Rate = 500
  6392. bld.Lifetime = NumberRange.new(1)
  6393. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6394. bld.Acceleration = vt(0,-25,0)
  6395. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6396. bld.Speed = NumberRange.new(10,50)
  6397. bld.EmissionDirection = "Back"
  6398. bld.VelocitySpread = 25
  6399. bld.Rotation = NumberRange.new(-500,500)
  6400. bld.RotSpeed = NumberRange.new(-500,500)
  6401. bld.Enabled = false
  6402. bld:Emit(250)
  6403. end))
  6404. for i = 0, 1.5, .05 do
  6405. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6406. swait()
  6407. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6408. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6409. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6410. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6411. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6412. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6413. end
  6414. end
  6415. for i = 0, 4, .05 do
  6416. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6417. swait()
  6418. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1)
  6419. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  6420. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1)
  6421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  6422. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6423. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6424. end
  6425. CameraEnshaking(5,25)
  6426. CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1)
  6427. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6428.  
  6429. dmg(whom)
  6430. coroutine.resume(coroutine.create(function()
  6431. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6432. bld.LightEmission = 0.1
  6433. bld.Texture = "rbxassetid://284205403"
  6434. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6435. bld.Rate = 500
  6436. bld.Lifetime = NumberRange.new(1)
  6437. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6438. bld.Acceleration = vt(0,-25,0)
  6439. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6440. bld.Speed = NumberRange.new(10,50)
  6441. bld.EmissionDirection = "Back"
  6442. bld.VelocitySpread = 25
  6443. bld.Rotation = NumberRange.new(-500,500)
  6444. bld.RotSpeed = NumberRange.new(-500,500)
  6445. bld.Enabled = true
  6446. end))
  6447. coroutine.resume(coroutine.create(function()
  6448. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6449. bld.LightEmission = 0.1
  6450. bld.Texture = "rbxassetid://284205403"
  6451. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6452. bld.Rate = 500
  6453. bld.Lifetime = NumberRange.new(1)
  6454. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6455. bld.Acceleration = vt(0,-25,0)
  6456. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6457. bld.Speed = NumberRange.new(10,50)
  6458. bld.EmissionDirection = "Back"
  6459. bld.VelocitySpread = 25
  6460. bld.Rotation = NumberRange.new(-500,500)
  6461. bld.RotSpeed = NumberRange.new(-500,500)
  6462. bld.Enabled = true
  6463. end))
  6464. for i = 0, 3, .05 do
  6465. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6466. swait()
  6467. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4)
  6468. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6469. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4)
  6470. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6471. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6472. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6473. end
  6474.  
  6475. RootPart.CFrame = ocf
  6476. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6477. for i = 0, 9 do
  6478. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6479. end
  6480. for i = 0, 24 do
  6481. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6482. end
  6483. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6484. RootPart.Anchored = false
  6485. Humanoid.WalkSpeed = storehumanoidWS
  6486. bosschatfunc("Hehehehehe <3",MAINRUINCOLOR.Color,0.5)
  6487. attack = false
  6488. end
  6489. end
  6490.  
  6491. function RapidBurst()
  6492. attack = true
  6493. hum.WalkSpeed = 0
  6494. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6495. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6496. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6497. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6498. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6499. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6500. local keptcolor = MAINRUINCOLOR
  6501. for i = 0,8,0.1 do
  6502. swait()
  6503. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6504. 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())
  6505. 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)
  6506. 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)
  6507. 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)
  6508. 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)
  6509. 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)
  6510. 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)
  6511. 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)
  6512. end
  6513. for i = 0, 99 do
  6514. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6515. 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)))
  6516. local at1 = Instance.new("Attachment",dis)
  6517. at1.Position = vt(-25000,0,0)
  6518. local at2 = Instance.new("Attachment",dis)
  6519. at2.Position = vt(25000,0,0)
  6520. local trl = Instance.new('Trail',dis)
  6521. trl.Attachment0 = at1
  6522. trl.FaceCamera = true
  6523. trl.Attachment1 = at2
  6524. trl.Texture = "rbxassetid://1049219073"
  6525. trl.LightEmission = 1
  6526. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6527. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6528. trl.Lifetime = 5
  6529. local bv = Instance.new("BodyVelocity")
  6530. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6531. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6532. bv.Parent = dis
  6533. game:GetService("Debris"):AddItem(dis, 5)
  6534. end
  6535. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6536. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6537. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6538. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6539. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6540. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6541. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6542. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6543. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6544. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6545. hum.CameraOffset = vt(0,0,0)
  6546. for i = 0, 24 do
  6547. 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())
  6548. end
  6549. local distam = 0
  6550. coroutine.resume(coroutine.create(function()
  6551. for i = 0, 99 do
  6552. wait()
  6553. distam = distam + 1
  6554. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6555. xa.Anchored = true
  6556. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6557. game:GetService("Debris"):AddItem(xa, 5)
  6558. for i = 0, 4 do
  6559. 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())
  6560. end
  6561. coroutine.resume(coroutine.create(function()
  6562. local eff = Instance.new("ParticleEmitter",xa)
  6563. eff.Texture = "rbxassetid://2273224484"
  6564. eff.LightEmission = 1
  6565. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6566. eff.Rate = 500000
  6567. eff.Lifetime = NumberRange.new(1,3)
  6568. 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)})
  6569. 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)})
  6570. eff.Speed = NumberRange.new(50,500)
  6571. eff.Drag = 5
  6572. eff.Rotation = NumberRange.new(-500,500)
  6573. eff.VelocitySpread = 9000
  6574. eff.RotSpeed = NumberRange.new(-50,50)
  6575. wait(0.25)
  6576. eff.Enabled = false
  6577. end))
  6578. coroutine.resume(coroutine.create(function()
  6579. for i = 0, 19 do
  6580. swait()
  6581. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6582. end
  6583. hum.CameraOffset = vt(0,0,0)
  6584. end))
  6585. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6586. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6587. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6588. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6589. end
  6590. end))
  6591. attack = false
  6592. hum.WalkSpeed = storehumanoidWS
  6593. end
  6594.  
  6595.  
  6596. function FallenOrbs()
  6597. attack = true
  6598. hum.WalkSpeed = 2
  6599. local keptcolor = MAINRUINCOLOR
  6600. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6601. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6602. local radm = math.random(1,3)
  6603. if radm == 1 then
  6604. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6605. elseif radm == 2 then
  6606. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6607. elseif radm == 3 then
  6608. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6609. end
  6610. coroutine.resume(coroutine.create(function()
  6611. for i = 0, 29 do
  6612. swait(2)
  6613. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6614. dis.Anchored = true
  6615. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6616. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6617. CreateMesh(dis,"Sphere",2,2,2)
  6618. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6619. 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"))
  6620. coroutine.resume(coroutine.create(function()
  6621. wait(0.5)
  6622. dis.Anchored = false
  6623. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6624. local at1 = Instance.new("Attachment",dis)
  6625. at1.Position = vt(-1,0,0)
  6626. local at2 = Instance.new("Attachment",dis)
  6627. at2.Position = vt(1,0,0)
  6628. local trl = Instance.new('Trail',dis)
  6629. trl.Attachment0 = at1
  6630. trl.FaceCamera = true
  6631. trl.Attachment1 = at2
  6632. trl.Texture = "rbxassetid://1049219073"
  6633. trl.LightEmission = 1
  6634. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6635. trl.Color = ColorSequence.new(dis.Color)
  6636. trl.Lifetime = 0.6
  6637. local a = Instance.new("Part",workspace)
  6638. a.Name = "Direction"
  6639. a.Anchored = true
  6640. a.BrickColor = bc("Bright red")
  6641. a.Material = "Neon"
  6642. a.Transparency = 1
  6643. a.CanCollide = false
  6644. local ray = Ray.new(
  6645. dis.CFrame.p, -- origin
  6646. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6647. )
  6648. local ignore = dis
  6649. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6650. a.BottomSurface = 10
  6651. a.TopSurface = 10
  6652. local distance = (dis.CFrame.p - position).magnitude
  6653. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6654. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6655. dis.CFrame = a.CFrame
  6656. a:Destroy()
  6657. local bv = Instance.new("BodyVelocity")
  6658. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6659. bv.velocity = dis.CFrame.lookVector*500
  6660. bv.Parent = dis
  6661. game:GetService("Debris"):AddItem(dis, 5)
  6662. local hitted = false
  6663. coroutine.resume(coroutine.create(function()
  6664. dis.Touched:connect(function(hit)
  6665. if hitted == false and hit.Parent ~= char then
  6666. hitted = true
  6667. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6668. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6669. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6670. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6671. coroutine.resume(coroutine.create(function()
  6672. for i = 0, 4 do
  6673. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6674. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6675. local at1 = Instance.new("Attachment",disr)
  6676. at1.Position = vt(-10,0,0)
  6677. local at2 = Instance.new("Attachment",disr)
  6678. at2.Position = vt(10,0,0)
  6679. local trl = Instance.new('Trail',disr)
  6680. trl.Attachment0 = at1
  6681. trl.FaceCamera = true
  6682. trl.Attachment1 = at2
  6683. trl.Texture = "rbxassetid://2342682798"
  6684. trl.LightEmission = 1
  6685. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6686. trl.Color = ColorSequence.new(disr.Color)
  6687. trl.Lifetime = 0.5
  6688. local bv = Instance.new("BodyVelocity")
  6689. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6690. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6691. bv.Parent = disr
  6692. local val = 0
  6693. coroutine.resume(coroutine.create(function()
  6694. swait(30)
  6695. for i = 0, 9 do
  6696. swait()
  6697. val = val + 0.1
  6698. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6699. end
  6700. game:GetService("Debris"):AddItem(disr, 3)
  6701. end))
  6702. end
  6703. local eff = Instance.new("ParticleEmitter",dis)
  6704. eff.Texture = "rbxassetid://1049219073"
  6705. eff.LightEmission = 1
  6706. eff.Color = ColorSequence.new(dis.Color)
  6707. eff.Rate = 500000
  6708. eff.Lifetime = NumberRange.new(0.5,2)
  6709. 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)})
  6710. 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)})
  6711. eff.Speed = NumberRange.new(20,250)
  6712. eff.Drag = 5
  6713. eff.Rotation = NumberRange.new(-500,500)
  6714. eff.VelocitySpread = 9000
  6715. eff.RotSpeed = NumberRange.new(-50,50)
  6716. wait(0.5)
  6717. eff.Enabled = false
  6718. end))
  6719. for i = 0, 4 do
  6720. 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"))
  6721. end
  6722. coroutine.resume(coroutine.create(function()
  6723. for i = 0, 19 do
  6724. swait()
  6725. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6726. end
  6727. hum.CameraOffset = vt(0,0,0)
  6728. end))
  6729. dis.Anchored = true
  6730. dis.Transparency = 1
  6731. wait(8)
  6732. dis:Destroy()
  6733. end
  6734. end)
  6735. end))
  6736. end))
  6737. end
  6738. end))
  6739. for i = 0,9,0.1 do
  6740. swait()
  6741. 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)
  6742. 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)
  6743. 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)
  6744. 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)
  6745. 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)
  6746. 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)
  6747. 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)
  6748. end
  6749. attack = false
  6750. hum.WalkSpeed = storehumanoidWS
  6751. end
  6752.  
  6753. function CyberSlash()
  6754. local posit = -2
  6755. attack = true
  6756. hum.WalkSpeed = 5
  6757. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6758. local radm = math.random(1,3)
  6759. if radm == 1 then
  6760. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6761. elseif radm == 2 then
  6762. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6763. elseif radm == 3 then
  6764. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6765. end
  6766. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6767. for i = 0,2,0.1 do
  6768. swait()
  6769. 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)
  6770. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6771. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6772. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6773. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6774. 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)
  6775. 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)
  6776. end
  6777. for i = 0, 2 do
  6778. CameraEnshaking(1,2)
  6779. local hite = Instance.new("Part", char)
  6780. hite.Anchored = true
  6781. hite.CanCollide = false
  6782. hite.FormFactor = 3
  6783. hite.Name = "Ring"
  6784. hite.Material = "Neon"
  6785. hite.Size = Vector3.new(1, 1, 1)
  6786. hite.Transparency = 1
  6787. hite.TopSurface = 0
  6788. hite.BottomSurface = 0
  6789. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6790. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6791. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6792. coroutine.resume(coroutine.create(function()
  6793. for i = 0, 1 do
  6794. swait()
  6795. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6796. 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)
  6797. 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)
  6798. end
  6799. end))
  6800. 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)
  6801. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6802. game:GetService("Debris"):AddItem(hite, 5)
  6803. posit = posit + 2
  6804. end
  6805. for i = 0,1,0.1 do
  6806. swait()
  6807. 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)
  6808. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6809. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6810. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6811. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6812. 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)
  6813. 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)
  6814. end
  6815. for i = 0,1,0.1 do
  6816. swait()
  6817. 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)
  6818. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6819. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6820. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6821. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6822. 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)
  6823. 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)
  6824. end
  6825. posit = -6
  6826. for i = 0, 6 do
  6827. CameraEnshaking(1,3)
  6828. local hite = Instance.new("Part", char)
  6829. hite.Anchored = true
  6830. hite.CanCollide = false
  6831. hite.FormFactor = 3
  6832. hite.Name = "Ring"
  6833. hite.Material = "Neon"
  6834. hite.Size = Vector3.new(1, 1, 1)
  6835. hite.Transparency = 1
  6836. hite.TopSurface = 0
  6837. hite.BottomSurface = 0
  6838. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6839. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6840. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6841. 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)
  6842. coroutine.resume(coroutine.create(function()
  6843. for i = 0, 2 do
  6844. swait()
  6845. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6846. 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)
  6847. 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)
  6848. end
  6849. end))
  6850. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6851. game:GetService("Debris"):AddItem(hite, 5)
  6852. posit = posit + 2
  6853. end
  6854. for i = 0,1,0.1 do
  6855. swait()
  6856. 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)
  6857. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6858. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6859. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6860. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6861. 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)
  6862. 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)
  6863. end
  6864. hum.WalkSpeed = storehumanoidWS
  6865. attack = false
  6866. end
  6867.  
  6868. function EquinoxOrbs()
  6869. hum.WalkSpeed = 0
  6870. attack = true
  6871. local radm = math.random(1,3)
  6872. if radm == 1 then
  6873. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6874. elseif radm == 2 then
  6875. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6876. elseif radm == 3 then
  6877. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6878. end
  6879. for i = 0,1,0.1 do
  6880. swait()
  6881. 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)
  6882. 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)
  6883. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6884. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6885. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6886. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6887. end
  6888. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6889. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6890. for i = 0, 24 do
  6891. 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"))
  6892. end
  6893. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6894. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6895. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6896. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6897. for i = 0,4,0.1 do
  6898. swait()
  6899. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6900. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6901. CreateMesh(dis,"Sphere",1,1,1)
  6902. dis.Anchored = true
  6903. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6904. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6905. CreateMesh(dis2,"Sphere",1,1,1)
  6906. dis2.Anchored = true
  6907. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6908. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6909. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6910. coroutine.resume(coroutine.create(function()
  6911. swait(60)
  6912. dis.Transparency = 1
  6913. dis2.Transparency = 1
  6914. coroutine.resume(coroutine.create(function()
  6915. for i = 0, 19 do
  6916. swait()
  6917. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6918. end
  6919. hum.CameraOffset = vt(0,0,0)
  6920. end))
  6921. coroutine.resume(coroutine.create(function()
  6922. local eff = Instance.new("ParticleEmitter",dis)
  6923. eff.Texture = "rbxassetid://2273224484"
  6924. eff.LightEmission = 1
  6925. eff.Color = ColorSequence.new(dis.Color)
  6926. eff.Rate = 500000
  6927. eff.Lifetime = NumberRange.new(0.5,2)
  6928. 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)})
  6929. 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)})
  6930. eff.Speed = NumberRange.new(50,450)
  6931. eff.Drag = 5
  6932. eff.Rotation = NumberRange.new(-500,500)
  6933. eff.VelocitySpread = 9000
  6934. eff.RotSpeed = NumberRange.new(-50,50)
  6935. local eff2 = eff:Clone()
  6936. eff2.Parent = dis2
  6937. eff2.LightEmission = 0
  6938. eff2.Color = ColorSequence.new(dis2.Color)
  6939. wait(0.25)
  6940. eff.Enabled = false
  6941. eff2.Enabled = false
  6942. end))
  6943. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6944. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6945. for i = 0, 2 do
  6946. 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)
  6947. 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)
  6948. end
  6949. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6950. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6951. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6952. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6953. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6954. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6955. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6956. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6957. end))
  6958. game:GetService("Debris"):AddItem(dis, 5)
  6959. game:GetService("Debris"):AddItem(dis2, 5)
  6960. 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)
  6961. 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)
  6962. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6963. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6964. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6965. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6966. end
  6967. attack = false
  6968. hum.WalkSpeed = storehumanoidWS
  6969. end
  6970. function FallenDEMISE()
  6971. attack = true
  6972. hum.WalkSpeed = 0
  6973. local keptcolor = MAINRUINCOLOR
  6974. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6975. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6976. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6977. for i = 0, 15, 0.1 do
  6978. swait()
  6979. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6980. 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)))
  6981. local at1 = Instance.new("Attachment",dis)
  6982. at1.Position = vt(-25000,0,0)
  6983. local at2 = Instance.new("Attachment",dis)
  6984. at2.Position = vt(25000,0,0)
  6985. local trl = Instance.new('Trail',dis)
  6986. trl.Attachment0 = at1
  6987. trl.FaceCamera = true
  6988. trl.Attachment1 = at2
  6989. trl.Texture = "rbxassetid://1049219073"
  6990. trl.LightEmission = 1
  6991. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6992. trl.Color = ColorSequence.new(dis.Color)
  6993. trl.Lifetime = 5
  6994. local bv = Instance.new("BodyVelocity")
  6995. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6996. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6997. bv.Parent = dis
  6998. game:GetService("Debris"):AddItem(dis, 1)
  6999. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  7000. 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"))
  7001. 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"))
  7002. 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)
  7003. 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)
  7004. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7005. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7006. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7007. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7008. end
  7009. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  7010. for i = 0, 30, 0.1 do
  7011. swait()
  7012. coroutine.resume(coroutine.create(function()
  7013. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  7014. if v:FindFirstChild('Head') then
  7015. dmg(v)
  7016. end
  7017. end
  7018. end))
  7019. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7020. 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)))
  7021. local at1 = Instance.new("Attachment",dis)
  7022. at1.Position = vt(-50000,0,0)
  7023. local at2 = Instance.new("Attachment",dis)
  7024. at2.Position = vt(50000,0,0)
  7025. local trl = Instance.new('Trail',dis)
  7026. trl.Attachment0 = at1
  7027. trl.FaceCamera = true
  7028. trl.Attachment1 = at2
  7029. trl.Texture = "rbxassetid://1049219073"
  7030. trl.LightEmission = 1
  7031. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7032. trl.Color = ColorSequence.new(dis.Color)
  7033. trl.Lifetime = 10
  7034. local bv = Instance.new("BodyVelocity")
  7035. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7036. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  7037. bv.Parent = dis
  7038. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  7039. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  7040. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  7041. 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"))
  7042. 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"))
  7043. 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"))
  7044. 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"))
  7045. for i = 0, 2 do
  7046. 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)
  7047. end
  7048. 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)
  7049. 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)
  7050. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7051. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7052. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7053. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7054. end
  7055. attack = false
  7056. hum.WalkSpeed = storehumanoidWS
  7057. end
  7058.  
  7059. function SpeedDrop()
  7060. attack = true
  7061. hum.WalkSpeed = 0
  7062. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  7063. local poste = 3
  7064. local rotation = 0
  7065. local rate = 0
  7066. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  7067. for i = 0, 124 do
  7068. swait()
  7069. rotation = rotation + rate
  7070. poste = poste + 0.1
  7071. rate = rate + 0.1
  7072. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  7073. 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)
  7074. 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)
  7075. 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)
  7076. 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)
  7077. 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)
  7078. 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)
  7079. 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)
  7080. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  7081. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  7082. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  7083. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  7084. end
  7085. CameraEnshaking(3,7)
  7086. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  7087. local loc = Instance.new("Part", char)
  7088. loc.BrickColor = MAINRUINCOLOR
  7089. loc.CanCollide = false
  7090. loc.FormFactor = 3
  7091. loc.Name = "Ring"
  7092. loc.Material = "Neon"
  7093. loc.Size = Vector3.new(1, 1, 1)
  7094. loc.Transparency = 1
  7095. loc.TopSurface = 0
  7096. loc.BottomSurface = 0
  7097. loc.Anchored = true
  7098. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7099. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7100. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7101. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7102. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7103. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7104. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7105. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7106. coroutine.resume(coroutine.create(function()
  7107. local eff = Instance.new("ParticleEmitter",loc)
  7108. eff.Texture = "rbxassetid://363275192"
  7109. eff.LightEmission = 0.95
  7110. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7111. eff.Rate = 10000
  7112. eff.Lifetime = NumberRange.new(1)
  7113. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7114. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7115. eff.Speed = NumberRange.new(100,500)
  7116. eff.Drag = 5
  7117. eff.Rotation = NumberRange.new(-500,500)
  7118. eff.VelocitySpread = 9000
  7119. eff.RotSpeed = NumberRange.new(-50,50)
  7120. wait(0.5)
  7121. eff.Enabled = false
  7122. end))
  7123. for i = 0, 49 do
  7124. 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)
  7125. end
  7126. for i = 0, 9 do
  7127. 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)
  7128. end
  7129. game:GetService("Debris"):AddItem(loc, 5)
  7130. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7131. hum.WalkSpeed = storehumanoidWS
  7132. attack = false
  7133. end
  7134.  
  7135. function cutesigh()
  7136. attack = true
  7137. hum.WalkSpeed = 0
  7138. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7139. local blush = Instance.new("Decal",hed)
  7140. blush.Texture = "rbxassetid://898404027"
  7141. blush.Face = "Front"
  7142. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7143. for i = 0, 9, 0.1 do
  7144. swait()
  7145. 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)
  7146. 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)
  7147. 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)
  7148. 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)
  7149. 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)
  7150. 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)
  7151. end
  7152. coroutine.resume(coroutine.create(function()
  7153. for i = 0, 49 do
  7154. swait()
  7155. blush.Transparency = blush.Transparency + 0.02
  7156. end
  7157. blush:Destroy()
  7158. end))
  7159. hum.WalkSpeed = storehumanoidWS
  7160. attack = false
  7161. end
  7162.  
  7163. function smiter()
  7164. local targetted = nil
  7165. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7166. targetted = mouse.Target.Parent
  7167. end
  7168. if targetted ~= nil then
  7169. RootPart.CFrame = FaceMouse()[1]
  7170. attack = true
  7171. local radm = math.random(1,3)
  7172. if radm == 1 then
  7173. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7174. elseif radm == 2 then
  7175. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7176. elseif radm == 3 then
  7177. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7178. end
  7179. hum.WalkSpeed = 0
  7180. coroutine.resume(coroutine.create(function()
  7181. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7182. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7183. local vel = Instance.new("BodyPosition", targetted.Head)
  7184. vel.P = 12500
  7185. vel.D = 1000
  7186. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7187. vel.position = targetted.Head.CFrame.p
  7188. end))
  7189. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7190. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7191. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7192. for i = 0,4,0.1 do
  7193. swait()
  7194. 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)
  7195. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7196. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7197. 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)
  7198. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7199. 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)
  7200. 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)
  7201. end
  7202. coroutine.resume(coroutine.create(function()
  7203. CameraEnshaking(6,5)
  7204. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7205. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7206. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7207. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7208. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7209. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7210. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7211. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7212. coroutine.resume(coroutine.create(function()
  7213. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7214. eff.Texture = "rbxassetid://2273224484"
  7215. eff.LightEmission = 1
  7216. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7217. eff.Rate = 500000
  7218. eff.Lifetime = NumberRange.new(0.5,2)
  7219. 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)})
  7220. 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)})
  7221. eff.Speed = NumberRange.new(20,250)
  7222. eff.Drag = 5
  7223. eff.Rotation = NumberRange.new(-500,500)
  7224. eff.VelocitySpread = 9000
  7225. eff.RotSpeed = NumberRange.new(-50,50)
  7226. wait(0.25)
  7227. eff.Enabled = false
  7228. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7229. eff.Texture = "rbxassetid://363275192"
  7230. eff.LightEmission = 0.95
  7231. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7232. eff.Rate = 10000
  7233. eff.Lifetime = NumberRange.new(1.5)
  7234. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7235. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7236. eff.Speed = NumberRange.new(25,150)
  7237. eff.Drag = 5
  7238. eff.Rotation = NumberRange.new(-500,500)
  7239. eff.VelocitySpread = 9000
  7240. eff.RotSpeed = NumberRange.new(-50,50)
  7241. local eff2 = eff:Clone()
  7242. eff2.Parent = targetted.Head
  7243. eff2.Texture = "rbxassetid://284205403"
  7244. eff2.Rate = 10000
  7245. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7246. eff2.Drag = 5
  7247. eff2.Rotation = NumberRange.new(-500,500)
  7248. eff2.VelocitySpread = 9000
  7249. wait(0.5)
  7250. eff2.Enabled = false
  7251. eff.Enabled = false
  7252. end))
  7253. for i = 0, 9 do
  7254. 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)
  7255. end
  7256. for i = 0, 49 do
  7257. local rsiz = math.random(10,50)
  7258. 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)
  7259. end
  7260. game:GetService("Debris"):AddItem(vel,1)
  7261. dmg(targetted)
  7262. end))
  7263. for i = 0,1,0.1 do
  7264. swait()
  7265. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7266. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7267. 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)
  7268. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7269. 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)
  7270. 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)
  7271. end
  7272. attack = false
  7273. hum.WalkSpeed = storehumanoidWS
  7274. end
  7275. end
  7276.  
  7277. function shytaunty()
  7278. attack = true
  7279. hum.WalkSpeed = 0
  7280. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7281. local blush = Instance.new("Decal",hed)
  7282. blush.Texture = "rbxassetid://898404027"
  7283. blush.Face = "Front"
  7284. for i = 0, 13, 0.1 do
  7285. swait()
  7286. 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)
  7287. 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)
  7288. 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)
  7289. 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)
  7290. 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)
  7291. 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)
  7292. end
  7293. coroutine.resume(coroutine.create(function()
  7294. for i = 0, 49 do
  7295. swait()
  7296. blush.Transparency = blush.Transparency + 0.02
  7297. end
  7298. blush:Destroy()
  7299. end))
  7300. hum.WalkSpeed = storehumanoidWS
  7301. attack = false
  7302. end
  7303.  
  7304. function PureBomb()
  7305. attack = true
  7306. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7307. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7308. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7309. local orb = Instance.new("Part", char)
  7310. orb.Anchored = true
  7311. orb.BrickColor = BrickColor.new("Toothpaste")
  7312. orb.CanCollide = false
  7313. orb.FormFactor = 3
  7314. orb.Name = "Ring"
  7315. orb.Material = "Neon"
  7316. orb.Size = Vector3.new(1, 1, 1)
  7317. orb.Transparency = 0
  7318. orb.TopSurface = 0
  7319. orb.BottomSurface = 0
  7320. local orbm = Instance.new("SpecialMesh", orb)
  7321. orbm.MeshType = "Sphere"
  7322. orbm.Name = "SizeMesh"
  7323. orbm.Scale = vt(0,0,0)
  7324. local scaled = 0.1
  7325. local posid = 0
  7326. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7327. for i = 0, 5, 0.1 do
  7328. swait()
  7329. scaled = scaled - 0.001
  7330. posid = posid - scaled
  7331. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7332. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7333. 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)
  7334. 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)
  7335. 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)
  7336. 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)
  7337. 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)
  7338. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7339. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7340. 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)
  7341. end
  7342. for i = 0, 2, 0.1 do
  7343. swait()
  7344. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7345. 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)
  7346. 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)
  7347. 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)
  7348. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7349. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7350. 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)
  7351. end
  7352. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7353. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7354. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7355. coroutine.resume(coroutine.create(function()
  7356. orb.Anchored = false
  7357. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7358. local a = Instance.new("Part",workspace)
  7359. a.Name = "Direction"
  7360. a.Anchored = true
  7361. a.BrickColor = bc("Bright red")
  7362. a.Material = "Neon"
  7363. a.Transparency = 1
  7364. a.CanCollide = false
  7365. local ray = Ray.new(
  7366. orb.CFrame.p, -- origin
  7367. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7368. )
  7369. local ignore = orb
  7370. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7371. a.BottomSurface = 10
  7372. a.TopSurface = 10
  7373. local distance = (orb.CFrame.p - position).magnitude
  7374. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7375. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7376. orb.CFrame = a.CFrame
  7377. a:Destroy()
  7378. local bv = Instance.new("BodyVelocity")
  7379. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7380. bv.velocity = orb.CFrame.lookVector*125
  7381. bv.Parent = orb
  7382. local hitted = false
  7383. game:GetService("Debris"):AddItem(orb, 15)
  7384. wait()
  7385. local hit =orb.Touched:connect(function(hit)
  7386. if hitted == false then
  7387. hitted = true
  7388. CameraEnshaking(10,2.5)
  7389. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7390. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7391. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7392. for i = 0, 49 do
  7393. 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)
  7394. end
  7395. local eff = Instance.new("ParticleEmitter",orb)
  7396. eff.Texture = "rbxassetid://2273224484"
  7397. eff.LightEmission = 1
  7398. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7399. eff.Rate = 500000
  7400. eff.Lifetime = NumberRange.new(0.5,2)
  7401. 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)})
  7402. 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)})
  7403. eff.Speed = NumberRange.new(20,250)
  7404. eff.Drag = 5
  7405. eff.Rotation = NumberRange.new(-500,500)
  7406. eff.VelocitySpread = 9000
  7407. eff.RotSpeed = NumberRange.new(-50,50)
  7408. coroutine.resume(coroutine.create(function()
  7409. wait(0.25)
  7410. eff.Enabled = false
  7411. end))
  7412. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7413. for i = 0, 9 do
  7414. 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)
  7415. 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)
  7416. end
  7417. orb.Anchored = true
  7418. orb.Transparency = 1
  7419. local eff = Instance.new("ParticleEmitter",orb)
  7420. eff.Texture = "rbxassetid://2273224484"
  7421. eff.LightEmission = 1
  7422. eff.Color = ColorSequence.new(Color3.new(M))
  7423. eff.Rate = 500000
  7424. eff.Lifetime = NumberRange.new(0.5,2)
  7425. 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)})
  7426. 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)})
  7427. eff.Speed = NumberRange.new(20,250)
  7428. eff.Drag = 5
  7429. eff.Rotation = NumberRange.new(-500,500)
  7430. eff.VelocitySpread = 9000
  7431. eff.RotSpeed = NumberRange.new(-50,50)
  7432. coroutine.resume(coroutine.create(function()
  7433. wait(1)
  7434. eff.Enabled = false
  7435. end))
  7436. wait(8)
  7437. orb:Destroy()
  7438. end
  7439. end)
  7440. end))
  7441. for i = 0, 1, 0.1 do
  7442. swait()
  7443. 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)
  7444. 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)
  7445. 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)
  7446. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7447. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7448. 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)
  7449. end
  7450. attack = false
  7451. end
  7452.  
  7453.  
  7454. function BeamOfDeath()
  7455. coroutine.resume(coroutine.create(function()
  7456. attack = true
  7457. hum.WalkSpeed = 0
  7458. for i = 0, 11, 0.1 do
  7459. swait()
  7460. 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)
  7461. 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)
  7462. 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)
  7463. 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)
  7464. 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)
  7465. 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)
  7466. end
  7467. for i = 0, 1, 0.1 do
  7468. swait()
  7469. 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)
  7470. 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)
  7471. 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)
  7472. 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)
  7473. 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)
  7474. 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)
  7475. end
  7476. hum.WalkSpeed = storehumanoidWS
  7477. attack = false
  7478. end))
  7479. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7480. local radm = math.random(1,3)
  7481. if radm == 1 then
  7482. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7483. elseif radm == 2 then
  7484. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7485. elseif radm == 3 then
  7486. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7487. end
  7488. local keptcolor = MAINRUINCOLOR
  7489. local orb = Instance.new("Part", char)
  7490. orb.BrickColor = keptcolor
  7491. orb.CanCollide = false
  7492. orb.FormFactor = 3
  7493. orb.Name = "Ring"
  7494. orb.Material = "Neon"
  7495. orb.Size = Vector3.new(1, 1, 1)
  7496. orb.Transparency = 1
  7497. orb.TopSurface = 0
  7498. orb.BottomSurface = 0
  7499. local orbm = Instance.new("SpecialMesh", orb)
  7500. orbm.MeshType = "Sphere"
  7501. orbm.Name = "SizeMesh"
  7502. orbm.Scale = vt(22.5,10000,22.5)
  7503. orb.CFrame = mouse.Hit
  7504. orb.Anchored = true
  7505. orb.Orientation = vt(0,0,0)
  7506. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7507. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7508. coroutine.resume(coroutine.create(function()
  7509. coroutine.resume(coroutine.create(function()
  7510. for i = 0, 175 do
  7511. swait()
  7512. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7513. orb.Transparency = orb.Transparency - 0.005
  7514. end
  7515. end))
  7516. wait(2)
  7517. coroutine.resume(coroutine.create(function()
  7518. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7519. if hfr ~= nil then
  7520. for i = 0, 24.5 do
  7521. local deb = Instance.new("Part", char)
  7522. deb.Anchored = true
  7523. deb.CanCollide = false
  7524. deb.FormFactor = 3
  7525. deb.Name = "Ring"
  7526. deb.Material = hitfloor.Material
  7527. deb.Color = hitfloor.Color
  7528. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7529. deb.Transparency = 0
  7530. deb.TopSurface = 0
  7531. deb.BottomSurface = 0
  7532. 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)))
  7533. local deb2 = Instance.new("Part", char)
  7534. deb2.CanCollide = false
  7535. deb2.FormFactor = 3
  7536. deb2.Name = "Ring"
  7537. deb2.Material = hitfloor.Material
  7538. deb2.Color = hitfloor.Color
  7539. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7540. deb2.Transparency = 0
  7541. deb2.TopSurface = 0
  7542. deb2.BottomSurface = 0
  7543. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7544. 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)))
  7545. local eff = Instance.new("ParticleEmitter",deb)
  7546. eff.Texture = "rbxassetid://363275192"
  7547. eff.LightEmission = 0.95
  7548. eff.Color = ColorSequence.new(keptcolor.Color)
  7549. eff.Rate = 100
  7550. eff.Lifetime = NumberRange.new(1)
  7551. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7552. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7553. eff.Speed = NumberRange.new(0,5)
  7554. eff.Rotation = NumberRange.new(-500,500)
  7555. eff.VelocitySpread = 9000
  7556. eff.RotSpeed = NumberRange.new(-10,10)
  7557. local at1 = Instance.new('Attachment',deb2)
  7558. at1.Position = vt(0,15,0)
  7559. local at2 = Instance.new('Attachment',deb2)
  7560. at2.Position = vt(0,-15,0)
  7561. local tl = Instance.new('Trail',deb2)
  7562. tl.Attachment0 = at1
  7563. tl.Attachment1 = at2
  7564. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7565. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7566. tl.Lifetime = 1
  7567. game:GetService("Debris"):AddItem(deb,30)
  7568. game:GetService("Debris"):AddItem(deb2,30)
  7569. coroutine.resume(coroutine.create(function()
  7570. wait(15)
  7571. eff.Enabled = false
  7572. for i = 0, 49 do
  7573. swait()
  7574. deb.Transparency = deb.Transparency + 0.02
  7575. end
  7576. wait(1)
  7577. deb:Destroy()
  7578. end))
  7579. end
  7580. end
  7581. end))
  7582. for i = 0, 199 do
  7583. swait(1.5)
  7584. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7585. if v:FindFirstChild('Head') then
  7586. dmg(v)
  7587. end
  7588. end
  7589. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7590. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  7591. 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)
  7592. 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)
  7593. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7594. end
  7595. orb:Destroy()
  7596. end))
  7597. end
  7598.  
  7599. function Beams()
  7600. attack = true
  7601. hum.WalkSpeed = 0
  7602. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7603. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7604. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7605. local keptcolor = MAINRUINCOLOR
  7606. coroutine.resume(coroutine.create(function()
  7607. for i = 0, 96 do
  7608. swait(5)
  7609. local orb = Instance.new("Part", char)
  7610. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7611. orb.BrickColor = keptcolor
  7612. orb.CanCollide = false
  7613. orb.FormFactor = 3
  7614. orb.Name = "Ring"
  7615. orb.Material = "Neon"
  7616. orb.Size = Vector3.new(1, 1, 1)
  7617. orb.Transparency = 0
  7618. orb.TopSurface = 0
  7619. orb.BottomSurface = 0
  7620. orb.Anchored = true
  7621. local orbm = Instance.new("SpecialMesh", orb)
  7622. orbm.MeshType = "Sphere"
  7623. orbm.Name = "SizeMesh"
  7624. orbm.Scale = vt(1.25,1.25,1.25)
  7625. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7626. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7627. coroutine.resume(coroutine.create(function()
  7628. wait(0.5)
  7629. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7630. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7631. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7632. orb.Transparency = 1
  7633. local a = Instance.new("Part",char)
  7634. a.Name = "Direction"
  7635. a.Anchored = true
  7636. a.BrickColor = keptcolor
  7637. a.Material = "Neon"
  7638. a.Transparency = 0.25
  7639. a.Shape = "Cylinder"
  7640. local ht = Instance.new("Part",char)
  7641. ht.Name = "DirectionHit"
  7642. ht.Anchored = true
  7643. ht.BrickColor = keptcolor
  7644. ht.CanCollide = false
  7645. ht.Transparency = 1
  7646. ht.Size = vt(0.1,0.1,0.1)
  7647. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7648. a.CanCollide = false
  7649. local ray = Ray.new(
  7650. orb.CFrame.p, -- origin
  7651. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7652. )
  7653. local ignore = char
  7654. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7655. a.BottomSurface = 10
  7656. a.TopSurface = 10
  7657. local distance = (orb.CFrame.p - position).magnitude
  7658. a.Size = Vector3.new(distance,1,1)
  7659. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7660. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7661. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7662. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7663. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7664. coroutine.resume(coroutine.create(function()
  7665. local eff = Instance.new("ParticleEmitter",ht)
  7666. eff.Texture = "rbxassetid://284205403"
  7667. eff.LightEmission = 0.95
  7668. eff.Color = ColorSequence.new(keptcolor.Color)
  7669. eff.Rate = 500
  7670. eff.Lifetime = NumberRange.new(0.5)
  7671. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7672. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7673. eff.Speed = NumberRange.new(10,50)
  7674. eff.Drag = 5
  7675. eff.Rotation = NumberRange.new(-500,500)
  7676. eff.VelocitySpread = 9000
  7677. eff.RotSpeed = NumberRange.new(-500,500)
  7678. wait(0.25)
  7679. eff.Enabled = false
  7680. end))
  7681. for i = 0, 4 do
  7682. 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)
  7683. 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)
  7684. local rsiz = math.random(10,30)
  7685. 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)
  7686. end
  7687. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7688. local msh = Instance.new("SpecialMesh",a)
  7689. msh.MeshType = "Cylinder"
  7690. msh.Scale = vt(1,1,1)
  7691. for i = 0, 49 do
  7692. swait()
  7693. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7694. a.Transparency = a.Transparency + 0.02
  7695. end
  7696. orb:Destroy()
  7697. a:Destroy()
  7698. ht:Destroy()
  7699. end))
  7700. game:GetService("Debris"):AddItem(orb, 10)
  7701. end
  7702. end))
  7703. for i = 0,6,0.1 do
  7704. swait()
  7705. 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)
  7706. 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)
  7707. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7708. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7709. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7710. 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)
  7711. 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)
  7712. end
  7713. hum.WalkSpeed = storehumanoidWS
  7714. attack = false
  7715. end
  7716.  
  7717. function CalamityTrans()
  7718. attack = true
  7719. rainbowmode = false
  7720. chaosmode = false
  7721. ModeOfGlitch = 8889
  7722. hum.WalkSpeed = 0
  7723. newThemeCust("rbxassetid://1359036559",0,1,1.25)
  7724. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7725. elocacenter.Anchored = true
  7726. elocacenter.CFrame = root.CFrame
  7727. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7728. eloca1.Anchored = true
  7729. eloca1.CFrame = elocacenter.CFrame
  7730. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7731. eloca2.Anchored = true
  7732. eloca2.CFrame = elocacenter.CFrame
  7733. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7734. eloca3.Anchored = true
  7735. eloca3.CFrame = elocacenter.CFrame
  7736. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7737. eloca4.Anchored = true
  7738. eloca4.CFrame = elocacenter.CFrame
  7739. local lookavec = 0
  7740. local speeds = 0
  7741. CameraEnshaking(3,2.5)
  7742. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7743. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7744. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7745. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7746. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7747. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7748. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7749. for i = 0, 5, 0.1 do
  7750. swait()
  7751. ---
  7752. lookavec = lookavec + 1
  7753. speeds = speeds + 10
  7754. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7755. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7756. 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)
  7757. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7758. 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)
  7759. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7760. 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)
  7761. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7762. 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)
  7763. ---
  7764. 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)
  7765. 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)
  7766. 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)
  7767. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7768. 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)
  7769. 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)
  7770. end
  7771. for i = 0, 5, 0.1 do
  7772. swait()
  7773. ---
  7774. speeds = speeds + 10
  7775. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7776. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7777. 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)
  7778. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7779. 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)
  7780. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7781. 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)
  7782. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7783. 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)
  7784. ---
  7785. 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)
  7786. 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)
  7787. 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)
  7788. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7789. 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)
  7790. 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)
  7791. end
  7792. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7793. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7794. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7795. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7796. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7797. CameraEnshaking(1,3)
  7798. for i = 0, 24 do
  7799. 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)
  7800. 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)
  7801. 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)
  7802. 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)
  7803. end
  7804. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7805. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7806. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7807. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7808. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7809. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7810. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7811. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7812. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7813. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7814. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7815. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7816. for i = 0, 5, 0.1 do
  7817. swait()
  7818. ---
  7819. lookavec = lookavec - 1
  7820. speeds = speeds + 10
  7821. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7822. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7823. 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)
  7824. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7825. 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)
  7826. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7827. 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)
  7828. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7829. 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)
  7830. ---
  7831. 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)
  7832. 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)
  7833. 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)
  7834. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7835. 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)
  7836. 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)
  7837. end
  7838. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7839. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7840. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7841. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7842. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7843. for i = 0, 49 do
  7844. 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)
  7845. 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)
  7846. end
  7847. CameraEnshaking(5,6)
  7848. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7849. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7850. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7851. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7852. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7853. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7854. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7855. storehumanoidWS = 100
  7856. hum.WalkSpeed = 100
  7857. rainbowmode = false
  7858. chaosmode = false
  7859. tl1.Enabled = true
  7860. tl2.Enabled = true
  7861. tl3.Enabled = true
  7862. RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7863. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7864. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7865. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7866. for i, v in pairs(mw2:GetChildren()) do
  7867. if v:IsA("Part") then
  7868. v.BrickColor = MAINRUINCOLOR
  7869. v.Material = "Neon"
  7870. end
  7871. end
  7872. for i, v in pairs(mw1:GetChildren()) do
  7873. if v:IsA("Part") then
  7874. v.Transparency = 0
  7875. v.BrickColor = MAINRUINCOLOR
  7876. v.Material = "Neon"
  7877. end
  7878. end
  7879. for i, v in pairs(m:GetChildren()) do
  7880. if v:IsA("Part") then
  7881. v.Color = Color3.new(0.5,0,1)
  7882. v.Material = "Neon"
  7883. end
  7884. end
  7885. for i, v in pairs(m2:GetChildren()) do
  7886. if v:IsA("Part") then
  7887. v.Color = Color3.new(0.25,0,1)
  7888. v.Material = "Neon"
  7889. end
  7890. end
  7891. for i, v in pairs(m3:GetChildren()) do
  7892. if v:IsA("Part") then
  7893. v.Color = Color3.new(0.45,0,1)
  7894. v.Material = "Neon"
  7895. end
  7896. end
  7897. for i, v in pairs(extrawingmod1:GetChildren()) do
  7898. if v:IsA("Part") then
  7899. v.Transparency = 0.75
  7900. v.Color = Color3.new(0.25,0,1)
  7901. v.Material = "Neon"
  7902. end
  7903. end
  7904. for i, v in pairs(extrawingmod2:GetChildren()) do
  7905. if v:IsA("Part") then
  7906. v.Transparency = 0.75
  7907. v.Color = Color3.new(0.5,0,1)
  7908. v.Material = "Neon"
  7909. end
  7910. end
  7911. attack = false
  7912. end
  7913.  
  7914. function RiddleMeThisRiddleMeThat()
  7915. attack = true
  7916. hum.WalkSpeed = 250
  7917. storehumanoidWS = 250
  7918. hum.JumpPower = 50
  7919. newThemeCust("rbxassetid://1420353940",0,1,2)
  7920. kan.TimePosition = 0
  7921. ModeOfGlitch = 111
  7922. repeat swait() until kan.IsLoaded
  7923. bosschatfunc("Riddle me this...",MAINRUINCOLOR.Color,2)
  7924. for i = 0, 14, .1 do
  7925. swait()
  7926. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  7927. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  7928. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  7929. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  7930. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  7931. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  7932. end
  7933. bosschatfunc("Riddle me that...",MAINRUINCOLOR.Color,2)
  7934. for i = 0, 12, .1 do
  7935. swait()
  7936. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  7937. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  7938. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  7939. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(25),0),.1)
  7940. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  7941. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  7942. end
  7943. bosschatfunc("Who's afraid of the big black...",MAINRUINCOLOR.Color,2)
  7944. for i = 0, 16, .1 do
  7945. swait()
  7946. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  7947. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  7948. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  7949. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  7950. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  7951. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  7952. end
  7953. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  7954. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  7955. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  7956. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  7957. pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Black' end)
  7958. pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Black' end)
  7959. RecolorTextAndRename("THE BIG BLACK",Color3.new(0,0,0),BrickColor.new("Really black").Color,"Antique")
  7960. MAINRUINCOLOR = BrickColor.new("Really black")
  7961. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7962. MAINRUINCOLOR = BrickColor.new("Really black")
  7963. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7964. tl1.Enabled = true
  7965. tl2.Enabled = true
  7966. tl3.Enabled = true
  7967. for i = 0, 49 do
  7968. 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)
  7969. end
  7970. for i = 0,3,0.1 do
  7971. 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)
  7972. end
  7973. for i, v in pairs(mw2:GetChildren()) do
  7974. if v:IsA("Part") then
  7975. v.BrickColor = BrickColor.new("Really black")
  7976. v.Material = "Neon"
  7977. end
  7978. end
  7979. for i, v in pairs(mw1:GetChildren()) do
  7980. if v:IsA("Part") then
  7981. v.Transparency = 0
  7982. v.BrickColor = BrickColor.new("Really black")
  7983. v.Material = "Neon"
  7984. end
  7985. end
  7986. for i, v in pairs(m:GetChildren()) do
  7987. if v:IsA("Part") then
  7988. v.BrickColor = BrickColor.new("Really black")
  7989. v.Material = "Neon"
  7990. end
  7991. end
  7992. for i, v in pairs(m2:GetChildren()) do
  7993. if v:IsA("Part") then
  7994. v.BrickColor = BrickColor.new("Dark stone grey")
  7995. v.Material = "Neon"
  7996. end
  7997. end
  7998. for i, v in pairs(m3:GetChildren()) do
  7999. if v:IsA("Part") then
  8000. v.BrickColor = BrickColor.new("Really black")
  8001. v.Material = "Neon"
  8002. end
  8003. end
  8004. for i, v in pairs(extrawingmod1:GetChildren()) do
  8005. if v:IsA("Part") then
  8006. v.Transparency = 0
  8007. v.BrickColor = BrickColor.new("Dark stone grey")
  8008. v.Material = "Neon"
  8009. end
  8010. end
  8011. for i, v in pairs(extrawingmod2:GetChildren()) do
  8012. if v:IsA("Part") then
  8013. v.Transparency = 0
  8014. v.BrickColor = BrickColor.new("Dark stone grey")
  8015. v.Material = "Neon"
  8016. end
  8017. end
  8018. for i = 0,2,0.1 do
  8019. swait()
  8020. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8021. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8022. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1)
  8024. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8025. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8026. end
  8027. hum.JumpPower = 50
  8028. hum.WalkSpeed = storehumanoidWS
  8029. attack = false
  8030. end
  8031.  
  8032. function GleamingBeam()
  8033. attack = true
  8034. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  8035. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  8036. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  8037. local rsiz = math.random(1,15)
  8038. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8039. hb.Anchored = true
  8040. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8041. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8042. for i = 0, 16, 0.1 do
  8043. swait()
  8044. rsiz = math.random(5,15)
  8045. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8046. 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)
  8047. 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)
  8048. 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)
  8049. 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)
  8050. 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)
  8051. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  8052. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  8053. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  8054. end
  8055. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8056. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8057. for i = 0, 2 do
  8058. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8059. end
  8060. 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)
  8061. 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)
  8062. 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)
  8063. for i = 0, 49 do
  8064. local rsiza = math.random(1,15)
  8065. 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)
  8066. end
  8067. local a = Instance.new("Part",Character)
  8068. a.Name = "Direction"
  8069. a.Anchored = true
  8070. a.BrickColor = MAINRUINCOLOR
  8071. a.Material = "Neon"
  8072. a.Transparency = 0
  8073. a.Shape = "Cylinder"
  8074. a.CanCollide = false
  8075. local ba = Instance.new("Part",Character)
  8076. ba.Name = "HitDirect"
  8077. ba.Anchored = true
  8078. ba.BrickColor = bc("Cool yellow")
  8079. ba.Material = "Neon"
  8080. ba.Transparency = 1
  8081. ba.CanCollide = false
  8082. local ray = Ray.new(
  8083. hb.CFrame.p, -- origin
  8084. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8085. )
  8086. local ignore = Character
  8087. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8088. a.BottomSurface = 10
  8089. a.TopSurface = 10
  8090. local distance = (hb.CFrame.p - position).magnitude
  8091. a.Size = Vector3.new(distance, 1, 1)
  8092. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8093. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8094. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8095. local msh = Instance.new("SpecialMesh",a)
  8096. msh.MeshType = "Cylinder"
  8097. msh.Scale = vt(1,4,4)
  8098. game:GetService("Debris"):AddItem(a, 30)
  8099. game:GetService("Debris"):AddItem(ba, 30)
  8100. for i = 0, 25, 0.1 do
  8101. swait()
  8102. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8103. ray = Ray.new(
  8104. hb.CFrame.p, -- origin
  8105. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8106. )
  8107. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8108. distance = (hb.CFrame.p - position).magnitude
  8109. a.Size = Vector3.new(distance, 1, 1)
  8110. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8111. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8112. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8113. rsiz = math.random(5,25)
  8114. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8115. 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)
  8116. for c = 0, 2 do
  8117. 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)
  8118. end
  8119. 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)
  8120. 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)
  8121. 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)
  8122. 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)
  8123. 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)
  8124. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8126. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8127. end
  8128. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8129. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8130. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8131. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8132. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8133. 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)
  8134. 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)
  8135. 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)
  8136. 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)
  8137. 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)
  8138. 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)
  8139. for i = 0, 49 do
  8140. local rsiza = math.random(1,15)
  8141. 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)
  8142. end
  8143. for i = 0, 49 do
  8144. rsiz = math.random(1,8)
  8145. 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)
  8146. end
  8147. coroutine.resume(coroutine.create(function()
  8148. for i = 0, 99 do
  8149. swait()
  8150. a.Transparency = a.Transparency + 0.01
  8151. end
  8152. a:Destroy()
  8153. ba:Destroy()
  8154. end))
  8155. hb:Destroy()
  8156. attack = false
  8157. end
  8158.  
  8159. function DualGleamingBeam()
  8160. attack = true
  8161. hum.WalkSpeed = 0
  8162. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8163. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8164. local radm = math.random(1,3)
  8165. if radm == 1 then
  8166. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8167. elseif radm == 2 then
  8168. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8169. elseif radm == 3 then
  8170. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8171. end
  8172. local rsiz = math.random(1,15)
  8173. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8174. hb.Anchored = true
  8175. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8176. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8177. hb2.Anchored = true
  8178. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8179. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8180. for i = 0, 14, 0.1 do
  8181. swait()
  8182. rsiz = math.random(5,15)
  8183. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8184. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8185. 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)
  8186. 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)
  8187. 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("Crimson"),-15)
  8188. 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("Crimson"))
  8189. 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)
  8190. 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)
  8191. 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)
  8192. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8193. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8194. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8195. end
  8196. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8197. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8198. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8199. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8200. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8201. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8202. 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)
  8203. 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)
  8204. 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)
  8205. 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("Crimson"))
  8206. 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("Crimson"))
  8207. 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("Crimson"))
  8208. for i = 0, 49 do
  8209. local rsiza = math.random(1,15)
  8210. 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)
  8211. 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)
  8212. end
  8213. local a = Instance.new("Part",Character)
  8214. a.Name = "Direction"
  8215. a.Anchored = true
  8216. a.BrickColor = MAINRUINCOLOR
  8217. a.Material = "Neon"
  8218. a.Transparency = 0
  8219. a.Shape = "Cylinder"
  8220. a.CanCollide = false
  8221. local a2 = Instance.new("Part",Character)
  8222. a2.Name = "Direction"
  8223. a2.Anchored = true
  8224. a2.BrickColor = MAINRUINCOLOR
  8225. a2.Material = "Neon"
  8226. a2.Transparency = 0
  8227. a2.Shape = "Cylinder"
  8228. a2.CanCollide = false
  8229. local ba = Instance.new("Part",Character)
  8230. ba.Name = "HitDirect"
  8231. ba.Anchored = true
  8232. ba.BrickColor = MAINRUINCOLOR
  8233. ba.Material = "Neon"
  8234. ba.Transparency = 1
  8235. ba.CanCollide = false
  8236. local ba2 = Instance.new("Part",Character)
  8237. ba2.Name = "HitDirect"
  8238. ba2.Anchored = true
  8239. ba2.BrickColor = MAINRUINCOLOR
  8240. ba2.Material = "Neon"
  8241. ba2.Transparency = 1
  8242. ba2.CanCollide = false
  8243. local ray = Ray.new(
  8244. hb.CFrame.p, -- origin
  8245. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8246. )
  8247. local ignore = Character
  8248. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8249. local ray2 = Ray.new(
  8250. hb2.CFrame.p, -- origin
  8251. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8252. )
  8253. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8254. local distance2 = (hb2.CFrame.p - position).magnitude
  8255.  
  8256. a.BottomSurface = 10
  8257. a.TopSurface = 10
  8258. local distance = (hb.CFrame.p - position).magnitude
  8259. a.Size = Vector3.new(distance, 1, 1)
  8260. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8261. a2.BottomSurface = 10
  8262. a2.TopSurface = 10
  8263. a2.Size = Vector3.new(distance2, 1, 1)
  8264. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8265. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8266. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8267. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8268. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8269. local msh = Instance.new("SpecialMesh",a)
  8270. msh.MeshType = "Cylinder"
  8271. msh.Scale = vt(1,4,4)
  8272. local msh2 = Instance.new("SpecialMesh",a2)
  8273. msh2.MeshType = "Cylinder"
  8274. msh2.Scale = vt(1,4,4)
  8275. game:GetService("Debris"):AddItem(a, 30)
  8276. game:GetService("Debris"):AddItem(a2, 30)
  8277. game:GetService("Debris"):AddItem(ba, 30)
  8278. game:GetService("Debris"):AddItem(ba2, 30)
  8279. for i = 0, 20, 0.1 do
  8280. swait()
  8281. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8282. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8283. ray = Ray.new(
  8284. hb.CFrame.p, -- origin
  8285. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8286. )
  8287. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8288. distance = (hb.CFrame.p - position).magnitude
  8289. ray2 = Ray.new(
  8290. hb2.CFrame.p, -- origin
  8291. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8292. )
  8293. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8294. distance2 = (hb2.CFrame.p - position).magnitude
  8295. a.Size = Vector3.new(distance, 1, 1)
  8296. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8297. a2.Size = Vector3.new(distance2, 1, 1)
  8298. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8299. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8300. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8301. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8302. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8303. rsiz = math.random(5,25)
  8304. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8305. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8306. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8307. if v:FindFirstChild('Head') then
  8308. dmg(v)
  8309. end
  8310. end
  8311. coroutine.resume(coroutine.create(function()
  8312. local bx = Instance.new("Part",Character)
  8313. bx.Name = "Location"
  8314. bx.Anchored = true
  8315. bx.BrickColor = MAINRUINCOLOR
  8316. bx.Material = "Neon"
  8317. bx.Transparency = 1
  8318. bx.CanCollide = false
  8319. bx.Position = ba.Position
  8320. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8321. wait(math.random(1,2))
  8322. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Crimson"))
  8323. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8324. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Crimson"))
  8325. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8326. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8327. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8328. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8329. if v:FindFirstChild('Head') then
  8330. dmg(v)
  8331. end
  8332. end
  8333. wait(5)
  8334. bx:Destroy()
  8335. end))
  8336. 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("Crimson"),0)
  8337. 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("Crimson"),0)
  8338. for c = 0, 2 do
  8339. 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("Crimson"),2)
  8340. end
  8341. 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)
  8342. 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)
  8343. 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)
  8344. 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)
  8345. 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)
  8346. 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)
  8347. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8348. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8349. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8350. end
  8351. for i = 0, 1 do
  8352. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8353. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8354. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8355. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8356. end
  8357. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8358. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8359. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8360. if v:FindFirstChild('Head') then
  8361. dmg(v)
  8362. end
  8363. end
  8364. 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)
  8365. 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)
  8366. 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)
  8367. 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)
  8368. 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)
  8369. 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)
  8370. 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("Crimson"))
  8371. 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("Crimson"))
  8372. 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("Crimson"))
  8373. for i = 0, 49 do
  8374. local rsiza = math.random(1,15)
  8375. 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("Crimson"),0)
  8376. 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("Crimson"),0)
  8377. end
  8378. for i = 0, 49 do
  8379. rsiz = math.random(1,8)
  8380. 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("Crimson"),2)
  8381. end
  8382. coroutine.resume(coroutine.create(function()
  8383. for i = 0, 99 do
  8384. swait()
  8385. a.Transparency = a.Transparency + 0.01
  8386. a2.Transparency = a2.Transparency + 0.01
  8387. end
  8388. a:Destroy()
  8389. ba:Destroy()
  8390. a2:Destroy()
  8391. ba2:Destroy()
  8392. end))
  8393. hum.WalkSpeed = storehumanoidWS
  8394. hb:Destroy()
  8395. hb2:Destroy()
  8396. attack = false
  8397. end
  8398.  
  8399. function dragin()
  8400. local targetted = nil
  8401. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8402. targetted = mouse.Target.Parent
  8403. end
  8404. if targetted ~= nil then
  8405. RootPart.CFrame = FaceMouse()[1]
  8406. attack = true
  8407. hum.WalkSpeed = 0
  8408. for x = 0, 1 do
  8409. for i = 0,1,0.5 do
  8410. swait()
  8411. 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)
  8412. 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)
  8413. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8414. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8415. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8416. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8417. end
  8418. for i = 0,1,0.5 do
  8419. swait()
  8420. 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)
  8421. 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)
  8422. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8423. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8424. 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)
  8425. 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)
  8426. end
  8427. for i = 0,1,0.5 do
  8428. swait()
  8429. 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)
  8430. 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)
  8431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8433. 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)
  8434. 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)
  8435. end
  8436. for i = 0,1,0.5 do
  8437. swait()
  8438. 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)
  8439. 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)
  8440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8442. 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)
  8443. 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)
  8444. end
  8445. end
  8446. coroutine.resume(coroutine.create(function()
  8447. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8448. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8449. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8450. end))
  8451. local A1 = Instance.new("Attachment",targetted.Head)
  8452. local A2 = Instance.new("Attachment",sorb)
  8453. local Beem = Instance.new("Beam",tors)
  8454. Beem.Attachment0 = A1
  8455. Beem.Attachment1 = A2
  8456. Beem.Texture = "rbxassetid://897585362"
  8457. Beem.LightEmission = 0.75
  8458. Beem.FaceCamera = true
  8459. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8460. Beem.Width0 = 1
  8461. Beem.Width1 = 1
  8462. Beem.TextureMode = "Wrap"
  8463. Beem.TextureLength = 1
  8464. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8465. 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)
  8466. 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)
  8467. for x = 0, 24 do
  8468. local rsiz = math.random(5,15)
  8469. 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)
  8470. end
  8471.  
  8472. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8473. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8474. local radm = math.random(1,2)
  8475. if radm == 1 then
  8476. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8477. elseif radm == 2 then
  8478. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8479. end
  8480. for i = 0,3,0.1 do
  8481. swait()
  8482. coroutine.resume(coroutine.create(function()
  8483. local rsiz = math.random(5,15)
  8484. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8485. 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)
  8486. end))
  8487. 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)
  8488. 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)
  8489. 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)
  8490. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8491. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8492. 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)
  8493. 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)
  8494. end
  8495. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8496. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8497. local vel = Instance.new("BodyPosition", targetted.Head)
  8498. vel.P = 12500
  8499. vel.D = 1000
  8500. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8501. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8502. for i = 0,4,0.1 do
  8503. swait()
  8504. coroutine.resume(coroutine.create(function()
  8505. local rsiz = math.random(5,15)
  8506. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8507. 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)
  8508. end))
  8509. 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)
  8510. 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)
  8511. 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)
  8512. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8513. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8514. 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)
  8515. 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)
  8516. end
  8517. local visibility = 0
  8518. coroutine.resume(coroutine.create(function()
  8519. for i = 0, 49 do
  8520. swait()
  8521. visibility = visibility + 0.02
  8522. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8523. end
  8524. Beem:Destroy()
  8525. A1:Destroy()
  8526. A2:Destroy()
  8527. end))
  8528. game:GetService("Debris"):AddItem(vel,0.75)
  8529. attack = false
  8530. hum.WalkSpeed = storehumanoidWS
  8531.  
  8532. end
  8533. end
  8534.  
  8535. function hugg()
  8536. attack = true
  8537. hum.WalkSpeed = 5
  8538. local rsiz = math.random(5,15)
  8539. for i = 0, 2, 0.1 do
  8540. swait()
  8541. 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)
  8542. 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)
  8543. 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)
  8544. 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)
  8545. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8546. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8547. end
  8548. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8549. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8550. hb.Anchored = true
  8551. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8552. local huggedperson = nil
  8553. local act = false
  8554. local alreadydid = false
  8555. for i = 0, 3, 0.1 do
  8556. swait()
  8557. if act == false then
  8558. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8559. if v:FindFirstChild('Head') then
  8560. if alreadydid == false then
  8561. huggedperson = v
  8562. hum.WalkSpeed = 0
  8563. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8564. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8565. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8566. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8567. local radm = math.random(1,3)
  8568. if radm == 1 then
  8569. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8570. elseif radm == 2 then
  8571. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8572. elseif radm == 3 then
  8573. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8574. end
  8575. root.Anchored = true
  8576. coroutine.resume(coroutine.create(function()
  8577. huggedperson.Humanoid.WalkSpeed = 0
  8578. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8579. end))
  8580. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8581. alreadydid = true
  8582. act = true
  8583. print(huggedperson.Name)
  8584. end
  8585. end
  8586. end
  8587. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8588. 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)
  8589. elseif act == true then
  8590. coroutine.resume(coroutine.create(function()
  8591. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8592. end))
  8593. rsiz = math.random(5,15)
  8594. 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)
  8595. 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)
  8596. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8597. end
  8598. 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)
  8599. 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)
  8600. 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)
  8601. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8602. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8603. end
  8604. hb:Destroy()
  8605. if act == true then
  8606. for x = 0, 2 do
  8607. for i = 0, 2, 0.1 do
  8608. swait()
  8609. coroutine.resume(coroutine.create(function()
  8610. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8611. end))
  8612. rsiz = math.random(5,15)
  8613. 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)
  8614. 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)
  8615. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8616. 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)
  8617. 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)
  8618. 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)
  8619. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8620. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8621. end
  8622. for i = 0, 2, 0.1 do
  8623. swait()
  8624. coroutine.resume(coroutine.create(function()
  8625. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8626. end))
  8627. rsiz = math.random(5,15)
  8628. 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)
  8629. 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)
  8630. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8631. 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)
  8632. 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)
  8633. 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)
  8634. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8635. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8636. end
  8637. end
  8638. end
  8639. hum.WalkSpeed = storehumanoidWS
  8640. root.Anchored = false
  8641. if act == true then
  8642. coroutine.resume(coroutine.create(function()
  8643. huggedperson.Humanoid.WalkSpeed = 16
  8644. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8645. end))
  8646. end
  8647. hum.WalkSpeed = storehumanoidWS
  8648. attack = false
  8649. end
  8650.  
  8651. function Counter()
  8652. hum.WalkSpeed = 0
  8653. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8654. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8655. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8656. attack = true
  8657. for i = 0,1,0.1 do
  8658. swait()
  8659. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8660. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8661. 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)
  8662. 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)
  8663. 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)
  8664. 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)
  8665. end
  8666. CameraEnshaking(3,4)
  8667. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8668. 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)
  8669. 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)
  8670. 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)
  8671. coroutine.resume(coroutine.create(function()
  8672. local eff = Instance.new("ParticleEmitter",root)
  8673. eff.Texture = "rbxassetid://363275192"
  8674. eff.LightEmission = 0.95
  8675. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8676. eff.Rate = 10000
  8677. eff.Lifetime = NumberRange.new(1)
  8678. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8679. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8680. eff.Speed = NumberRange.new(10,125)
  8681. eff.Drag = 5
  8682. eff.Rotation = NumberRange.new(-500,500)
  8683. eff.VelocitySpread = 9000
  8684. eff.RotSpeed = NumberRange.new(-50,50)
  8685. local eff2 = eff:Clone()
  8686. eff2.Parent = root
  8687. eff2.Texture = "rbxassetid://284205403"
  8688. eff2.Rate = 10000
  8689. 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)})
  8690. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8691. eff2.Drag = 5
  8692. eff2.Speed = NumberRange.new(10,50)
  8693. eff2.Rotation = NumberRange.new(-500,500)
  8694. eff2.VelocitySpread = 9000
  8695. wait(0.25)
  8696. eff2.Enabled = false
  8697. eff.Enabled = false
  8698. wait(3)
  8699. eff2:Destroy()
  8700. eff:Destroy()
  8701. end))
  8702. for i = 0, 9 do
  8703. 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)
  8704. end
  8705. for i = 0, 24 do
  8706. local rsiz = math.random(5,20)
  8707. 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)
  8708. end
  8709. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8710. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8711. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8712. for i = 0,2,0.1 do
  8713. swait()
  8714. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8715. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8716. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8717. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8718. 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)
  8719. 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)
  8720. end
  8721. hum.WalkSpeed = storehumanoidWS
  8722. attack = false
  8723. end
  8724.  
  8725. function superjump()
  8726. attack = true
  8727. hum.WalkSpeed = 0
  8728. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8729. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8730. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8731. for i = 0, 2, 0.1 do
  8732. swait()
  8733. root.Velocity = vt(0,0,0)
  8734. 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"))
  8735. 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)
  8736. 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)
  8737. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8738. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8739. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8740. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8741. end
  8742. MagniDamage(root, 28, 25,50, 25, "Normal")
  8743. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8744. hum.Jump = true
  8745. swait()
  8746. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8747. 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)
  8748. 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)
  8749. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8750. for i = 0, 3, 0.1 do
  8751. swait()
  8752. 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)
  8753. 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)
  8754. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8755. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8756. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8757. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8758. end
  8759. attack = false
  8760. if equipped == false then
  8761. hum.WalkSpeed = 16
  8762. else
  8763. hum.WalkSpeed = 24
  8764. end
  8765. end
  8766.  
  8767.  
  8768. -------------------------------------
  8769.  
  8770.  
  8771.  
  8772. Humanoid.Animator.Parent = nil
  8773.  
  8774.  
  8775.  
  8776. -------------------------------------
  8777.  
  8778. local attacktype = 1
  8779. mouse.Button1Down:connect(function()
  8780. if attack == false and attacktype == 1 then
  8781. attacktype = 2
  8782. attackone()
  8783. elseif attack == false and attacktype == 2 then
  8784. attacktype = 3
  8785. attacktwo()
  8786. elseif attack == false and attacktype == 3 then
  8787. attacktype = 1
  8788. attackthree()
  8789. elseif attack == false and attacktype == 4 then
  8790. attacktype = 1
  8791. --attackfour()
  8792. end
  8793. end)
  8794. mouse.KeyDown:connect(function(k)
  8795. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8796. --normalmog()
  8797. ModeOfGlitch = 1
  8798. storehumanoidWS = 16
  8799. hum.WalkSpeed = 16
  8800. rainbowmode = false
  8801. chaosmode = false
  8802. newTheme("rbxassetid://1255569288",48.6,1,0.85)
  8803. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8804. MAINRUINCOLOR = BrickColor.new("Really red")
  8805. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8806. end
  8807. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8808. ModeOfGlitch = 2
  8809. storehumanoidWS = 16
  8810. hum.WalkSpeed = 16
  8811. rainbowmode = false
  8812. chaosmode = false
  8813. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8814. newTheme("rbxassetid://1539245059",0,1,0.85)
  8815. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8816. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8817. end
  8818. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8819. ModeOfGlitch = 3
  8820. storehumanoidWS = 14
  8821. hum.WalkSpeed = 14
  8822. rainbowmode = false
  8823. chaosmode = false
  8824. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8825. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8826. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8827. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8828. end
  8829. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8830. ModeOfGlitch = 4
  8831. storehumanoidWS = 14
  8832. hum.WalkSpeed = 14
  8833. rainbowmode = false
  8834. chaosmode = true
  8835. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8836. newTheme("rbxassetid://1369263130",0,1.01,0.85)
  8837. MAINRUINCOLOR = BrickColor.new("Black")
  8838. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8839. end
  8840. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8841. ModeOfGlitch = 5
  8842. storehumanoidWS = 14
  8843. hum.WalkSpeed = 14
  8844. rainbowmode = false
  8845. chaosmode = false
  8846. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8847. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8848. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8849. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8850. end
  8851. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8852. ModeOfGlitch = 6
  8853. storehumanoidWS = 65
  8854. hum.WalkSpeed = 65
  8855. rainbowmode = false
  8856. chaosmode = false
  8857. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8858. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8859. MAINRUINCOLOR = BrickColor.new("White")
  8860. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8861. end
  8862. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8863. ModeOfGlitch = 8
  8864. storehumanoidWS = 100
  8865. hum.WalkSpeed = 100
  8866. rainbowmode = false
  8867. chaosmode = false
  8868. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8869. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8870. MAINRUINCOLOR = BrickColor.new("Alder")
  8871. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8872. end
  8873. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8874. ModeOfGlitch = 9
  8875. storehumanoidWS = 16
  8876. hum.WalkSpeed = 16
  8877. rainbowmode = false
  8878. chaosmode = false
  8879. RecolorTextAndRename("SP00KY 1BZ0",Color3.new(0,0,0),BrickColor.new("Crimson").Color,"Antique")
  8880. newTheme("rbxassetid://168983825",0,1,2)
  8881. MAINRUINCOLOR = BrickColor.new("Really black")
  8882. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8883. MAINRUINCOLOR = BrickColor.new("Really black")
  8884. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8885. tl1.Enabled = true
  8886. tl2.Enabled = true
  8887. tl3.Enabled = true
  8888. for i = 0, 49 do
  8889. 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)
  8890. end
  8891. for i = 0,3,0.1 do
  8892. 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)
  8893. end
  8894. for i, v in pairs(mw2:GetChildren()) do
  8895. if v:IsA("Part") then
  8896. v.BrickColor = BrickColor.new("Really black")
  8897. v.Material = "Neon"
  8898. end
  8899. end
  8900. for i, v in pairs(mw1:GetChildren()) do
  8901. if v:IsA("Part") then
  8902. v.Transparency = 0
  8903. v.BrickColor = BrickColor.new("Crimson")
  8904. v.Material = "Neon"
  8905. end
  8906. end
  8907. for i, v in pairs(m:GetChildren()) do
  8908. if v:IsA("Part") then
  8909. v.BrickColor = BrickColor.new("Really black")
  8910. v.Material = "Neon"
  8911. end
  8912. end
  8913. for i, v in pairs(m2:GetChildren()) do
  8914. if v:IsA("Part") then
  8915. v.BrickColor = BrickColor.new("Really black")
  8916. v.Material = "Neon"
  8917. end
  8918. end
  8919. for i, v in pairs(m3:GetChildren()) do
  8920. if v:IsA("Part") then
  8921. v.BrickColor = BrickColor.new("Crimson")
  8922. v.Material = "Neon"
  8923. end
  8924. end
  8925. for i, v in pairs(extrawingmod1:GetChildren()) do
  8926. if v:IsA("Part") then
  8927. v.Transparency = 0
  8928. v.BrickColor = BrickColor.new("Really black")
  8929. v.Material = "Neon"
  8930. end
  8931. end
  8932. for i, v in pairs(extrawingmod2:GetChildren()) do
  8933. if v:IsA("Part") then
  8934. v.Transparency = 0
  8935. v.BrickColor = BrickColor.new("Crimson")
  8936. v.Material = "Neon"
  8937. end
  8938. end
  8939. hum.JumpPower = 50
  8940. hum.WalkSpeed = storehumanoidWS
  8941. attack = false
  8942. end
  8943. if k == "n" and attack == false and ModeOfGlitch == 9 and ModeOfGlitch ~= 98989898 then
  8944. ModeOfGlitch = 98989898
  8945. storehumanoidWS = 16
  8946. hum.WalkSpeed = 16
  8947. rainbowmode = false
  8948. chaosmode = false
  8949. RecolorTextAndRename("INFINITY",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8950. newTheme("rbxassetid://193599319",0,1,2)
  8951. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8952. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8953. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8954. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8955. tl1.Enabled = true
  8956. tl2.Enabled = true
  8957. tl3.Enabled = true
  8958. for i = 0, 49 do
  8959. 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)
  8960. end
  8961. for i = 0,3,0.1 do
  8962. 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)
  8963. end
  8964. for i, v in pairs(mw2:GetChildren()) do
  8965. if v:IsA("Part") then
  8966. v.BrickColor = BrickColor.new("Royal purple")
  8967. v.Material = "Neon"
  8968. end
  8969. end
  8970. for i, v in pairs(mw1:GetChildren()) do
  8971. if v:IsA("Part") then
  8972. v.Transparency = 0
  8973. v.BrickColor = BrickColor.new("Bright blue")
  8974. v.Material = "Neon"
  8975. end
  8976. end
  8977. for i, v in pairs(m:GetChildren()) do
  8978. if v:IsA("Part") then
  8979. v.BrickColor = BrickColor.new("Bright blue")
  8980. v.Material = "Neon"
  8981. end
  8982. end
  8983. for i, v in pairs(m2:GetChildren()) do
  8984. if v:IsA("Part") then
  8985. v.BrickColor = BrickColor.new("Royal purple")
  8986. v.Material = "Neon"
  8987. end
  8988. end
  8989. for i, v in pairs(m3:GetChildren()) do
  8990. if v:IsA("Part") then
  8991. v.BrickColor = BrickColor.new("Bright blue")
  8992. v.Material = "Neon"
  8993. end
  8994. end
  8995. for i, v in pairs(extrawingmod1:GetChildren()) do
  8996. if v:IsA("Part") then
  8997. v.Transparency = 0
  8998. v.BrickColor = BrickColor.new("Royal purple")
  8999. v.Material = "Neon"
  9000. end
  9001. end
  9002. for i, v in pairs(extrawingmod2:GetChildren()) do
  9003. if v:IsA("Part") then
  9004. v.Transparency = 0
  9005. v.BrickColor = BrickColor.new("Bright blue")
  9006. v.Material = "Neon"
  9007. end
  9008. end
  9009. hum.JumpPower = 50
  9010. hum.WalkSpeed = storehumanoidWS
  9011. attack = false
  9012. end
  9013. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  9014. ModeOfGlitch = 5555
  9015. storehumanoidWS = 30
  9016. hum.WalkSpeed = 30
  9017. rainbowmode = false
  9018. chaosmode = false
  9019. RecolorTextAndRename("L-O-V-E",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  9020. newTheme("rbxassetid://736003449",0,1,1.25)
  9021. MAINRUINCOLOR = BrickColor.new("Hot pink")
  9022. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9023. end
  9024. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  9025. CalamityTrans()
  9026. end
  9027. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  9028. ModeOfGlitch = 55469696922
  9029. storehumanoidWS = 95
  9030. hum.WalkSpeed = 95
  9031. rainbowmode = false
  9032. chaosmode = false
  9033. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  9034. newTheme("rbxassetid://582020393",0,1.005,0.9)
  9035. MAINRUINCOLOR = BrickColor.new("Hot pink")
  9036. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9037. end
  9038. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  9039. ModeOfGlitch = 4367677813
  9040. storehumanoidWS = 75
  9041. hum.WalkSpeed = 75
  9042. rainbowmode = false
  9043. chaosmode = false
  9044. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  9045. newTheme("rbxassetid://363284685",0,1.01,0.95)
  9046. MAINRUINCOLOR = BrickColor.new("Baby blue")
  9047. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9048. end
  9049. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  9050. ModeOfGlitch = 9999999921111
  9051. storehumanoidWS = 145
  9052. hum.WalkSpeed = 145
  9053. rainbowmode = false
  9054. chaosmode = false
  9055. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  9056. newTheme("rbxassetid://643309199",0,1.01,1)
  9057. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  9058. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9059. end
  9060. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  9061. ModeOfGlitch = 999999999556
  9062. storehumanoidWS = 115
  9063. hum.WalkSpeed = 115
  9064. rainbowmode = false
  9065. chaosmode = false
  9066. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  9067. newTheme("rbxassetid://719008519",0,1.02,0.85)
  9068. MAINRUINCOLOR = BrickColor.new("Navy blue")
  9069. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9070. end
  9071. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  9072. ModeOfGlitch = 12
  9073. storehumanoidWS = 19
  9074. hum.WalkSpeed = 19
  9075. rainbowmode = false
  9076. chaosmode = false
  9077. print'Mode was meant for Vengeful Program or those other fans out there'
  9078. RecolorTextAndRename("NEPTUNIA",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  9079. newTheme("rbxassetid://1873219898",0,1,1.7)
  9080. MAINRUINCOLOR = BrickColor.new("Royal purple")
  9081. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9082. end
  9083.  
  9084. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  9085. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  9086. for i = 0, 49 do
  9087. 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)
  9088. end
  9089. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9090. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9091. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9092. hum.WalkSpeed = storehumanoidWS
  9093. attack = false
  9094. ModeOfGlitch = 50
  9095. storehumanoidWS = 18
  9096. hum.WalkSpeed = 18
  9097. rainbowmode = false
  9098. chaosmode = false
  9099. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  9100. newTheme("rbxassetid://435773595",0,1.01,1.5)
  9101. MAINRUINCOLOR = BrickColor.new("Institutional white")
  9102. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9103. end
  9104.  
  9105. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  9106. hum.WalkSpeed = 0
  9107. attack = true
  9108. for i = 0,1,0.1 do
  9109. swait()
  9110. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  9111. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  9112. 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)
  9113. 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)
  9114. 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)
  9115. 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)
  9116. end
  9117. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  9118. for i = 0, 148 do
  9119. 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)
  9120. end
  9121. for i = 0,3,0.1 do
  9122. 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)
  9123. end
  9124. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9125. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9126. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9127. hum.WalkSpeed = storehumanoidWS
  9128. attack = false
  9129. ModeOfGlitch = 66
  9130. storehumanoidWS = 16
  9131. hum.WalkSpeed = 16
  9132. rainbowmode = false
  9133. chaosmode = false
  9134. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  9135. MAINRUINCOLOR = BrickColor.new("Really black")
  9136. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9137. for i = 0,2,0.1 do
  9138. swait()
  9139. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  9140. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  9141. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  9142. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  9143. 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)
  9144. 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)
  9145. end
  9146. end
  9147.  
  9148. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  9149. ModeOfGlitch = 1002
  9150. storehumanoidWS = 45
  9151. hum.WalkSpeed = 45
  9152. rainbowmode = false
  9153. chaosmode = false
  9154. RecolorTextAndRename("PIXELED",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  9155. newTheme("rbxassetid://2027652726",0,1,0.85)
  9156. MAINRUINCOLOR = BrickColor.new("Dark blue")
  9157. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9158. end
  9159. if k == "k" and attack == false and ModeOfGlitch ~= 11 then
  9160. --normalmog() ---Disabled due to crashing... only in VSB
  9161. ModeOfGlitch = 11
  9162. storehumanoidWS = 16
  9163. hum.WalkSpeed = 16
  9164. rainbowmode = false
  9165. chaosmode = false
  9166. newTheme("rbxassetid://1564523997",48.6,1,1)
  9167. RecolorTextAndRename("SOLITUDE",Color3.new(1,1,1),Color3.new(0,0,0),"Antique")
  9168. MAINRUINCOLOR = BrickColor.new("Really black")
  9169. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  9170. end
  9171. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9172. ModeOfGlitch = 1264532489
  9173. storehumanoidWS = 175
  9174. hum.WalkSpeed = 175
  9175. rainbowmode = false
  9176. chaosmode = false
  9177. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9178. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9179. MAINRUINCOLOR = BrickColor.new("Pastel green")
  9180. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9181. end
  9182. if k == "n" and attack == false and ModeOfGlitch == 11 then
  9183. RiddleMeThisRiddleMeThat()
  9184. end
  9185. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9186. ExtinctiveHeartbreak()
  9187. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9188. HeavenlyDisk()
  9189. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9190. DualGleamingBeam()
  9191. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9192. BanishingOrb()
  9193. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9194. hugg()
  9195. elseif k == "z" and attack == false and ModeOfGlitch == 98989898 then
  9196. hugg()
  9197. elseif k == "x" and attack == false and ModeOfGlitch == 98989898 then
  9198. cutesigh()
  9199. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9200. cutesigh()
  9201. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9202. Counter()
  9203. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9204. superjump()
  9205. elseif k == "v" and attack == false and ModeOfGlitch == 11 then
  9206. dragin()
  9207. elseif k == "x" and attack == false and ModeOfGlitch == 111 then
  9208. dragin()
  9209. elseif k == "c" and attack == false and ModeOfGlitch == 111 then
  9210. CyberSlash()
  9211. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9212. UniversalCollapse()
  9213. elseif k == "v" and attack == false and ModeOfGlitch == 111 then
  9214. TheEndCollapse()
  9215. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9216. PureBomb()
  9217. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9218. Beams()
  9219. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9220. BeamOfDeath()
  9221. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9222. THE_TRUE_POWER_OF_VIOLENCE()
  9223. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9224. GleamingBeam()
  9225. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9226. ViolentRing()
  9227. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9228. CorruptionEvent()
  9229. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9230. CorruptBlink()
  9231. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9232. scattercorrupt()
  9233. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9234. shytaunty()
  9235. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9236. RapidBurst()
  9237. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9238. ChaosEND()
  9239. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9240. CyberSlash()
  9241. elseif k == "c" and attack == false and ModeOfGlitch == 11 then
  9242. CyberSlash()
  9243. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9244. smiter()
  9245. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9246. SpeedDrop()
  9247. elseif k == "x" and attack == false and ModeOfGlitch == 0 then
  9248. FuckMeSidewaysAndCallMeGay()
  9249. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9250. --DivineLights()
  9251. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9252. DivineBlast()
  9253. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9254. EquinoxOrbs()
  9255. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9256. yinyangi()
  9257. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9258. FallenOrbs()
  9259. elseif k == "z" and attack == false and ModeOfGlitch == 11 then
  9260. StarfallEX()
  9261. end
  9262. if k == "z" and attack == false and ModeOfGlitch == 111 then
  9263. StarfallEX()
  9264. end
  9265. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9266. FallenDEMISE()
  9267. end
  9268. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9269. EndGROUND()
  9270. end
  9271. end)
  9272.  
  9273. coroutine.resume(coroutine.create(function()
  9274. while true do
  9275. swait()
  9276. 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 or ModeOfGlitch == 111 or ModeOfGlitch == 98989898 then
  9277. 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)
  9278. end
  9279. if ModeOfGlitch == 5555 then
  9280. 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)
  9281. end
  9282. end
  9283. end))
  9284. --[[coroutine.resume(coroutine.create(function()
  9285. while true do
  9286. swait(2)
  9287. if chaosmode == true then
  9288. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9289. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9290. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9291. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9292. for i, v in pairs(mw1:GetChildren()) do
  9293. if v:IsA("Part") then
  9294. v.Transparency = 0.75
  9295. v.BrickColor = BrickColor.random()
  9296. v.Material = "Neon"
  9297. end
  9298. end
  9299. for i, v in pairs(m2:GetChildren()) do
  9300. if v:IsA("Part") then
  9301. v.BrickColor = BrickColor.random()
  9302. v.Material = "Neon"
  9303. end
  9304. end
  9305. end
  9306. end
  9307. end))]]
  9308.  
  9309.  
  9310.  
  9311. ff = Instance.new("ForceField",char)
  9312. ff.Visible = false
  9313. hum.Name = "Base"
  9314. hum.MaxHealth = 1.0E298
  9315. hum.Health = 1.0E298
  9316. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9317. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9318. hum.MaxHealth = 1.0E298
  9319. hum.Health = 1.0E298
  9320. end
  9321. end)
  9322.  
  9323. local Hair = Instance.new("Part", char)
  9324. Hair.Name = "Hair"
  9325. Hair.CanCollide = false
  9326. Hair.BrickColor = BrickColor.new("Institutional white")
  9327. Hair.Transparency = 0
  9328. Hair.Material = "Plastic"
  9329. Hair.Size = Vector3.new(1, 1, 2)
  9330. Hair.TopSurface = Enum.SurfaceType.Smooth
  9331. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9332.  
  9333.  
  9334. local bguis = Instance.new("BillboardGui",tors)
  9335. bguis.Size = UDim2.new(25, 0, 25, 0)
  9336. local imgca = Instance.new("ImageLabel",bguis)
  9337. imgca.BackgroundTransparency = 1
  9338. imgca.ImageTransparency = 1
  9339. imgca.Size = UDim2.new(1,0,1,0)
  9340. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9341. imgca.ImageColor3 = Color3.new(0,0,0)
  9342.  
  9343.  
  9344. local bguis2 = Instance.new("BillboardGui",tors)
  9345. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9346. local imgca2 = Instance.new("ImageLabel",bguis)
  9347. imgca2.BackgroundTransparency = 1
  9348. imgca2.ImageTransparency = 1
  9349. imgca2.Size = UDim2.new(1,0,1,0)
  9350. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9351. imgca2.ImageColor3 = Color3.new(0,0,0)
  9352.  
  9353.  
  9354.  
  9355. idleanim=.4
  9356. while true do
  9357. if mutedtog == false then
  9358. kan.Volume = currentVol
  9359. elseif mutedtog == true then
  9360. kan.Volume = 0
  9361. end
  9362. kan.PlaybackSpeed = currentPitch
  9363. kan.Pitch = currentPitch
  9364. kan.SoundId = currentThemePlaying
  9365. kan.Looped = true
  9366. kan.Parent = char
  9367. kan:Resume()
  9368. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 66 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 and ModeOfGlitch ~= 111 and ModeOfGlitch ~= 98989898 then
  9369. imgca.ImageTransparency = 1
  9370. imgca2.ImageTransparency = 1
  9371. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9372. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9373. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9374. elseif ModeOfGlitch == 111 or ModeOfGlitch == 98989898 or ModeOfGlitch == 66 then
  9375. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9376. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9377. end
  9378. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9379. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9380. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9381. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9382. coroutine.resume(coroutine.create(function()
  9383. if chaosmode == true then
  9384. for i, v in pairs(mw1:GetChildren()) do
  9385. if v:IsA("Part") then
  9386. v.Transparency = 0
  9387. v.BrickColor = BrickColor.random()
  9388. v.Material = "Neon"
  9389. end
  9390. end
  9391. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9392. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9393. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9394. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9395. end
  9396. end))
  9397. coroutine.resume(coroutine.create(function()
  9398. if ModeOfGlitch == 66 then
  9399. for i, v in pairs(m:GetChildren()) do
  9400. if v:IsA("Part") then
  9401. v.Transparency = 0
  9402. v.BrickColor = BrickColor.random()
  9403. v.Material = "Neon"
  9404. end
  9405. end
  9406. for i, v in pairs(m2:GetChildren()) do
  9407. if v:IsA("Part") then
  9408. v.Transparency = 0
  9409. v.BrickColor = BrickColor.random()
  9410. v.Material = "Neon"
  9411. end
  9412. end
  9413. for i, v in pairs(mw1:GetChildren()) do
  9414. if v:IsA("Part") then
  9415. v.Transparency = 0
  9416. v.BrickColor = BrickColor.random()
  9417. v.Material = "Neon"
  9418. end
  9419. end
  9420. for i, v in pairs(extrawingmod1:GetChildren()) do
  9421. if v:IsA("Part") then
  9422. v.Transparency = 0.5
  9423. v.BrickColor = BrickColor.random()
  9424. v.Material = "Neon"
  9425. end
  9426. end
  9427. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9428. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9429. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9430. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9431. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9432. end
  9433. end))
  9434.  
  9435. coroutine.resume(coroutine.create(function()
  9436. if ModeOfGlitch == 66 then
  9437. RecolorTextAndRename("BETRAYAL",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9438. end
  9439. end))
  9440.  
  9441. if chaosmode == false then
  9442. modet.Position = UDim2.new(0,0,0,0)
  9443. modet.Rotation = -5 * math.cos(sine / 32)
  9444. techc.Rotation = techc.Rotation + 1
  9445. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9446. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9447. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9448. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9449. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9450. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9451. else
  9452. techc.Rotation = techc.Rotation + 1
  9453. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9454. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9455. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9456. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9457. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9458. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9459. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9460. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9461. end
  9462. CameraManager()
  9463. swait()
  9464. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 3600 * math.cos(sine / 360))),.3)
  9465. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 + 3600 * math.cos(sine / 360))),.3)
  9466. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 + 3600 * math.cos(sine / 360))),.3)
  9467. 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)
  9468. 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)
  9469. 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)
  9470. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 + 3600 * math.cos(sine / 360))),.3)
  9471. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 + 3600 * math.cos(sine / 360))),.3)
  9472. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 + 3600 * math.cos(sine / 360))),.3)
  9473. 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)
  9474. 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)
  9475. 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)
  9476. sine = sine + change
  9477. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9478. local velderp=RootPart.Velocity.y
  9479. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9480. coroutine.resume(coroutine.create(function()
  9481. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 or ModeOfGlitch == 111 or ModeOfGlitch == 98989898 or ModeOfGlitch == 9 then
  9482. if hitfloor ~= nil then
  9483. 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"))
  9484. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 111 or ModeOfGlitch == 98989898 or ModeOfGlitch == 9 then
  9485. 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)
  9486. end
  9487. end
  9488. end
  9489. end))
  9490. if equipped==true or equipped==false then
  9491. if attack==false then
  9492. idle=idle+1
  9493. else
  9494. idle=0
  9495. end
  9496. if idle>=500 then
  9497. if attack==false then
  9498. --Sheath()
  9499. end
  9500. end
  9501. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9502. Anim="Jump"
  9503. if attack==false then
  9504. 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)
  9505. 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)
  9506. 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)
  9507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9508. 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)
  9509. 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)
  9510. end
  9511. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9512. Anim="Fall"
  9513. if attack==false then
  9514. 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)
  9515. 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)
  9516. 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)
  9517. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9518. 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)
  9519. 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)
  9520. end
  9521. elseif torvel<1 and hitfloor~=nil then
  9522. Anim="Idle"
  9523. if attack==false then
  9524. if ModeOfGlitch == 1 then
  9525. local snap = math.random(1,10)
  9526. if snap == 1 then
  9527. 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)
  9528. end
  9529. 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)
  9530. 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)
  9531. 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)
  9532. 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)
  9533. 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)
  9534. 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)
  9535. elseif ModeOfGlitch == 2 then
  9536. 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)
  9537. 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)
  9538. 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)
  9539. 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)
  9540. 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)
  9541. 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)
  9542. elseif ModeOfGlitch == 2 then
  9543. 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)
  9544. 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)
  9545. 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)
  9546. 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)
  9547. 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)
  9548. 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)
  9549. elseif ModeOfGlitch == 50 then
  9550. 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)
  9551. 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)
  9552. 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)
  9553. 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)
  9554. 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)
  9555. 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)
  9556. elseif ModeOfGlitch == 5555 then --5555
  9557. 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)
  9558. 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)
  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),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9560. 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)
  9561. 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)
  9562. 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)
  9563. elseif ModeOfGlitch == 1002 then
  9564. 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)
  9565. 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)
  9566. 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)
  9567. 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)
  9568. 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)
  9569. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9570. elseif ModeOfGlitch == 12 then
  9571. 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)
  9572. 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)
  9573. 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)
  9574. 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)
  9575. 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)
  9576. 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)
  9577. elseif ModeOfGlitch == 3 then
  9578. local snap = math.random(1,32)
  9579. if snap == 1 then
  9580. 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)
  9581. end
  9582. 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)
  9583. 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)
  9584. 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)
  9585. 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)
  9586. 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)
  9587. 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)
  9588. elseif ModeOfGlitch == 4 then
  9589. local snap = math.random(1,5)
  9590. if snap == 1 then
  9591. 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)
  9592. 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)
  9593. 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)
  9594. end
  9595. 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)
  9596. 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)
  9597. 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)
  9598. 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)
  9599. 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)
  9600. 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)
  9601. elseif ModeOfGlitch == 66 then
  9602. local snap = math.random(1,2)
  9603. if snap == 1 then
  9604. 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)
  9605. 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)
  9606. 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)
  9607. end
  9608. 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)
  9609. 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)
  9610. 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)
  9611. 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)
  9612. 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)
  9613. 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)
  9614. elseif ModeOfGlitch == 5 then
  9615. 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)
  9616. 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)
  9617. 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)
  9618. 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)
  9619. 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)
  9620. 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)
  9621. elseif ModeOfGlitch == 6 then
  9622. 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)
  9623. 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)
  9624. 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)
  9625. 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)
  9626. 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)
  9627. 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)
  9628. elseif ModeOfGlitch == 98989898 then
  9629. 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)
  9630. 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)
  9631. 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)
  9632. 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)
  9633. 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)
  9634. 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)
  9635. elseif ModeOfGlitch == 8 then
  9636. 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)
  9637. 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)
  9638. 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)
  9639. 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)
  9640. 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)
  9641. 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)
  9642. elseif ModeOfGlitch == 9 then
  9643. 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(0 + 1 * math.cos(sine / 34))),.1)
  9644. 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)
  9645. 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)
  9646. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  9647. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  9648. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  9649. elseif ModeOfGlitch == 11 then
  9650. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  9651. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  9652. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  9653. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  9654. 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)
  9655. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  9656. elseif ModeOfGlitch == 111 then
  9657. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  9658. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  9659. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  9660. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1)
  9661. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  9662. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  9663. elseif ModeOfGlitch == 98989898 then
  9664. 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)
  9665. 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)
  9666. 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)
  9667. 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)
  9668. 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)
  9669. 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)
  9670. elseif ModeOfGlitch == 8889 then
  9671. 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)
  9672. 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)
  9673. 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)
  9674. 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)
  9675. 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)
  9676. 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)
  9677. elseif ModeOfGlitch == 1264532489 then
  9678. 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)
  9679. 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)
  9680. 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)
  9681. 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)
  9682. 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)
  9683. 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)
  9684. 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)
  9685. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9686. 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)
  9687. 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)
  9688. 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)
  9689. 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)
  9690. 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)
  9691. 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)
  9692. elseif ModeOfGlitch == 4367677813 then
  9693. 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)
  9694. 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)
  9695. 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)
  9696. 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)
  9697. 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)
  9698. 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)
  9699. elseif ModeOfGlitch == 55469696922 then --5555
  9700. 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)
  9701. 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)
  9702. 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)
  9703. 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)
  9704. 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)
  9705. 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)
  9706. elseif ModeOfGlitch == 999999999556 then
  9707. 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)
  9708. 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)
  9709. 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)
  9710. 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)
  9711. 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)
  9712. 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)
  9713. end
  9714. end
  9715. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9716. Anim="Walk"
  9717. if attack==false and ModeOfGlitch ~= 66 then
  9718. 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)
  9719. 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)
  9720. 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)
  9721. 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)
  9722. 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)
  9723. 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)
  9724. elseif attack==false and ModeOfGlitch == 66 then
  9725. 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)
  9726. 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)
  9727. 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)
  9728. 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)
  9729. 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)
  9730. 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)
  9731. end
  9732. elseif torvel>=22 and hitfloor~=nil then
  9733. Anim="Run"
  9734. if attack==false then
  9735. 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
  9736. 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)
  9737. 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)
  9738. 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)
  9739. 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)
  9740. 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)
  9741. 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)
  9742. if ModeOfGlitch == 12 then
  9743. 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)
  9744. 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)
  9745. 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)
  9746. 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)
  9747. 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)
  9748. 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)
  9749. end
  9750. if ModeOfGlitch == 9 then
  9751. 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)
  9752. 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("Crimson"),Color3.new(0,1,0))
  9753. 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)
  9754. end
  9755. elseif ModeOfGlitch == 6 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
  9756. 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)
  9757. 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)
  9758. 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)
  9759. 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)
  9760. 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)
  9761. 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)
  9762. elseif ModeOfGlitch == 98989898 then
  9763. 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)
  9764. 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)
  9765. 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)
  9766. 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)
  9767. 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)
  9768. 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)
  9769. end
  9770. end
  9771. end
  9772. end
  9773. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement