Advertisement
Dasd5755

guest glitcher test lagging fix

Oct 20th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 467.48 KB | None | 0 0
  1. --TODO: add comments or something idk
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88.  
  89. wait(0.2)
  90.  
  91. warn([[SG AWAKEN Loaded.
  92. The super switcher.
  93. Velnorum is one of the first wielders.
  94.  
  95. Created, Reworked by NoobyGames12 and converted by Helkern
  96. ]])
  97.  
  98. ------------- ORIGINAL WIELDER OC: Velnorum
  99. print([[Icons:
  100. ! = New
  101. ? = Spoilers
  102. * = Exclusivity
  103. C = Changes
  104.  
  105. ]])
  106. warn([[V 8.0 Update Log:
  107. C: TEST BUILD
  108. ]])
  109. --- its obs smooth af do not touch
  110. ---- Sources and functions might be taken from others
  111. plr = owner
  112. char = plr.Character
  113. hum = char.Humanoid
  114. local cam = game.Workspace.CurrentCamera
  115. Camera = cam
  116. local CamInterrupt = false
  117. local TwoD = false
  118. local TargetInfo = {nil, nil}
  119. cam.CameraType = "Custom"
  120. t = char.Torso
  121. h = char.Head
  122. ra = char["Right Arm"]
  123. la = char["Left Arm"]
  124. rl = char["Right Leg"]
  125. ll = char["Left Leg"]
  126. tors = char.Torso
  127. lleg = char["Left Leg"]
  128. root = char.HumanoidRootPart
  129. hed = char.Head
  130. rleg = char["Right Leg"]
  131. rarm = char["Right Arm"]
  132. larm = char["Left Arm"]
  133. radian = math.rad
  134. random = math.random
  135. Vec3 = Vector3.new
  136. Inst = Instance.new
  137. cFrame = CFrame.new
  138. Euler = CFrame.fromEulerAnglesXYZ
  139. vt = Vector3.new
  140. bc = BrickColor.new
  141. br = BrickColor.random
  142. it = Instance.new
  143. cf = CFrame.new
  144.  
  145. local Booleans = {
  146. CamFollow = true,
  147. GyroUse = true
  148. }
  149.  
  150. function lerp(object, newCFrame, alpha)
  151. return object:lerp(newCFrame, alpha)
  152. end
  153.  
  154. local Directer = Inst("BodyGyro", root)
  155. Directer.MaxTorque = Vec3(0, 0, 0)
  156. Directer.P = 600000
  157. local CPart = Inst("Part")
  158. CPart.Anchored = true
  159. CPart.CanCollide = false
  160. CPart.Locked = true
  161. CPart.Transparency = 1
  162.  
  163. local rainbowmode = false
  164. local chaosmode = false
  165.  
  166. local kan = Instance.new("Sound",tors)
  167. kan.Volume = 0.85
  168. kan.TimePosition = 0
  169. kan.PlaybackSpeed = 1
  170. kan.Pitch = 1
  171. kan.SoundId = "rbxassetid://1255569288"
  172. kan.Name = "wrecked"
  173. kan.Looped = true
  174. kan:Play()
  175.  
  176. local currentThemePlaying = kan.SoundId
  177. local currentPitch = kan.Pitch
  178. local currentVol = kan.Volume
  179. function newTheme(ID,timepos,pitch,vol)
  180. local kanz = kan
  181. --kanz:Stop()
  182. kanz.Volume = vol
  183. --kanz.TimePosition = timepos
  184. kanz.PlaybackSpeed = pitch
  185. kanz.Pitch = pitch
  186. kanz.SoundId = ID
  187. kanz.Name = "wrecked"
  188. kanz.Looped = true
  189. currentThemePlaying = kanz.SoundId
  190. currentVol = kanz.Volume
  191. currentPitch = kanz.Pitch
  192. --kanz:Play()
  193. --coroutine.resume(coroutine.create(function()
  194. --wait(0.05)
  195. --end))
  196. end
  197.  
  198.  
  199. function newThemeCust(ID,timepos,pitch,vol)
  200. local kanz = kan
  201. kanz:Stop()
  202. kanz.Volume = vol
  203. kanz.TimePosition = timepos
  204. kanz.PlaybackSpeed = pitch
  205. kanz.Pitch = pitch
  206. kanz.SoundId = ID
  207. kanz.Name = "wrecked"
  208. kanz.Looped = true
  209. currentThemePlaying = kanz.SoundId
  210. currentVol = kanz.Volume
  211. currentPitch = kanz.Pitch
  212. kanz:Play()
  213. coroutine.resume(coroutine.create(function()
  214. wait(0.05)
  215. end))
  216. end
  217.  
  218. local mutedtog = false
  219.  
  220. function CameraEnshaking(Length,Intensity)
  221. coroutine.resume(coroutine.create(function()
  222. local intensity = 1*Intensity
  223. local rotM = 0.01*Intensity
  224. for i = 0, Length, 0.1 do
  225. swait()
  226. intensity = intensity - 0.05*Intensity/Length
  227. rotM = rotM - 0.0005*Intensity/Length
  228. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  229. 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)
  230. end
  231. Humanoid.CameraOffset = Vec3(0, 0, 0)
  232. end))
  233. end
  234. CamShake=function(Part,Distan,Power,Times)
  235. local de=Part.Position
  236. for i,v in pairs(workspace:children()) do
  237. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  238. for _,c in pairs(v:children()) do
  239. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  240. local Noob=v.Humanoid
  241. if Noob~=nil then
  242. coroutine.resume(coroutine.create(function()
  243. FV = Instance.new("BoolValue", Noob)
  244. FV.Name = "CameraShake"
  245. for ShakeNum=1,Times do
  246. swait()
  247. local ef=Power
  248. if ef>=1 then
  249. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  250. else
  251. ef=Power*10
  252. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  253. end
  254. end
  255. Humanoid.CameraOffset = Vector3.new(0,0,0)
  256. FV:Destroy()
  257. end))
  258. CameraShake(Times, Power, Noob)
  259. end
  260. end
  261. end
  262. end
  263. end
  264. end
  265.  
  266. local toggleTag = true
  267. local bilguit = Instance.new("BillboardGui", hed)
  268. bilguit.Adornee = nil
  269. bilguit.Name = "ModeName"
  270. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  271. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  272. local modet = Instance.new("TextLabel", bilguit)
  273. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  274. modet.FontSize = "Size8"
  275. modet.TextScaled = true
  276. modet.TextTransparency = 0
  277. modet.BackgroundTransparency = 1
  278. modet.TextTransparency = 0
  279. modet.TextStrokeTransparency = 0
  280. modet.Font = "Antique"
  281. modet.TextStrokeColor3 = Color3.new(1,0,0)
  282. modet.TextColor3 = Color3.new(0.25,0,0)
  283. modet.Text = "im not guest"
  284.  
  285.  
  286. function chatfunc(text,color,typet,font,timeex)
  287. local chat = coroutine.wrap(function()
  288. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  289. Character:FindFirstChild("TalkingBillBoard"):destroy()
  290. end
  291. local naeeym2 = Instance.new("BillboardGui",Character)
  292. naeeym2.Size = UDim2.new(0,100,0,40)
  293. naeeym2.StudsOffset = Vector3.new(0,3,0)
  294. naeeym2.Adornee = Character.Head
  295. naeeym2.Name = "TalkingBillBoard"
  296. local tecks2 = Instance.new("TextLabel",naeeym2)
  297. tecks2.BackgroundTransparency = 1
  298. tecks2.BorderSizePixel = 0
  299. tecks2.Text = ""
  300. tecks2.Font = font
  301. tecks2.TextSize = 30
  302. tecks2.TextStrokeTransparency = 0
  303. tecks2.TextColor3 = color
  304. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  305. tecks2.Size = UDim2.new(1,0,0.5,0)
  306. local tecks3 = Instance.new("TextLabel",naeeym2)
  307. tecks3.BackgroundTransparency = 1
  308. tecks3.BorderSizePixel = 0
  309. tecks3.Text = ""
  310. tecks3.Font = font
  311. tecks3.TextSize = 30
  312. tecks3.TextStrokeTransparency = 0
  313. if typet == "Inverted" then
  314. tecks3.TextColor3 = Color3.new(0,0,0)
  315. tecks3.TextStrokeColor3 = color
  316. elseif typet == "Normal" then
  317. tecks3.TextColor3 = color
  318. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  319. end
  320. tecks3.Size = UDim2.new(1,0,0.5,0)
  321. coroutine.resume(coroutine.create(function()
  322. while true do
  323. swait(1)
  324. if chaosmode == true then
  325. tecks2.TextColor3 = BrickColor.random().Color
  326. tecks3.TextStrokeColor3 = BrickColor.random().Color
  327. end
  328. end
  329. end))
  330. modet.TextTransparency = modet.TextTransparency + 1
  331. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  332. for i = 0, 74*timeex do
  333. swait()
  334. modet.TextTransparency = 1
  335. modet.TextStrokeTransparency = 1
  336. tecks2.Text = text
  337. tecks3.Text = text
  338. end
  339. local randomrot = math.random(1,2)
  340. if randomrot == 1 then
  341. for i = 1, 50 do
  342. swait()
  343. tecks2.Text = text
  344. tecks3.Text = text
  345. modet.TextTransparency = modet.TextTransparency - .02
  346. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  347. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  348. tecks2.TextTransparency = tecks2.TextTransparency + .04
  349. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  350. tecks3.TextTransparency = tecks2.TextTransparency + .04
  351. end
  352. elseif randomrot == 2 then
  353. for i = 1, 50 do
  354. swait()
  355. tecks2.Text = text
  356. tecks3.Text = text
  357. modet.TextTransparency = modet.TextTransparency - .02
  358. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  359. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  360. tecks2.TextTransparency = tecks2.TextTransparency + .04
  361. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  362. tecks3.TextTransparency = tecks2.TextTransparency + .04
  363. end
  364. end
  365. modet.TextTransparency = 0
  366. modet.TextStrokeTransparency = 0
  367. if toggleTag == false then
  368. modet.TextTransparency = 1
  369. modet.TextStrokeTransparency = 1
  370. end
  371. naeeym2:Destroy()
  372. end)
  373. chat()
  374. end
  375.  
  376. function bosschatfunc(text,color,watval)
  377. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  378. coroutine.resume(coroutine.create(function()
  379. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  380. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  381. end
  382. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  383. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  384. scrg.Name = "Dialog"
  385. local txtlb = Instance.new("TextLabel",scrg)
  386. txtlb.Text = ""
  387. txtlb.Font = "Bodoni"
  388. txtlb.TextColor3 = Color3.new(0,0,0)
  389. txtlb.TextStrokeTransparency = 0
  390. txtlb.BackgroundTransparency = 0.75
  391. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  392. txtlb.TextStrokeColor3 = color
  393. txtlb.TextScaled = true
  394. txtlb.Size = UDim2.new(1,0,0.25,0)
  395. txtlb.TextXAlignment = "Left"
  396. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  397. local txtlb2 = Instance.new("TextLabel",scrg)
  398. txtlb2.Text = plr.Name.." The Guest:"
  399. txtlb2.Font = "Antique"
  400. txtlb2.TextColor3 = Color3.new(0,0,0)
  401. txtlb2.TextStrokeTransparency = 0
  402. txtlb2.BackgroundTransparency = 1
  403. txtlb2.TextStrokeColor3 = color
  404. txtlb2.TextSize = 40
  405. txtlb2.Size = UDim2.new(1,0,0.25,0)
  406. txtlb2.TextXAlignment = "Left"
  407. txtlb2.Position = UDim2.new(0,0,1,0)
  408. local fvalen = 0.55
  409. local fval = -0.49
  410. coroutine.resume(coroutine.create(function()
  411. while true do
  412. swait()
  413. if chaosmode == true then
  414. txtlb.Rotation = math.random(-1,1)
  415. txtlb2.Rotation = math.random(-1,1)
  416. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  417. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  418. txtlb.TextStrokeColor3 = BrickColor.random().Color
  419. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  420. end
  421. end
  422. end))
  423. coroutine.resume(coroutine.create(function()
  424. while true do
  425. swait()
  426. if scrg.Parent ~= nil then
  427. fvalen = fvalen - 0.0001
  428. elseif scrg.Parent == nil then
  429. break
  430. end
  431. end
  432. end))
  433. local flol = 1.75
  434. local flil = 1.6
  435. coroutine.resume(coroutine.create(function()
  436. for i = 0, 9 do
  437. swait()
  438. fval = fval + 0.05
  439. flol = flol - 0.1
  440. flil = flil - 0.1
  441. txtlb.Text = ""
  442. txtlb.Position = UDim2.new(0,0,flol,0)
  443. txtlb2.Position = UDim2.new(0,0,flil,0)
  444. end
  445. txtlb.Text = text
  446. wait(watval)
  447. local valinc = 0
  448. for i = 0, 99 do
  449. swait()
  450. valinc = valinc + 0.0001
  451. flol = flol + valinc
  452. flil = flil + valinc
  453. txtlb.Rotation = txtlb.Rotation + valinc*20
  454. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  455. txtlb.Position = UDim2.new(0,0,flol,0)
  456. txtlb2.Position = UDim2.new(0,0,flil,0)
  457. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  458. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  459. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  460. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  461. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  462. end
  463. scrg:Destroy()
  464. end))
  465. end))
  466. end
  467. end
  468.  
  469.  
  470. local Create = LoadLibrary("RbxUtility").Create
  471.  
  472. CFuncs = {
  473. ["Part"] = {
  474. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  475. local Part = Create("Part"){
  476. Parent = Parent,
  477. Reflectance = Reflectance,
  478. Transparency = Transparency,
  479. CanCollide = false,
  480. Locked = true,
  481. BrickColor = BrickColor.new(tostring(BColor)),
  482. Name = Name,
  483. Size = Size,
  484. Material = Material,
  485. }
  486. RemoveOutlines(Part)
  487. return Part
  488. end;
  489. };
  490.  
  491. ["Mesh"] = {
  492. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  493. local Msh = Create(Mesh){
  494. Parent = Part,
  495. Offset = OffSet,
  496. Scale = Scale,
  497. }
  498. if Mesh == "SpecialMesh" then
  499. Msh.MeshType = MeshType
  500. Msh.MeshId = MeshId
  501. end
  502. return Msh
  503. end;
  504. };
  505.  
  506. ["Mesh"] = {
  507. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  508. local Msh = Create(Mesh){
  509. Parent = Part,
  510. Offset = OffSet,
  511. Scale = Scale,
  512. }
  513. if Mesh == "SpecialMesh" then
  514. Msh.MeshType = MeshType
  515. Msh.MeshId = MeshId
  516. end
  517. return Msh
  518. end;
  519. };
  520.  
  521. ["Weld"] = {
  522. Create = function(Parent, Part0, Part1, C0, C1)
  523. local Weld = Create("Weld"){
  524. Parent = Parent,
  525. Part0 = Part0,
  526. Part1 = Part1,
  527. C0 = C0,
  528. C1 = C1,
  529. }
  530. return Weld
  531. end;
  532. };
  533.  
  534. ["Sound"] = {
  535. Create = function(id, par, vol, pit)
  536. coroutine.resume(coroutine.create(function()
  537. local S = Create("Sound"){
  538. Volume = vol,
  539. Name = "EffectSoundo",
  540. Pitch = pit or 1,
  541. SoundId = id,
  542. Parent = par or workspace,
  543. }
  544. wait()
  545. S:play()
  546. game:GetService("Debris"):AddItem(S, 10)
  547. end))
  548. end;
  549. };
  550.  
  551. ["TimeSound"] = {
  552. Create = function(id, par, vol, pit, timepos)
  553. coroutine.resume(coroutine.create(function()
  554. local S = Create("Sound"){
  555. Volume = vol,
  556. Name = "EffectSoundo",
  557. Pitch = pit or 1,
  558. SoundId = id,
  559. TimePosition = timepos,
  560. Parent = par or workspace,
  561. }
  562. wait()
  563. S:play()
  564. game:GetService("Debris"):AddItem(S, 10)
  565. end))
  566. end;
  567. };
  568. ["EchoSound"] = {
  569. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  570. coroutine.resume(coroutine.create(function()
  571. local Sas = Create("Sound"){
  572. Volume = vol,
  573. Name = "EffectSoundo",
  574. Pitch = pit or 1,
  575. SoundId = id,
  576. TimePosition = timepos,
  577. Parent = par or workspace,
  578. }
  579. local E = Create("EchoSoundEffect"){
  580. Delay = echodelay,
  581. Name = "Echo",
  582. Feedback = fedb,
  583. DryLevel = dryl,
  584. Parent = Sas,
  585. }
  586. wait()
  587. Sas:play()
  588. game:GetService("Debris"):AddItem(Sas, delays)
  589. end))
  590. end;
  591. };
  592.  
  593. ["LongSound"] = {
  594. Create = function(id, par, vol, pit)
  595. coroutine.resume(coroutine.create(function()
  596. local S = Create("Sound"){
  597. Volume = vol,
  598. Pitch = pit or 1,
  599. SoundId = id,
  600. Parent = par or workspace,
  601. }
  602. wait()
  603. S:play()
  604. game:GetService("Debris"):AddItem(S, 60)
  605. end))
  606. end;
  607. };
  608.  
  609. ["ParticleEmitter"] = {
  610. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  611. local fp = Create("ParticleEmitter"){
  612. Parent = Parent,
  613. Color = ColorSequence.new(Color1, Color2),
  614. LightEmission = LightEmission,
  615. Size = Size,
  616. Texture = Texture,
  617. Transparency = Transparency,
  618. ZOffset = ZOffset,
  619. Acceleration = Accel,
  620. Drag = Drag,
  621. LockedToPart = LockedToPart,
  622. VelocityInheritance = VelocityInheritance,
  623. EmissionDirection = EmissionDirection,
  624. Enabled = Enabled,
  625. Lifetime = LifeTime,
  626. Rate = Rate,
  627. Rotation = Rotation,
  628. RotSpeed = RotSpeed,
  629. Speed = Speed,
  630. VelocitySpread = VelocitySpread,
  631. }
  632. return fp
  633. end;
  634. };
  635.  
  636. CreateTemplate = {
  637.  
  638. };
  639. }
  640.  
  641.  
  642.  
  643. New = function(Object, Parent, Name, Data)
  644. local Object = Instance.new(Object)
  645. for Index, Value in pairs(Data or {}) do
  646. Object[Index] = Value
  647. end
  648. Object.Parent = Parent
  649. Object.Name = Name
  650. return Object
  651. end
  652. local halocolor = BrickColor.new("Pastel light blue")
  653. local halocolor2 = BrickColor.new("Cool yellow")
  654. local starcolor = BrickColor.new("Bright yellow")
  655. local lunacolor = BrickColor.new("Navy blue")
  656. local lunacolor2 = BrickColor.new("Bright blue")
  657. local wepcolor = BrickColor.new("Really black")
  658. local maincolor = BrickColor.new("Really black")
  659. local m = Instance.new("Model",char)
  660. local m2 = Instance.new("Model",char)
  661. local m3 = Instance.new("Model",char)
  662. local mw1 = Instance.new("Model",char)
  663. local mw2 = Instance.new("Model",char)
  664.  
  665.  
  666. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  667. local gui = it(GuiType)
  668. gui.Parent = parent
  669. gui.Text = text
  670. gui.BackgroundTransparency = backtrans
  671. gui.BackgroundColor3 = backcol
  672. gui.SizeConstraint = "RelativeXY"
  673. gui.TextXAlignment = "Center"
  674. gui.TextYAlignment = "Center"
  675. gui.Position = pos
  676. gui.Size = size
  677. gui.Font = "SourceSans"
  678. gui.FontSize = "Size14"
  679. gui.TextWrapped = false
  680. gui.TextStrokeTransparency = 0
  681. gui.TextColor = BrickColor.new("White")
  682. return gui
  683. end
  684. --------------------------- GUI STUFF
  685. local basgui = it("GuiMain")
  686. basgui.Parent = plr.PlayerGui
  687. basgui.Name = "VISgui"
  688. local fullscreenz = it("Frame")
  689. fullscreenz.Parent = basgui
  690. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  691. fullscreenz.BackgroundTransparency = 1
  692. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  693. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  694. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  695. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  696. imgl2.BackgroundTransparency = 1
  697. imgl2.BorderSizePixel = 0
  698. imgl2.ImageTransparency = 0.5
  699. imgl2.ImageColor3 = Color3.new(1,0,0)
  700. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  701. imgl2.Size = UDim2.new(0,1000,0,1000)
  702. imgl2.Image = "rbxassetid://2325939897"
  703. local techc = imgl2:Clone()
  704. techc.Parent = fullscreenz
  705. techc.ImageTransparency = 0
  706. techc.Size = UDim2.new(0,900,0,900)
  707. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  708. techc.ImageColor3 = Color3.new(1,0,0)
  709. techc.Image = "rbxassetid://2273224484"
  710. local circl = imgl2:Clone()
  711. circl.Parent = fullscreenz
  712. circl.ImageTransparency = 0
  713. circl.Size = UDim2.new(0,550,0,550)
  714. circl.Position = UDim2.new(0.75,25,0.55,25)
  715. circl.ImageColor3 = Color3.new(0,0,0)
  716. circl.Image = "rbxassetid://2312119891"
  717. local circl2 = imgl2:Clone()
  718. circl2.Parent = fullscreenz
  719. circl2.ImageTransparency = 0
  720. circl2.Size = UDim2.new(0,700,0,700)
  721. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  722. circl2.ImageColor3 = Color3.new(1,0,0)
  723. circl2.Image = "rbxassetid://2312119891"
  724. local imgl2b = imgl2:Clone()
  725. imgl2b.Parent = fullscreenz
  726. imgl2b.ImageTransparency = 0
  727. imgl2b.Size = UDim2.new(0,800,0,800)
  728. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  729. imgl2b.ImageColor3 = Color3.new(0,0,0)
  730. local ned = Instance.new("TextLabel",fullscreenz)
  731. ned.ZIndex = 2
  732. ned.Font = "Arcade"
  733. ned.BackgroundTransparency = 1
  734. ned.BorderSizePixel = 0.65
  735. ned.Size = UDim2.new(0.3,0,0.2,0)
  736. ned.Position = UDim2.new(0.7,0,0.8,0)
  737. ned.TextColor3 = BrickColor.new("Really red").Color
  738. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  739. ned.TextScaled = true
  740. ned.TextStrokeTransparency = 0
  741. ned.Text = "Hopeless Guest"
  742. ned.TextSize = 24
  743. ned.Rotation = 1
  744. ned.TextXAlignment = "Right"
  745. ned.TextYAlignment = "Bottom"
  746.  
  747. local extrawingmod1 = Instance.new("Model",char)
  748. local extrawingmod2 = Instance.new("Model",char)
  749.  
  750. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  751. local p = Instance.new("Part")
  752. p.TopSurface = 0
  753. p.BottomSurface = 0
  754. p.Parent = parent
  755. p.Size = Vector3.new(0.1,0.1,0.1)
  756. p.Transparency = transparency
  757. p.Reflectance = reflectance
  758. p.CanCollide = false
  759. p.Locked = true
  760. p.BrickColor = brickcolor
  761. p.Material = material
  762. return p
  763. end
  764.  
  765. function CreateMesh(parent,meshtype,x1,y1,z1)
  766. local mesh = Instance.new("SpecialMesh",parent)
  767. mesh.MeshType = meshtype
  768. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  769. return mesh
  770. end
  771.  
  772. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  773. local mesh = Instance.new("SpecialMesh",parent)
  774. mesh.MeshType = "FileMesh"
  775. mesh.MeshId = meshid
  776. mesh.Scale = Vector3.new(x1,y1,z1)
  777. return mesh
  778. end
  779.  
  780.  
  781. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  782. local mesh = Instance.new("SpecialMesh",parent)
  783. mesh.MeshType = "FileMesh"
  784. mesh.MeshId = meshid
  785. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  786. mesh.Scale = Vector3.new(x1,y1,z1)
  787. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  788. return mesh
  789. end
  790.  
  791. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  792. local weld = Instance.new("Weld")
  793. weld.Parent = parent
  794. weld.Part0 = part0
  795. weld.Part1 = part1
  796. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  797. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  798. return weld
  799. end
  800.  
  801.  
  802. --------------
  803. --------------
  804. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  805. 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))
  806. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  807. 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))
  808.  
  809. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  810. CreateMesh(handle,"Brick",0,0,0)
  811. 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))
  812. local valuaring = 10
  813. for i = 0, 49 do
  814. valuaring = valuaring + 10
  815. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  816. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  817. 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))
  818. end
  819.  
  820. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  821. CreateMesh(handle,"Brick",0,0,0)
  822. 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))
  823. local valuaring = 10
  824. for i = 0, 49 do
  825. valuaring = valuaring + 10
  826. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  827. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  828. 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))
  829. end
  830.  
  831.  
  832. local handle = CreateParta(m,1,1,"Neon",maincolor)
  833. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  834. 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))
  835.  
  836. --- Left wing.
  837.  
  838. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  839. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  840. 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))
  841.  
  842. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  843. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  844. 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))
  845. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  846. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  847. 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))
  848. A0 = Instance.new('Attachment',wed)
  849. A0.Position = vt(0,0.25,0.25)
  850. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  851. CreateMesh(wed,"Wedge",0.05,0.5,3)
  852. 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))
  853. A1 = Instance.new('Attachment',wed)
  854. A1.Position = vt(0,-0.25,-2)
  855. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  856. CreateMesh(wed,"Wedge",0.05,3,0.5)
  857. 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))
  858.  
  859. tl1 = Instance.new('Trail',wed)
  860. tl1.Attachment0 = A1
  861. tl1.Attachment1 = A0
  862. tl1.Texture = "rbxassetid://2108945559"
  863. tl1.LightEmission = 1
  864. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  865. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  866. tl1.Lifetime = 0.6
  867.  
  868.  
  869. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  870. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  871. 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))
  872.  
  873. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  874. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  875. 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))
  876. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  877. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  878. 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))
  879. A0 = Instance.new('Attachment',wed)
  880. A0.Position = vt(0,0.25,0.25)
  881. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  882. CreateMesh(wed,"Wedge",0.05,0.5,3)
  883. 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))
  884. A1 = Instance.new('Attachment',wed)
  885. A1.Position = vt(0,-0.25,-2)
  886. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  887. CreateMesh(wed,"Wedge",0.05,3,0.5)
  888. 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))
  889.  
  890. tl2 = Instance.new('Trail',wed)
  891. tl2.Attachment0 = A1
  892. tl2.Attachment1 = A0
  893. tl2.Texture = "rbxassetid://2108945559"
  894. tl2.LightEmission = 1
  895. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  896. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  897. tl2.Lifetime = 0.6
  898.  
  899. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  900. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  901. 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))
  902.  
  903. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  905. 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))
  906. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  908. 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))
  909. A0 = Instance.new('Attachment',wed)
  910. A0.Position = vt(0,0.25,0.25)
  911. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  912. CreateMesh(wed,"Wedge",0.05,0.5,3)
  913. 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))
  914. A1 = Instance.new('Attachment',wed)
  915. A1.Position = vt(0,-0.25,-2)
  916. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  917. CreateMesh(wed,"Wedge",0.05,3,0.5)
  918. 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))
  919.  
  920. tl3 = Instance.new('Trail',wed)
  921. tl3.Attachment0 = A1
  922. tl3.Attachment1 = A0
  923. tl3.Texture = "rbxassetid://2108945559"
  924. tl3.LightEmission = 1
  925. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  926. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  927. tl3.Lifetime = 0.6
  928.  
  929. tl1.Enabled = false
  930. tl2.Enabled = false
  931. tl3.Enabled = false
  932. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  933. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  934. 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))
  935.  
  936. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  937. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  938. 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))
  939. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  940. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  941. 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))
  942. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  943. CreateMesh(wed,"Wedge",0.05,0.5,3)
  944. 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))
  945. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  946. CreateMesh(wed,"Wedge",0.05,3,0.5)
  947. 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))
  948.  
  949. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  950. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  951. 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))
  952.  
  953. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  955. 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))
  956. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  958. 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))
  959. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  960. CreateMesh(wed,"Wedge",0.05,0.5,3)
  961. 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))
  962. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,3,0.5)
  964. 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))
  965.  
  966. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  967. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  968. 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))
  969.  
  970. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  971. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  972. 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))
  973. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  975. 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))
  976. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  977. CreateMesh(wed,"Wedge",0.05,0.5,3)
  978. 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))
  979. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  980. CreateMesh(wed,"Wedge",0.05,3,0.5)
  981. 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))
  982.  
  983. -- Right wing.
  984.  
  985. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  986. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  987. 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))
  988.  
  989. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  991. 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))
  992. A0 = Instance.new('Attachment',wed)
  993. A0.Position = vt(0,0.25,0.25)
  994. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  995. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  996. 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))
  997. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  998. CreateMesh(wed,"Wedge",0.05,0.5,3)
  999. 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))
  1000. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1001. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1002. 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))
  1003. A1 = Instance.new('Attachment',wed)
  1004. A1.Position = vt(0,2,0.25)
  1005.  
  1006. tr1 = Instance.new('Trail',wed)
  1007. tr1.Attachment0 = A1
  1008. tr1.Attachment1 = A0
  1009. tr1.Texture = "rbxassetid://2108945559"
  1010. tr1.LightEmission = 1
  1011. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1012. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1013. tr1.Lifetime = 0.6
  1014.  
  1015. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1016. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1017. 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))
  1018.  
  1019. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1020. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1021. 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))
  1022. A0 = Instance.new('Attachment',wed)
  1023. A0.Position = vt(0,0.25,0.25)
  1024. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1025. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1026. 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))
  1027. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1028. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1029. 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))
  1030. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1032. 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))
  1033. A1 = Instance.new('Attachment',wed)
  1034. A1.Position = vt(0,2,0.25)
  1035.  
  1036. tr2 = Instance.new('Trail',wed)
  1037. tr2.Attachment0 = A1
  1038. tr2.Attachment1 = A0
  1039. tr2.Texture = "rbxassetid://2108945559"
  1040. tr2.LightEmission = 1
  1041. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1042. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1043. tr2.Lifetime = 0.6
  1044.  
  1045. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1046. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1047. 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))
  1048.  
  1049. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1050. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1051. 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))
  1052. A0 = Instance.new('Attachment',wed)
  1053. A0.Position = vt(0,0.25,0.25)
  1054. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1055. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1056. 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))
  1057. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1058. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1059. 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))
  1060. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1062. 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))
  1063. A1 = Instance.new('Attachment',wed)
  1064. A1.Position = vt(0,2,0.25)
  1065.  
  1066. tr3 = Instance.new('Trail',wed)
  1067. tr3.Attachment0 = A1
  1068. tr3.Attachment1 = A0
  1069. tr3.Texture = "rbxassetid://2108945559"
  1070. tr3.LightEmission = 1
  1071. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1072. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1073. tr3.Lifetime = 0.6
  1074.  
  1075.  
  1076. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1077. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1078. 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))
  1079.  
  1080. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1081. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1082. 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))
  1083. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1084. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1085. 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))
  1086. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1087. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1088. 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))
  1089. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1090. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1091. 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))
  1092.  
  1093. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1094. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1095. 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))
  1096.  
  1097. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1098. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1099. 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))
  1100. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1101. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1102. 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))
  1103. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1104. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1105. 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))
  1106. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1107. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1108. 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))
  1109.  
  1110. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1111. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1112. 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))
  1113.  
  1114. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1115. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1116. 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))
  1117. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1118. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1119. 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))
  1120. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1121. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1122. 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))
  1123. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1124. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1125. 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))
  1126.  
  1127. --HERES THE RING
  1128.  
  1129.  
  1130. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1131. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1132. 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))
  1133. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1134. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1135. 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))
  1136. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1137. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1138. 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))
  1139.  
  1140.  
  1141. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1142. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1143. 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))
  1144.  
  1145. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1146. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1147. 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))
  1148.  
  1149.  
  1150.  
  1151. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1152. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1153. 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))
  1154.  
  1155. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1156. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1157. 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))
  1158.  
  1159. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1160. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1161. 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))
  1162.  
  1163. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1164. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1165. 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))
  1166. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1167. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1168. 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))]]--
  1169.  
  1170. --- second ring
  1171.  
  1172.  
  1173. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1174. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1175. 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))
  1176.  
  1177. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1178. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1179. 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))
  1180.  
  1181.  
  1182.  
  1183. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1184. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1185. 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))
  1186.  
  1187. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1188. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1189. 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))
  1190.  
  1191. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1192. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1193. 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))
  1194.  
  1195. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1196. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1197. 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))
  1198. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1199. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1200. 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))
  1201.  
  1202.  
  1203.  
  1204. for i, v in pairs(m:GetChildren()) do
  1205. if v:IsA("Part") then
  1206. v.BrickColor = BrickColor.new("Really black")
  1207. v.Material = "Glass"
  1208. end
  1209. end
  1210. for i, v in pairs(m2:GetChildren()) do
  1211. if v:IsA("Part") then
  1212. v.BrickColor = BrickColor.new("Crimson")
  1213. v.Material = "Granite"
  1214. end
  1215. end
  1216. for i, v in pairs(m3:GetChildren()) do
  1217. if v:IsA("Part") then
  1218. v.BrickColor = BrickColor.new("Really red")
  1219. v.Material = "Neon"
  1220. end
  1221. end
  1222. for i, v in pairs(mw2:GetChildren()) do
  1223. if v:IsA("Part") then
  1224. v.BrickColor = BrickColor.new("Really red")
  1225. v.Material = "Neon"
  1226. end
  1227. end
  1228. for i, v in pairs(mw1:GetChildren()) do
  1229. if v:IsA("Part") then
  1230. v.Transparency = 1
  1231. v.BrickColor = BrickColor.new("Really red")
  1232. v.Material = "Neon"
  1233. end
  1234. end
  1235. for i, v in pairs(extrawingmod1:GetChildren()) do
  1236. if v:IsA("Part") then
  1237. v.Transparency = 1
  1238. v.BrickColor = BrickColor.new("White")
  1239. v.Material = "Neon"
  1240. end
  1241. end
  1242. for i, v in pairs(extrawingmod2:GetChildren()) do
  1243. if v:IsA("Part") then
  1244. v.Transparency = 1
  1245. v.BrickColor = BrickColor.new("White")
  1246. v.Material = "Neon"
  1247. end
  1248. end
  1249. local MAINRUINCOLOR = BrickColor.new("Really red")
  1250. ------
  1251.  
  1252.  
  1253. function RemoveOutlines(part)
  1254. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1255. end
  1256. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1257. local Part = Create("Part")({
  1258. Parent = Parent,
  1259. Reflectance = Reflectance,
  1260. Transparency = Transparency,
  1261. CanCollide = false,
  1262. Locked = true,
  1263. BrickColor = BrickColor.new(tostring(BColor)),
  1264. Name = Name,
  1265. Size = Size,
  1266. Material = Material
  1267. })
  1268. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1269. RemoveOutlines(Part)
  1270. return Part
  1271. end
  1272. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1273. local Msh = Create(Mesh)({
  1274. Parent = Part,
  1275. Offset = OffSet,
  1276. Scale = Scale
  1277. })
  1278. if Mesh == "SpecialMesh" then
  1279. Msh.MeshType = MeshType
  1280. Msh.MeshId = MeshId
  1281. end
  1282. return Msh
  1283. end
  1284. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1285. local Weld = Create("Weld")({
  1286. Parent = Parent,
  1287. Part0 = Part0,
  1288. Part1 = Part1,
  1289. C0 = C0,
  1290. C1 = C1
  1291. })
  1292. return Weld
  1293. end
  1294.  
  1295. Player = plr
  1296. Character=Player.Character
  1297. PlayerGui=Player.PlayerGui
  1298. Backpack=Player.Backpack
  1299. Torso=Character.Torso
  1300. Head=Character.Head
  1301. Humanoid=Character.Humanoid
  1302. m=Instance.new('Model',Character)
  1303. LeftArm=Character["Left Arm"]
  1304. LeftLeg=Character["Left Leg"]
  1305. RightArm=Character["Right Arm"]
  1306. RightLeg=Character["Right Leg"]
  1307. LS=Torso["Left Shoulder"]
  1308. LH=Torso["Left Hip"]
  1309. RS=Torso["Right Shoulder"]
  1310. RH=Torso["Right Hip"]
  1311. Face = Head.face
  1312. Neck=Torso.Neck
  1313. it=Instance.new
  1314. attacktype=1
  1315. vt=Vector3.new
  1316. cf=CFrame.new
  1317. euler=CFrame.fromEulerAnglesXYZ
  1318. angles=CFrame.Angles
  1319. cloaked=false
  1320. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1321. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1322. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1323. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1324. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1325. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1326. RootPart=Character.HumanoidRootPart
  1327. RootJoint=RootPart.RootJoint
  1328. RootCF=euler(-1.57,0,3.14)
  1329. attack = false
  1330. attackdebounce = false
  1331. deb=false
  1332. equipped=true
  1333. hand=false
  1334. combo=0
  1335. mana=0
  1336. trispeed=.2
  1337. attackmode='none'
  1338. local idle=0
  1339. local Anim="Idle"
  1340. local Effects={}
  1341. local gun=false
  1342. local shoot=false
  1343. local sine = 0
  1344. local change = 1
  1345.  
  1346. function RecolorTextAndRename(name,col1,col2,font)
  1347. modet.TextStrokeColor3 = col2
  1348. modet.TextColor3 = col1
  1349. modet.Font = font
  1350. modet.Text = name
  1351. techc.ImageColor3 = col2
  1352. circl.ImageColor3 = col2
  1353. circl2.ImageColor3 = col1
  1354. imgl2.ImageColor3 = col1
  1355. imgl2b.ImageColor3 = col2
  1356. ned.Text = name
  1357. ned.TextColor3 = col1
  1358. ned.TextStrokeColor3 = col2
  1359. end
  1360. --save shoulders
  1361. RSH, LSH=nil, nil
  1362. --welds
  1363. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1364. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1365. LH=Torso["Left Hip"]
  1366. RH=Torso["Right Hip"]
  1367. TorsoColor=Torso.BrickColor
  1368. function NoOutline(Part)
  1369. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1370. end
  1371. ch=Character
  1372. RSH=ch.Torso["Right Shoulder"]
  1373. LSH=ch.Torso["Left Shoulder"]
  1374. --
  1375. RSH.Parent=nil
  1376. LSH.Parent=nil
  1377. --
  1378. RW.Name="Right Shoulder"
  1379. RW.Part0=ch.Torso
  1380. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1381. RW.C1=cf(0, 0.5, 0)
  1382. RW.Part1=ch["Right Arm"]
  1383. RW.Parent=ch.Torso
  1384. --
  1385. LW.Name="Left Shoulder"
  1386. LW.Part0=ch.Torso
  1387. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1388. LW.C1=cf(0, 0.5, 0)
  1389. LW.Part1=ch["Left Arm"]
  1390. LW.Parent=ch.Torso
  1391.  
  1392. local Stats=Instance.new("BoolValue")
  1393. Stats.Name="Stats"
  1394. Stats.Parent=Character
  1395. local Atk=Instance.new("NumberValue")
  1396. Atk.Name="Damage"
  1397. Atk.Parent=Stats
  1398. Atk.Value=1
  1399. local Def=Instance.new("NumberValue")
  1400. Def.Name="Defense"
  1401. Def.Parent=Stats
  1402. Def.Value=1
  1403. local Speed=Instance.new("NumberValue")
  1404. Speed.Name="Speed"
  1405. Speed.Parent=Stats
  1406. Speed.Value=1
  1407. local Mvmt=Instance.new("NumberValue")
  1408. Mvmt.Name="Movement"
  1409. Mvmt.Parent=Stats
  1410. Mvmt.Value=1
  1411.  
  1412. local donum=0
  1413. local ast = {744586075,385254610}
  1414.  
  1415. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1416. local fp=it("Part")
  1417. fp.formFactor=formfactor
  1418. fp.Parent=parent
  1419. fp.Reflectance=reflectance
  1420. fp.Transparency=transparency
  1421. fp.CanCollide=false
  1422. fp.Locked=true
  1423. fp.BrickColor=brickcolor
  1424. fp.Name=name
  1425. fp.Size=size
  1426. fp.Position=Torso.Position
  1427. NoOutline(fp)
  1428. fp.Material="SmoothPlastic"
  1429. fp:BreakJoints()
  1430. return fp
  1431. end
  1432.  
  1433. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1434. local mesh=it(Mesh)
  1435. mesh.Parent=part
  1436. if Mesh=="SpecialMesh" then
  1437. mesh.MeshType=meshtype
  1438. if meshid~="nil" then
  1439. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1440. end
  1441. end
  1442. mesh.Offset=offset
  1443. mesh.Scale=scale
  1444. return mesh
  1445. end
  1446.  
  1447. function weld(parent,part0,part1,c0)
  1448. local weld=it("Weld")
  1449. weld.Parent=parent
  1450. weld.Part0=part0
  1451. weld.Part1=part1
  1452. weld.C0=c0
  1453. return weld
  1454. end
  1455.  
  1456. local Color1=Torso.BrickColor
  1457.  
  1458. local bodvel=Instance.new("BodyVelocity")
  1459. local bg=Instance.new("BodyGyro")
  1460.  
  1461. --------- SazEreno's Artificial HB --------------
  1462. ArtificialHB = Instance.new("BindableEvent", script)
  1463. ArtificialHB.Name = "ArtificialHB"
  1464.  
  1465. script:WaitForChild("ArtificialHB")
  1466. Frame_Speed = 1 / 60
  1467. frame = Frame_Speed
  1468. tf = 0
  1469. allowframeloss = false
  1470. tossremainder = false
  1471. lastframe = tick()
  1472. script.ArtificialHB:Fire()
  1473.  
  1474. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1475. tf = tf + s
  1476. if tf >= frame then
  1477. if allowframeloss then
  1478. script.ArtificialHB:Fire()
  1479. lastframe = tick()
  1480. else
  1481. for i = 1, math.floor(tf / frame) do
  1482. script.ArtificialHB:Fire()
  1483. end
  1484. lastframe = tick()
  1485. end
  1486. if tossremainder then
  1487. tf = 0
  1488. else
  1489. tf = tf - frame * math.floor(tf / frame)
  1490. end
  1491. end
  1492. end)
  1493.  
  1494. ------------------
  1495. function swait(num)
  1496. if num == 0 or num == nil then
  1497. ArtificialHB.Event:wait()
  1498. else
  1499. for i = 1, num do
  1500. ArtificialHB.Event:wait()
  1501. end
  1502. end
  1503. end
  1504. -------- RAINBOW LEAVE IT TO ME
  1505. local r = 255
  1506. local g = 0
  1507. local b = 0
  1508. coroutine.resume(coroutine.create(function()
  1509. while wait() do
  1510. for i = 0, 254/5 do
  1511. swait()
  1512. g = g + 5
  1513. end
  1514. for i = 0, 254/5 do
  1515. swait()
  1516. r = r - 5
  1517. end
  1518. for i = 0, 254/5 do
  1519. swait()
  1520. b = b + 5
  1521. end
  1522. for i = 0, 254/5 do
  1523. swait()
  1524. g = g - 5
  1525. end
  1526. for i = 0, 254/5 do
  1527. swait()
  1528. r = r + 5
  1529. end
  1530. for i = 0, 254/5 do
  1531. swait()
  1532. b = b - 5
  1533. end
  1534. end
  1535. end))
  1536.  
  1537.  
  1538. so = function(id,par,vol,pit)
  1539. coroutine.resume(coroutine.create(function()
  1540. local sou = Instance.new("Sound",par or workspace)
  1541. sou.Volume=vol
  1542. sou.Pitch=pit or 1
  1543. sou.SoundId=id
  1544. swait()
  1545. sou:play()
  1546. game:GetService("Debris"):AddItem(sou,6)
  1547. end))
  1548. end
  1549.  
  1550. function clerp(a,b,t)
  1551. local qa = {QuaternionFromCFrame(a)}
  1552. local qb = {QuaternionFromCFrame(b)}
  1553. local ax, ay, az = a.x, a.y, a.z
  1554. local bx, by, bz = b.x, b.y, b.z
  1555. local _t = 1-t
  1556. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1557. end
  1558.  
  1559. function QuaternionFromCFrame(cf)
  1560. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1561. local trace = m00 + m11 + m22
  1562. if trace > 0 then
  1563. local s = math.sqrt(1 + trace)
  1564. local recip = 0.5/s
  1565. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1566. else
  1567. local i = 0
  1568. if m11 > m00 then
  1569. i = 1
  1570. end
  1571. if m22 > (i == 0 and m00 or m11) then
  1572. i = 2
  1573. end
  1574. if i == 0 then
  1575. local s = math.sqrt(m00-m11-m22+1)
  1576. local recip = 0.5/s
  1577. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1578. elseif i == 1 then
  1579. local s = math.sqrt(m11-m22-m00+1)
  1580. local recip = 0.5/s
  1581. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1582. elseif i == 2 then
  1583. local s = math.sqrt(m22-m00-m11+1)
  1584. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1585. end
  1586. end
  1587. end
  1588.  
  1589. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1590. local xs, ys, zs = x + x, y + y, z + z
  1591. local wx, wy, wz = w*xs, w*ys, w*zs
  1592. local xx = x*xs
  1593. local xy = x*ys
  1594. local xz = x*zs
  1595. local yy = y*ys
  1596. local yz = y*zs
  1597. local zz = z*zs
  1598. 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))
  1599. end
  1600.  
  1601. function QuaternionSlerp(a, b, t)
  1602. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1603. local startInterp, finishInterp;
  1604. if cosTheta >= 0.0001 then
  1605. if (1 - cosTheta) > 0.0001 then
  1606. local theta = math.acos(cosTheta)
  1607. local invSinTheta = 1/math.sin(theta)
  1608. startInterp = math.sin((1-t)*theta)*invSinTheta
  1609. finishInterp = math.sin(t*theta)*invSinTheta
  1610. else
  1611. startInterp = 1-t
  1612. finishInterp = t
  1613. end
  1614. else
  1615. if (1+cosTheta) > 0.0001 then
  1616. local theta = math.acos(-cosTheta)
  1617. local invSinTheta = 1/math.sin(theta)
  1618. startInterp = math.sin((t-1)*theta)*invSinTheta
  1619. finishInterp = math.sin(t*theta)*invSinTheta
  1620. else
  1621. startInterp = t-1
  1622. finishInterp = t
  1623. end
  1624. end
  1625. 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
  1626. end
  1627.  
  1628. local function CFrameFromTopBack(at, top, back)
  1629. local right = top:Cross(back)
  1630. return CFrame.new(at.x, at.y, at.z,
  1631. right.x, top.x, back.x,
  1632. right.y, top.y, back.y,
  1633. right.z, top.z, back.z)
  1634. end
  1635.  
  1636. function Triangle(a, b, c)
  1637. local edg1 = (c-a):Dot((b-a).unit)
  1638. local edg2 = (a-b):Dot((c-b).unit)
  1639. local edg3 = (b-c):Dot((a-c).unit)
  1640. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1641. a, b, c = a, b, c
  1642. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1643. a, b, c = b, c, a
  1644. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1645. a, b, c = c, a, b
  1646. else
  1647. assert(false, "unreachable")
  1648. end
  1649.  
  1650. local len1 = (c-a):Dot((b-a).unit)
  1651. local len2 = (b-a).magnitude - len1
  1652. local width = (a + (b-a).unit*len1 - c).magnitude
  1653.  
  1654. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1655.  
  1656. local list = {}
  1657.  
  1658. if len1 > 0.01 then
  1659. local w1 = Instance.new('WedgePart', m)
  1660. game:GetService("Debris"):AddItem(w1,5)
  1661. w1.Material = "SmoothPlastic"
  1662. w1.FormFactor = 'Custom'
  1663. w1.BrickColor = BrickColor.new("Really red")
  1664. w1.Transparency = 0
  1665. w1.Reflectance = 0
  1666. w1.Material = "SmoothPlastic"
  1667. w1.CanCollide = false
  1668. local l1 = Instance.new("PointLight",w1)
  1669. l1.Color = Color3.new(170,0,0)
  1670. NoOutline(w1)
  1671. local sz = Vector3.new(0.2, width, len1)
  1672. w1.Size = sz
  1673. local sp = Instance.new("SpecialMesh",w1)
  1674. sp.MeshType = "Wedge"
  1675. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1676. w1:BreakJoints()
  1677. w1.Anchored = true
  1678. w1.Parent = workspace
  1679. w1.Transparency = 0.7
  1680. table.insert(Effects,{w1,"Disappear",.01})
  1681. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1682. table.insert(list,w1)
  1683. end
  1684.  
  1685. if len2 > 0.01 then
  1686. local w2 = Instance.new('WedgePart', m)
  1687. game:GetService("Debris"):AddItem(w2,5)
  1688. w2.Material = "SmoothPlastic"
  1689. w2.FormFactor = 'Custom'
  1690. w2.BrickColor = BrickColor.new("Really red")
  1691. w2.Transparency = 0
  1692. w2.Reflectance = 0
  1693. w2.Material = "SmoothPlastic"
  1694. w2.CanCollide = false
  1695. local l2 = Instance.new("PointLight",w2)
  1696. l2.Color = Color3.new(170,0,0)
  1697. NoOutline(w2)
  1698. local sz = Vector3.new(0.2, width, len2)
  1699. w2.Size = sz
  1700. local sp = Instance.new("SpecialMesh",w2)
  1701. sp.MeshType = "Wedge"
  1702. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1703. w2:BreakJoints()
  1704. w2.Anchored = true
  1705. w2.Parent = workspace
  1706. w2.Transparency = 0.7
  1707. table.insert(Effects,{w2,"Disappear",.01})
  1708. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1709. table.insert(list,w2)
  1710. end
  1711. return unpack(list)
  1712. end
  1713.  
  1714.  
  1715. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1716. if hit.Parent == nil then
  1717. return
  1718. end
  1719. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1720. for _, v in pairs(hit.Parent:children()) do
  1721. if v:IsA("Humanoid") then
  1722. h = v
  1723. end
  1724. end
  1725. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1726. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1727. return
  1728. end
  1729. local c = Create("ObjectValue")({
  1730. Name = "creator",
  1731. Value = game:GetService("Players").GodzPlaysRB,
  1732. Parent = h
  1733. })
  1734. game:GetService("Debris"):AddItem(c, 0.5)
  1735. if HitSound ~= nil and HitPitch ~= nil then
  1736. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1737. end
  1738. local Damage = math.random(minim, maxim)
  1739. local blocked = false
  1740. local block = hit.Parent:findFirstChild("Block")
  1741. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1742. blocked = true
  1743. block.Value = block.Value - 1
  1744. print(block.Value)
  1745. end
  1746. if blocked == false then
  1747. HitHealth = h.Health
  1748. h.MaxHealth = 100
  1749. h.Health = h.Health - Damage
  1750. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1751. print("gained kill")
  1752. dmg(h.Parent)
  1753. end
  1754. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1755. else
  1756. h.Health = h.Health - Damage / 2
  1757. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1758. end
  1759. if Type == "Knockdown" then
  1760. local hum = hit.Parent.Humanoid
  1761. hum.PlatformStand = true
  1762. coroutine.resume(coroutine.create(function(HHumanoid)
  1763. swait(1)
  1764. HHumanoid.PlatformStand = false
  1765. end), hum)
  1766. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1767. local bodvol = Create("BodyVelocity")({
  1768. velocity = angle * knockback,
  1769. P = 5000,
  1770. maxForce = Vector3.new(8000, 8000, 8000),
  1771. Parent = hit
  1772. })
  1773. local rl = Create("BodyAngularVelocity")({
  1774. P = 3000,
  1775. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1776. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1777. Parent = hit
  1778. })
  1779. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1780. game:GetService("Debris"):AddItem(rl, 0.5)
  1781. elseif Type == "Normal" then
  1782. local vp = Create("BodyVelocity")({
  1783. P = 500,
  1784. maxForce = Vector3.new(math.huge, 0, math.huge),
  1785. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1786. })
  1787. if knockback > 0 then
  1788. vp.Parent = hit.Parent.Head
  1789. end
  1790. game:GetService("Debris"):AddItem(vp, 0.5)
  1791. elseif Type == "Up" then
  1792. local bodyVelocity = Create("BodyVelocity")({
  1793. velocity = Vector3.new(0, 20, 0),
  1794. P = 5000,
  1795. maxForce = Vector3.new(8000, 8000, 8000),
  1796. Parent = hit
  1797. })
  1798. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1799. local bodyVelocity = Create("BodyVelocity")({
  1800. velocity = Vector3.new(0, 20, 0),
  1801. P = 5000,
  1802. maxForce = Vector3.new(8000, 8000, 8000),
  1803. Parent = hit
  1804. })
  1805. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1806. elseif Type == "Leech" then
  1807. local hum = hit.Parent.Humanoid
  1808. if hum ~= nil then
  1809. for i = 0, 2 do
  1810. 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)
  1811. end
  1812. Humanoid.Health = Humanoid.Health + 10
  1813. end
  1814. elseif Type == "UpKnock" then
  1815. local hum = hit.Parent.Humanoid
  1816. hum.PlatformStand = true
  1817. if hum ~= nil then
  1818. hitr = true
  1819. end
  1820. coroutine.resume(coroutine.create(function(HHumanoid)
  1821. swait(5)
  1822. HHumanoid.PlatformStand = false
  1823. hitr = false
  1824. end), hum)
  1825. local bodyVelocity = Create("BodyVelocity")({
  1826. velocity = Vector3.new(0, 20, 0),
  1827. P = 5000,
  1828. maxForce = Vector3.new(8000, 8000, 8000),
  1829. Parent = hit
  1830. })
  1831. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1832. local bodyVelocity = Create("BodyVelocity")({
  1833. velocity = Vector3.new(0, 20, 0),
  1834. P = 5000,
  1835. maxForce = Vector3.new(8000, 8000, 8000),
  1836. Parent = hit
  1837. })
  1838. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1839. elseif Type == "Snare" then
  1840. local bp = Create("BodyPosition")({
  1841. P = 2000,
  1842. D = 100,
  1843. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1844. position = hit.Parent.Torso.Position,
  1845. Parent = hit.Parent.Torso
  1846. })
  1847. game:GetService("Debris"):AddItem(bp, 1)
  1848. elseif Type == "Slashnare" then
  1849. 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)
  1850. for i = 1, math.random(4, 5) do
  1851. 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)
  1852. end
  1853. local bp = Create("BodyPosition")({
  1854. P = 2000,
  1855. D = 100,
  1856. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1857. position = hit.Parent.Torso.Position,
  1858. Parent = hit.Parent.Torso
  1859. })
  1860. game:GetService("Debris"):AddItem(bp, 1)
  1861. elseif Type == "Spike" then
  1862. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1863. local bp = Create("BodyPosition")({
  1864. P = 2000,
  1865. D = 100,
  1866. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1867. position = hit.Parent.Torso.Position,
  1868. Parent = hit.Parent.Torso
  1869. })
  1870. game:GetService("Debris"):AddItem(bp, 1)
  1871. elseif Type == "Freeze" then
  1872. local BodPos = Create("BodyPosition")({
  1873. P = 50000,
  1874. D = 1000,
  1875. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1876. position = hit.Parent.Torso.Position,
  1877. Parent = hit.Parent.Torso
  1878. })
  1879. local BodGy = Create("BodyGyro")({
  1880. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1881. P = 20000,
  1882. Parent = hit.Parent.Torso,
  1883. cframe = hit.Parent.Torso.CFrame
  1884. })
  1885. hit.Parent.Torso.Anchored = true
  1886. coroutine.resume(coroutine.create(function(Part)
  1887. swait(1.5)
  1888. Part.Anchored = false
  1889. end), hit.Parent.Torso)
  1890. game:GetService("Debris"):AddItem(BodPos, 3)
  1891. game:GetService("Debris"):AddItem(BodGy, 3)
  1892. end
  1893. local debounce = Create("BoolValue")({
  1894. Name = "DebounceHit",
  1895. Parent = hit.Parent,
  1896. Value = true
  1897. })
  1898. game:GetService("Debris"):AddItem(debounce, Delay)
  1899. c = Instance.new("ObjectValue")
  1900. c.Name = "creator"
  1901. c.Value = Player
  1902. c.Parent = h
  1903. game:GetService("Debris"):AddItem(c, 0.5)
  1904. end
  1905. end
  1906. function ShowDamage(Pos, Text, Time, Color)
  1907. local Rate = 0.03333333333333333
  1908. local Pos = Pos or Vector3.new(0, 0, 0)
  1909. local Text = Text or ""
  1910. local Time = Time or 2
  1911. local Color = Color or Color3.new(1, 0, 1)
  1912. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1913. EffectPart.Anchored = true
  1914. local BillboardGui = Create("BillboardGui")({
  1915. Size = UDim2.new(3, 0, 3, 0),
  1916. Adornee = EffectPart,
  1917. Parent = EffectPart
  1918. })
  1919. local TextLabel = Create("TextLabel")({
  1920. BackgroundTransparency = 1,
  1921. Size = UDim2.new(1, 0, 1, 0),
  1922. Text = Text,
  1923. TextColor3 = Color,
  1924. TextScaled = true,
  1925. Font = Enum.Font.ArialBold,
  1926. Parent = BillboardGui
  1927. })
  1928. game.Debris:AddItem(EffectPart, Time + 0.1)
  1929. EffectPart.Parent = game:GetService("Workspace")
  1930. delay(0, function()
  1931. local Frames = Time / Rate
  1932. for Frame = 1, Frames do
  1933. wait(Rate)
  1934. local Percent = Frame / Frames
  1935. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1936. TextLabel.TextTransparency = Percent
  1937. end
  1938. if EffectPart and EffectPart.Parent then
  1939. EffectPart:Destroy()
  1940. end
  1941. end)
  1942. end
  1943. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1944. for _, c in pairs(workspace:children()) do
  1945. local hum = c:findFirstChildOfClass("Humanoid")
  1946. if hum ~= nil then
  1947. local head = c:findFirstChild("Head")
  1948. if head ~= nil then
  1949. local targ = head.Position - Part.Position
  1950. local mag = targ.magnitude
  1951. if magni >= mag and c.Name ~= Player.Name then
  1952. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1953. end
  1954. end
  1955. end
  1956. end
  1957. end
  1958.  
  1959. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1960. for _, c in pairs(workspace:children()) do
  1961. local hum = c:findFirstChild("Humanoid")
  1962. if hum ~= nil then
  1963. local head = c:findFirstChild("Torso")
  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. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1969. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1970. end
  1971. end
  1972. end
  1973. end
  1974. end
  1975.  
  1976. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1977. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1978. end
  1979.  
  1980. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1981. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1982. prt.Anchored=true
  1983. prt.CFrame=cframe
  1984. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1985. --http://www.roblox.com/asset/?id=4770560
  1986. game:GetService("Debris"):AddItem(prt,2)
  1987. CF=prt.CFrame
  1988. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1989. for i=0,1,0.2 do
  1990. wait()
  1991. Part.CFrame=CF*cf(0,0,-0.4)
  1992. end
  1993. for i=0,1,delay do
  1994. wait()
  1995. --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)
  1996. Mesh.Scale=Mesh.Scale
  1997. end
  1998. for i=0,1,0.1 do
  1999. wait()
  2000. Part.Transparency=i
  2001. end
  2002. Part.Parent=nil
  2003. end),prt,msh,CF)
  2004. end
  2005.  
  2006. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2007. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2008. prt.Anchored=true
  2009. prt.Material = "Neon"
  2010. prt.CFrame=cframe
  2011. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2012. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2013. game:GetService("Debris"):AddItem(prt,5)
  2014. coroutine.resume(coroutine.create(function(Part,Mesh)
  2015. for i=0,1,delay do
  2016. swait()
  2017. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2018. Part.Transparency=i
  2019. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2020. end
  2021. Part.Parent=nil
  2022. end),prt,msh)
  2023. end
  2024.  
  2025. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2026. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2027. prt.Anchored=true
  2028. prt.Material = "Neon"
  2029. prt.CFrame=cframe
  2030. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2031. game:GetService("Debris"):AddItem(prt,5)
  2032. coroutine.resume(coroutine.create(function(Part,Mesh)
  2033. local rtype = rottype
  2034. for i=0,1,delay do
  2035. swait()
  2036. if rtype == 1 then
  2037. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2038. elseif rtype == 2 then
  2039. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2040. end
  2041. Part.Transparency=i
  2042. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2043. end
  2044. Part.Parent=nil
  2045. end),prt,msh)
  2046. end
  2047.  
  2048. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2049. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2050. prt.Anchored=true
  2051. prt.CFrame=cframe
  2052. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2053. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2054. game:GetService("Debris"):AddItem(prt,5)
  2055. coroutine.resume(coroutine.create(function(Part,Mesh)
  2056. for i=0,1,delay do
  2057. wait()
  2058. Part.Transparency=i
  2059. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2060. end
  2061. Part.Parent=nil
  2062. end),prt,msh)
  2063. end
  2064.  
  2065. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2066. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2067. prt.Anchored=true
  2068. prt.Material = "Neon"
  2069. prt.CFrame=cframe
  2070. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2071. game:GetService("Debris"):AddItem(prt,5)
  2072. coroutine.resume(coroutine.create(function(Part,Mesh)
  2073. local rtype = rottype
  2074. for i=0,1,delay do
  2075. swait()
  2076. if rtype == 1 then
  2077. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2078. elseif rtype == 2 then
  2079. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2080. end
  2081. Part.Transparency=i
  2082. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2083. end
  2084. Part.Parent=nil
  2085. end),prt,msh)
  2086. end
  2087.  
  2088. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2089. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2090. prt.Anchored=true
  2091. prt.Material = "Neon"
  2092. prt.CFrame=cframe
  2093. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2094. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2095. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2096. game:GetService("Debris"):AddItem(prt,5)
  2097. coroutine.resume(coroutine.create(function(Part,Mesh)
  2098. local rtype = rottype
  2099. for i=0,1,delay do
  2100. swait()
  2101. if rtype == 1 then
  2102. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2103. elseif rtype == 2 then
  2104. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2105. end
  2106. dec.Transparency=i
  2107. dec2.Transparency=i
  2108. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2109. end
  2110. Part.Parent=nil
  2111. end),prt,msh)
  2112. end
  2113.  
  2114. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2115. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2116. prt.Anchored=true
  2117. prt.Material = "Neon"
  2118. prt.CFrame=cframe
  2119. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2120. game:GetService("Debris"):AddItem(prt,5)
  2121. coroutine.resume(coroutine.create(function(Part,Mesh)
  2122. local rtype = rottype
  2123. for i=0,1,delay do
  2124. swait()
  2125. if rtype == 1 then
  2126. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2127. elseif rtype == 2 then
  2128. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2129. end
  2130. prt.Transparency=i
  2131. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2132. end
  2133. Part.Parent=nil
  2134. end),prt,msh)
  2135. end
  2136.  
  2137. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2138. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2139. prt.Anchored=true
  2140. prt.Material = "Neon"
  2141. prt.CFrame=cframe
  2142. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2143. game:GetService("Debris"):AddItem(prt,5)
  2144. coroutine.resume(coroutine.create(function(Part,Mesh)
  2145. local rtype = rottype
  2146. for i=0,1,delay do
  2147. swait()
  2148. if rtype == 1 then
  2149. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2150. elseif rtype == 2 then
  2151. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2152. end
  2153. prt.Transparency=i
  2154. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2155. end
  2156. Part.Parent=nil
  2157. end),prt,msh)
  2158. end
  2159.  
  2160. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2161. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2162. prt.Anchored=true
  2163. prt.Material = "Neon"
  2164. prt.CFrame=cframe
  2165. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2166. game:GetService("Debris"):AddItem(prt,5)
  2167. coroutine.resume(coroutine.create(function(Part,Mesh)
  2168. local rtype = rottype
  2169. for i=0,1,delay do
  2170. swait()
  2171. if rtype == 1 then
  2172. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2173. elseif rtype == 2 then
  2174. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2175. end
  2176. prt.Transparency=i
  2177. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2178. end
  2179. Part.Parent=nil
  2180. end),prt,msh)
  2181. end
  2182.  
  2183. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2184. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2185. prt.Anchored=true
  2186. prt.Material = "Neon"
  2187. prt.CFrame=cframe
  2188. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2189. game:GetService("Debris"):AddItem(prt,5)
  2190. coroutine.resume(coroutine.create(function(Part,Mesh)
  2191. local rtype = rottype
  2192. for i=0,1,delay do
  2193. swait()
  2194. if rtype == 1 then
  2195. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2196. elseif rtype == 2 then
  2197. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2198. end
  2199. prt.Transparency=i
  2200. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2201. end
  2202. Part.Parent=nil
  2203. end),prt,msh)
  2204. end
  2205.  
  2206. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2207. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2208. prt.Anchored=false
  2209. prt.CFrame=cframe
  2210. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2211. local wld=weld(prt,prt,Parent,cframe)
  2212. game:GetService("Debris"):AddItem(prt,5)
  2213. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2214. for i=0,1,delay do
  2215. wait()
  2216. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2217. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2218. Part.Transparency=i
  2219. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2220. end
  2221. Part.Parent=nil
  2222. end),prt,msh,wld)
  2223. end
  2224.  
  2225. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2226. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2227. prt.Anchored=false
  2228. prt.CFrame=cframe
  2229. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2230. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2231. game:GetService("Debris"):AddItem(prt,5)
  2232. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2233. for i=0,1,delay do
  2234. wait()
  2235. Weld.C0=euler(i*20,0,0)
  2236. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2237. Part.Transparency=i
  2238. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2239. end
  2240. Part.Parent=nil
  2241. end),prt,msh,wld)
  2242. end
  2243.  
  2244. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2245. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2246. prt.Anchored=true
  2247. prt.CFrame=cframe
  2248. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2249. game:GetService("Debris"):AddItem(prt,2)
  2250. coroutine.resume(coroutine.create(function(Part,Mesh)
  2251. for i=0,1,delay do
  2252. wait()
  2253. Part.CFrame=Part.CFrame
  2254. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2255. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2256. prt2.Anchored=true
  2257. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2258. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2259. game:GetService("Debris"):AddItem(prt2,2)
  2260. coroutine.resume(coroutine.create(function(Part,Mesh)
  2261. for i=0,1,0.1 do
  2262. wait()
  2263. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2264. end
  2265. Part.Parent=nil
  2266. end),prt2,msh2)
  2267. end
  2268. for i=0,1,delay*2 do
  2269. wait()
  2270. Part.CFrame=Part.CFrame
  2271. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2272. end
  2273. Part.Parent=nil
  2274. end),prt,msh)
  2275. end
  2276.  
  2277. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2278. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2279. prt.Anchored=true
  2280. prt.CFrame=cframe
  2281. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2282. game:GetService("Debris"):AddItem(prt,2)
  2283. coroutine.resume(coroutine.create(function(Part,Mesh)
  2284. for i=0,1,delay do
  2285. wait()
  2286. Part.CFrame=Part.CFrame
  2287. Part.Transparency=i
  2288. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2289. end
  2290. Part.Parent=nil
  2291. end),prt,msh)
  2292. end
  2293.  
  2294. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2295. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2296. prt.Anchored=true
  2297. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2298. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2299. game:GetService("Debris"):AddItem(prt,2)
  2300. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2301. CF=Part.CFrame
  2302. Numbb=0
  2303. randnumb=math.random()/10
  2304. rand1=math.random()/10
  2305. for i=0,1,rand1 do
  2306. wait()
  2307. CF=CF*cf(0,math.random()/2,0)
  2308. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2309. Part.CFrame=CF*euler(Numbb,0,0)
  2310. Part.Transparency=i
  2311. Numbb=Numbb+randnumb
  2312. end
  2313. Part.Parent=nil
  2314. end),prt,CF,Numbb,randnumb)
  2315. end
  2316.  
  2317. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2318. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2319. prt.Anchored=true
  2320. prt.CFrame=cframe
  2321. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2322. game:GetService("Debris"):AddItem(prt,5)
  2323. coroutine.resume(coroutine.create(function(Part,Mesh)
  2324. for i=0,1,delay do
  2325. wait()
  2326. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2327. Part.Transparency=i
  2328. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2329. end
  2330. Part.Parent=nil
  2331. end),prt,msh)
  2332. end
  2333.  
  2334. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2335. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2336. prt.Anchored=true
  2337. prt.CFrame=cframe
  2338. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2339. game:GetService("Debris"):AddItem(prt,2)
  2340. coroutine.resume(coroutine.create(function(Part,Mesh)
  2341. for i=0,1,delay do
  2342. wait()
  2343. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2344. Part.Transparency=i
  2345. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2346. end
  2347. Part.Parent=nil
  2348. end),prt,msh)
  2349. end
  2350.  
  2351. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2352. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2353. prt.Anchored=true
  2354. prt.CFrame=cframe*cf(x,y,z)
  2355. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2356. game:GetService("Debris"):AddItem(prt,5)
  2357. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2358. local num=math.random()
  2359. local num2=math.random(-3,2)+math.random()
  2360. local numm=0
  2361. for i=0,1,delay*2 do
  2362. swait()
  2363. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2364. Part.Transparency=i
  2365. numm=numm+0.01
  2366. end
  2367. Part.Parent=nil
  2368. Mesh.Parent=nil
  2369. end),prt,msh,x,y,z)
  2370. end
  2371.  
  2372. function dmgstart(dmg,what)
  2373. hitcon = what.Touched:connect(function(hit)
  2374. local hum = hit.Parent:FindFirstChild("Humanoid")
  2375. if hum and not hum:IsDescendantOf(Character) then
  2376. hum:TakeDamage(dmg)
  2377. end
  2378. end)
  2379. end
  2380.  
  2381. function dmgstop()
  2382. hitcon:disconnect()
  2383. end
  2384.  
  2385. function Cloak()
  2386. Face.Parent=nil
  2387. cloaked=true
  2388. for _,v in pairs(Torso.Parent:children()) do
  2389. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2390. coroutine.resume(coroutine.create(function()
  2391. for i=0,1,0.2 do
  2392. wait()
  2393. v.Transparency=i
  2394. end
  2395. v.Transparency=1
  2396. end))
  2397. end
  2398. if v.className=="Hat" then
  2399. hatp=v.Handle
  2400. coroutine.resume(coroutine.create(function(derp)
  2401. for i=0,1,0.2 do
  2402. wait()
  2403. derp.Transparency=i
  2404. end
  2405. derp.Transparency=1
  2406. end),hatp)
  2407. end
  2408. end
  2409. for _,v in pairs(m:children()) do
  2410. if v.className=="Part" then
  2411. coroutine.resume(coroutine.create(function()
  2412. for i=0,1,0.2 do
  2413. wait()
  2414. v.Transparency=i
  2415. end
  2416. v.Transparency=1
  2417. end))
  2418. end
  2419. end
  2420. end
  2421.  
  2422. function UnCloak()
  2423. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2424. Face.Parent=Head
  2425. cloaked=false
  2426. for _,v in pairs(Torso.Parent:children()) do
  2427. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2428. coroutine.resume(coroutine.create(function()
  2429. for i=0,1,0.1 do
  2430. wait()
  2431. v.Transparency=v.Transparency-0.1
  2432. end
  2433. v.Transparency=0
  2434. end))
  2435. end
  2436. if v.className=="Hat" then
  2437. hatp=v.Handle
  2438. coroutine.resume(coroutine.create(function(derp)
  2439. for i=0,1,0.1 do
  2440. wait()
  2441. derp.Transparency=derp.Transparency-0.1
  2442. end
  2443. derp.Transparency=0
  2444. end),hatp)
  2445. end
  2446. end
  2447. for _,v in pairs(m:children()) do
  2448. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2449. coroutine.resume(coroutine.create(function()
  2450. for i=0,1,0.1 do
  2451. wait()
  2452. v.Transparency=v.Transparency-0.1
  2453. end
  2454. v.Transparency=0
  2455. end))
  2456. v.Transparency=0
  2457. end
  2458. end
  2459. end
  2460.  
  2461. local origcolor = BrickColor.new("Pastel light blue")
  2462. ---- This section of explosions.
  2463.  
  2464. ----
  2465.  
  2466.  
  2467. function ring(type,pos,scale,value)
  2468. local type = type
  2469. local rng = Instance.new("Part", char)
  2470. rng.Anchored = true
  2471. rng.BrickColor = origcolor
  2472. rng.CanCollide = false
  2473. rng.FormFactor = 3
  2474. rng.Name = "Ring"
  2475. rng.Size = Vector3.new(1, 1, 1)
  2476. rng.Transparency = 0
  2477. rng.TopSurface = 0
  2478. rng.BottomSurface = 0
  2479. rng.CFrame = pos
  2480. local rngm = Instance.new("SpecialMesh", rng)
  2481. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2482. rngm.Scale = scale
  2483. local scaler2 = 1
  2484. if type == "Add" then
  2485. scaler2 = 1*value
  2486. elseif type == "Divide" then
  2487. scaler2 = 1/value
  2488. end
  2489. coroutine.resume(coroutine.create(function()
  2490. for i = 0,10,0.1 do
  2491. swait()
  2492. if type == "Add" then
  2493. scaler2 = scaler2 - 0.01*value
  2494. elseif type == "Divide" then
  2495. scaler2 = scaler2 - 0.01/value
  2496. end
  2497. rng.Transparency = rng.Transparency + 0.01
  2498. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2499. end
  2500. rng:Destroy()
  2501. end))
  2502. end
  2503.  
  2504.  
  2505. function wave(type,pos,scale,value)
  2506. local type = type
  2507. local rng = Instance.new("Part", char)
  2508. rng.Anchored = true
  2509. rng.BrickColor = origcolor
  2510. rng.CanCollide = false
  2511. rng.FormFactor = 3
  2512. rng.Name = "Ring"
  2513. rng.Size = Vector3.new(1, 1, 1)
  2514. rng.Transparency = 0
  2515. rng.TopSurface = 0
  2516. rng.BottomSurface = 0
  2517. rng.CFrame = pos
  2518. local rngm = Instance.new("SpecialMesh", rng)
  2519. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2520. rngm.Scale = scale
  2521. local scaler2 = 1
  2522. if type == "Add" then
  2523. scaler2 = 1*value
  2524. elseif type == "Divide" then
  2525. scaler2 = 1/value
  2526. end
  2527. coroutine.resume(coroutine.create(function()
  2528. for i = 0,10,0.1 do
  2529. swait()
  2530. if type == "Add" then
  2531. scaler2 = scaler2 - 0.01*value
  2532. elseif type == "Divide" then
  2533. scaler2 = scaler2 - 0.01/value
  2534. end
  2535. rng.Transparency = rng.Transparency + 0.01
  2536. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2537. end
  2538. rng:Destroy()
  2539. end))
  2540. end
  2541.  
  2542. function wind(type,pos,scale,value,speed)
  2543. local type = type
  2544. local rng = Instance.new("Part", char)
  2545. rng.Anchored = true
  2546. rng.BrickColor = origcolor
  2547. rng.CanCollide = false
  2548. rng.FormFactor = 3
  2549. rng.Name = "Ring"
  2550. rng.Size = Vector3.new(1, 1, 1)
  2551. rng.Transparency = 0
  2552. rng.TopSurface = 0
  2553. rng.BottomSurface = 0
  2554. rng.CFrame = pos
  2555. local rngm = Instance.new("SpecialMesh", rng)
  2556. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2557. rngm.Scale = scale
  2558. local scaler2 = 1
  2559. if type == "Add" then
  2560. scaler2 = 1*value
  2561. elseif type == "Divide" then
  2562. scaler2 = 1/value
  2563. end
  2564. coroutine.resume(coroutine.create(function()
  2565. for i = 0,10,0.1 do
  2566. swait()
  2567. if type == "Add" then
  2568. scaler2 = scaler2 - 0.01*value
  2569. elseif type == "Divide" then
  2570. scaler2 = scaler2 - 0.01/value
  2571. end
  2572. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2573. rng.Transparency = rng.Transparency + 0.01
  2574. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2575. end
  2576. rng:Destroy()
  2577. end))
  2578. end
  2579.  
  2580. function groundwind(type,pos,scale,value,speed)
  2581. local type = type
  2582. local rng = Instance.new("Part", char)
  2583. rng.Anchored = true
  2584. rng.BrickColor = origcolor
  2585. rng.CanCollide = false
  2586. rng.FormFactor = 3
  2587. rng.Name = "Ring"
  2588. rng.Size = Vector3.new(1, 1, 1)
  2589. rng.Transparency = 0
  2590. rng.TopSurface = 0
  2591. rng.BottomSurface = 0
  2592. rng.CFrame = pos
  2593. local rngm = Instance.new("SpecialMesh", rng)
  2594. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2595. rngm.Scale = scale
  2596. local scaler2 = 1
  2597. if type == "Add" then
  2598. scaler2 = 1*value
  2599. elseif type == "Divide" then
  2600. scaler2 = 1/value
  2601. end
  2602. coroutine.resume(coroutine.create(function()
  2603. for i = 0,10,0.1 do
  2604. swait()
  2605. if type == "Add" then
  2606. scaler2 = scaler2 - 0.01*value
  2607. elseif type == "Divide" then
  2608. scaler2 = scaler2 - 0.01/value
  2609. end
  2610. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2611. rng.Transparency = rng.Transparency + 0.01
  2612. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2613. end
  2614. rng:Destroy()
  2615. end))
  2616. end
  2617.  
  2618. function CameraManager()
  2619. if TwoD and not CamInterrupt then
  2620. if Humanoid.Health > 0 then
  2621. Camera.CameraSubject = Humanoid
  2622. Camera.CameraType = "Scriptable"
  2623. Humanoid.AutoRotate = false
  2624. if Booleans.GyroUse then
  2625. Directer.MaxTorque = Vec3(0, huge, 0)
  2626. else
  2627. Directer.MaxTorque = Vec3(0, 0, 0)
  2628. end
  2629. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2630. if Booleans.CamFollow then
  2631. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2632. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2633. else
  2634. CPart.Position = RootPart.Position
  2635. end
  2636. else
  2637. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2638. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2639. end
  2640. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2641. else
  2642. Camera.CameraSubject = Humanoid
  2643. Camera.CameraType = "Custom"
  2644. Controller.Disabled = false
  2645. end
  2646. end
  2647. end
  2648.  
  2649. function ring(type,pos,scale,value)
  2650. local type = type
  2651. local rng = Instance.new("Part", char)
  2652. rng.Anchored = true
  2653. rng.BrickColor = origcolor
  2654. rng.CanCollide = false
  2655. rng.FormFactor = 3
  2656. rng.Name = "Ring"
  2657. rng.Size = Vector3.new(1, 1, 1)
  2658. rng.Transparency = 0
  2659. rng.TopSurface = 0
  2660. rng.BottomSurface = 0
  2661. rng.CFrame = pos
  2662. local rngm = Instance.new("SpecialMesh", rng)
  2663. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2664. rngm.Scale = scale
  2665. local scaler2 = 1
  2666. if type == "Add" then
  2667. scaler2 = 1*value
  2668. elseif type == "Divide" then
  2669. scaler2 = 1/value
  2670. end
  2671. coroutine.resume(coroutine.create(function()
  2672. for i = 0,10,0.1 do
  2673. swait()
  2674. if type == "Add" then
  2675. scaler2 = scaler2 - 0.01*value
  2676. elseif type == "Divide" then
  2677. scaler2 = scaler2 - 0.01/value
  2678. end
  2679. rng.Transparency = rng.Transparency + 0.01
  2680. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2681. end
  2682. rng:Destroy()
  2683. end))
  2684. end
  2685.  
  2686.  
  2687. function wave(type,pos,scale,value)
  2688. local type = type
  2689. local rng = Instance.new("Part", char)
  2690. rng.Anchored = true
  2691. rng.BrickColor = origcolor
  2692. rng.CanCollide = false
  2693. rng.FormFactor = 3
  2694. rng.Name = "Ring"
  2695. rng.Size = Vector3.new(1, 1, 1)
  2696. rng.Transparency = 0
  2697. rng.TopSurface = 0
  2698. rng.BottomSurface = 0
  2699. rng.CFrame = pos
  2700. local rngm = Instance.new("SpecialMesh", rng)
  2701. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2702. rngm.Scale = scale
  2703. local scaler2 = 1
  2704. if type == "Add" then
  2705. scaler2 = 1*value
  2706. elseif type == "Divide" then
  2707. scaler2 = 1/value
  2708. end
  2709. coroutine.resume(coroutine.create(function()
  2710. for i = 0,10,0.1 do
  2711. swait()
  2712. if type == "Add" then
  2713. scaler2 = scaler2 - 0.01*value
  2714. elseif type == "Divide" then
  2715. scaler2 = scaler2 - 0.01/value
  2716. end
  2717. rng.Transparency = rng.Transparency + 0.01
  2718. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2719. end
  2720. rng:Destroy()
  2721. end))
  2722. end
  2723.  
  2724. function sphere(bonuspeed,type,pos,scale,value,color)
  2725. local type = type
  2726. local rng = Instance.new("Part", char)
  2727. rng.Anchored = true
  2728. if ModeOfGlitch ~= 9 then
  2729. rng.BrickColor = color
  2730. elseif ModeOfGlitch == 9 then
  2731. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2732. end
  2733. rng.CanCollide = false
  2734. rng.FormFactor = 3
  2735. rng.Name = "Ring"
  2736. rng.Material = "Neon"
  2737. rng.Size = Vector3.new(1, 1, 1)
  2738. rng.Transparency = 0
  2739. rng.TopSurface = 0
  2740. rng.BottomSurface = 0
  2741. rng.CFrame = pos
  2742. local rngm = Instance.new("SpecialMesh", rng)
  2743. rngm.MeshType = "Sphere"
  2744. rngm.Scale = scale
  2745. if rainbowmode == true then
  2746. rng.Color = Color3.new(r/255,g/255,b/255)
  2747. end
  2748. if ModeOfGlitch == 9 then
  2749. coroutine.resume(coroutine.create(function()
  2750. while true do
  2751. swait()
  2752. if rng.Parent ~= nil then
  2753. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2754. else
  2755. break
  2756. end
  2757. end
  2758. end))
  2759. end
  2760. local scaler2 = 1
  2761. if type == "Add" then
  2762. scaler2 = 1*value
  2763. elseif type == "Divide" then
  2764. scaler2 = 1/value
  2765. end
  2766. coroutine.resume(coroutine.create(function()
  2767. for i = 0,10/bonuspeed,0.1 do
  2768. swait()
  2769. if rainbowmode == true then
  2770. rng.Color = Color3.new(r/255,g/255,b/255)
  2771. end
  2772. if type == "Add" then
  2773. scaler2 = scaler2 - 0.01*value/bonuspeed
  2774. elseif type == "Divide" then
  2775. scaler2 = scaler2 - 0.01/value*bonuspeed
  2776. end
  2777. if chaosmode == true then
  2778. rng.BrickColor = BrickColor.random()
  2779. end
  2780. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2781. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2782. end
  2783. rng:Destroy()
  2784. end))
  2785. end
  2786.  
  2787. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2788. local type = type
  2789. local rng = Instance.new("Part", char)
  2790. rng.Anchored = true
  2791. if ModeOfGlitch ~= 9 then
  2792. rng.BrickColor = color
  2793. elseif ModeOfGlitch == 9 then
  2794. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2795. end
  2796. rng.CanCollide = false
  2797. rng.FormFactor = 3
  2798. rng.Name = "Ring"
  2799. rng.Material = "Neon"
  2800. rng.Size = Vector3.new(1, 1, 1)
  2801. rng.Transparency = 0
  2802. rng.TopSurface = 0
  2803. rng.BottomSurface = 0
  2804. rng.CFrame = pos
  2805. local rngm = Instance.new("SpecialMesh", rng)
  2806. rngm.MeshType = "Sphere"
  2807. rngm.Scale = scale
  2808. local scaler2 = 1
  2809. local scaler2b = 1
  2810. local scaler2c = 1
  2811. if type == "Add" then
  2812. scaler2 = 1*value
  2813. scaler2b = 1*value2
  2814. scaler2c = 1*value3
  2815. elseif type == "Divide" then
  2816. scaler2 = 1/value
  2817. scaler2b = 1/value2
  2818. scaler2c = 1/value3
  2819. end
  2820. if ModeOfGlitch == 9 then
  2821. coroutine.resume(coroutine.create(function()
  2822. while true do
  2823. swait()
  2824. if rng.Parent ~= nil then
  2825. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2826. else
  2827. break
  2828. end
  2829. end
  2830. end))
  2831. end
  2832. coroutine.resume(coroutine.create(function()
  2833. for i = 0,10/bonuspeed,0.1 do
  2834. swait()
  2835. if type == "Add" then
  2836. scaler2 = scaler2 - 0.01*value/bonuspeed
  2837. scaler2b = scaler2b - 0.01*value/bonuspeed
  2838. scaler2c = scaler2c - 0.01*value/bonuspeed
  2839. elseif type == "Divide" then
  2840. scaler2 = scaler2 - 0.01/value*bonuspeed
  2841. scaler2b = scaler2b - 0.01/value*bonuspeed
  2842. scaler2c = scaler2c - 0.01/value*bonuspeed
  2843. end
  2844. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2845. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2846. end
  2847. rng:Destroy()
  2848. end))
  2849. end
  2850.  
  2851. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2852. local type = type
  2853. local rotenable = rotatingop
  2854. local rng = Instance.new("Part", char)
  2855. rng.Anchored = true
  2856. rng.BrickColor = color
  2857. rng.CanCollide = false
  2858. rng.FormFactor = 3
  2859. rng.Name = "Ring"
  2860. rng.Material = "Neon"
  2861. rng.Size = Vector3.new(1, 1, 1)
  2862. rng.Transparency = 0
  2863. if typeoftrans == "In" then
  2864. rng.Transparency = 1
  2865. end
  2866. rng.TopSurface = 0
  2867. rng.BottomSurface = 0
  2868. rng.CFrame = pos
  2869. local rngm = Instance.new("SpecialMesh", rng)
  2870. rngm.MeshType = "FileMesh"
  2871. if typeofshape == "Normal" then
  2872. rngm.MeshId = "rbxassetid://662586858"
  2873. elseif typeofshape == "Round" then
  2874. rngm.MeshId = "rbxassetid://662585058"
  2875. end
  2876. rngm.Scale = scale
  2877. local scaler2 = 1/10
  2878. if type == "Add" then
  2879. scaler2 = 1*value/10
  2880. elseif type == "Divide" then
  2881. scaler2 = 1/value/10
  2882. end
  2883. local randomrot = math.random(1,2)
  2884. coroutine.resume(coroutine.create(function()
  2885. for i = 0,10/bonuspeed,0.1 do
  2886. swait()
  2887. if type == "Add" then
  2888. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2889. elseif type == "Divide" then
  2890. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2891. end
  2892. if rotenable == true then
  2893. if randomrot == 1 then
  2894. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2895. elseif randomrot == 2 then
  2896. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2897. end
  2898. end
  2899. if typeoftrans == "Out" then
  2900. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2901. elseif typeoftrans == "In" then
  2902. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2903. end
  2904. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2905. end
  2906. rng:Destroy()
  2907. end))
  2908. end
  2909.  
  2910. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2911. local type = type
  2912. local rng = Instance.new("Part", char)
  2913. rng.Anchored = true
  2914. rng.BrickColor = color
  2915. rng.CanCollide = false
  2916. rng.FormFactor = 3
  2917. rng.Name = "Ring"
  2918. rng.Material = "Neon"
  2919. rng.Size = Vector3.new(1, 1, 1)
  2920. rng.Transparency = 0
  2921. rng.TopSurface = 0
  2922. rng.BottomSurface = 0
  2923. rng.CFrame = pos
  2924. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2925. local rngm = Instance.new("SpecialMesh", rng)
  2926. rngm.MeshType = "Brick"
  2927. rngm.Scale = vt(x1,y1,z1)
  2928. if rainbowmode == true then
  2929. rng.Color = Color3.new(r/255,g/255,b/255)
  2930. end
  2931. local scaler2 = 1
  2932. local speeder = FastSpeed/10
  2933. if type == "Add" then
  2934. scaler2 = 1*value
  2935. elseif type == "Divide" then
  2936. scaler2 = 1/value
  2937. end
  2938. coroutine.resume(coroutine.create(function()
  2939. for i = 0,10/bonuspeed,0.1 do
  2940. swait()
  2941. if rainbowmode == true then
  2942. rng.Color = Color3.new(r/255,g/255,b/255)
  2943. end
  2944. if type == "Add" then
  2945. scaler2 = scaler2 - 0.01*value/bonuspeed
  2946. elseif type == "Divide" then
  2947. scaler2 = scaler2 - 0.01/value*bonuspeed
  2948. end
  2949. if chaosmode == true then
  2950. rng.BrickColor = BrickColor.random()
  2951. end
  2952. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2953. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2954. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2955. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2956. end
  2957. rng:Destroy()
  2958. end))
  2959. end
  2960.  
  2961. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2962. local type = type
  2963. local rng = Instance.new("Part", char)
  2964. rng.Anchored = true
  2965. rng.BrickColor = color
  2966. rng.CanCollide = false
  2967. rng.FormFactor = 3
  2968. rng.Name = "Ring"
  2969. rng.Material = "Neon"
  2970. rng.Size = Vector3.new(1, 1, 1)
  2971. rng.Transparency = 0
  2972. rng.TopSurface = 0
  2973. rng.BottomSurface = 0
  2974. rng.CFrame = pos
  2975. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2976. local rngm = Instance.new("SpecialMesh", rng)
  2977. rngm.MeshType = "Brick"
  2978. rngm.Scale = vt(x1,y1,z1)
  2979. if rainbowmode == true then
  2980. rng.Color = Color3.new(r/255,g/255,b/255)
  2981. end
  2982. local scaler2 = 1
  2983. local speeder = FastSpeed/10
  2984. if type == "Add" then
  2985. scaler2 = 1*value
  2986. elseif type == "Divide" then
  2987. scaler2 = 1/value
  2988. end
  2989. coroutine.resume(coroutine.create(function()
  2990. for i = 0,10/bonuspeed,0.1 do
  2991. swait()
  2992. if rainbowmode == true then
  2993. rng.Color = Color3.new(r/255,g/255,b/255)
  2994. end
  2995. if type == "Add" then
  2996. scaler2 = scaler2 - 0.01*value/bonuspeed
  2997. elseif type == "Divide" then
  2998. scaler2 = scaler2 - 0.01/value*bonuspeed
  2999. end
  3000. if chaosmode == true then
  3001. rng.BrickColor = BrickColor.random()
  3002. end
  3003. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3004. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3005. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3006. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3007. end
  3008. rng:Destroy()
  3009. end))
  3010. end
  3011.  
  3012. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3013. local type = type
  3014. local rng = Instance.new("Part", char)
  3015. rng.Anchored = true
  3016. rng.BrickColor = color
  3017. rng.CanCollide = false
  3018. rng.FormFactor = 3
  3019. rng.Name = "Ring"
  3020. rng.Material = "Neon"
  3021. rng.Size = Vector3.new(1, 1, 1)
  3022. rng.Transparency = 0
  3023. rng.TopSurface = 0
  3024. rng.BottomSurface = 0
  3025. rng.CFrame = pos
  3026. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3027. local rngm = Instance.new("SpecialMesh", rng)
  3028. rngm.MeshType = "Brick"
  3029. rngm.Scale = vt(x1,y1,z1)
  3030. if rainbowmode == true then
  3031. rng.Color = Color3.new(r/255,g/255,b/255)
  3032. end
  3033. local scaler2 = 0
  3034. local speeder = FastSpeed/10
  3035. if type == "Add" then
  3036. scaler2 = 1*value
  3037. elseif type == "Divide" then
  3038. scaler2 = 1/value
  3039. end
  3040. coroutine.resume(coroutine.create(function()
  3041. for i = 0,10/bonuspeed,0.1 do
  3042. swait()
  3043. if rainbowmode == true then
  3044. rng.Color = Color3.new(r/255,g/255,b/255)
  3045. end
  3046. if type == "Add" then
  3047. scaler2 = scaler2 - 0.01*value/bonuspeed
  3048. elseif type == "Divide" then
  3049. scaler2 = scaler2 - 0.01/value*bonuspeed
  3050. end
  3051. if chaosmode == true then
  3052. rng.BrickColor = BrickColor.random()
  3053. end
  3054. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3055. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3056. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3057. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3058. end
  3059. rng:Destroy()
  3060. end))
  3061. end
  3062.  
  3063. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3064. local type = type
  3065. local rng = Instance.new("Part", char)
  3066. rng.Anchored = true
  3067. rng.BrickColor = color
  3068. rng.Color = color3
  3069. rng.CanCollide = false
  3070. rng.FormFactor = 3
  3071. rng.Name = "Ring"
  3072. rng.Material = "Neon"
  3073. rng.Size = Vector3.new(1, 1, 1)
  3074. rng.Transparency = 0
  3075. rng.TopSurface = 0
  3076. rng.BottomSurface = 0
  3077. rng.CFrame = pos
  3078. local rngm = Instance.new("SpecialMesh", rng)
  3079. rngm.MeshType = "Brick"
  3080. rngm.Scale = scale
  3081. local scaler2 = 1
  3082. local scaler2b = 1
  3083. local scaler2c = 1
  3084. if type == "Add" then
  3085. scaler2 = 1*value
  3086. scaler2b = 1*value2
  3087. scaler2c = 1*value3
  3088. elseif type == "Divide" then
  3089. scaler2 = 1/value
  3090. scaler2b = 1/value2
  3091. scaler2c = 1/value3
  3092. end
  3093. coroutine.resume(coroutine.create(function()
  3094. for i = 0,10/bonuspeed,0.1 do
  3095. swait()
  3096. if type == "Add" then
  3097. scaler2 = scaler2 - 0.01*value/bonuspeed
  3098. scaler2b = scaler2b - 0.01*value/bonuspeed
  3099. scaler2c = scaler2c - 0.01*value/bonuspeed
  3100. elseif type == "Divide" then
  3101. scaler2 = scaler2 - 0.01/value*bonuspeed
  3102. scaler2b = scaler2b - 0.01/value*bonuspeed
  3103. scaler2c = scaler2c - 0.01/value*bonuspeed
  3104. end
  3105. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3106. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3107. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3108. end
  3109. rng:Destroy()
  3110. end))
  3111. end
  3112.  
  3113. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3114. local type = type
  3115. local rng = Instance.new("Part", char)
  3116. rng.Anchored = true
  3117. if ModeOfGlitch ~= 9 then
  3118. rng.BrickColor = color
  3119. elseif ModeOfGlitch == 9 then
  3120. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3121. end
  3122. rng.CanCollide = false
  3123. rng.FormFactor = 3
  3124. rng.Name = "Ring"
  3125. rng.Material = "Neon"
  3126. rng.Size = Vector3.new(1, 1, 1)
  3127. rng.Transparency = 0
  3128. rng.TopSurface = 0
  3129. rng.BottomSurface = 0
  3130. rng.CFrame = pos
  3131. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3132. local rngm = Instance.new("SpecialMesh", rng)
  3133. rngm.MeshType = "Sphere"
  3134. rngm.Scale = vt(x1,y1,z1)
  3135. if rainbowmode == true then
  3136. rng.Color = Color3.new(r/255,g/255,b/255)
  3137. end
  3138. if ModeOfGlitch == 9 then
  3139. coroutine.resume(coroutine.create(function()
  3140. while true do
  3141. swait()
  3142. if rng.Parent ~= nil then
  3143. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3144. else
  3145. break
  3146. end
  3147. end
  3148. end))
  3149. end
  3150. local scaler2 = 1
  3151. local speeder = FastSpeed
  3152. if type == "Add" then
  3153. scaler2 = 1*value
  3154. elseif type == "Divide" then
  3155. scaler2 = 1/value
  3156. end
  3157. coroutine.resume(coroutine.create(function()
  3158. for i = 0,10/bonuspeed,0.1 do
  3159. swait()
  3160. if rainbowmode == true then
  3161. rng.Color = Color3.new(r/255,g/255,b/255)
  3162. end
  3163. if type == "Add" then
  3164. scaler2 = scaler2 - 0.01*value/bonuspeed
  3165. elseif type == "Divide" then
  3166. scaler2 = scaler2 - 0.01/value*bonuspeed
  3167. end
  3168. if chaosmode == true then
  3169. rng.BrickColor = BrickColor.random()
  3170. end
  3171. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3172. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3173. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3174. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3175. end
  3176. rng:Destroy()
  3177. end))
  3178. end
  3179.  
  3180.  
  3181. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3182. local type = type
  3183. local rng = Instance.new("Part", char)
  3184. rng.Anchored = true
  3185. if ModeOfGlitch ~= 9 then
  3186. rng.BrickColor = color
  3187. elseif ModeOfGlitch == 9 then
  3188. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3189. end
  3190. rng.CanCollide = false
  3191. rng.FormFactor = 3
  3192. rng.Name = "Ring"
  3193. rng.Material = "Neon"
  3194. rng.Size = Vector3.new(1, 1, 1)
  3195. rng.Transparency = 1
  3196. rng.TopSurface = 0
  3197. rng.BottomSurface = 0
  3198. rng.CFrame = pos
  3199. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3200. local rngm = Instance.new("SpecialMesh", rng)
  3201. rngm.MeshType = "Sphere"
  3202. rngm.Scale = vt(x1,y1,z1)
  3203. if rainbowmode == true then
  3204. rng.Color = Color3.new(r/255,g/255,b/255)
  3205. end
  3206. if ModeOfGlitch == 9 then
  3207. coroutine.resume(coroutine.create(function()
  3208. while true do
  3209. swait()
  3210. if rng.Parent ~= nil then
  3211. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3212. else
  3213. break
  3214. end
  3215. end
  3216. end))
  3217. end
  3218. local scaler2 = 1
  3219. local speeder = FastSpeed
  3220. if type == "Add" then
  3221. scaler2 = 1*value
  3222. elseif type == "Divide" then
  3223. scaler2 = 1/value
  3224. end
  3225. coroutine.resume(coroutine.create(function()
  3226. for i = 0,10/bonuspeed,0.1 do
  3227. swait()
  3228. if rainbowmode == true then
  3229. rng.Color = Color3.new(r/255,g/255,b/255)
  3230. end
  3231. if type == "Add" then
  3232. scaler2 = scaler2 - 0.01*value/bonuspeed
  3233. elseif type == "Divide" then
  3234. scaler2 = scaler2 - 0.01/value*bonuspeed
  3235. end
  3236. if chaosmode == true then
  3237. rng.BrickColor = BrickColor.random()
  3238. end
  3239. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3240. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3241. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3242. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3243. end
  3244. rng:Destroy()
  3245. end))
  3246. end
  3247.  
  3248. function dmg(dude)
  3249. if dude.Name ~= Character then
  3250. local keptcolor = MAINRUINCOLOR
  3251. local bgf = Instance.new("BodyGyro",dude.Head)
  3252. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3253. --[[local val = Instance.new("BoolValue",dude)
  3254. val.Name = "IsHit"]]--
  3255. local ds = coroutine.wrap(function()
  3256. dude:WaitForChild("Head"):BreakJoints()
  3257. for i, v in pairs(dude:GetChildren()) do
  3258. if v:IsA("Part") or v:IsA("MeshPart") then
  3259. v.Name = "DEMINISHED"
  3260. end
  3261. end
  3262. wait(0.5)
  3263. targetted = nil
  3264. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3265. coroutine.resume(coroutine.create(function()
  3266. for i, v in pairs(dude:GetChildren()) do
  3267. if v:IsA("Accessory") then
  3268. v:Destroy()
  3269. end
  3270. if v:IsA("Humanoid") then
  3271. v:Destroy()
  3272. end
  3273. if v:IsA("CharacterMesh") then
  3274. v:Destroy()
  3275. end
  3276. if v:IsA("Model") then
  3277. v:Destroy()
  3278. end
  3279. if v:IsA("Part") or v:IsA("MeshPart") then
  3280. for x, o in pairs(v:GetChildren()) do
  3281. if o:IsA("Decal") then
  3282. o:Destroy()
  3283. end
  3284. end
  3285. coroutine.resume(coroutine.create(function()
  3286. v.Material = "Neon"
  3287. v.CanCollide = false
  3288. v.Anchored = false
  3289. local bld = Instance.new("ParticleEmitter",v)
  3290. bld.LightEmission = 0.75
  3291. bld.Texture = "rbxassetid://363275192" ---284205403
  3292. bld.Color = ColorSequence.new(keptcolor.Color)
  3293. bld.Rate = 500
  3294. bld.Lifetime = NumberRange.new(1)
  3295. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3296. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3297. bld.Speed = NumberRange.new(2,5)
  3298. bld.VelocitySpread = 50000
  3299. bld.Rotation = NumberRange.new(-500,500)
  3300. bld.RotSpeed = NumberRange.new(-500,500)
  3301. local sbs = Instance.new("BodyPosition", v)
  3302. sbs.P = 3000
  3303. sbs.D = 1000
  3304. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3305. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3306. v.Color = keptcolor.Color
  3307. coroutine.resume(coroutine.create(function()
  3308. for i = 0, 49 do
  3309. swait(1)
  3310. v:BreakJoints()
  3311. v.Transparency = v.Transparency + 0.02
  3312. end
  3313. v:BreakJoints()
  3314. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3315. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3316. bld.Speed = NumberRange.new(10,25)
  3317. bld.Drag = 5
  3318. bld.Acceleration = vt(0,2,0)
  3319. wait(0.5)
  3320. bld.Enabled = false
  3321. wait(8)
  3322. v:Destroy()
  3323. dude:Destroy()
  3324. end))
  3325. end))
  3326. end
  3327. end
  3328. end))
  3329. end)
  3330. ds()
  3331. end
  3332. end
  3333.  
  3334.  
  3335. function FindNearestHead(Position, Distance, SinglePlayer)
  3336. if SinglePlayer then
  3337. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3338. end
  3339. local List = {}
  3340. for i, v in pairs(workspace:GetChildren()) do
  3341. if v:IsA("Model") then
  3342. if v:findFirstChild("Head") then
  3343. if v ~= Character then
  3344. if (v.Head.Position - Position).magnitude <= Distance then
  3345. table.insert(List, v)
  3346. end
  3347. end
  3348. end
  3349. end
  3350. end
  3351. return List
  3352. end
  3353.  
  3354. function FaceMouse()
  3355. Cam = workspace.CurrentCamera
  3356. return {
  3357. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3358. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3359. }
  3360. end
  3361.  
  3362. function FaceMouse2()
  3363. Cam = workspace.CurrentCamera
  3364. return {
  3365. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3366. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3367. }
  3368. end
  3369.  
  3370. local ModeOfGlitch = 1
  3371. -- Functions are ready.
  3372. local storehumanoidWS = 16
  3373.  
  3374. function CorruptBlink()
  3375. for i = 0, 14 do
  3376. 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)
  3377. end
  3378. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3379. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3380. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3381. CameraEnshaking(2,10)
  3382. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3383. if v:FindFirstChild('Head') then
  3384. dmg(v)
  3385. end
  3386. end
  3387. for i = 0, 14 do
  3388. 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)
  3389. end
  3390. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3391. end
  3392. function PureBomb()
  3393. attack = true
  3394. hum.WalkSpeed = 0
  3395. local orb = Instance.new("Part", char)
  3396. orb.Anchored = true
  3397. orb.BrickColor = BrickColor.new("Toothpaste")
  3398. orb.CanCollide = false
  3399. orb.FormFactor = 3
  3400. orb.Name = "Ring"
  3401. orb.Material = "Neon"
  3402. orb.Size = Vector3.new(1, 1, 1)
  3403. orb.Transparency = 0
  3404. orb.TopSurface = 0
  3405. orb.BottomSurface = 0
  3406. local orbm = Instance.new("SpecialMesh", orb)
  3407. orbm.MeshType = "Sphere"
  3408. orbm.Name = "SizeMesh"
  3409. orbm.Scale = vt(0,0,0)
  3410. local scaled = 0.1
  3411. local posid = 0
  3412. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3413. for i = 0, 5, 0.1 do
  3414. swait()
  3415. scaled = scaled - 0.001
  3416. posid = posid - scaled
  3417. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3418. local scaled = 0.1
  3419. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3420. 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)
  3421. 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)
  3422. 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)
  3423. 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)
  3424. 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)
  3425. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3426. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3427. 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)
  3428. end
  3429. for i = 0, 2, 0.1 do
  3430. swait()
  3431. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3432. 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)
  3433. 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)
  3434. 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)
  3435. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3436. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3437. 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)
  3438. end
  3439. coroutine.resume(coroutine.create(function()
  3440. orb.Anchored = false
  3441. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3442. local a = Instance.new("Part",workspace)
  3443. a.Name = "Direction"
  3444. a.Anchored = true
  3445. a.BrickColor = bc("Bright red")
  3446. a.Material = "Neon"
  3447. a.Transparency = 1
  3448. a.CanCollide = false
  3449. local ray = Ray.new(
  3450. orb.CFrame.p, -- origin
  3451. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3452. )
  3453. local ignore = orb
  3454. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3455. a.BottomSurface = 10
  3456. a.TopSurface = 10
  3457. local distance = (orb.CFrame.p - position).magnitude
  3458. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3459. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3460. orb.CFrame = a.CFrame
  3461. a:Destroy()
  3462. local bv = Instance.new("BodyVelocity")
  3463. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3464. bv.velocity = orb.CFrame.lookVector*125
  3465. bv.Parent = orb
  3466. local hitted = false
  3467. game:GetService("Debris"):AddItem(orb, 15)
  3468. wait()
  3469. local hit =orb.Touched:connect(function(hit)
  3470. if hitted == false then
  3471. hitted = true
  3472. CameraEnshaking(10,2.5)
  3473. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3474. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3475. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3476. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3477. for i = 0, 49 do
  3478. 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)
  3479. end
  3480. for i = 0, 9 do
  3481. 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)
  3482. 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)
  3483. end
  3484. orb.Anchored = true
  3485. orb.Transparency = 1
  3486. wait(8)
  3487. orb:Destroy()
  3488. end
  3489. end)
  3490. end))
  3491. for i = 0, 1, 0.1 do
  3492. swait()
  3493. 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)
  3494. 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)
  3495. 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)
  3496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3497. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3498. 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)
  3499. end
  3500. hum.WalkSpeed = storehumanoidWS
  3501. attack = false
  3502. end
  3503.  
  3504. function BanishingOrb()
  3505. attack = true
  3506. hum.WalkSpeed = 0
  3507. local radm = math.random(1,3)
  3508. if radm == 1 then
  3509. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3510. elseif radm == 2 then
  3511. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3512. elseif radm == 3 then
  3513. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3514. end
  3515. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3516. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3517. local orb = Instance.new("Part", char)
  3518. orb.Anchored = true
  3519. orb.BrickColor = BrickColor.new("Lime green")
  3520. orb.CanCollide = false
  3521. orb.FormFactor = 3
  3522. orb.Name = "Ring"
  3523. orb.Material = "Neon"
  3524. orb.Size = Vector3.new(1, 1, 1)
  3525. orb.Transparency = 0
  3526. orb.TopSurface = 0
  3527. orb.BottomSurface = 0
  3528. local orbm = Instance.new("SpecialMesh", orb)
  3529. orbm.MeshType = "Sphere"
  3530. orbm.Name = "SizeMesh"
  3531. orbm.Scale = vt(0,0,0)
  3532. local scaled = 0.1
  3533. local posid = 0
  3534. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3535. for i = 0, 5, 0.1 do
  3536. swait()
  3537. scaled = scaled - 0.001
  3538. posid = posid - scaled
  3539. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3540. local scaled = 0.1
  3541. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3542. 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)
  3543. 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)
  3544. 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)
  3545. 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)
  3546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3547. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3548. 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)
  3549. end
  3550. for i = 0, 2, 0.1 do
  3551. swait()
  3552. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3553. 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)
  3554. 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)
  3555. 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)
  3556. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3557. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3558. 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)
  3559. end
  3560. coroutine.resume(coroutine.create(function()
  3561. orb.Anchored = false
  3562. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3563. local a = Instance.new("Part",workspace)
  3564. a.Name = "Direction"
  3565. a.Anchored = true
  3566. a.BrickColor = bc("Lime green")
  3567. a.Material = "Neon"
  3568. a.Transparency = 1
  3569. a.CanCollide = false
  3570. local ray = Ray.new(
  3571. orb.CFrame.p, -- origin
  3572. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3573. )
  3574. local ignore = orb
  3575. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3576. a.BottomSurface = 10
  3577. a.TopSurface = 10
  3578. local distance = (orb.CFrame.p - position).magnitude
  3579. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3580. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3581. orb.CFrame = a.CFrame
  3582. a:Destroy()
  3583. local bv = Instance.new("BodyVelocity")
  3584. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3585. bv.velocity = orb.CFrame.lookVector*0
  3586. bv.Parent = orb
  3587. local hitted = false
  3588. local rate = 0
  3589. coroutine.resume(coroutine.create(function()
  3590. for i = 0, 24 do
  3591. wait(0.1)
  3592. rate = rate + 0.25
  3593. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3594. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3595. if v:FindFirstChild('Head') then
  3596. dmg(v)
  3597. end
  3598. end
  3599. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3600. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3601. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3602. end
  3603. orb.Anchored = true
  3604. orb.Transparency = 1
  3605. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3606. if v:FindFirstChild('Head') then
  3607. dmg(v)
  3608. end
  3609. end
  3610. local eff = Instance.new("ParticleEmitter",orb)
  3611. eff.Texture = "rbxassetid://296874871"
  3612. eff.LightEmission = 0.95
  3613. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3614. eff.Rate = 1000000000
  3615. eff.Lifetime = NumberRange.new(3)
  3616. 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)})
  3617. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3618. eff.Speed = NumberRange.new(30)
  3619. eff.Acceleration = vt(0,-15,0)
  3620. eff.Rotation = NumberRange.new(-500,500)
  3621. eff.VelocitySpread = 100000
  3622. eff.RotSpeed = NumberRange.new(-500,500)
  3623. coroutine.resume(coroutine.create(function()
  3624. wait(0.6)
  3625. eff.Enabled = false
  3626. end))
  3627. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3628. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3629. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3630. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3631. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3632. game:GetService("Debris"):AddItem(orb, 15)
  3633. end))
  3634. end))
  3635. for i = 0, 1, 0.1 do
  3636. swait()
  3637. 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)
  3638. 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)
  3639. 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)
  3640. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3641. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3642. 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)
  3643. end
  3644. hum.WalkSpeed = storehumanoidWS
  3645. attack = false
  3646. end
  3647.  
  3648.  
  3649. function ChaosGroundStrike()
  3650. attack = true
  3651. for i = 0, 2, 0.1 do
  3652. swait()
  3653. 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)
  3654. 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)
  3655. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3658. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3659. end
  3660. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3661. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3662. CameraEnshaking(4,12)
  3663. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3664. if v:FindFirstChild('Head') then
  3665. dmg(v)
  3666. end
  3667. end
  3668. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3669. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3670. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3671. for i = 0, 2, 0.1 do
  3672. swait()
  3673. 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)
  3674. 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)
  3675. 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)
  3676. 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)
  3677. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3678. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3679. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3680. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3681. end
  3682. attack = false
  3683. end
  3684.  
  3685.  
  3686.  
  3687. function Starfall()
  3688. attack = true
  3689. hum.WalkSpeed = 0
  3690. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3691. for i = 0, 5, 0.1 do
  3692. swait()
  3693. 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)
  3694. 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)
  3695. 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)
  3696. 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)
  3697. 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)
  3698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3699. 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)
  3700. 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)
  3701. end
  3702. local Overed = false
  3703. CameraEnshaking(2,20)
  3704. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3705. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3706. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3707. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3708. local orb = Instance.new("Part", char)
  3709. orb.Anchored = true
  3710. orb.BrickColor = BrickColor.new("Toothpaste")
  3711. orb.CanCollide = false
  3712. orb.FormFactor = 3
  3713. orb.Name = "Remenant"
  3714. orb.Material = "Neon"
  3715. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3716. orb.Size = Vector3.new(1, 1, 1)
  3717. orb.Transparency = 1
  3718. orb.TopSurface = 0
  3719. orb.BottomSurface = 0
  3720. hum.WalkSpeed = storehumanoidWS
  3721. coroutine.resume(coroutine.create(function()
  3722. for i = 0, 9 do
  3723. swait(10)
  3724. local lb = Instance.new("Part")
  3725. lb.Color = MAINRUINCOLOR.Color
  3726. lb.CanCollide = false
  3727. lb.Material = "Neon"
  3728. lb.Anchored = true
  3729. lb.TopSurface = 0
  3730. lb.BottomSurface = 0
  3731. lb.Transparency = 0
  3732. lb.Size = vt(1,1,1)
  3733. 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)))
  3734. lb.Anchored = false
  3735. lb.Parent = char
  3736. local thingery = Instance.new("SpecialMesh",lb)
  3737. thingery.MeshType = "Sphere"
  3738. thingery.Scale = vt(20,20,20)
  3739. game:GetService("Debris"):AddItem(lb, 10)
  3740. local bv = Instance.new("BodyVelocity")
  3741. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3742. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3743. bv.Parent = lb
  3744. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3745. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3746. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3747. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3748. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3749. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3750. local hitted = false
  3751. coroutine.resume(coroutine.create(function()
  3752. while true do
  3753. swait(1)
  3754. if lb.Parent ~= nil and hitted == false then
  3755. 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)
  3756. elseif lb.Parent == nil then
  3757. break
  3758. end
  3759. end
  3760. end))
  3761.  
  3762. game:GetService("Debris"):AddItem(a, 0.1)
  3763.  
  3764. coroutine.resume(coroutine.create(function()
  3765. swait(1)
  3766. lb.Touched:connect(function(hit)
  3767. if hitted == false then
  3768. hitted = true
  3769. lb.Transparency = 1
  3770. lb.Anchored = true
  3771. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3772. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3773. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3774. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3775. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3776. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3777. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3778. CameraEnshaking(1,5)
  3779. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3780. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3781. for i = 0, 9 do
  3782. 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)
  3783. end
  3784. for i = 0, 49 do
  3785. swait()
  3786. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3787. 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)
  3788. end
  3789. end
  3790. end)
  3791. end))
  3792. end
  3793. Overed = true
  3794. orb:Destroy()
  3795. end))
  3796.  
  3797. attack = false
  3798. end
  3799.  
  3800. function StarfallEX()
  3801. attack = true
  3802. hum.WalkSpeed = 0
  3803. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3804. for i = 0, 10, 0.1 do
  3805. swait()
  3806. 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)
  3807. 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)
  3808. 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)
  3809. 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)
  3810. 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)
  3811. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3812. 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)
  3813. 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)
  3814. end
  3815. local Overed = false
  3816. CameraEnshaking(2,20)
  3817. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3818. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3819. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3820. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3821. local orb = Instance.new("Part", char)
  3822. orb.Anchored = true
  3823. orb.BrickColor = BrickColor.new("Toothpaste")
  3824. orb.CanCollide = false
  3825. orb.FormFactor = 3
  3826. orb.Name = "Remenant"
  3827. orb.Material = "Neon"
  3828. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3829. orb.Size = Vector3.new(1, 1, 1)
  3830. orb.Transparency = 1
  3831. orb.TopSurface = 0
  3832. orb.BottomSurface = 0
  3833. hum.WalkSpeed = storehumanoidWS
  3834. coroutine.resume(coroutine.create(function()
  3835. for i = 0, 4 do
  3836. swait(15)
  3837. local lb = Instance.new("Part")
  3838. lb.Color = MAINRUINCOLOR.Color
  3839. lb.CanCollide = false
  3840. lb.Material = "Neon"
  3841. lb.Anchored = true
  3842. lb.TopSurface = 0
  3843. lb.BottomSurface = 0
  3844. lb.Transparency = 0
  3845. lb.Size = vt(1,1,1)
  3846. 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)))
  3847. lb.Anchored = false
  3848. lb.Parent = char
  3849. local thingery = Instance.new("SpecialMesh",lb)
  3850. thingery.MeshType = "Sphere"
  3851. thingery.Scale = vt(50,50,50)
  3852. game:GetService("Debris"):AddItem(lb, 10)
  3853. local bv = Instance.new("BodyVelocity")
  3854. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3855. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3856. bv.Parent = lb
  3857. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3858. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3859. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3860. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3861. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3862. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3863. local hitted = false
  3864. coroutine.resume(coroutine.create(function()
  3865. while true do
  3866. swait(1)
  3867. if lb.Parent ~= nil and hitted == false then
  3868. 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)
  3869. elseif lb.Parent == nil then
  3870. break
  3871. end
  3872. end
  3873. end))
  3874.  
  3875. game:GetService("Debris"):AddItem(a, 0.1)
  3876.  
  3877. coroutine.resume(coroutine.create(function()
  3878. swait(1)
  3879. lb.Touched:connect(function(hit)
  3880. if hitted == false then
  3881. hitted = true
  3882. lb.Transparency = 1
  3883. lb.Anchored = true
  3884. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3885. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3886. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3887. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3888. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3889. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3890. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3891. CameraEnshaking(1,5)
  3892. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3893. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3894. for i = 0, 9 do
  3895. 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)
  3896. end
  3897. for i = 0, 99 do
  3898. swait()
  3899. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3900. 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)
  3901. end
  3902. end
  3903. end)
  3904. end))
  3905. end
  3906. Overed = true
  3907. orb:Destroy()
  3908. end))
  3909.  
  3910. attack = false
  3911. end
  3912.  
  3913. function DivineBlast()
  3914. attack = true
  3915. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3916. hum.WalkSpeed = 0
  3917. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3918. elocacenter.Anchored = true
  3919. elocacenter.CFrame = sorb.CFrame
  3920. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3921. eloca1.Anchored = true
  3922. eloca1.CFrame = elocacenter.CFrame
  3923. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3924. eloca2.Anchored = true
  3925. eloca2.CFrame = elocacenter.CFrame
  3926. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3927. eloca3.Anchored = true
  3928. eloca3.CFrame = elocacenter.CFrame
  3929. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3930. eloca4.Anchored = true
  3931. eloca4.CFrame = elocacenter.CFrame
  3932. local lookavec = 0
  3933. local speeds = 0
  3934. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3935. for i = 0, 3, 0.1 do
  3936. swait()
  3937. ---
  3938. lookavec = lookavec + 0.1
  3939. speeds = speeds + 10
  3940. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3941. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3942. 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)
  3943.  
  3944. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3945. 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)
  3946.  
  3947. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3948. 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)
  3949.  
  3950. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3951. 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)
  3952. ---
  3953. root.CFrame = FaceMouse()[1]
  3954. 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)
  3955. 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)
  3956. 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)
  3957. 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)
  3958. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3959. 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)
  3960. end
  3961. for i = 0, 3, 0.1 do
  3962. swait()
  3963. ---
  3964. speeds = speeds + 10
  3965. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3966. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3967. 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)
  3968.  
  3969. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3970. 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)
  3971.  
  3972. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3973. 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)
  3974.  
  3975. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3976. 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)
  3977. ---
  3978. root.CFrame = FaceMouse()[1]
  3979. 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)
  3980. 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)
  3981. 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)
  3982. 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)
  3983. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3984. 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)
  3985. end
  3986. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3987. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3988. for i = 0, 3, 0.1 do
  3989. swait()
  3990. ---
  3991. speeds = speeds + 10
  3992. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3993. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3994. 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)
  3995.  
  3996. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3997. 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)
  3998.  
  3999. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4000. 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)
  4001.  
  4002. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4003. 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)
  4004. ---
  4005. root.CFrame = FaceMouse()[1]
  4006. 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)
  4007. 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)
  4008. 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)
  4009. 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)
  4010. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4011. 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)
  4012. end
  4013. coroutine.resume(coroutine.create(function()
  4014. local a = Instance.new("Part",Character)
  4015. a.Name = "Direction"
  4016. a.Anchored = true
  4017. a.BrickColor = bc("White")
  4018. a.Material = "Neon"
  4019. a.Transparency = 0
  4020. a.Shape = "Cylinder"
  4021. a.CanCollide = false
  4022. local a2 = Instance.new("Part",Character)
  4023. a2.Name = "Direction"
  4024. a2.Anchored = true
  4025. a2.BrickColor = bc("Bright yellow")
  4026. a2.Material = "Neon"
  4027. a2.Transparency = 0
  4028. a2.Shape = "Cylinder"
  4029. a2.CanCollide = false
  4030. local b = Instance.new("Part",Character)
  4031. b.Name = "HitDirect"
  4032. b.Anchored = true
  4033. b.BrickColor = bc("Cool yellow")
  4034. b.Material = "Neon"
  4035. b.Transparency = 1
  4036. b.CanCollide = false
  4037. local ray = Ray.new(
  4038. elocacenter.CFrame.p, -- origin
  4039. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4040. )
  4041. local ignore = Character
  4042. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4043. a.BottomSurface = 10
  4044. a.TopSurface = 10
  4045. a2.BottomSurface = 10
  4046. a2.TopSurface = 10
  4047. local distance = (elocacenter.CFrame.p - position).magnitude
  4048. a.Size = Vector3.new(distance, 1, 1)
  4049. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4050. a2.Size = Vector3.new(distance, 1, 1)
  4051. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4052. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4053. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4054. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4055. game:GetService("Debris"):AddItem(a, 10)
  4056. game:GetService("Debris"):AddItem(a2, 10)
  4057. game:GetService("Debris"):AddItem(b, 10)
  4058. local eff = Instance.new("ParticleEmitter",b)
  4059. eff.Texture = "rbxassetid://2273224484"
  4060. eff.LightEmission = 1
  4061. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4062. eff.Rate = 500000
  4063. eff.Lifetime = NumberRange.new(0.5,2)
  4064. 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)})
  4065. 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)})
  4066. eff.Speed = NumberRange.new(20,250)
  4067. eff.Drag = 5
  4068. eff.Rotation = NumberRange.new(-500,500)
  4069. eff.VelocitySpread = 9000
  4070. eff.RotSpeed = NumberRange.new(-50,50)
  4071. coroutine.resume(coroutine.create(function()
  4072. wait(0.25)
  4073. eff.Enabled = false
  4074. end))
  4075. local msh = Instance.new("SpecialMesh",a)
  4076. msh.MeshType = "Cylinder"
  4077. msh.Scale = vt(1,2,2)
  4078. local msh2 = Instance.new("SpecialMesh",a2)
  4079. msh2.MeshType = "Cylinder"
  4080. msh2.Scale = vt(1,2.5,2.5)
  4081. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4082. coroutine.resume(coroutine.create(function()
  4083. for i = 0,10,0.1 do
  4084. swait()
  4085. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4086. a.Transparency = a.Transparency + 0.025
  4087. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4088. a2.Transparency = a2.Transparency + 0.05
  4089. end
  4090. a:Destroy()
  4091. a2:Destroy()
  4092. end))
  4093. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4094. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4095. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4096. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4097. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4098. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4099. MagniDamage(b, 25, 40,65, 0, "Normal")
  4100. for i = 0, 49 do
  4101. 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)
  4102. 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)
  4103. end
  4104. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4105. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4106. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4107. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4108. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4109. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4110. end))
  4111. game:GetService("Debris"):AddItem(elocacenter, 5)
  4112. hum.WalkSpeed = storehumanoidWS
  4113. attack = false
  4114. end
  4115.  
  4116. function StarDivision()
  4117. attack = true
  4118. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4119. for i = 0, 2, 0.1 do
  4120. swait()
  4121. 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)
  4122. 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)
  4123. 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)
  4124. 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)
  4125. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4126. 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)
  4127. end
  4128. local orb = Instance.new("Part", char)
  4129. orb.BrickColor = MAINRUINCOLOR
  4130. orb.CanCollide = false
  4131. orb.FormFactor = 3
  4132. orb.Name = "Ring"
  4133. orb.Material = "Neon"
  4134. orb.Size = Vector3.new(1, 1, 1)
  4135. orb.Transparency = 0
  4136. orb.TopSurface = 0
  4137. orb.BottomSurface = 0
  4138. local orbm = Instance.new("SpecialMesh", orb)
  4139. orbm.MeshType = "Sphere"
  4140. orbm.Name = "SizeMesh"
  4141. orbm.Scale = vt(2,2,2)
  4142. local a = Instance.new("Part",workspace)
  4143. a.Name = "Direction"
  4144. a.Anchored = true
  4145. a.BrickColor = bc("Bright red")
  4146. a.Material = "Neon"
  4147. a.Transparency = 1
  4148. a.CanCollide = false
  4149. local ray = Ray.new(
  4150. sorb.CFrame.p, -- origin
  4151. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4152. )
  4153. local ignore = sorb
  4154. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4155. a.BottomSurface = 10
  4156. a.TopSurface = 10
  4157. local distance = (sorb.CFrame.p - position).magnitude
  4158. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4159. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4160. orb.CFrame = a.CFrame
  4161. a:Destroy()
  4162. local bv = Instance.new("BodyVelocity")
  4163. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4164. bv.velocity = orb.CFrame.lookVector*100
  4165. bv.Parent = orb
  4166. local hitted = false
  4167. game:GetService("Debris"):AddItem(orb, 10)
  4168. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4169. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4170. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4171. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4172. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4173. coroutine.resume(coroutine.create(function()
  4174. while true do
  4175. swait(1)
  4176. if orb.Parent ~= nil and hitted == false then
  4177. 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)
  4178. elseif orb.Parent == nil then
  4179. break
  4180. end
  4181. end
  4182. end))
  4183. coroutine.resume(coroutine.create(function()
  4184. swait(1)
  4185. orb.Touched:connect(function(hit)
  4186. if hitted == false then
  4187. hitted = true
  4188. game:GetService("Debris"):AddItem(orb, 5)
  4189. orb.Transparency = 1
  4190. orb.Anchored = true
  4191. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4192. elocacenter.Anchored = true
  4193. elocacenter.CFrame = orb.CFrame
  4194. elocacenter.Orientation = vt(0,0,0)
  4195. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4196. eloca1.Anchored = true
  4197. eloca1.CFrame = elocacenter.CFrame
  4198. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4199. eloca2.Anchored = true
  4200. eloca2.CFrame = elocacenter.CFrame
  4201. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4202. eloca3.Anchored = true
  4203. eloca3.CFrame = elocacenter.CFrame
  4204. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4205. eloca4.Anchored = true
  4206. eloca4.CFrame = elocacenter.CFrame
  4207. local lookavec = 0
  4208. local speeds = 0
  4209. CameraEnshaking(1,1)
  4210. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4211. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4212. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4213. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4214. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4215. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4216. for i = 0, 99 do
  4217. swait()
  4218. lookavec = lookavec + 1
  4219. speeds = speeds + 0.1
  4220. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4221. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4222. 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)
  4223.  
  4224. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4225. 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)
  4226.  
  4227. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4228. 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)
  4229.  
  4230. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4231. 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)
  4232. end
  4233.  
  4234. for i = 0, 149 do
  4235. swait()
  4236. speeds = speeds + 0.1
  4237. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4238. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4239. 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)
  4240.  
  4241. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4242. 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)
  4243.  
  4244. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4245. 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)
  4246.  
  4247. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4248. 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)
  4249. end
  4250. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4251. if v:FindFirstChild('Head') then
  4252. dmg(v)
  4253. end
  4254. end
  4255. CameraEnshaking(7,30)
  4256. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4257. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4258. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4259. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4260. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4261. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4262. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4263. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4264. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4265. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4266. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4267. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4268. for i = 0, 24 do
  4269. 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)
  4270. 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)
  4271. 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)
  4272. 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)
  4273. end
  4274. coroutine.resume(coroutine.create(function()
  4275. for i = 0, 499 do
  4276. swait(1)
  4277. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4278. 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)
  4279. end
  4280. elocacenter:Destroy()
  4281. eloca1:Destroy()
  4282. eloca2:Destroy()
  4283. eloca3:Destroy()
  4284. eloca4:Destroy()
  4285. end))
  4286. end
  4287. end)
  4288. end))
  4289. attack = false
  4290. end
  4291.  
  4292.  
  4293. function THE_TRUE_POWER_OF_VIOLENCE()
  4294. attack = true
  4295. hum.WalkSpeed = 0
  4296. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4297. for i = 0, 10, 0.1 do
  4298. swait()
  4299. 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)
  4300. 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)
  4301. 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)
  4302. 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)
  4303. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4304. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4305. 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)
  4306. end
  4307. local orb = Instance.new("Part", char)
  4308. orb.BrickColor = MAINRUINCOLOR
  4309. orb.CanCollide = false
  4310. orb.FormFactor = 3
  4311. orb.Name = "Ring"
  4312. orb.Material = "Neon"
  4313. orb.Size = Vector3.new(1, 1, 1)
  4314. orb.Transparency = 0
  4315. orb.TopSurface = 0
  4316. orb.BottomSurface = 0
  4317. orb.CFrame = sorb.CFrame
  4318. local orbm = Instance.new("SpecialMesh", orb)
  4319. orbm.MeshType = "Sphere"
  4320. orbm.Name = "SizeMesh"
  4321. orbm.Scale = vt(0,0,0)
  4322. local sbs = Instance.new("BodyPosition", orb)
  4323. sbs.P = 3000
  4324. sbs.D = 1000
  4325. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4326. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4327. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4328. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4329. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4330. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4331. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4332. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4333. for i = 0, 10, 0.1 do
  4334. swait()
  4335. 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)
  4336. 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)
  4337. 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)
  4338. 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)
  4339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4341. 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)
  4342. end
  4343. orb.Anchored = true
  4344. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4345. elocacenter.Anchored = true
  4346. elocacenter.CFrame = orb.CFrame
  4347. elocacenter.Orientation = vt(0,0,0)
  4348. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4349. eloca1.Anchored = true
  4350. eloca1.CFrame = elocacenter.CFrame
  4351. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4352. eloca2.Anchored = true
  4353. eloca2.CFrame = elocacenter.CFrame
  4354. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4355. eloca3.Anchored = true
  4356. eloca3.CFrame = elocacenter.CFrame
  4357. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4358. eloca4.Anchored = true
  4359. eloca4.CFrame = elocacenter.CFrame
  4360. local lookavec = 0
  4361. local speeds = 0
  4362. CameraEnshaking(1,1)
  4363. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4364. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4365. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4366. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4367. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4368. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4369. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4370. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4371. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4372. for i = 0, 99 do
  4373. swait()
  4374. lookavec = lookavec + 2.5
  4375. speeds = speeds + 0.25
  4376. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4377. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4378. 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)
  4379.  
  4380. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4381. 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)
  4382.  
  4383. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4384. 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)
  4385.  
  4386. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4387. 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)
  4388. end
  4389.  
  4390. for i = 0, 149 do
  4391. swait()
  4392. speeds = speeds + 0.25
  4393. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4394. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4395. 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)
  4396.  
  4397. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4398. 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)
  4399.  
  4400. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4401. 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)
  4402.  
  4403. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4404. 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)
  4405. end
  4406. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4407. for i = 0, 99 do
  4408. swait()
  4409. lookavec = lookavec - 2.5
  4410. speeds = speeds + 0.25
  4411. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4412. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4413. 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)
  4414.  
  4415. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4416. 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)
  4417.  
  4418. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4419. 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)
  4420.  
  4421. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4422. 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)
  4423. end
  4424. local scaled = 0.1*75
  4425. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4426. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4427. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4428. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4429. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4430. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4431. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4432. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4433. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4434. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4435. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4436.  
  4437. for i = 0, 10, 0.1 do
  4438. swait()
  4439. scaled = scaled - 0.001*75
  4440. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4441. 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)
  4442. 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)
  4443. 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)
  4444. 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)
  4445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4446. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4447. 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)
  4448. end
  4449. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4450. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4451. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4452. for x = 0, 4 do
  4453. for i = 0, 9 do
  4454. 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)
  4455. end
  4456. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4457. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4458. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4459. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4460. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4461. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4462. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4463. for i = 0, 5, 0.1 do
  4464. swait()
  4465. 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)
  4466. 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)
  4467. 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)
  4468. 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)
  4469. 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)
  4470. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4471. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4472. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4473. end
  4474. end
  4475. local speedearn = 0
  4476. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4477. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4478. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4479. for i = 0, 30, 0.1 do
  4480. swait()
  4481. scaled = scaled - 0.001*75/10
  4482. speedearn = speedearn + 0.5
  4483. for i = 0, 4 do
  4484. 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)
  4485. end
  4486. 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)
  4487. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4488. 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)
  4489. 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)
  4490. 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)
  4491. 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)
  4492. 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)
  4493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4494. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4495. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4496. end
  4497. orb.Transparency = 1
  4498. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4499. if v:FindFirstChild('Head') then
  4500. dmg(v)
  4501. end
  4502. end
  4503. CameraEnshaking(7,30)
  4504. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4505. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4506. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4507. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4508. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4509. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4510. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4511. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4512. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4513. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4514. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4515. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4516. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4517. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4518. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4519. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4520. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4521. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4522. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4523. for i = 0, 99 do
  4524. 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)
  4525. 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)
  4526. end
  4527. for i = 0, 24 do
  4528. 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)
  4529. 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)
  4530. 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)
  4531. 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)
  4532. 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)
  4533. end
  4534. game:GetService("Debris"):AddItem(orb, 10)
  4535. hum.WalkSpeed = storehumanoidWS
  4536. attack = false
  4537. end
  4538.  
  4539.  
  4540. function ViolentRing()
  4541. attack = true
  4542. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4543. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4544. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4545. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4546. for i = 0, 2, 0.1 do
  4547. swait()
  4548. local snap = math.random(1,10)
  4549. if snap == 1 then
  4550. 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)
  4551. end
  4552. 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)
  4553. 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)
  4554. 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)
  4555. 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)
  4556. 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)
  4557. 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)
  4558. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4559. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4560. 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)
  4561. RootPart.CFrame = FaceMouse()[1]
  4562. end
  4563. local orb = Instance.new("Part", char)
  4564. orb.BrickColor = MAINRUINCOLOR
  4565. orb.CanCollide = false
  4566. orb.FormFactor = 3
  4567. orb.Name = "Ring"
  4568. orb.Material = "Neon"
  4569. orb.Size = Vector3.new(1, 1, 1)
  4570. orb.Transparency = 0
  4571. orb.TopSurface = 0
  4572. orb.BottomSurface = 0
  4573. local orbm = Instance.new("SpecialMesh", orb)
  4574. orbm.MeshType = "Sphere"
  4575. orbm.Name = "SizeMesh"
  4576. orbm.Scale = vt(2,2,2)
  4577. orb.CFrame = mouse.Hit
  4578. local bv = Instance.new("BodyVelocity")
  4579. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4580. bv.velocity = orb.CFrame.lookVector*100
  4581. bv.Parent = orb
  4582. local hitted = false
  4583. coroutine.resume(coroutine.create(function()
  4584. game:GetService("Debris"):AddItem(orb, 5)
  4585. orb.Transparency = 1
  4586. orb.Anchored = true
  4587. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4588. elocacenter.Anchored = true
  4589. elocacenter.CFrame = orb.CFrame
  4590. elocacenter.Orientation = vt(0,0,0)
  4591. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4592. eloca1.Anchored = true
  4593. eloca1.CFrame = elocacenter.CFrame
  4594. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4595. eloca2.Anchored = true
  4596. eloca2.CFrame = elocacenter.CFrame
  4597. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4598. eloca3.Anchored = true
  4599. eloca3.CFrame = elocacenter.CFrame
  4600. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4601. eloca4.Anchored = true
  4602. eloca4.CFrame = elocacenter.CFrame
  4603. local lookavec = 0
  4604. local speeds = 0
  4605. CameraEnshaking(1,1)
  4606. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4607. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4608. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4609. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4610. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4611. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4612. for i = 0, 24 do
  4613. swait()
  4614. lookavec = lookavec + 3.5
  4615. speeds = speeds + 1
  4616. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4617. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4618. 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)
  4619.  
  4620. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4621. 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)
  4622.  
  4623. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4624. 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)
  4625.  
  4626. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4627. 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)
  4628. end
  4629.  
  4630. local risen = 0
  4631. for i = 0, 49 do
  4632. swait()
  4633. risen = risen + 0.05
  4634. speeds = speeds + 0.1
  4635. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4636. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4637. 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)
  4638.  
  4639. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4640. 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)
  4641.  
  4642. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4643. 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)
  4644.  
  4645. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4646. 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)
  4647. end
  4648. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4649. if v:FindFirstChild('Head') then
  4650. dmg(v)
  4651. end
  4652. end
  4653. CameraEnshaking(4,10)
  4654. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4655. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4656. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4657. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4658. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4659. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4660. local eff = Instance.new("ParticleEmitter",elocacenter)
  4661. eff.Texture = "rbxassetid://2273224484"
  4662. eff.LightEmission = 1
  4663. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4664. eff.Rate = 1000000
  4665. eff.Lifetime = NumberRange.new(0.5,2)
  4666. 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)})
  4667. 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)})
  4668. eff.Speed = NumberRange.new(20,250)
  4669. eff.Drag = 5
  4670. eff.Rotation = NumberRange.new(-500,500)
  4671. eff.VelocitySpread = 5000000
  4672. eff.RotSpeed = NumberRange.new(-50,50)
  4673. coroutine.resume(coroutine.create(function()
  4674. wait(1)
  4675. eff.Enabled = false
  4676. end))
  4677. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4678. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4679. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4680. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4681. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4682. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4683. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4684. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4685. for i = 0, 24 do
  4686. 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)
  4687. 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)
  4688. 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)
  4689. 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)
  4690. end
  4691. coroutine.resume(coroutine.create(function()
  4692. wait(10)
  4693. elocacenter:Destroy()
  4694. eloca1:Destroy()
  4695. eloca2:Destroy()
  4696. eloca3:Destroy()
  4697. eloca4:Destroy()
  4698. end))
  4699. end))
  4700. attack = false
  4701. end
  4702.  
  4703. function UniversalCollapse()
  4704. attack = true
  4705. local speedearn = 0
  4706. hum.WalkSpeed = 0
  4707. local sbs = Instance.new("BodyPosition", root)
  4708. sbs.P = 3000
  4709. sbs.D = 1000
  4710. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4711. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4712. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4713. for i = 0, 85, 0.1 do
  4714. swait()
  4715. speedearn = speedearn + 0.1
  4716. 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)
  4717. 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)
  4718. 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)
  4719. 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)
  4720. 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)
  4721. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4722. 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)
  4723. 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)
  4724. 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)
  4725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4726. 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)
  4727. 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)
  4728. end
  4729. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4730. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4731. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4732. for i = 0, 25, 0.1 do
  4733. swait()
  4734. speedearn = speedearn + 0.1
  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. 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)
  4738. 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)
  4739. 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)
  4740. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4741. 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)
  4742. 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)
  4743. 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)
  4744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4745. 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)
  4746. 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)
  4747. end
  4748. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4749. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4750. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4751. CameraEnshaking(5,50)
  4752. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4753. for i = 0, 2 do
  4754. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4755. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4756. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4757. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4758. end
  4759. for i = 0, 49 do
  4760. 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)
  4761. 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)
  4762. 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)
  4763. 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)
  4764. end
  4765. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4766. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4767. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4768. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4769. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4770. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4771. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4772. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4773. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4774. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4775. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4776. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4777. for i = 0, 99 do
  4778. 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)
  4779. 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)
  4780. end
  4781. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4782. if v:FindFirstChild('Head') then
  4783. dmg(v)
  4784. end
  4785. end
  4786. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4787. sbs:Destroy()
  4788. hum.WalkSpeed = storehumanoidWS
  4789. attack = false
  4790. end
  4791.  
  4792.  
  4793. function ChaosEND()
  4794. attack = true
  4795. local speedearn = 0
  4796. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4797. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4798. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4799. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4800. for i = 0, 15, 0.1 do
  4801. swait()
  4802. speedearn = speedearn + 0.25
  4803. 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)
  4804. 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)
  4805. 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)
  4806. 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)
  4807. 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)
  4808. 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)
  4809. 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)
  4810. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4811. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4812. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4813. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4814. end
  4815. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4816. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4817. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4818. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4819. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4820. CameraEnshaking(5,25)
  4821. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4822. if v:FindFirstChild('Head') then
  4823. dmg(v)
  4824. end
  4825. end
  4826. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4827. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4828. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4829. for i = 0, 3, 0.1 do
  4830. swait()
  4831. 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)
  4832. 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)
  4833. 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)
  4834. 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)
  4835. 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)
  4836. 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)
  4837. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4838. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4839. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4840. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4841. end
  4842. attack = false
  4843. end
  4844.  
  4845. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4846. local orb = Instance.new("Part", char)
  4847. orb.Anchored = true
  4848. orb.BrickColor = color
  4849. orb.CanCollide = false
  4850. orb.FormFactor = 3
  4851. orb.Name = "Ring"
  4852. orb.Material = "Neon"
  4853. orb.Size = Vector3.new(1, 1, 1)
  4854. orb.Transparency = 0
  4855. orb.TopSurface = 0
  4856. orb.BottomSurface = 0
  4857. local orbm = Instance.new("SpecialMesh", orb)
  4858. orbm.MeshType = "Sphere"
  4859. orb.CFrame = positted
  4860. orbm.Name = "SizeMesh"
  4861. orbm.Scale = vt(1,1,1)
  4862. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4863. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4864. --[[for i = 0, 2 do
  4865. 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)
  4866. end]]--
  4867. coroutine.resume(coroutine.create(function()
  4868. wait(timer)
  4869. CameraEnshaking(3,ShakePower)
  4870. orb.Transparency = 1
  4871. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4872. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4873. --[[for i = 0, 4 do
  4874. 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)
  4875. end]]--
  4876. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4877. wait(3)
  4878. orb:Destroy()
  4879. end))
  4880. end
  4881.  
  4882. function orb_spawn(positted,timer)
  4883. local randomcol = math.random(1,2)
  4884. local orb = Instance.new("Part", char)
  4885. orb.Anchored = true
  4886. if randomcol == 1 then
  4887. orb.BrickColor = BrickColor.new("White")
  4888. elseif randomcol == 2 then
  4889. orb.BrickColor = BrickColor.new("Really black")
  4890. end
  4891. orb.CanCollide = false
  4892. orb.FormFactor = 3
  4893. orb.Name = "Ring"
  4894. orb.Material = "Neon"
  4895. orb.Size = Vector3.new(1, 1, 1)
  4896. orb.Transparency = 0
  4897. orb.TopSurface = 0
  4898. orb.BottomSurface = 0
  4899. local orbm = Instance.new("SpecialMesh", orb)
  4900. orbm.MeshType = "Sphere"
  4901. orb.CFrame = positted
  4902. orbm.Name = "SizeMesh"
  4903. orbm.Scale = vt(1,1,1)
  4904. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4905. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4906. for i = 0, 2 do
  4907. 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)
  4908. end
  4909. coroutine.resume(coroutine.create(function()
  4910. wait(timer)
  4911. CameraEnshaking(3,2)
  4912. orb.Transparency = 1
  4913. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4914. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4915. for i = 0, 4 do
  4916. 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)
  4917. end
  4918. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4919. wait(3)
  4920. orb:Destroy()
  4921. end))
  4922. end
  4923.  
  4924. function scattercorrupt()
  4925. attack = true
  4926. hum.WalkSpeed = 0
  4927. for i = 0, 2, 0.1 do
  4928. swait()
  4929. 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)
  4930. 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)
  4931. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4932. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4933. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4934. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4935. end
  4936. local rot = 0
  4937. local randomrotations = math.random(1,2)
  4938. local lookv = 2.5
  4939. local power = 7
  4940. local radm = math.random(1,3)
  4941. if radm == 1 then
  4942. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4943. elseif radm == 2 then
  4944. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4945. elseif radm == 3 then
  4946. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4947. end
  4948. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4949. for i = 0, 1, 0.1 do
  4950. swait()
  4951. 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)
  4952. 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)
  4953. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4954. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4955. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4956. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4957. end
  4958. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4959. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4960. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4961. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4962. for i = 0, 9 do
  4963. 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)
  4964. end
  4965. local hite = Instance.new("Part", char)
  4966. hite.Anchored = true
  4967. hite.CanCollide = false
  4968. hite.FormFactor = 3
  4969. hite.Name = "Ring"
  4970. hite.Material = "Neon"
  4971. hite.Size = Vector3.new(1, 1, 1)
  4972. hite.Transparency = 1
  4973. hite.TopSurface = 0
  4974. hite.BottomSurface = 0
  4975. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4976. local rem = Instance.new("Part", char)
  4977. rem.Anchored = true
  4978. rem.CanCollide = false
  4979. rem.FormFactor = 3
  4980. rem.Name = "Ring"
  4981. rem.Material = "Neon"
  4982. rem.Size = Vector3.new(1, 1, 1)
  4983. rem.Transparency = 1
  4984. rem.TopSurface = 0
  4985. rem.BottomSurface = 0
  4986. rem.CFrame = hite.CFrame
  4987. local rem2 = rem:Clone()
  4988. rem2.Parent = char
  4989. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4990. local rem3 = rem:Clone()
  4991. rem3.Parent = char
  4992. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4993. local rem4 = rem:Clone()
  4994. rem4.Parent = char
  4995. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4996. hite:Destroy()
  4997. coroutine.resume(coroutine.create(function()
  4998. for i = 0, 24 do
  4999. swait(1)
  5000. if randomrotations == 1 then
  5001. rot = rot + 1
  5002. elseif randomrotations == 2 then
  5003. rot = rot - 1
  5004. end
  5005. power = power + 0.5
  5006. lookv = lookv + 7.5
  5007. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5008. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5009. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5010. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5011. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5012. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5013. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5014. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5015. end
  5016. end))
  5017. wait(2)
  5018. hum.WalkSpeed = storehumanoidWS
  5019. attack = false
  5020. end
  5021. function yinyangi()
  5022. attack = true
  5023. for i = 0, 2, 0.1 do
  5024. swait()
  5025. 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)
  5026. 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)
  5027. 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)
  5028. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5029. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5030. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5031. end
  5032. local bv = Instance.new("BodyVelocity")
  5033. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5034. bv.velocity = root.CFrame.lookVector*175
  5035. bv.Parent = root
  5036. for Rotations = 0, 9 do
  5037. for i = 0, 1, 0.5 do
  5038. swait()
  5039. bv.velocity = root.CFrame.lookVector*175
  5040. 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)
  5041. 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)
  5042. 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)
  5043. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5044. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5045. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5046. end
  5047. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5048. for i = 0, 1, 0.5 do
  5049. swait()
  5050. bv.velocity = root.CFrame.lookVector*175
  5051. 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)
  5052. 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)
  5053. 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)
  5054. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5055. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5056. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5057. end
  5058. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5059. for i = 0, 1, 0.5 do
  5060. swait()
  5061. bv.velocity = root.CFrame.lookVector*175
  5062. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5063. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5064. 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)
  5065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5067. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5068. end
  5069. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5070. for i = 0, 1, 0.5 do
  5071. swait()
  5072. bv.velocity = root.CFrame.lookVector*175
  5073. 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)
  5074. 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)
  5075. 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)
  5076. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5079. end
  5080. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5081. end
  5082. bv:Destroy()
  5083. attack = false
  5084. end
  5085.  
  5086. function createBGCircle(size,parent,color)
  5087. local bgui = Instance.new("BillboardGui",parent)
  5088. bgui.Size = UDim2.new(size, 0, size, 0)
  5089. local imgc = Instance.new("ImageLabel",bgui)
  5090. imgc.BackgroundTransparency = 1
  5091. imgc.ImageTransparency = 0
  5092. imgc.Size = UDim2.new(1,0,1,0)
  5093. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5094. imgc.ImageColor3 = color
  5095. return bgui,imgc
  5096. end
  5097.  
  5098. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5099. local bgui,imgc = createBGCircle(size,guipar,color)
  5100. bgui.AlwaysOnTop = true
  5101. imgc.Image = "rbxassetid://" ..img
  5102. local rrot = math.random(1,2)
  5103. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5104. coroutine.resume(coroutine.create(function()
  5105. for i = 0, 24*delay do
  5106. swait()
  5107. if rotationenabled == true then
  5108. if rrot == 1 then
  5109. imgc.Rotation = imgc.Rotation + rotsp
  5110. elseif rrot == 2 then
  5111. imgc.Rotation = imgc.Rotation - rotsp
  5112. end
  5113. end
  5114. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5115. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5116. end
  5117. bgui:Destroy()
  5118. end))
  5119. end
  5120. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5121. for i, v in pairs(mw2:GetChildren()) do
  5122. if v:IsA("Part") then
  5123. v.BrickColor = one
  5124. v.Material = "Neon"
  5125. end
  5126. end
  5127. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5128. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5129. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5130. tr1.Color = ColorSequence.new(one.Color)
  5131. tr2.Color = ColorSequence.new(one.Color)
  5132. tr3.Color = ColorSequence.new(one.Color)
  5133. for i, v in pairs(mw1:GetChildren()) do
  5134. if v:IsA("Part") then
  5135. if secondaryenabled == false then
  5136. v.Transparency = 1
  5137. elseif secondaryenabled == true then
  5138. v.Transparency = 0
  5139. end
  5140. v.BrickColor = two
  5141. v.Material = "Neon"
  5142. end
  5143. end
  5144. if secondaryenabled == false then
  5145. tl1.Enabled = false
  5146. tl2.Enabled = false
  5147. tl3.Enabled = false
  5148. elseif secondaryenabled == true then
  5149. tl1.Enabled = true
  5150. tl2.Enabled = true
  5151. tl3.Enabled = true
  5152. end
  5153. tl1.Color = ColorSequence.new(two.Color)
  5154. tl2.Color = ColorSequence.new(two.Color)
  5155. tl3.Color = ColorSequence.new(two.Color)
  5156. for i, v in pairs(m:GetChildren()) do
  5157. if v:IsA("Part") then
  5158. v.BrickColor = three
  5159. v.Material = "Ice"
  5160. end
  5161. end
  5162. for i, v in pairs(m2:GetChildren()) do
  5163. if v:IsA("Part") then
  5164. v.BrickColor = four
  5165. v.Material = "Ice"
  5166. end
  5167. end
  5168. for i, v in pairs(m3:GetChildren()) do
  5169. if v:IsA("Part") then
  5170. v.BrickColor = five
  5171. v.Material = "Neon"
  5172. end
  5173. end
  5174. for i, v in pairs(extrawingmod1:GetChildren()) do
  5175. if v:IsA("Part") then
  5176. v.Transparency = exonetran
  5177. v.BrickColor = exone
  5178. v.Material = "Neon"
  5179. end
  5180. end
  5181. for i, v in pairs(extrawingmod2:GetChildren()) do
  5182. if v:IsA("Part") then
  5183. v.Transparency = extwotran
  5184. v.BrickColor = extwo
  5185. v.Material = "Neon"
  5186. end
  5187. end
  5188. end
  5189.  
  5190.  
  5191. function normalmog()
  5192. attack = true
  5193. hum.WalkSpeed = 0
  5194. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5195. for i = 0,6,0.1 do
  5196. swait()
  5197. 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)
  5198. 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)
  5199. 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)
  5200. 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)
  5201. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5202. 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)
  5203. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5204. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5205. end
  5206. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5207. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5208. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5209. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5210. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5211. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5212. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5213. rainbowmode = false
  5214. chaosmode = false
  5215. ModeOfGlitch = 1
  5216. storehumanoidWS = 16
  5217. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5218. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5219. CameraEnshaking(5,2.5)
  5220. MAINRUINCOLOR = BrickColor.new("Really red")
  5221. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5222. for i = 0, 49 do
  5223. 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)
  5224. end
  5225. for i = 0, 24 do
  5226. 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)
  5227. 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"))
  5228. end
  5229. for i = 0,3,0.1 do
  5230. 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)
  5231. end
  5232. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5233. for i = 0,2,0.1 do
  5234. swait()
  5235. 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)
  5236. 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)
  5237. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5238. 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)
  5239. 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)
  5240. 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)
  5241. end
  5242. hum.WalkSpeed = storehumanoidWS
  5243. attack = false
  5244. end
  5245.  
  5246. function attackone()
  5247. attack = true
  5248. local keptcolor = MAINRUINCOLOR
  5249. for i = 0,1,0.1 do
  5250. swait()
  5251. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5252. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5253. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5254. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5255. 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)
  5256. 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)
  5257. end
  5258. local distlook = 5
  5259. coroutine.resume(coroutine.create(function()
  5260. for i = 0, 4 do
  5261. swait(2)
  5262. CameraEnshaking(2,3)
  5263. local hite = Instance.new("Part", char)
  5264. hite.Anchored = true
  5265. hite.CanCollide = false
  5266. hite.FormFactor = 3
  5267. hite.Name = "Ring"
  5268. hite.Material = "Neon"
  5269. hite.Size = Vector3.new(1, 1, 1)
  5270. hite.Transparency = 1
  5271. hite.TopSurface = 0
  5272. hite.BottomSurface = 0
  5273. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5274. 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)
  5275. 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)
  5276. 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)
  5277. 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)
  5278. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5279. for i = 0, 14 do
  5280. local rsiz = math.random(5,20)
  5281. 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)
  5282. end
  5283. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5284. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5285. game:GetService("Debris"):AddItem(hite, 5)
  5286. distlook = distlook + 10
  5287. end
  5288. end))
  5289. for i = 0,1,0.1 do
  5290. swait()
  5291. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5292. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5293. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5294. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5295. 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)
  5296. 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)
  5297. end
  5298. attack = false
  5299. end
  5300.  
  5301. function attacktwo()
  5302. attack = true
  5303. hum.WalkSpeed = 2
  5304. local keptcolor = MAINRUINCOLOR
  5305. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5306. 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)
  5307. 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)
  5308. for i = 0, 14 do
  5309. 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)
  5310. end
  5311. for i = 0,1,0.1 do
  5312. swait()
  5313. 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)
  5314. 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)
  5315. 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)
  5316. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5317. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5318. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5319. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5320. end
  5321. for i = 0, 1 do
  5322. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5323. for i = 0,1,0.6 do
  5324. swait()
  5325. 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)
  5326. 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"))
  5327. 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)
  5328. 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)
  5329. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5330. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5331. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5332. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5333. end
  5334. for i = 0,1,0.6 do
  5335. swait()
  5336. 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)
  5337. 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"))
  5338. 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)
  5339. 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)
  5340. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5341. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5342. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5343. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5344. end
  5345. for i = 0,1,0.6 do
  5346. swait()
  5347. 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)
  5348. 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"))
  5349. 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)
  5350. 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)
  5351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5353. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5354. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5355. end
  5356. for i = 0,1,0.6 do
  5357. swait()
  5358. 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)
  5359. 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"))
  5360. 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)
  5361. 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)
  5362. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5363. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5364. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5365. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5366. end
  5367. local rot = 0
  5368. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5369. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5370. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5371. CreateMesh(dis,"Sphere",10,1,10)
  5372. local at1 = Instance.new("Attachment",dis)
  5373. at1.Position = vt(-5,0,0)
  5374. local at2 = Instance.new("Attachment",dis)
  5375. at2.Position = vt(5,0,0)
  5376. local trl = Instance.new('Trail',wed)
  5377. trl.Attachment0 = at1
  5378. trl.Attachment1 = at2
  5379. trl.Texture = "rbxassetid://1049219073"
  5380. trl.LightEmission = 1
  5381. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5382. trl.Color = ColorSequence.new(dis.Color)
  5383. trl.Lifetime = 0.6
  5384. local a = Instance.new("Part",workspace)
  5385. a.Name = "Direction"
  5386. a.Anchored = true
  5387. a.BrickColor = bc("Bright red")
  5388. a.Material = "Neon"
  5389. a.Transparency = 1
  5390. a.CanCollide = false
  5391. local ray = Ray.new(
  5392. dis.CFrame.p, -- origin
  5393. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5394. )
  5395. local ignore = dis
  5396. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5397. a.BottomSurface = 10
  5398. a.TopSurface = 10
  5399. local distance = (dis.CFrame.p - position).magnitude
  5400. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5401. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5402. dis.CFrame = a.CFrame
  5403. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5404. a:Destroy()
  5405. local bv = Instance.new("BodyVelocity")
  5406. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5407. bv.velocity = dis.CFrame.lookVector*250
  5408. bv.Parent = dis
  5409. game:GetService("Debris"):AddItem(dis, 5)
  5410. local hitted = false
  5411. coroutine.resume(coroutine.create(function()
  5412. dis.Touched:connect(function(hit)
  5413. if hitted == false and hit.Parent ~= char then
  5414. hitted = true
  5415. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5416. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5417. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5418. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5419. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5420. coroutine.resume(coroutine.create(function()
  5421. for i = 0, 9 do
  5422. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5423. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5424. local at1 = Instance.new("Attachment",disr)
  5425. at1.Position = vt(-5,0,0)
  5426. local at2 = Instance.new("Attachment",disr)
  5427. at2.Position = vt(5,0,0)
  5428. local trl = Instance.new('Trail',disr)
  5429. trl.Attachment0 = at1
  5430. trl.FaceCamera = true
  5431. trl.Attachment1 = at2
  5432. trl.Texture = "rbxassetid://2342682798"
  5433. trl.LightEmission = 1
  5434. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5435. trl.Color = ColorSequence.new(keptcolor.Color)
  5436. trl.Lifetime = 0.5
  5437. local bv = Instance.new("BodyVelocity")
  5438. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5439. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5440. bv.Parent = disr
  5441. local val = 0
  5442. coroutine.resume(coroutine.create(function()
  5443. swait(30)
  5444. for i = 0, 9 do
  5445. swait()
  5446. val = val + 0.1
  5447. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5448. end
  5449. game:GetService("Debris"):AddItem(disr, 3)
  5450. end))
  5451. end
  5452. local eff = Instance.new("ParticleEmitter",dis)
  5453. eff.Texture = "rbxassetid://2273224484"
  5454. eff.LightEmission = 1
  5455. eff.Color = ColorSequence.new(keptcolor.Color)
  5456. eff.Rate = 500000
  5457. eff.Lifetime = NumberRange.new(0.5,2)
  5458. 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)})
  5459. 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)})
  5460. eff.Speed = NumberRange.new(20,250)
  5461. eff.Drag = 5
  5462. eff.Rotation = NumberRange.new(-500,500)
  5463. eff.VelocitySpread = 9000
  5464. eff.RotSpeed = NumberRange.new(-50,50)
  5465. wait(0.25)
  5466. eff.Enabled = false
  5467. end))
  5468. for i = 0, 9 do
  5469. 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"))
  5470. end
  5471. for i = 0, 19 do
  5472. 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)
  5473. end
  5474. coroutine.resume(coroutine.create(function()
  5475. for i = 0, 19 do
  5476. swait()
  5477. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5478. end
  5479. hum.CameraOffset = vt(0,0,0)
  5480. end))
  5481. dis.Anchored = true
  5482. dis.Transparency = 1
  5483. wait(8)
  5484. dis:Destroy()
  5485. end
  5486. end)
  5487. end))
  5488. rot = rot - 15
  5489. end
  5490. for i = 0,2,0.1 do
  5491. swait()
  5492. 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)
  5493. 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)
  5494. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5495. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5496. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5497. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5498. end
  5499. attack = false
  5500. hum.WalkSpeed = storehumanoidWS
  5501. end
  5502.  
  5503. function attackthree()
  5504. attack = true
  5505. local keptcolor = MAINRUINCOLOR
  5506. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5507. for i = 0,2,0.1 do
  5508. swait()
  5509. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5510. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5511. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5512. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5513. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5514. 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)
  5515. 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)
  5516. end
  5517. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5518. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5519. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5520. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5521. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5522. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5523. for i = 0, 24 do
  5524. 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"))
  5525. end
  5526. for i = 0,4,0.1 do
  5527. swait()
  5528. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5529. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5530. CreateMesh(dis,"Sphere",1,1,1)
  5531. dis.Anchored = true
  5532. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5533. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5534. coroutine.resume(coroutine.create(function()
  5535. swait(30)
  5536. dis.Transparency = 1
  5537. coroutine.resume(coroutine.create(function()
  5538. for i = 0, 19 do
  5539. swait()
  5540. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5541. end
  5542. hum.CameraOffset = vt(0,0,0)
  5543. end))
  5544. coroutine.resume(coroutine.create(function()
  5545. local eff = Instance.new("ParticleEmitter",dis)
  5546. eff.Texture = "rbxassetid://2273224484"
  5547. eff.LightEmission = 1
  5548. eff.Color = ColorSequence.new(dis.Color)
  5549. eff.Rate = 500000
  5550. eff.Lifetime = NumberRange.new(0.5,2)
  5551. 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)})
  5552. 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)})
  5553. eff.Speed = NumberRange.new(50,450)
  5554. eff.Drag = 5
  5555. eff.Rotation = NumberRange.new(-500,500)
  5556. eff.VelocitySpread = 9000
  5557. eff.RotSpeed = NumberRange.new(-50,50)
  5558. wait(0.125)
  5559. eff.Enabled = false
  5560. end))
  5561. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5562. for i = 0, 2 do
  5563. 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)
  5564. end
  5565. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5566. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5567. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5568. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5569. end))
  5570. game:GetService("Debris"):AddItem(dis, 5)
  5571. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5572. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5573. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5574. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5575. 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)
  5576. 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)
  5577. end
  5578. attack = false
  5579. end
  5580. ----------------------------------- Abilities
  5581.  
  5582. function ExtinctiveHeartbreak()
  5583. local targetted = nil
  5584. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5585. targetted = mouse.Target.Parent
  5586. end
  5587. if targetted ~= nil then
  5588. attack = true
  5589. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5590. for i = 0, 9 do
  5591. 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)
  5592. end
  5593. for i = 0, 24 do
  5594. 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)
  5595. end
  5596. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5597. local originalpos = root.CFrame
  5598. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5599. for i = 0, 9 do
  5600. 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)
  5601. end
  5602. for i = 0, 24 do
  5603. 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)
  5604. end
  5605. hum.WalkSpeed = 0
  5606. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5607. local radm = math.random(1,3)
  5608. if radm == 1 then
  5609. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5610. elseif radm == 2 then
  5611. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5612. elseif radm == 3 then
  5613. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5614. end
  5615. for i = 0,2,0.1 do
  5616. swait()
  5617. 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)
  5618. 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)
  5619. 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)
  5620. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5621. 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)
  5622. 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)
  5623. end
  5624. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5625. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5626. for i = 0,2,0.1 do
  5627. swait()
  5628. coroutine.resume(coroutine.create(function()
  5629. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5630. for i,v in pairs(targetted:GetChildren()) do
  5631. if v:IsA("Part") or v:IsA("MeshPart") then
  5632. v.Velocity = vt(0,0,0)
  5633. end
  5634. end
  5635. end))
  5636. 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)
  5637. 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)
  5638. 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)
  5639. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5640. 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)
  5641. 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)
  5642. end
  5643. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5644. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5645. for i = 0, 1 do
  5646. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5647. end
  5648. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5649. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5650. for i = 0,4,0.1 do
  5651. swait()
  5652. coroutine.resume(coroutine.create(function()
  5653. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5654. 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)))
  5655. local at1 = Instance.new("Attachment",dis)
  5656. at1.Position = vt(-25000,0,0)
  5657. local at2 = Instance.new("Attachment",dis)
  5658. at2.Position = vt(25000,0,0)
  5659. local trl = Instance.new('Trail',dis)
  5660. trl.Attachment0 = at1
  5661. trl.FaceCamera = true
  5662. trl.Attachment1 = at2
  5663. trl.Texture = "rbxassetid://1049219073"
  5664. trl.LightEmission = 1
  5665. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5666. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5667. trl.Lifetime = 5
  5668. local bv = Instance.new("BodyVelocity")
  5669. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5670. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5671. bv.Parent = dis
  5672. game:GetService("Debris"):AddItem(dis, 5)
  5673. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5674. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5675. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5676. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5677. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5678. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5679. 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)
  5680. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5681. for i = 0, 2 do
  5682. 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"))
  5683. end
  5684. 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)
  5685. for i,v in pairs(targetted:GetChildren()) do
  5686. if v:IsA("Part") or v:IsA("MeshPart") then
  5687. v.Velocity = vt(0,0,0)
  5688. end
  5689. end
  5690. end))
  5691. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5692. 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)
  5693. 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)
  5694. 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)
  5695. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5696. 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)
  5697. 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)
  5698. end
  5699. hum.CameraOffset = vt(0,0,0)
  5700. for i = 0, 49 do
  5701. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5702. 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)))
  5703. local at1 = Instance.new("Attachment",dis)
  5704. at1.Position = vt(-50000,0,0)
  5705. local at2 = Instance.new("Attachment",dis)
  5706. at2.Position = vt(50000,0,0)
  5707. local trl = Instance.new('Trail',dis)
  5708. trl.Attachment0 = at1
  5709. trl.FaceCamera = true
  5710. trl.Attachment1 = at2
  5711. trl.Texture = "rbxassetid://1049219073"
  5712. trl.LightEmission = 1
  5713. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5714. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5715. trl.Lifetime = 5
  5716. local bv = Instance.new("BodyVelocity")
  5717. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5718. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5719. bv.Parent = dis
  5720. game:GetService("Debris"):AddItem(dis, 5)
  5721. end
  5722. for i = 0, 49 do
  5723. 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)
  5724. 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"))
  5725. end
  5726. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5727. for i = 0, 1 do
  5728. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5729. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5730. end
  5731. for i = 0, 4 do
  5732. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5733. end
  5734. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5735. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5736. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5737. dmg(targetted)
  5738. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5739. for i = 0, 9 do
  5740. 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)
  5741. end
  5742. for i = 0, 24 do
  5743. 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)
  5744. end
  5745. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5746. root.CFrame = originalpos
  5747. for i = 0, 9 do
  5748. 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)
  5749. end
  5750. for i = 0, 24 do
  5751. 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)
  5752. end
  5753. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5754. attack = false
  5755. hum.WalkSpeed = storehumanoidWS
  5756. end
  5757. end
  5758.  
  5759. function CorruptionEvent()
  5760. attack = true
  5761. hum.WalkSpeed = 0
  5762. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5763. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5764. local keptcolor = MAINRUINCOLOR
  5765. for i = 0,4,0.1 do
  5766. swait()
  5767. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5768. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5769. 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)
  5770. 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)
  5771. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5772. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5773. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5774. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5775. end
  5776. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5777. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5778. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5779. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5780. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5781. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5782. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5783. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5784. hum.CameraOffset = vt(0,0,0)
  5785. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5786. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5787. for i = 0, 24 do
  5788. 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"))
  5789. end
  5790. local rrot = 0
  5791. coroutine.resume(coroutine.create(function()
  5792. for i = 0, 4 do
  5793. rrot = rrot + 45
  5794. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5795. xa.Anchored = true
  5796. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5797. xb.Anchored = true
  5798. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5799. xc.Anchored = true
  5800. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5801. xd.Anchored = true
  5802. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5803. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5804. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5805. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5806. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5807. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5808. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5809. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5810. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5811. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5812. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5813. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5814. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5815. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5816. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5817. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5818. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5819. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5820. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5821. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5822. for i = 0, 9 do
  5823. 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"))
  5824. 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"))
  5825. 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"))
  5826. 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"))
  5827. end
  5828. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5829. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5830. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5831. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5832. 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)
  5833. 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)
  5834. 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)
  5835. 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)
  5836. 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))
  5837. 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))
  5838. 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))
  5839. 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))
  5840. game:GetService("Debris"):AddItem(xa, 5)
  5841. game:GetService("Debris"):AddItem(xb, 5)
  5842. game:GetService("Debris"):AddItem(xc, 5)
  5843. game:GetService("Debris"):AddItem(xd, 5)
  5844. coroutine.resume(coroutine.create(function()
  5845. for i = 0, 19 do
  5846. swait()
  5847. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5848. end
  5849. hum.CameraOffset = vt(0,0,0)
  5850. end))
  5851. swait(9)
  5852. end
  5853. end))
  5854. for i = 0,2,0.1 do
  5855. swait()
  5856. 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)
  5857. 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)
  5858. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5859. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5860. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5861. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5862. end
  5863. attack = false
  5864. hum.WalkSpeed = storehumanoidWS
  5865. end
  5866.  
  5867. function EndGROUND()
  5868. attack = true
  5869. hum.WalkSpeed = 0
  5870. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5871. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5872. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5873. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5874. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5875. local keptcolor = MAINRUINCOLOR
  5876. for i = 0,4,0.1 do
  5877. swait()
  5878. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5879. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5880. 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"))
  5881. 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)
  5882. 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)
  5883. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5884. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5885. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5886. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5887. end
  5888. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5889. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5890. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5891. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5892. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5893. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5894. coroutine.resume(coroutine.create(function()
  5895. local shval = 10
  5896. for i = 0, 99 do
  5897. swait()
  5898. shval = shval - 0.1
  5899. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5900. end
  5901. hum.CameraOffset = vt(0,0,0)
  5902. end))
  5903. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5904. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5905. for i = 0, 24 do
  5906. 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"))
  5907. end
  5908. local rrot = 0
  5909. local xam = 1
  5910. coroutine.resume(coroutine.create(function()
  5911. for i = 0, 14 do
  5912. --swait()
  5913. rrot = rrot + 40*xam
  5914. xam = xam + 0.25
  5915. local bonus = xam
  5916. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5917. xa.Anchored = true
  5918. xa.Color = Color3.new(0,0,0)
  5919. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5920. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5921. local xc = 0
  5922. coroutine.resume(coroutine.create(function()
  5923. for i = 0, 99 do
  5924. swait()
  5925. xc = xc + 0.01
  5926. xa.Color = Color3.new(xc,0,0)
  5927. end
  5928. xa.Transparency = 1
  5929. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5930. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5931. for i = 0, 9 do
  5932. 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"))
  5933. end
  5934. 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)
  5935. 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)
  5936. 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))
  5937. game:GetService("Debris"):AddItem(xa, 5)
  5938. coroutine.resume(coroutine.create(function()
  5939. for i = 0, 19 do
  5940. swait()
  5941. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5942. end
  5943. hum.CameraOffset = vt(0,0,0)
  5944. end))
  5945. end))
  5946. end
  5947. end))
  5948. for i = 0,2,0.1 do
  5949. swait()
  5950. 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)
  5951. 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)
  5952. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5953. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5954. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5955. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5956. end
  5957. attack = false
  5958. hum.WalkSpeed = storehumanoidWS
  5959. end
  5960.  
  5961. function HeavenlyDisk()
  5962. attack = true
  5963. hum.WalkSpeed = 2
  5964. local keptcolor = MAINRUINCOLOR
  5965. local radm = math.random(1,3)
  5966. if radm == 1 then
  5967. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5968. elseif radm == 2 then
  5969. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5970. elseif radm == 3 then
  5971. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5972. end
  5973. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5974. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5975. 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)
  5976. 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)
  5977. for i = 0, 14 do
  5978. 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)
  5979. end
  5980. for i = 0,2,0.1 do
  5981. swait()
  5982. 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)
  5983. 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)
  5984. 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)
  5985. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5986. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5987. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5988. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5989. end
  5990. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5991. for i = 0,1,0.6 do
  5992. swait()
  5993. 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)
  5994. 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"))
  5995. 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)
  5996. 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)
  5997. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5998. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5999. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6000. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6001. end
  6002. for i = 0,1,0.6 do
  6003. swait()
  6004. 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)
  6005. 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"))
  6006. 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)
  6007. 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)
  6008. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6009. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6010. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6011. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6012. end
  6013. for i = 0,1,0.6 do
  6014. swait()
  6015. 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)
  6016. 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"))
  6017. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6018. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6022. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6023. end
  6024. for i = 0,1,0.6 do
  6025. swait()
  6026. 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)
  6027. 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"))
  6028. 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)
  6029. 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)
  6030. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6031. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6033. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6034. end
  6035. local rot = 15
  6036. for i = 0, 2 do
  6037. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6038. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6039. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6040. CreateMesh(dis,"Sphere",10,1,10)
  6041. local at1 = Instance.new("Attachment",dis)
  6042. at1.Position = vt(-5,0,0)
  6043. local at2 = Instance.new("Attachment",dis)
  6044. at2.Position = vt(5,0,0)
  6045. local trl = Instance.new('Trail',wed)
  6046. trl.Attachment0 = at1
  6047. trl.Attachment1 = at2
  6048. trl.Texture = "rbxassetid://1049219073"
  6049. trl.LightEmission = 1
  6050. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6051. trl.Color = ColorSequence.new(dis.Color)
  6052. trl.Lifetime = 0.6
  6053. local a = Instance.new("Part",workspace)
  6054. a.Name = "Direction"
  6055. a.Anchored = true
  6056. a.BrickColor = bc("Bright red")
  6057. a.Material = "Neon"
  6058. a.Transparency = 1
  6059. a.CanCollide = false
  6060. local ray = Ray.new(
  6061. dis.CFrame.p, -- origin
  6062. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6063. )
  6064. local ignore = dis
  6065. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6066. a.BottomSurface = 10
  6067. a.TopSurface = 10
  6068. local distance = (dis.CFrame.p - position).magnitude
  6069. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6070. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6071. dis.CFrame = a.CFrame
  6072. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6073. a:Destroy()
  6074. local bv = Instance.new("BodyVelocity")
  6075. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6076. bv.velocity = dis.CFrame.lookVector*250
  6077. bv.Parent = dis
  6078. game:GetService("Debris"):AddItem(dis, 5)
  6079. local hitted = false
  6080. coroutine.resume(coroutine.create(function()
  6081. dis.Touched:connect(function(hit)
  6082. if hitted == false and hit.Parent ~= char then
  6083. hitted = true
  6084. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6085. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6086. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6087. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6088. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6089. coroutine.resume(coroutine.create(function()
  6090. for i = 0, 9 do
  6091. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6092. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6093. local at1 = Instance.new("Attachment",disr)
  6094. at1.Position = vt(-2,0,0)
  6095. local at2 = Instance.new("Attachment",disr)
  6096. at2.Position = vt(2,0,0)
  6097. local trl = Instance.new('Trail',disr)
  6098. trl.Attachment0 = at1
  6099. trl.FaceCamera = true
  6100. trl.Attachment1 = at2
  6101. trl.Texture = "rbxassetid://2342682798"
  6102. trl.LightEmission = 1
  6103. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6104. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6105. trl.Lifetime = 0.5
  6106. local bv = Instance.new("BodyVelocity")
  6107. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6108. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6109. bv.Parent = disr
  6110. local val = 0
  6111. coroutine.resume(coroutine.create(function()
  6112. swait(30)
  6113. for i = 0, 9 do
  6114. swait()
  6115. val = val + 0.1
  6116. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6117. end
  6118. game:GetService("Debris"):AddItem(disr, 3)
  6119. end))
  6120. end
  6121. local eff = Instance.new("ParticleEmitter",dis)
  6122. eff.Texture = "rbxassetid://2273224484"
  6123. eff.LightEmission = 1
  6124. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6125. eff.Rate = 500000
  6126. eff.Lifetime = NumberRange.new(0.5,2)
  6127. 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)})
  6128. 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)})
  6129. eff.Speed = NumberRange.new(20,250)
  6130. eff.Drag = 5
  6131. eff.Rotation = NumberRange.new(-500,500)
  6132. eff.VelocitySpread = 9000
  6133. eff.RotSpeed = NumberRange.new(-50,50)
  6134. wait(0.25)
  6135. eff.Enabled = false
  6136. end))
  6137. for i = 0, 9 do
  6138. 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"))
  6139. end
  6140. for i = 0, 19 do
  6141. 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)
  6142. end
  6143. coroutine.resume(coroutine.create(function()
  6144. for i = 0, 19 do
  6145. swait()
  6146. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6147. end
  6148. hum.CameraOffset = vt(0,0,0)
  6149. end))
  6150. dis.Anchored = true
  6151. dis.Transparency = 1
  6152. wait(8)
  6153. dis:Destroy()
  6154. end
  6155. end)
  6156. end))
  6157. rot = rot - 15
  6158. end
  6159. for i = 0,2,0.1 do
  6160. swait()
  6161. 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)
  6162. 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)
  6163. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6164. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6165. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6166. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6167. end
  6168. attack = false
  6169. hum.WalkSpeed = storehumanoidWS
  6170. end
  6171.  
  6172.  
  6173. function RapidBurst()
  6174. attack = true
  6175. hum.WalkSpeed = 0
  6176. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6177. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6178. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6179. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6180. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6181. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6182. local keptcolor = MAINRUINCOLOR
  6183. for i = 0,8,0.1 do
  6184. swait()
  6185. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6186. 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())
  6187. 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)
  6188. 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)
  6189. 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)
  6190. 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)
  6191. 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)
  6192. 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)
  6193. 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)
  6194. end
  6195. for i = 0, 99 do
  6196. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6197. 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)))
  6198. local at1 = Instance.new("Attachment",dis)
  6199. at1.Position = vt(-25000,0,0)
  6200. local at2 = Instance.new("Attachment",dis)
  6201. at2.Position = vt(25000,0,0)
  6202. local trl = Instance.new('Trail',dis)
  6203. trl.Attachment0 = at1
  6204. trl.FaceCamera = true
  6205. trl.Attachment1 = at2
  6206. trl.Texture = "rbxassetid://1049219073"
  6207. trl.LightEmission = 1
  6208. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6209. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6210. trl.Lifetime = 5
  6211. local bv = Instance.new("BodyVelocity")
  6212. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6213. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6214. bv.Parent = dis
  6215. game:GetService("Debris"):AddItem(dis, 5)
  6216. end
  6217. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6218. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6219. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6220. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6221. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6222. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6223. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6224. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6225. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6226. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6227. hum.CameraOffset = vt(0,0,0)
  6228. for i = 0, 24 do
  6229. 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())
  6230. end
  6231. local distam = 0
  6232. coroutine.resume(coroutine.create(function()
  6233. for i = 0, 99 do
  6234. wait()
  6235. distam = distam + 1
  6236. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6237. xa.Anchored = true
  6238. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6239. game:GetService("Debris"):AddItem(xa, 5)
  6240. for i = 0, 4 do
  6241. 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())
  6242. end
  6243. coroutine.resume(coroutine.create(function()
  6244. local eff = Instance.new("ParticleEmitter",xa)
  6245. eff.Texture = "rbxassetid://2273224484"
  6246. eff.LightEmission = 1
  6247. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6248. eff.Rate = 500000
  6249. eff.Lifetime = NumberRange.new(1,3)
  6250. 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)})
  6251. 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)})
  6252. eff.Speed = NumberRange.new(50,500)
  6253. eff.Drag = 5
  6254. eff.Rotation = NumberRange.new(-500,500)
  6255. eff.VelocitySpread = 9000
  6256. eff.RotSpeed = NumberRange.new(-50,50)
  6257. wait(0.25)
  6258. eff.Enabled = false
  6259. end))
  6260. coroutine.resume(coroutine.create(function()
  6261. for i = 0, 19 do
  6262. swait()
  6263. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6264. end
  6265. hum.CameraOffset = vt(0,0,0)
  6266. end))
  6267. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6268. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6269. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6270. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6271. end
  6272. end))
  6273. attack = false
  6274. hum.WalkSpeed = storehumanoidWS
  6275. end
  6276.  
  6277. function InsaneBeam()
  6278. attack = true
  6279. hum.WalkSpeed = 0
  6280. local keptcolor = MAINRUINCOLOR
  6281. local orb = Instance.new("Part", char)
  6282. orb.BrickColor = keptcolor
  6283. orb.CanCollide = false
  6284. orb.FormFactor = 3
  6285. orb.Name = "Ring"
  6286. orb.Material = "Neon"
  6287. orb.Size = Vector3.new(1, 1, 1)
  6288. orb.Transparency = 1
  6289. orb.TopSurface = 0
  6290. orb.BottomSurface = 0
  6291. local orbm = Instance.new("SpecialMesh", orb)
  6292. orbm.MeshType = "Sphere"
  6293. orbm.Name = "SizeMesh"
  6294. orbm.Scale = vt(22.5,10000,22.5)
  6295. orb.CFrame = mouse.Hit
  6296. orb.Anchored = true
  6297. orb.Orientation = vt(0,0,0)
  6298. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  6299. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  6300. coroutine.resume(coroutine.create(function()
  6301. coroutine.resume(coroutine.create(function()
  6302. for i = 0, 399 do
  6303. swait()
  6304. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  6305. orb.Transparency = orb.Transparency - 0.0025
  6306. end
  6307. end))
  6308. wait(9)
  6309. coroutine.resume(coroutine.create(function()
  6310. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  6311. if hfr ~= nil then
  6312. for i = 0, 49 do
  6313. local deb = Instance.new("Part", char)
  6314. deb.Anchored = true
  6315. deb.CanCollide = false
  6316. deb.FormFactor = 3
  6317. deb.Name = "Ring"
  6318. deb.Material = hitfloor.Material
  6319. deb.Color = hitfloor.Color
  6320. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  6321. deb.Transparency = 0
  6322. deb.TopSurface = 0
  6323. deb.BottomSurface = 0
  6324. 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)))
  6325. local deb2 = Instance.new("Part", char)
  6326. deb2.CanCollide = false
  6327. deb2.FormFactor = 3
  6328. deb2.Name = "Ring"
  6329. deb2.Material = hitfloor.Material
  6330. deb2.Color = hitfloor.Color
  6331. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  6332. deb2.Transparency = 0
  6333. deb2.TopSurface = 0
  6334. deb2.BottomSurface = 0
  6335. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  6336. 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)))
  6337. local eff = Instance.new("ParticleEmitter",deb)
  6338. eff.Texture = "rbxassetid://363275192"
  6339. eff.LightEmission = 0.95
  6340. eff.Color = ColorSequence.new(keptcolor.Color)
  6341. eff.Rate = 100
  6342. eff.Lifetime = NumberRange.new(1)
  6343. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  6344. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6345. eff.Speed = NumberRange.new(0,5)
  6346. eff.Rotation = NumberRange.new(-500,500)
  6347. eff.VelocitySpread = 9000
  6348. eff.RotSpeed = NumberRange.new(-10,10)
  6349. local at1 = Instance.new('Attachment',deb2)
  6350. at1.Position = vt(0,15,0)
  6351. local at2 = Instance.new('Attachment',deb2)
  6352. at2.Position = vt(0,-15,0)
  6353. local tl = Instance.new('Trail',deb2)
  6354. tl.Attachment0 = at1
  6355. tl.Attachment1 = at2
  6356. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6357. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  6358. tl.Lifetime = 1
  6359. game:GetService("Debris"):AddItem(deb,30)
  6360. game:GetService("Debris"):AddItem(deb2,30)
  6361. coroutine.resume(coroutine.create(function()
  6362. wait(15)
  6363. eff.Enabled = false
  6364. for i = 0, 49 do
  6365. swait()
  6366. deb.Transparency = deb.Transparency + 0.02
  6367. end
  6368. wait(1)
  6369. deb:Destroy()
  6370. end))
  6371. end
  6372. end
  6373. end))
  6374. for i = 0, 199 do
  6375. swait(1.5)
  6376. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  6377. if v:FindFirstChild('Head') then
  6378. dmg(v)
  6379. end
  6380. end
  6381. 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)
  6382. 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)
  6383. 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)
  6384. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  6385. end
  6386. orb:Destroy()
  6387. end))
  6388. hum.WalkSpeed = storehumanoidWS
  6389. attack = false
  6390. end
  6391.  
  6392. function InsaneDrop()
  6393. attack = true
  6394. hum.WalkSpeed = 0
  6395. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6396. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6397. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6398. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6399. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6400. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6401. local keptcolor = MAINRUINCOLOR
  6402. for i = 0,8,0.1 do
  6403. swait()
  6404. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6405. 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())
  6406. 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)
  6407. 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)
  6408. 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)
  6409. 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)
  6410. 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)
  6411. 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)
  6412. 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)
  6413. end
  6414. for i = 0, 99 do
  6415. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6416. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6417. local at1 = Instance.new("Attachment",dis)
  6418. at1.Position = vt(-25000,0,0)
  6419. local at2 = Instance.new("Attachment",dis)
  6420. at2.Position = vt(25000,0,0)
  6421. local trl = Instance.new('Trail',dis)
  6422. trl.Attachment0 = at1
  6423. trl.FaceCamera = true
  6424. trl.Attachment1 = at2
  6425. trl.Texture = "rbxassetid://1049219073"
  6426. trl.LightEmission = 1
  6427. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6428. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6429. trl.Lifetime = 5
  6430. local bv = Instance.new("BodyVelocity")
  6431. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6432. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6433. bv.Parent = dis
  6434. game:GetService("Debris"):AddItem(dis, 5)
  6435. end
  6436. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6437. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6438. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6439. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6440. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6441. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6442. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6443. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6444. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6445. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6446. hum.CameraOffset = vt(0,0,0)
  6447. for i = 0, 24 do
  6448. 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())
  6449. end
  6450. local distam = 0
  6451. coroutine.resume(coroutine.create(function()
  6452. for i = 0, 99 do
  6453. wait()
  6454. distam = distam + 1
  6455. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6456. xa.Anchored = true
  6457. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6458. game:GetService("Debris"):AddItem(xa, 5)
  6459. for i = 0, 4 do
  6460. 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())
  6461. end
  6462. coroutine.resume(coroutine.create(function()
  6463. local eff = Instance.new("ParticleEmitter",xa)
  6464. eff.Texture = "rbxassetid://2273224484"
  6465. eff.LightEmission = 1
  6466. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6467. eff.Rate = 500000
  6468. eff.Lifetime = NumberRange.new(1,3)
  6469. 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)})
  6470. 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)})
  6471. eff.Speed = NumberRange.new(50,500)
  6472. eff.Drag = 5
  6473. eff.Rotation = NumberRange.new(-500,500)
  6474. eff.VelocitySpread = 9000
  6475. eff.RotSpeed = NumberRange.new(-50,50)
  6476. wait(0.25)
  6477. eff.Enabled = false
  6478. end))
  6479. coroutine.resume(coroutine.create(function()
  6480. for i = 0, 19 do
  6481. swait()
  6482. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6483. end
  6484. hum.CameraOffset = vt(0,0,0)
  6485. end))
  6486. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6487. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6488. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6489. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6490. end
  6491. end))
  6492. attack = false
  6493. hum.WalkSpeed = storehumanoidWS
  6494. end
  6495.  
  6496. function FallenOrbs()
  6497. attack = true
  6498. hum.WalkSpeed = 2
  6499. local keptcolor = MAINRUINCOLOR
  6500. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6501. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6502. local radm = math.random(1,3)
  6503. if radm == 1 then
  6504. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6505. elseif radm == 2 then
  6506. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6507. elseif radm == 3 then
  6508. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6509. end
  6510. coroutine.resume(coroutine.create(function()
  6511. for i = 0, 29 do
  6512. swait(2)
  6513. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6514. dis.Anchored = true
  6515. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6516. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6517. CreateMesh(dis,"Sphere",2,2,2)
  6518. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6519. 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"))
  6520. coroutine.resume(coroutine.create(function()
  6521. wait(0.5)
  6522. dis.Anchored = false
  6523. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6524. local at1 = Instance.new("Attachment",dis)
  6525. at1.Position = vt(-1,0,0)
  6526. local at2 = Instance.new("Attachment",dis)
  6527. at2.Position = vt(1,0,0)
  6528. local trl = Instance.new('Trail',dis)
  6529. trl.Attachment0 = at1
  6530. trl.FaceCamera = true
  6531. trl.Attachment1 = at2
  6532. trl.Texture = "rbxassetid://1049219073"
  6533. trl.LightEmission = 1
  6534. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6535. trl.Color = ColorSequence.new(dis.Color)
  6536. trl.Lifetime = 0.6
  6537. local a = Instance.new("Part",workspace)
  6538. a.Name = "Direction"
  6539. a.Anchored = true
  6540. a.BrickColor = bc("Bright red")
  6541. a.Material = "Neon"
  6542. a.Transparency = 1
  6543. a.CanCollide = false
  6544. local ray = Ray.new(
  6545. dis.CFrame.p, -- origin
  6546. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6547. )
  6548. local ignore = dis
  6549. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6550. a.BottomSurface = 10
  6551. a.TopSurface = 10
  6552. local distance = (dis.CFrame.p - position).magnitude
  6553. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6554. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6555. dis.CFrame = a.CFrame
  6556. a:Destroy()
  6557. local bv = Instance.new("BodyVelocity")
  6558. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6559. bv.velocity = dis.CFrame.lookVector*500
  6560. bv.Parent = dis
  6561. game:GetService("Debris"):AddItem(dis, 5)
  6562. local hitted = false
  6563. coroutine.resume(coroutine.create(function()
  6564. dis.Touched:connect(function(hit)
  6565. if hitted == false and hit.Parent ~= char then
  6566. hitted = true
  6567. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6568. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6569. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6570. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6571. coroutine.resume(coroutine.create(function()
  6572. for i = 0, 4 do
  6573. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6574. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6575. local at1 = Instance.new("Attachment",disr)
  6576. at1.Position = vt(-10,0,0)
  6577. local at2 = Instance.new("Attachment",disr)
  6578. at2.Position = vt(10,0,0)
  6579. local trl = Instance.new('Trail',disr)
  6580. trl.Attachment0 = at1
  6581. trl.FaceCamera = true
  6582. trl.Attachment1 = at2
  6583. trl.Texture = "rbxassetid://2342682798"
  6584. trl.LightEmission = 1
  6585. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6586. trl.Color = ColorSequence.new(disr.Color)
  6587. trl.Lifetime = 0.5
  6588. local bv = Instance.new("BodyVelocity")
  6589. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6590. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6591. bv.Parent = disr
  6592. local val = 0
  6593. coroutine.resume(coroutine.create(function()
  6594. swait(30)
  6595. for i = 0, 9 do
  6596. swait()
  6597. val = val + 0.1
  6598. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6599. end
  6600. game:GetService("Debris"):AddItem(disr, 3)
  6601. end))
  6602. end
  6603. local eff = Instance.new("ParticleEmitter",dis)
  6604. eff.Texture = "rbxassetid://1049219073"
  6605. eff.LightEmission = 1
  6606. eff.Color = ColorSequence.new(dis.Color)
  6607. eff.Rate = 500000
  6608. eff.Lifetime = NumberRange.new(0.5,2)
  6609. 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)})
  6610. 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)})
  6611. eff.Speed = NumberRange.new(20,250)
  6612. eff.Drag = 5
  6613. eff.Rotation = NumberRange.new(-500,500)
  6614. eff.VelocitySpread = 9000
  6615. eff.RotSpeed = NumberRange.new(-50,50)
  6616. wait(0.5)
  6617. eff.Enabled = false
  6618. end))
  6619. for i = 0, 4 do
  6620. 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"))
  6621. end
  6622. coroutine.resume(coroutine.create(function()
  6623. for i = 0, 19 do
  6624. swait()
  6625. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6626. end
  6627. hum.CameraOffset = vt(0,0,0)
  6628. end))
  6629. dis.Anchored = true
  6630. dis.Transparency = 1
  6631. wait(8)
  6632. dis:Destroy()
  6633. end
  6634. end)
  6635. end))
  6636. end))
  6637. end
  6638. end))
  6639. for i = 0,9,0.1 do
  6640. swait()
  6641. 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)
  6642. 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)
  6643. 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)
  6644. 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)
  6645. 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)
  6646. 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)
  6647. 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)
  6648. end
  6649. attack = false
  6650. hum.WalkSpeed = storehumanoidWS
  6651. end
  6652.  
  6653. function CyberSlash()
  6654. local posit = -2
  6655. attack = true
  6656. hum.WalkSpeed = 5
  6657. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6658. local radm = math.random(1,3)
  6659. if radm == 1 then
  6660. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6661. elseif radm == 2 then
  6662. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6663. elseif radm == 3 then
  6664. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6665. end
  6666. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6667. for i = 0,2,0.1 do
  6668. swait()
  6669. 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)
  6670. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6671. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6672. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6673. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6674. 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)
  6675. 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)
  6676. end
  6677. for i = 0, 2 do
  6678. CameraEnshaking(1,2)
  6679. local hite = Instance.new("Part", char)
  6680. hite.Anchored = true
  6681. hite.CanCollide = false
  6682. hite.FormFactor = 3
  6683. hite.Name = "Ring"
  6684. hite.Material = "Neon"
  6685. hite.Size = Vector3.new(1, 1, 1)
  6686. hite.Transparency = 1
  6687. hite.TopSurface = 0
  6688. hite.BottomSurface = 0
  6689. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6690. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6691. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6692. coroutine.resume(coroutine.create(function()
  6693. for i = 0, 1 do
  6694. swait()
  6695. 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)
  6696. 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)
  6697. 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)
  6698. end
  6699. end))
  6700. 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)
  6701. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6702. game:GetService("Debris"):AddItem(hite, 5)
  6703. posit = posit + 2
  6704. end
  6705. for i = 0,1,0.1 do
  6706. swait()
  6707. 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)
  6708. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6709. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6710. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6711. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6712. 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)
  6713. 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)
  6714. end
  6715. for i = 0,1,0.1 do
  6716. swait()
  6717. 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)
  6718. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6719. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6720. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6721. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6722. 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)
  6723. 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)
  6724. end
  6725. posit = -6
  6726. for i = 0, 6 do
  6727. CameraEnshaking(1,3)
  6728. local hite = Instance.new("Part", char)
  6729. hite.Anchored = true
  6730. hite.CanCollide = false
  6731. hite.FormFactor = 3
  6732. hite.Name = "Ring"
  6733. hite.Material = "Neon"
  6734. hite.Size = Vector3.new(1, 1, 1)
  6735. hite.Transparency = 1
  6736. hite.TopSurface = 0
  6737. hite.BottomSurface = 0
  6738. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6739. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6740. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6741. 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)
  6742. coroutine.resume(coroutine.create(function()
  6743. for i = 0, 2 do
  6744. swait()
  6745. 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)
  6746. 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)
  6747. 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)
  6748. end
  6749. end))
  6750. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6751. game:GetService("Debris"):AddItem(hite, 5)
  6752. posit = posit + 2
  6753. end
  6754. for i = 0,1,0.1 do
  6755. swait()
  6756. 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)
  6757. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6758. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6759. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6760. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6761. 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)
  6762. 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)
  6763. end
  6764. hum.WalkSpeed = storehumanoidWS
  6765. attack = false
  6766. end
  6767.  
  6768. function EquinoxOrbs()
  6769. hum.WalkSpeed = 0
  6770. attack = true
  6771. local radm = math.random(1,3)
  6772. if radm == 1 then
  6773. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6774. elseif radm == 2 then
  6775. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6776. elseif radm == 3 then
  6777. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6778. end
  6779. for i = 0,1,0.1 do
  6780. swait()
  6781. 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)
  6782. 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)
  6783. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6784. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6785. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6786. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6787. end
  6788. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6789. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6790. for i = 0, 24 do
  6791. 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"))
  6792. end
  6793. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6794. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6795. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6796. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6797. for i = 0,4,0.1 do
  6798. swait()
  6799. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6800. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6801. CreateMesh(dis,"Sphere",1,1,1)
  6802. dis.Anchored = true
  6803. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6804. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6805. CreateMesh(dis2,"Sphere",1,1,1)
  6806. dis2.Anchored = true
  6807. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6808. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6809. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6810. coroutine.resume(coroutine.create(function()
  6811. swait(60)
  6812. dis.Transparency = 1
  6813. dis2.Transparency = 1
  6814. coroutine.resume(coroutine.create(function()
  6815. for i = 0, 19 do
  6816. swait()
  6817. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6818. end
  6819. hum.CameraOffset = vt(0,0,0)
  6820. end))
  6821. coroutine.resume(coroutine.create(function()
  6822. local eff = Instance.new("ParticleEmitter",dis)
  6823. eff.Texture = "rbxassetid://2273224484"
  6824. eff.LightEmission = 1
  6825. eff.Color = ColorSequence.new(dis.Color)
  6826. eff.Rate = 500000
  6827. eff.Lifetime = NumberRange.new(0.5,2)
  6828. 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)})
  6829. 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)})
  6830. eff.Speed = NumberRange.new(50,450)
  6831. eff.Drag = 5
  6832. eff.Rotation = NumberRange.new(-500,500)
  6833. eff.VelocitySpread = 9000
  6834. eff.RotSpeed = NumberRange.new(-50,50)
  6835. local eff2 = eff:Clone()
  6836. eff2.Parent = dis2
  6837. eff2.LightEmission = 0
  6838. eff2.Color = ColorSequence.new(dis2.Color)
  6839. wait(0.25)
  6840. eff.Enabled = false
  6841. eff2.Enabled = false
  6842. end))
  6843. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6844. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6845. for i = 0, 2 do
  6846. 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)
  6847. 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)
  6848. end
  6849. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6850. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6851. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6852. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6853. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6854. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6855. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6856. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6857. end))
  6858. game:GetService("Debris"):AddItem(dis, 5)
  6859. game:GetService("Debris"):AddItem(dis2, 5)
  6860. 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)
  6861. 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)
  6862. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6863. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6864. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6865. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6866. end
  6867. attack = false
  6868. hum.WalkSpeed = storehumanoidWS
  6869. end
  6870. function FallenDEMISE()
  6871. attack = true
  6872. hum.WalkSpeed = 0
  6873. local keptcolor = MAINRUINCOLOR
  6874. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6875. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6876. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6877. for i = 0, 15, 0.1 do
  6878. swait()
  6879. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6880. 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)))
  6881. local at1 = Instance.new("Attachment",dis)
  6882. at1.Position = vt(-25000,0,0)
  6883. local at2 = Instance.new("Attachment",dis)
  6884. at2.Position = vt(25000,0,0)
  6885. local trl = Instance.new('Trail',dis)
  6886. trl.Attachment0 = at1
  6887. trl.FaceCamera = true
  6888. trl.Attachment1 = at2
  6889. trl.Texture = "rbxassetid://1049219073"
  6890. trl.LightEmission = 1
  6891. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6892. trl.Color = ColorSequence.new(dis.Color)
  6893. trl.Lifetime = 5
  6894. local bv = Instance.new("BodyVelocity")
  6895. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6896. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6897. bv.Parent = dis
  6898. game:GetService("Debris"):AddItem(dis, 1)
  6899. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6900. 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"))
  6901. 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"))
  6902. 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)
  6903. 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)
  6904. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6905. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6906. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6907. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6908. end
  6909. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6910. for i = 0, 30, 0.1 do
  6911. swait()
  6912. coroutine.resume(coroutine.create(function()
  6913. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6914. if v:FindFirstChild('Head') then
  6915. dmg(v)
  6916. end
  6917. end
  6918. end))
  6919. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6920. 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)))
  6921. local at1 = Instance.new("Attachment",dis)
  6922. at1.Position = vt(-50000,0,0)
  6923. local at2 = Instance.new("Attachment",dis)
  6924. at2.Position = vt(50000,0,0)
  6925. local trl = Instance.new('Trail',dis)
  6926. trl.Attachment0 = at1
  6927. trl.FaceCamera = true
  6928. trl.Attachment1 = at2
  6929. trl.Texture = "rbxassetid://1049219073"
  6930. trl.LightEmission = 1
  6931. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6932. trl.Color = ColorSequence.new(dis.Color)
  6933. trl.Lifetime = 10
  6934. local bv = Instance.new("BodyVelocity")
  6935. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6936. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6937. bv.Parent = dis
  6938. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6939. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6940. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6941. 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"))
  6942. 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"))
  6943. 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"))
  6944. 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"))
  6945. for i = 0, 2 do
  6946. 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)
  6947. end
  6948. 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)
  6949. 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)
  6950. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6951. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6952. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6953. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6954. end
  6955. attack = false
  6956. hum.WalkSpeed = storehumanoidWS
  6957. end
  6958.  
  6959. function SpeedDrop()
  6960. attack = true
  6961. hum.WalkSpeed = 0
  6962. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6963. local poste = 3
  6964. local rotation = 0
  6965. local rate = 0
  6966. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6967. for i = 0, 124 do
  6968. swait()
  6969. rotation = rotation + rate
  6970. poste = poste + 0.1
  6971. rate = rate + 0.1
  6972. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6973. 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)
  6974. 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)
  6975. 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)
  6976. 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)
  6977. 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)
  6978. 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)
  6979. 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)
  6980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6982. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6983. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6984. end
  6985. CameraEnshaking(3,7)
  6986. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6987. local loc = Instance.new("Part", char)
  6988. loc.BrickColor = MAINRUINCOLOR
  6989. loc.CanCollide = false
  6990. loc.FormFactor = 3
  6991. loc.Name = "Ring"
  6992. loc.Material = "Neon"
  6993. loc.Size = Vector3.new(1, 1, 1)
  6994. loc.Transparency = 1
  6995. loc.TopSurface = 0
  6996. loc.BottomSurface = 0
  6997. loc.Anchored = true
  6998. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6999. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7000. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7001. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7002. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7003. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7004. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7005. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7006. coroutine.resume(coroutine.create(function()
  7007. local eff = Instance.new("ParticleEmitter",loc)
  7008. eff.Texture = "rbxassetid://363275192"
  7009. eff.LightEmission = 0.95
  7010. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7011. eff.Rate = 10000
  7012. eff.Lifetime = NumberRange.new(1)
  7013. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7014. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7015. eff.Speed = NumberRange.new(100,500)
  7016. eff.Drag = 5
  7017. eff.Rotation = NumberRange.new(-500,500)
  7018. eff.VelocitySpread = 9000
  7019. eff.RotSpeed = NumberRange.new(-50,50)
  7020. wait(0.5)
  7021. eff.Enabled = false
  7022. end))
  7023. for i = 0, 49 do
  7024. 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)
  7025. end
  7026. for i = 0, 9 do
  7027. 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)
  7028. end
  7029. game:GetService("Debris"):AddItem(loc, 5)
  7030. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7031. hum.WalkSpeed = storehumanoidWS
  7032. attack = false
  7033. end
  7034.  
  7035. function cutesigh()
  7036. attack = true
  7037. hum.WalkSpeed = 0
  7038. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7039. local blush = Instance.new("Decal",hed)
  7040. blush.Texture = "rbxassetid://898404027"
  7041. blush.Face = "Front"
  7042. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7043. for i = 0, 9, 0.1 do
  7044. swait()
  7045. 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)
  7046. 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)
  7047. 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)
  7048. 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)
  7049. 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)
  7050. 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)
  7051. end
  7052. coroutine.resume(coroutine.create(function()
  7053. for i = 0, 49 do
  7054. swait()
  7055. blush.Transparency = blush.Transparency + 0.02
  7056. end
  7057. blush:Destroy()
  7058. end))
  7059. hum.WalkSpeed = storehumanoidWS
  7060. attack = false
  7061. end
  7062.  
  7063. function smiter()
  7064. local targetted = nil
  7065. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7066. targetted = mouse.Target.Parent
  7067. end
  7068. if targetted ~= nil then
  7069. RootPart.CFrame = FaceMouse()[1]
  7070. attack = true
  7071. local radm = math.random(1,3)
  7072. if radm == 1 then
  7073. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7074. elseif radm == 2 then
  7075. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7076. elseif radm == 3 then
  7077. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7078. end
  7079. hum.WalkSpeed = 0
  7080. coroutine.resume(coroutine.create(function()
  7081. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7082. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7083. local vel = Instance.new("BodyPosition", targetted.Head)
  7084. vel.P = 12500
  7085. vel.D = 1000
  7086. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7087. vel.position = targetted.Head.CFrame.p
  7088. end))
  7089. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7090. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7091. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7092. for i = 0,4,0.1 do
  7093. swait()
  7094. 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)
  7095. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7096. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7097. 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)
  7098. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7099. 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)
  7100. 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)
  7101. end
  7102. coroutine.resume(coroutine.create(function()
  7103. CameraEnshaking(6,5)
  7104. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7105. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7106. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7107. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7108. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7109. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7110. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7111. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7112. coroutine.resume(coroutine.create(function()
  7113. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7114. eff.Texture = "rbxassetid://2273224484"
  7115. eff.LightEmission = 1
  7116. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7117. eff.Rate = 500000
  7118. eff.Lifetime = NumberRange.new(0.5,2)
  7119. 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)})
  7120. 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)})
  7121. eff.Speed = NumberRange.new(20,250)
  7122. eff.Drag = 5
  7123. eff.Rotation = NumberRange.new(-500,500)
  7124. eff.VelocitySpread = 9000
  7125. eff.RotSpeed = NumberRange.new(-50,50)
  7126. wait(0.25)
  7127. eff.Enabled = false
  7128. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7129. eff.Texture = "rbxassetid://363275192"
  7130. eff.LightEmission = 0.95
  7131. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7132. eff.Rate = 10000
  7133. eff.Lifetime = NumberRange.new(1.5)
  7134. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7135. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7136. eff.Speed = NumberRange.new(25,150)
  7137. eff.Drag = 5
  7138. eff.Rotation = NumberRange.new(-500,500)
  7139. eff.VelocitySpread = 9000
  7140. eff.RotSpeed = NumberRange.new(-50,50)
  7141. local eff2 = eff:Clone()
  7142. eff2.Parent = targetted.Head
  7143. eff2.Texture = "rbxassetid://284205403"
  7144. eff2.Rate = 10000
  7145. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7146. eff2.Drag = 5
  7147. eff2.Rotation = NumberRange.new(-500,500)
  7148. eff2.VelocitySpread = 9000
  7149. wait(0.5)
  7150. eff2.Enabled = false
  7151. eff.Enabled = false
  7152. end))
  7153. for i = 0, 9 do
  7154. 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)
  7155. end
  7156. for i = 0, 49 do
  7157. local rsiz = math.random(10,50)
  7158. 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)
  7159. end
  7160. game:GetService("Debris"):AddItem(vel,1)
  7161. dmg(targetted)
  7162. end))
  7163. for i = 0,1,0.1 do
  7164. swait()
  7165. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7166. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7167. 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)
  7168. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7169. 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)
  7170. 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)
  7171. end
  7172. attack = false
  7173. hum.WalkSpeed = storehumanoidWS
  7174. end
  7175. end
  7176.  
  7177. function shytaunty()
  7178. attack = true
  7179. hum.WalkSpeed = 0
  7180. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7181. local blush = Instance.new("Decal",hed)
  7182. blush.Texture = "rbxassetid://898404027"
  7183. blush.Face = "Front"
  7184. for i = 0, 13, 0.1 do
  7185. swait()
  7186. 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)
  7187. 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)
  7188. 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)
  7189. 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)
  7190. 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)
  7191. 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)
  7192. end
  7193. coroutine.resume(coroutine.create(function()
  7194. for i = 0, 49 do
  7195. swait()
  7196. blush.Transparency = blush.Transparency + 0.02
  7197. end
  7198. blush:Destroy()
  7199. end))
  7200. hum.WalkSpeed = storehumanoidWS
  7201. attack = false
  7202. end
  7203.  
  7204. function PureBomb()
  7205. attack = true
  7206. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7207. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7208. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7209. local orb = Instance.new("Part", char)
  7210. orb.Anchored = true
  7211. orb.BrickColor = BrickColor.new("Toothpaste")
  7212. orb.CanCollide = false
  7213. orb.FormFactor = 3
  7214. orb.Name = "Ring"
  7215. orb.Material = "Neon"
  7216. orb.Size = Vector3.new(1, 1, 1)
  7217. orb.Transparency = 0
  7218. orb.TopSurface = 0
  7219. orb.BottomSurface = 0
  7220. local orbm = Instance.new("SpecialMesh", orb)
  7221. orbm.MeshType = "Sphere"
  7222. orbm.Name = "SizeMesh"
  7223. orbm.Scale = vt(0,0,0)
  7224. local scaled = 0.1
  7225. local posid = 0
  7226. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7227. for i = 0, 5, 0.1 do
  7228. swait()
  7229. scaled = scaled - 0.001
  7230. posid = posid - scaled
  7231. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7232. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7233. 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)
  7234. 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)
  7235. 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)
  7236. 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)
  7237. 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)
  7238. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7239. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7240. 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)
  7241. end
  7242. for i = 0, 2, 0.1 do
  7243. swait()
  7244. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7245. 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)
  7246. 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)
  7247. 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)
  7248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7249. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7250. 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)
  7251. end
  7252. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7253. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7254. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7255. coroutine.resume(coroutine.create(function()
  7256. orb.Anchored = false
  7257. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7258. local a = Instance.new("Part",workspace)
  7259. a.Name = "Direction"
  7260. a.Anchored = true
  7261. a.BrickColor = bc("Bright red")
  7262. a.Material = "Neon"
  7263. a.Transparency = 1
  7264. a.CanCollide = false
  7265. local ray = Ray.new(
  7266. orb.CFrame.p, -- origin
  7267. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7268. )
  7269. local ignore = orb
  7270. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7271. a.BottomSurface = 10
  7272. a.TopSurface = 10
  7273. local distance = (orb.CFrame.p - position).magnitude
  7274. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7275. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7276. orb.CFrame = a.CFrame
  7277. a:Destroy()
  7278. local bv = Instance.new("BodyVelocity")
  7279. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7280. bv.velocity = orb.CFrame.lookVector*125
  7281. bv.Parent = orb
  7282. local hitted = false
  7283. game:GetService("Debris"):AddItem(orb, 15)
  7284. wait()
  7285. local hit =orb.Touched:connect(function(hit)
  7286. if hitted == false then
  7287. hitted = true
  7288. CameraEnshaking(10,2.5)
  7289. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7290. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7291. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7292. for i = 0, 49 do
  7293. 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)
  7294. end
  7295. local eff = Instance.new("ParticleEmitter",orb)
  7296. eff.Texture = "rbxassetid://2273224484"
  7297. eff.LightEmission = 1
  7298. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7299. eff.Rate = 500000
  7300. eff.Lifetime = NumberRange.new(0.5,2)
  7301. 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)})
  7302. 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)})
  7303. eff.Speed = NumberRange.new(20,250)
  7304. eff.Drag = 5
  7305. eff.Rotation = NumberRange.new(-500,500)
  7306. eff.VelocitySpread = 9000
  7307. eff.RotSpeed = NumberRange.new(-50,50)
  7308. coroutine.resume(coroutine.create(function()
  7309. wait(0.25)
  7310. eff.Enabled = false
  7311. end))
  7312. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7313. for i = 0, 9 do
  7314. 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)
  7315. 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)
  7316. end
  7317. orb.Anchored = true
  7318. orb.Transparency = 1
  7319. local eff = Instance.new("ParticleEmitter",orb)
  7320. eff.Texture = "rbxassetid://2273224484"
  7321. eff.LightEmission = 1
  7322. eff.Color = ColorSequence.new(Color3.new(M))
  7323. eff.Rate = 500000
  7324. eff.Lifetime = NumberRange.new(0.5,2)
  7325. 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)})
  7326. 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)})
  7327. eff.Speed = NumberRange.new(20,250)
  7328. eff.Drag = 5
  7329. eff.Rotation = NumberRange.new(-500,500)
  7330. eff.VelocitySpread = 9000
  7331. eff.RotSpeed = NumberRange.new(-50,50)
  7332. coroutine.resume(coroutine.create(function()
  7333. wait(1)
  7334. eff.Enabled = false
  7335. end))
  7336. wait(8)
  7337. orb:Destroy()
  7338. end
  7339. end)
  7340. end))
  7341. for i = 0, 1, 0.1 do
  7342. swait()
  7343. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  7344. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  7345. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  7346. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7347. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7348. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  7349. end
  7350. attack = false
  7351. end
  7352.  
  7353.  
  7354. function BeamOfDeath()
  7355. coroutine.resume(coroutine.create(function()
  7356. attack = true
  7357. hum.WalkSpeed = 0
  7358. for i = 0, 11, 0.1 do
  7359. swait()
  7360. 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)
  7361. 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)
  7362. 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)
  7363. 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)
  7364. 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)
  7365. 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)
  7366. end
  7367. for i = 0, 1, 0.1 do
  7368. swait()
  7369. 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)
  7370. 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)
  7371. 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)
  7372. 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)
  7373. 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)
  7374. 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)
  7375. end
  7376. hum.WalkSpeed = storehumanoidWS
  7377. attack = false
  7378. end))
  7379. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7380. local radm = math.random(1,3)
  7381. if radm == 1 then
  7382. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7383. elseif radm == 2 then
  7384. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7385. elseif radm == 3 then
  7386. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7387. end
  7388. local keptcolor = MAINRUINCOLOR
  7389. local orb = Instance.new("Part", char)
  7390. orb.BrickColor = keptcolor
  7391. orb.CanCollide = false
  7392. orb.FormFactor = 3
  7393. orb.Name = "Ring"
  7394. orb.Material = "Neon"
  7395. orb.Size = Vector3.new(1, 1, 1)
  7396. orb.Transparency = 1
  7397. orb.TopSurface = 0
  7398. orb.BottomSurface = 0
  7399. local orbm = Instance.new("SpecialMesh", orb)
  7400. orbm.MeshType = "Sphere"
  7401. orbm.Name = "SizeMesh"
  7402. orbm.Scale = vt(22.5,10000,22.5)
  7403. orb.CFrame = mouse.Hit
  7404. orb.Anchored = true
  7405. orb.Orientation = vt(0,0,0)
  7406. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7407. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7408. coroutine.resume(coroutine.create(function()
  7409. coroutine.resume(coroutine.create(function()
  7410. for i = 0, 175 do
  7411. swait()
  7412. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7413. orb.Transparency = orb.Transparency - 0.005
  7414. end
  7415. end))
  7416. wait(2)
  7417. coroutine.resume(coroutine.create(function()
  7418. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7419. if hfr ~= nil then
  7420. for i = 0, 24.5 do
  7421. local deb = Instance.new("Part", char)
  7422. deb.Anchored = true
  7423. deb.CanCollide = false
  7424. deb.FormFactor = 3
  7425. deb.Name = "Ring"
  7426. deb.Material = hitfloor.Material
  7427. deb.Color = hitfloor.Color
  7428. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7429. deb.Transparency = 0
  7430. deb.TopSurface = 0
  7431. deb.BottomSurface = 0
  7432. 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)))
  7433. local deb2 = Instance.new("Part", char)
  7434. deb2.CanCollide = false
  7435. deb2.FormFactor = 3
  7436. deb2.Name = "Ring"
  7437. deb2.Material = hitfloor.Material
  7438. deb2.Color = hitfloor.Color
  7439. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7440. deb2.Transparency = 0
  7441. deb2.TopSurface = 0
  7442. deb2.BottomSurface = 0
  7443. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7444. 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)))
  7445. local eff = Instance.new("ParticleEmitter",deb)
  7446. eff.Texture = "rbxassetid://363275192"
  7447. eff.LightEmission = 0.95
  7448. eff.Color = ColorSequence.new(keptcolor.Color)
  7449. eff.Rate = 100
  7450. eff.Lifetime = NumberRange.new(1)
  7451. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7452. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7453. eff.Speed = NumberRange.new(0,5)
  7454. eff.Rotation = NumberRange.new(-500,500)
  7455. eff.VelocitySpread = 9000
  7456. eff.RotSpeed = NumberRange.new(-10,10)
  7457. local at1 = Instance.new('Attachment',deb2)
  7458. at1.Position = vt(0,15,0)
  7459. local at2 = Instance.new('Attachment',deb2)
  7460. at2.Position = vt(0,-15,0)
  7461. local tl = Instance.new('Trail',deb2)
  7462. tl.Attachment0 = at1
  7463. tl.Attachment1 = at2
  7464. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7465. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7466. tl.Lifetime = 1
  7467. game:GetService("Debris"):AddItem(deb,30)
  7468. game:GetService("Debris"):AddItem(deb2,30)
  7469. coroutine.resume(coroutine.create(function()
  7470. wait(15)
  7471. eff.Enabled = false
  7472. for i = 0, 49 do
  7473. swait()
  7474. deb.Transparency = deb.Transparency + 0.02
  7475. end
  7476. wait(1)
  7477. deb:Destroy()
  7478. end))
  7479. end
  7480. end
  7481. end))
  7482. for i = 0, 199 do
  7483. swait(1.5)
  7484. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7485. if v:FindFirstChild('Head') then
  7486. dmg(v)
  7487. end
  7488. end
  7489. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7490. 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)
  7491. 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)
  7492. 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)
  7493. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7494. end
  7495. orb:Destroy()
  7496. end))
  7497. end
  7498.  
  7499. function Beams()
  7500. attack = true
  7501. hum.WalkSpeed = 0
  7502. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7503. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7504. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7505. local keptcolor = MAINRUINCOLOR
  7506. coroutine.resume(coroutine.create(function()
  7507. for i = 0, 96 do
  7508. swait(5)
  7509. local orb = Instance.new("Part", char)
  7510. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7511. orb.BrickColor = keptcolor
  7512. orb.CanCollide = false
  7513. orb.FormFactor = 3
  7514. orb.Name = "Ring"
  7515. orb.Material = "Neon"
  7516. orb.Size = Vector3.new(1, 1, 1)
  7517. orb.Transparency = 0
  7518. orb.TopSurface = 0
  7519. orb.BottomSurface = 0
  7520. orb.Anchored = true
  7521. local orbm = Instance.new("SpecialMesh", orb)
  7522. orbm.MeshType = "Sphere"
  7523. orbm.Name = "SizeMesh"
  7524. orbm.Scale = vt(1.25,1.25,1.25)
  7525. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7526. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7527. coroutine.resume(coroutine.create(function()
  7528. wait(0.5)
  7529. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7530. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7531. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7532. orb.Transparency = 1
  7533. local a = Instance.new("Part",char)
  7534. a.Name = "Direction"
  7535. a.Anchored = true
  7536. a.BrickColor = keptcolor
  7537. a.Material = "Neon"
  7538. a.Transparency = 0.25
  7539. a.Shape = "Cylinder"
  7540. local ht = Instance.new("Part",char)
  7541. ht.Name = "DirectionHit"
  7542. ht.Anchored = true
  7543. ht.BrickColor = keptcolor
  7544. ht.CanCollide = false
  7545. ht.Transparency = 1
  7546. ht.Size = vt(0.1,0.1,0.1)
  7547. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7548. a.CanCollide = false
  7549. local ray = Ray.new(
  7550. orb.CFrame.p, -- origin
  7551. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7552. )
  7553. local ignore = char
  7554. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7555. a.BottomSurface = 10
  7556. a.TopSurface = 10
  7557. local distance = (orb.CFrame.p - position).magnitude
  7558. a.Size = Vector3.new(distance,1,1)
  7559. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7560. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7561. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7562. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7563. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7564. coroutine.resume(coroutine.create(function()
  7565. local eff = Instance.new("ParticleEmitter",ht)
  7566. eff.Texture = "rbxassetid://284205403"
  7567. eff.LightEmission = 0.95
  7568. eff.Color = ColorSequence.new(keptcolor.Color)
  7569. eff.Rate = 500
  7570. eff.Lifetime = NumberRange.new(0.5)
  7571. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7572. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7573. eff.Speed = NumberRange.new(10,50)
  7574. eff.Drag = 5
  7575. eff.Rotation = NumberRange.new(-500,500)
  7576. eff.VelocitySpread = 9000
  7577. eff.RotSpeed = NumberRange.new(-500,500)
  7578. wait(0.25)
  7579. eff.Enabled = false
  7580. end))
  7581. for i = 0, 4 do
  7582. 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)
  7583. 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)
  7584. local rsiz = math.random(10,30)
  7585. 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)
  7586. end
  7587. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7588. local msh = Instance.new("SpecialMesh",a)
  7589. msh.MeshType = "Cylinder"
  7590. msh.Scale = vt(1,1,1)
  7591. for i = 0, 49 do
  7592. swait()
  7593. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7594. a.Transparency = a.Transparency + 0.02
  7595. end
  7596. orb:Destroy()
  7597. a:Destroy()
  7598. ht:Destroy()
  7599. end))
  7600. game:GetService("Debris"):AddItem(orb, 10)
  7601. end
  7602. end))
  7603. for i = 0,6,0.1 do
  7604. swait()
  7605. 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)
  7606. 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)
  7607. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7608. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7609. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7610. 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)
  7611. 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)
  7612. end
  7613. hum.WalkSpeed = storehumanoidWS
  7614. attack = false
  7615. end
  7616.  
  7617. function CalamityTrans()
  7618. attack = true
  7619. rainbowmode = false
  7620. chaosmode = false
  7621. ModeOfGlitch = 8889
  7622. hum.WalkSpeed = 0
  7623. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7624. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7625. elocacenter.Anchored = true
  7626. elocacenter.CFrame = root.CFrame
  7627. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7628. eloca1.Anchored = true
  7629. eloca1.CFrame = elocacenter.CFrame
  7630. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7631. eloca2.Anchored = true
  7632. eloca2.CFrame = elocacenter.CFrame
  7633. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7634. eloca3.Anchored = true
  7635. eloca3.CFrame = elocacenter.CFrame
  7636. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7637. eloca4.Anchored = true
  7638. eloca4.CFrame = elocacenter.CFrame
  7639. local lookavec = 0
  7640. local speeds = 0
  7641. CameraEnshaking(3,2.5)
  7642. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7643. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7644. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7645. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7646. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7647. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7648. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7649. for i = 0, 5, 0.1 do
  7650. swait()
  7651. ---
  7652. lookavec = lookavec + 1
  7653. speeds = speeds + 10
  7654. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7655. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7656. 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)
  7657. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7658. 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)
  7659. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7660. 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)
  7661. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7662. 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)
  7663. ---
  7664. 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)
  7665. 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)
  7666. 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)
  7667. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7668. 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)
  7669. 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)
  7670. end
  7671. for i = 0, 5, 0.1 do
  7672. swait()
  7673. ---
  7674. speeds = speeds + 10
  7675. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7676. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7677. 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)
  7678. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7679. 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)
  7680. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7681. 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)
  7682. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7683. 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)
  7684. ---
  7685. 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)
  7686. 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)
  7687. 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)
  7688. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7689. 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)
  7690. 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)
  7691. end
  7692. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7693. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7694. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7695. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7696. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7697. CameraEnshaking(1,3)
  7698. for i = 0, 24 do
  7699. 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)
  7700. 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)
  7701. 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)
  7702. 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)
  7703. end
  7704. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7705. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7706. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7707. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7708. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7709. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7710. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7711. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7712. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7713. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7714. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7715. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7716. for i = 0, 5, 0.1 do
  7717. swait()
  7718. ---
  7719. lookavec = lookavec - 1
  7720. speeds = speeds + 10
  7721. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7722. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7723. 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)
  7724. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7725. 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)
  7726. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7727. 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)
  7728. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7729. 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)
  7730. ---
  7731. 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)
  7732. 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)
  7733. 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)
  7734. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7735. 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)
  7736. 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)
  7737. end
  7738. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7739. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7740. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7741. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7742. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7743. for i = 0, 49 do
  7744. 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)
  7745. 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)
  7746. end
  7747. CameraEnshaking(5,6)
  7748. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7749. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7750. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7751. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7752. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7753. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7754. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7755. storehumanoidWS = 100
  7756. hum.WalkSpeed = 100
  7757. rainbowmode = false
  7758. chaosmode = false
  7759. tl1.Enabled = true
  7760. tl2.Enabled = true
  7761. tl3.Enabled = true
  7762. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7763. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7764. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7765. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7766. for i, v in pairs(mw2:GetChildren()) do
  7767. if v:IsA("Part") then
  7768. v.BrickColor = MAINRUINCOLOR
  7769. v.Material = "Neon"
  7770. end
  7771. end
  7772. for i, v in pairs(mw1:GetChildren()) do
  7773. if v:IsA("Part") then
  7774. v.Transparency = 0
  7775. v.BrickColor = MAINRUINCOLOR
  7776. v.Material = "Neon"
  7777. end
  7778. end
  7779. for i, v in pairs(m:GetChildren()) do
  7780. if v:IsA("Part") then
  7781. v.Color = Color3.new(0.5,0,1)
  7782. v.Material = "Neon"
  7783. end
  7784. end
  7785. for i, v in pairs(m2:GetChildren()) do
  7786. if v:IsA("Part") then
  7787. v.Color = Color3.new(0.25,0,1)
  7788. v.Material = "Neon"
  7789. end
  7790. end
  7791. for i, v in pairs(m3:GetChildren()) do
  7792. if v:IsA("Part") then
  7793. v.Color = Color3.new(0.45,0,1)
  7794. v.Material = "Neon"
  7795. end
  7796. end
  7797. for i, v in pairs(extrawingmod1:GetChildren()) do
  7798. if v:IsA("Part") then
  7799. v.Transparency = 0.75
  7800. v.Color = Color3.new(0.25,0,1)
  7801. v.Material = "Neon"
  7802. end
  7803. end
  7804. for i, v in pairs(extrawingmod2:GetChildren()) do
  7805. if v:IsA("Part") then
  7806. v.Transparency = 0.75
  7807. v.Color = Color3.new(0.5,0,1)
  7808. v.Material = "Neon"
  7809. end
  7810. end
  7811. attack = false
  7812. end
  7813.  
  7814. function InsaneTrans()
  7815. attack = true
  7816. rainbowmode = false
  7817. chaosmode = false
  7818. ModeOfGlitch = 8889
  7819. hum.WalkSpeed = 0
  7820. newThemeCust("rbxassetid://183142252",1,1,10)
  7821. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7822. elocacenter.Anchored = true
  7823. elocacenter.CFrame = root.CFrame
  7824. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7825. eloca1.Anchored = true
  7826. eloca1.CFrame = elocacenter.CFrame
  7827. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7828. eloca2.Anchored = true
  7829. eloca2.CFrame = elocacenter.CFrame
  7830. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7831. eloca3.Anchored = true
  7832. eloca3.CFrame = elocacenter.CFrame
  7833. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7834. eloca4.Anchored = true
  7835. eloca4.CFrame = elocacenter.CFrame
  7836. local lookavec = 0
  7837. local speeds = 0
  7838. CameraEnshaking(3,2.5)
  7839. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7840. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7841. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7842. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7843. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7844. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7845. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7846. for i = 0, 5, 0.1 do
  7847. swait()
  7848. ---
  7849. lookavec = lookavec + 1
  7850. speeds = speeds + 10
  7851. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7852. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7853. 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)
  7854. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7855. 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)
  7856. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7857. 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)
  7858. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7859. 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)
  7860. ---
  7861. 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)
  7862. 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)
  7863. 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)
  7864. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7865. 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)
  7866. 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)
  7867. end
  7868. for i = 0, 5, 0.1 do
  7869. swait()
  7870. ---
  7871. speeds = speeds + 10
  7872. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7873. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7874. 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)
  7875. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7876. 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)
  7877. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7878. 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)
  7879. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7880. 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)
  7881. ---
  7882. 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)
  7883. 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)
  7884. 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)
  7885. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7886. 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)
  7887. 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)
  7888. end
  7889. MAINRUINCOLOR = BrickColor.new("Really black")
  7890. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7891. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7892. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7893. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7894. CameraEnshaking(1,3)
  7895. for i = 0, 24 do
  7896. 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)
  7897. 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)
  7898. 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)
  7899. 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)
  7900. end
  7901. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7902. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7903. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7904. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7905. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7906. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7907. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7908. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7909. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7910. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7911. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7912. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7913. for i = 0, 5, 0.1 do
  7914. swait()
  7915. ---
  7916. lookavec = lookavec - 1
  7917. speeds = speeds + 10
  7918. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7919. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7920. 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)
  7921. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7922. 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)
  7923. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7924. 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)
  7925. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7926. 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)
  7927. ---
  7928. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7929. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7930. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7931. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7932. 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)
  7933. 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)
  7934. end
  7935. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7936. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7937. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7938. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7939. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7940. for i = 0, 49 do
  7941. 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)
  7942. 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)
  7943. end
  7944. CameraEnshaking(5,6)
  7945. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7946. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7947. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7948. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7949. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7950. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7951. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7952. storehumanoidWS = 100
  7953. hum.WalkSpeed = 100
  7954. rainbowmode = false
  7955. chaosmode = false
  7956. tl1.Enabled = true
  7957. tl2.Enabled = true
  7958. tl3.Enabled = true
  7959. RecolorTextAndRename("The Insane Guest",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7960. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7961. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7962. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7963. for i, v in pairs(mw2:GetChildren()) do
  7964. if v:IsA("Part") then
  7965. v.BrickColor = MAINRUINCOLOR
  7966. v.Material = "Neon"
  7967. end
  7968. end
  7969. for i, v in pairs(mw1:GetChildren()) do
  7970. if v:IsA("Part") then
  7971. v.Transparency = 0
  7972. v.BrickColor = MAINRUINCOLOR
  7973. v.Material = "Neon"
  7974. end
  7975. end
  7976. for i, v in pairs(m:GetChildren()) do
  7977. if v:IsA("Part") then
  7978. v.Color = Color3.new(170,0,0)
  7979. v.Material = "Neon"
  7980. end
  7981. end
  7982. for i, v in pairs(m2:GetChildren()) do
  7983. if v:IsA("Part") then
  7984. v.Color = Color3.new(0,0,0)
  7985. v.Material = "Neon"
  7986. end
  7987. end
  7988. for i, v in pairs(m3:GetChildren()) do
  7989. if v:IsA("Part") then
  7990. v.Color = Color3.new(0,0,0)
  7991. v.Material = "Neon"
  7992. end
  7993. end
  7994. for i, v in pairs(extrawingmod1:GetChildren()) do
  7995. if v:IsA("Part") then
  7996. v.Transparency = 0.75
  7997. v.Color = Color3.new(0,0,0)
  7998. v.Material = "Neon"
  7999. end
  8000. end
  8001. for i, v in pairs(extrawingmod2:GetChildren()) do
  8002. if v:IsA("Part") then
  8003. v.Transparency = 0.75
  8004. v.Color = Color3.new(0,0,0)
  8005. v.Material = "Neon"
  8006. end
  8007. end
  8008. attack = false
  8009. end
  8010.  
  8011. function GleamingBeam()
  8012. attack = true
  8013. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  8014. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  8015. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  8016. local rsiz = math.random(1,15)
  8017. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8018. hb.Anchored = true
  8019. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8020. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8021. for i = 0, 16, 0.1 do
  8022. swait()
  8023. rsiz = math.random(5,15)
  8024. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8025. 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)
  8026. 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)
  8027. 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)
  8028. 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)
  8029. 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)
  8030. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  8031. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  8032. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  8033. end
  8034. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8035. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8036. for i = 0, 2 do
  8037. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8038. end
  8039. 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)
  8040. 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)
  8041. 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)
  8042. for i = 0, 49 do
  8043. local rsiza = math.random(1,15)
  8044. 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)
  8045. end
  8046. local a = Instance.new("Part",Character)
  8047. a.Name = "Direction"
  8048. a.Anchored = true
  8049. a.BrickColor = MAINRUINCOLOR
  8050. a.Material = "Neon"
  8051. a.Transparency = 0
  8052. a.Shape = "Cylinder"
  8053. a.CanCollide = false
  8054. local ba = Instance.new("Part",Character)
  8055. ba.Name = "HitDirect"
  8056. ba.Anchored = true
  8057. ba.BrickColor = bc("Cool yellow")
  8058. ba.Material = "Neon"
  8059. ba.Transparency = 1
  8060. ba.CanCollide = false
  8061. local ray = Ray.new(
  8062. hb.CFrame.p, -- origin
  8063. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8064. )
  8065. local ignore = Character
  8066. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8067. a.BottomSurface = 10
  8068. a.TopSurface = 10
  8069. local distance = (hb.CFrame.p - position).magnitude
  8070. a.Size = Vector3.new(distance, 1, 1)
  8071. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8072. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8073. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8074. local msh = Instance.new("SpecialMesh",a)
  8075. msh.MeshType = "Cylinder"
  8076. msh.Scale = vt(1,4,4)
  8077. game:GetService("Debris"):AddItem(a, 30)
  8078. game:GetService("Debris"):AddItem(ba, 30)
  8079. for i = 0, 25, 0.1 do
  8080. swait()
  8081. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8082. ray = Ray.new(
  8083. hb.CFrame.p, -- origin
  8084. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8085. )
  8086. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8087. distance = (hb.CFrame.p - position).magnitude
  8088. a.Size = Vector3.new(distance, 1, 1)
  8089. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8090. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8091. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8092. rsiz = math.random(5,25)
  8093. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8094. 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)
  8095. for c = 0, 2 do
  8096. 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)
  8097. end
  8098. 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)
  8099. 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)
  8100. 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)
  8101. 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)
  8102. 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)
  8103. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8104. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8105. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8106. end
  8107. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8108. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8109. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8110. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8111. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8112. 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)
  8113. 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)
  8114. 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)
  8115. 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)
  8116. 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)
  8117. 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)
  8118. for i = 0, 49 do
  8119. local rsiza = math.random(1,15)
  8120. 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)
  8121. end
  8122. for i = 0, 49 do
  8123. rsiz = math.random(1,8)
  8124. 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)
  8125. end
  8126. coroutine.resume(coroutine.create(function()
  8127. for i = 0, 99 do
  8128. swait()
  8129. a.Transparency = a.Transparency + 0.01
  8130. end
  8131. a:Destroy()
  8132. ba:Destroy()
  8133. end))
  8134. hb:Destroy()
  8135. attack = false
  8136. end
  8137.  
  8138. function DualGleamingBeam()
  8139. attack = true
  8140. hum.WalkSpeed = 0
  8141. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8142. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8143. local radm = math.random(1,3)
  8144. if radm == 1 then
  8145. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8146. elseif radm == 2 then
  8147. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8148. elseif radm == 3 then
  8149. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8150. end
  8151. local rsiz = math.random(1,15)
  8152. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8153. hb.Anchored = true
  8154. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8155. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8156. hb2.Anchored = true
  8157. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8158. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8159. for i = 0, 14, 0.1 do
  8160. swait()
  8161. rsiz = math.random(5,15)
  8162. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8163. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8164. 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)
  8165. 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)
  8166. sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Lime green"),-15)
  8167. sphere2(5,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,BrickColor.new("Lime green"))
  8168. 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)
  8169. 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)
  8170. 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)
  8171. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8172. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8173. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8174. end
  8175. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8176. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8177. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8178. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8179. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8180. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8181. 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)
  8182. 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)
  8183. 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)
  8184. sphere2(3,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8185. sphere2(6,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8186. sphere2(9,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8187. for i = 0, 49 do
  8188. local rsiza = math.random(1,15)
  8189. 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)
  8190. 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)
  8191. end
  8192. local a = Instance.new("Part",Character)
  8193. a.Name = "Direction"
  8194. a.Anchored = true
  8195. a.BrickColor = MAINRUINCOLOR
  8196. a.Material = "Neon"
  8197. a.Transparency = 0
  8198. a.Shape = "Cylinder"
  8199. a.CanCollide = false
  8200. local a2 = Instance.new("Part",Character)
  8201. a2.Name = "Direction"
  8202. a2.Anchored = true
  8203. a2.BrickColor = MAINRUINCOLOR
  8204. a2.Material = "Neon"
  8205. a2.Transparency = 0
  8206. a2.Shape = "Cylinder"
  8207. a2.CanCollide = false
  8208. local ba = Instance.new("Part",Character)
  8209. ba.Name = "HitDirect"
  8210. ba.Anchored = true
  8211. ba.BrickColor = MAINRUINCOLOR
  8212. ba.Material = "Neon"
  8213. ba.Transparency = 1
  8214. ba.CanCollide = false
  8215. local ba2 = Instance.new("Part",Character)
  8216. ba2.Name = "HitDirect"
  8217. ba2.Anchored = true
  8218. ba2.BrickColor = MAINRUINCOLOR
  8219. ba2.Material = "Neon"
  8220. ba2.Transparency = 1
  8221. ba2.CanCollide = false
  8222. local ray = Ray.new(
  8223. hb.CFrame.p, -- origin
  8224. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8225. )
  8226. local ignore = Character
  8227. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8228. local ray2 = Ray.new(
  8229. hb2.CFrame.p, -- origin
  8230. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8231. )
  8232. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8233. local distance2 = (hb2.CFrame.p - position).magnitude
  8234.  
  8235. a.BottomSurface = 10
  8236. a.TopSurface = 10
  8237. local distance = (hb.CFrame.p - position).magnitude
  8238. a.Size = Vector3.new(distance, 1, 1)
  8239. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8240. a2.BottomSurface = 10
  8241. a2.TopSurface = 10
  8242. a2.Size = Vector3.new(distance2, 1, 1)
  8243. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8244. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8245. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8246. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8247. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8248. local msh = Instance.new("SpecialMesh",a)
  8249. msh.MeshType = "Cylinder"
  8250. msh.Scale = vt(1,4,4)
  8251. local msh2 = Instance.new("SpecialMesh",a2)
  8252. msh2.MeshType = "Cylinder"
  8253. msh2.Scale = vt(1,4,4)
  8254. game:GetService("Debris"):AddItem(a, 30)
  8255. game:GetService("Debris"):AddItem(a2, 30)
  8256. game:GetService("Debris"):AddItem(ba, 30)
  8257. game:GetService("Debris"):AddItem(ba2, 30)
  8258. for i = 0, 20, 0.1 do
  8259. swait()
  8260. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8261. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8262. ray = Ray.new(
  8263. hb.CFrame.p, -- origin
  8264. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8265. )
  8266. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8267. distance = (hb.CFrame.p - position).magnitude
  8268. ray2 = Ray.new(
  8269. hb2.CFrame.p, -- origin
  8270. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8271. )
  8272. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8273. distance2 = (hb2.CFrame.p - position).magnitude
  8274. a.Size = Vector3.new(distance, 1, 1)
  8275. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8276. a2.Size = Vector3.new(distance2, 1, 1)
  8277. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8278. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8279. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8280. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8281. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8282. rsiz = math.random(5,25)
  8283. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8284. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8285. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8286. if v:FindFirstChild('Head') then
  8287. dmg(v)
  8288. end
  8289. end
  8290. coroutine.resume(coroutine.create(function()
  8291. local bx = Instance.new("Part",Character)
  8292. bx.Name = "Location"
  8293. bx.Anchored = true
  8294. bx.BrickColor = MAINRUINCOLOR
  8295. bx.Material = "Neon"
  8296. bx.Transparency = 1
  8297. bx.CanCollide = false
  8298. bx.Position = ba.Position
  8299. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8300. wait(math.random(1,2))
  8301. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8302. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8303. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8304. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8305. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8306. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8307. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8308. if v:FindFirstChild('Head') then
  8309. dmg(v)
  8310. end
  8311. end
  8312. wait(5)
  8313. bx:Destroy()
  8314. end))
  8315. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
  8316. sphereMK(math.random(4,8),0.25,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
  8317. for c = 0, 2 do
  8318. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),2)
  8319. end
  8320. 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)
  8321. 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)
  8322. 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)
  8323. 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)
  8324. 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)
  8325. 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)
  8326. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8327. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8328. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8329. end
  8330. for i = 0, 1 do
  8331. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8332. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8333. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8334. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8335. end
  8336. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8337. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8338. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8339. if v:FindFirstChild('Head') then
  8340. dmg(v)
  8341. end
  8342. end
  8343. 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)
  8344. 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)
  8345. 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)
  8346. 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)
  8347. 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)
  8348. 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)
  8349. sphere2(3,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8350. sphere2(6,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8351. sphere2(9,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8352. for i = 0, 49 do
  8353. local rsiza = math.random(1,15)
  8354. sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
  8355. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
  8356. end
  8357. for i = 0, 49 do
  8358. rsiz = math.random(1,8)
  8359. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,bc("Lime green"),2)
  8360. end
  8361. coroutine.resume(coroutine.create(function()
  8362. for i = 0, 99 do
  8363. swait()
  8364. a.Transparency = a.Transparency + 0.01
  8365. a2.Transparency = a2.Transparency + 0.01
  8366. end
  8367. a:Destroy()
  8368. ba:Destroy()
  8369. a2:Destroy()
  8370. ba2:Destroy()
  8371. end))
  8372. hum.WalkSpeed = storehumanoidWS
  8373. hb:Destroy()
  8374. hb2:Destroy()
  8375. attack = false
  8376. end
  8377.  
  8378. function dragin()
  8379. local targetted = nil
  8380. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8381. targetted = mouse.Target.Parent
  8382. end
  8383. if targetted ~= nil then
  8384. RootPart.CFrame = FaceMouse()[1]
  8385. attack = true
  8386. hum.WalkSpeed = 0
  8387. for x = 0, 1 do
  8388. for i = 0,1,0.5 do
  8389. swait()
  8390. 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)
  8391. 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)
  8392. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8393. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8394. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8395. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8396. end
  8397. for i = 0,1,0.5 do
  8398. swait()
  8399. 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)
  8400. 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)
  8401. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8402. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8403. 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)
  8404. 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)
  8405. end
  8406. for i = 0,1,0.5 do
  8407. swait()
  8408. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8409. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8411. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8412. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8413. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8414. end
  8415. for i = 0,1,0.5 do
  8416. swait()
  8417. 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)
  8418. 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)
  8419. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8420. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8421. 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)
  8422. 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)
  8423. end
  8424. end
  8425. coroutine.resume(coroutine.create(function()
  8426. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8427. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8428. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8429. end))
  8430. local A1 = Instance.new("Attachment",targetted.Head)
  8431. local A2 = Instance.new("Attachment",sorb)
  8432. local Beem = Instance.new("Beam",tors)
  8433. Beem.Attachment0 = A1
  8434. Beem.Attachment1 = A2
  8435. Beem.Texture = "rbxassetid://897585362"
  8436. Beem.LightEmission = 0.75
  8437. Beem.FaceCamera = true
  8438. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8439. Beem.Width0 = 1
  8440. Beem.Width1 = 1
  8441. Beem.TextureMode = "Wrap"
  8442. Beem.TextureLength = 1
  8443. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8444. 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)
  8445. 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)
  8446. for x = 0, 24 do
  8447. local rsiz = math.random(5,15)
  8448. 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)
  8449. end
  8450.  
  8451. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8452. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8453. local radm = math.random(1,2)
  8454. if radm == 1 then
  8455. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8456. elseif radm == 2 then
  8457. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8458. end
  8459. for i = 0,3,0.1 do
  8460. swait()
  8461. coroutine.resume(coroutine.create(function()
  8462. local rsiz = math.random(5,15)
  8463. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8464. 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)
  8465. end))
  8466. 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)
  8467. 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)
  8468. 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)
  8469. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8470. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8471. 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)
  8472. 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)
  8473. end
  8474. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8475. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8476. local vel = Instance.new("BodyPosition", targetted.Head)
  8477. vel.P = 12500
  8478. vel.D = 1000
  8479. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8480. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8481. for i = 0,4,0.1 do
  8482. swait()
  8483. coroutine.resume(coroutine.create(function()
  8484. local rsiz = math.random(5,15)
  8485. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8486. 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)
  8487. end))
  8488. 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)
  8489. 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)
  8490. 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)
  8491. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8492. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8493. 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)
  8494. 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)
  8495. end
  8496. local visibility = 0
  8497. coroutine.resume(coroutine.create(function()
  8498. for i = 0, 49 do
  8499. swait()
  8500. visibility = visibility + 0.02
  8501. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8502. end
  8503. Beem:Destroy()
  8504. A1:Destroy()
  8505. A2:Destroy()
  8506. end))
  8507. game:GetService("Debris"):AddItem(vel,0.75)
  8508. attack = false
  8509. hum.WalkSpeed = storehumanoidWS
  8510.  
  8511. end
  8512. end
  8513.  
  8514. function hugg()
  8515. attack = true
  8516. hum.WalkSpeed = 5
  8517. local rsiz = math.random(5,15)
  8518. for i = 0, 2, 0.1 do
  8519. swait()
  8520. 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)
  8521. 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)
  8522. 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)
  8523. 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)
  8524. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8525. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8526. end
  8527. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8528. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8529. hb.Anchored = true
  8530. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8531. local huggedperson = nil
  8532. local act = false
  8533. local alreadydid = false
  8534. for i = 0, 3, 0.1 do
  8535. swait()
  8536. if act == false then
  8537. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8538. if v:FindFirstChild('Head') then
  8539. if alreadydid == false then
  8540. huggedperson = v
  8541. hum.WalkSpeed = 0
  8542. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8543. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8544. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8545. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8546. local radm = math.random(1,3)
  8547. if radm == 1 then
  8548. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8549. elseif radm == 2 then
  8550. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8551. elseif radm == 3 then
  8552. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8553. end
  8554. root.Anchored = true
  8555. coroutine.resume(coroutine.create(function()
  8556. huggedperson.Humanoid.WalkSpeed = 0
  8557. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8558. end))
  8559. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8560. alreadydid = true
  8561. act = true
  8562. print(huggedperson.Name)
  8563. end
  8564. end
  8565. end
  8566. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8567. 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)
  8568. elseif act == true then
  8569. coroutine.resume(coroutine.create(function()
  8570. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8571. end))
  8572. rsiz = math.random(5,15)
  8573. 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)
  8574. 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)
  8575. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8576. end
  8577. 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)
  8578. 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)
  8579. 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)
  8580. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8581. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8582. end
  8583. hb:Destroy()
  8584. if act == true then
  8585. for x = 0, 2 do
  8586. for i = 0, 2, 0.1 do
  8587. swait()
  8588. coroutine.resume(coroutine.create(function()
  8589. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8590. end))
  8591. rsiz = math.random(5,15)
  8592. 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)
  8593. 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)
  8594. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8595. 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)
  8596. 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)
  8597. 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)
  8598. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8599. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8600. end
  8601. for i = 0, 2, 0.1 do
  8602. swait()
  8603. coroutine.resume(coroutine.create(function()
  8604. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8605. end))
  8606. rsiz = math.random(5,15)
  8607. 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)
  8608. 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)
  8609. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8610. 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)
  8611. 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)
  8612. 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)
  8613. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8614. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8615. end
  8616. end
  8617. end
  8618. hum.WalkSpeed = storehumanoidWS
  8619. root.Anchored = false
  8620. if act == true then
  8621. coroutine.resume(coroutine.create(function()
  8622. huggedperson.Humanoid.WalkSpeed = 16
  8623. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8624. end))
  8625. end
  8626. hum.WalkSpeed = storehumanoidWS
  8627. attack = false
  8628. end
  8629.  
  8630. function Counter()
  8631. hum.WalkSpeed = 0
  8632. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8633. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8634. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8635. attack = true
  8636. for i = 0,1,0.1 do
  8637. swait()
  8638. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8639. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8640. 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)
  8641. 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)
  8642. 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)
  8643. 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)
  8644. end
  8645. CameraEnshaking(3,4)
  8646. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8647. 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)
  8648. 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)
  8649. 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)
  8650. coroutine.resume(coroutine.create(function()
  8651. local eff = Instance.new("ParticleEmitter",root)
  8652. eff.Texture = "rbxassetid://363275192"
  8653. eff.LightEmission = 0.95
  8654. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8655. eff.Rate = 10000
  8656. eff.Lifetime = NumberRange.new(1)
  8657. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8658. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8659. eff.Speed = NumberRange.new(10,125)
  8660. eff.Drag = 5
  8661. eff.Rotation = NumberRange.new(-500,500)
  8662. eff.VelocitySpread = 9000
  8663. eff.RotSpeed = NumberRange.new(-50,50)
  8664. local eff2 = eff:Clone()
  8665. eff2.Parent = root
  8666. eff2.Texture = "rbxassetid://284205403"
  8667. eff2.Rate = 10000
  8668. 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)})
  8669. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8670. eff2.Drag = 5
  8671. eff2.Speed = NumberRange.new(10,50)
  8672. eff2.Rotation = NumberRange.new(-500,500)
  8673. eff2.VelocitySpread = 9000
  8674. wait(0.25)
  8675. eff2.Enabled = false
  8676. eff.Enabled = false
  8677. wait(3)
  8678. eff2:Destroy()
  8679. eff:Destroy()
  8680. end))
  8681. for i = 0, 9 do
  8682. 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)
  8683. end
  8684. for i = 0, 24 do
  8685. local rsiz = math.random(5,20)
  8686. 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)
  8687. end
  8688. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8689. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8690. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8691. for i = 0,2,0.1 do
  8692. swait()
  8693. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8694. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8695. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8696. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8697. 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)
  8698. 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)
  8699. end
  8700. hum.WalkSpeed = storehumanoidWS
  8701. attack = false
  8702. end
  8703.  
  8704. function superjump()
  8705. attack = true
  8706. hum.WalkSpeed = 0
  8707. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8708. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8709. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8710. for i = 0, 2, 0.1 do
  8711. swait()
  8712. root.Velocity = vt(0,0,0)
  8713. 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"))
  8714. 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)
  8715. 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)
  8716. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8717. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8718. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8719. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8720. end
  8721. MagniDamage(root, 28, 25,50, 25, "Normal")
  8722. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8723. hum.Jump = true
  8724. swait()
  8725. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8726. 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)
  8727. 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)
  8728. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8729. for i = 0, 3, 0.1 do
  8730. swait()
  8731. 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)
  8732. 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)
  8733. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8734. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8735. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8736. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8737. end
  8738. attack = false
  8739. if equipped == false then
  8740. hum.WalkSpeed = 16
  8741. else
  8742. hum.WalkSpeed = 24
  8743. end
  8744. end
  8745.  
  8746.  
  8747. -------------------------------------
  8748.  
  8749.  
  8750.  
  8751. Humanoid.Animator.Parent = nil
  8752.  
  8753.  
  8754.  
  8755. -------------------------------------
  8756.  
  8757. local attacktype = 1
  8758. mouse.Button1Down:connect(function()
  8759. if attack == false and attacktype == 1 then
  8760. attacktype = 2
  8761. attackone()
  8762. elseif attack == false and attacktype == 2 then
  8763. attacktype = 3
  8764. attacktwo()
  8765. elseif attack == false and attacktype == 3 then
  8766. attacktype = 1
  8767. attackthree()
  8768. elseif attack == false and attacktype == 4 then
  8769. attacktype = 1
  8770. --attackfour()
  8771. end
  8772. end)
  8773. mouse.KeyDown:connect(function(k)
  8774. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8775. --normalmog()
  8776. ModeOfGlitch = 1
  8777. storehumanoidWS = 16
  8778. hum.WalkSpeed = 16
  8779. rainbowmode = false
  8780. chaosmode = false
  8781. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8782. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8783. MAINRUINCOLOR = BrickColor.new("Really red")
  8784. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8785. end
  8786. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8787. ModeOfGlitch = 2
  8788. storehumanoidWS = 16
  8789. hum.WalkSpeed = 16
  8790. rainbowmode = false
  8791. chaosmode = false
  8792. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8793. newTheme("rbxassetid://1539245059",0,1,0.85)
  8794. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8795. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8796. end
  8797. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8798. ModeOfGlitch = 3
  8799. storehumanoidWS = 14
  8800. hum.WalkSpeed = 14
  8801. rainbowmode = false
  8802. chaosmode = false
  8803. RecolorTextAndRename("Stable Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8804. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8805. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8806. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8807. end
  8808. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8809. ModeOfGlitch = 4
  8810. storehumanoidWS = 14
  8811. hum.WalkSpeed = 14
  8812. rainbowmode = false
  8813. chaosmode = true
  8814. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8815. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8816. MAINRUINCOLOR = BrickColor.new("Crimson")
  8817. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8818. end
  8819. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8820. ModeOfGlitch = 5
  8821. storehumanoidWS = 14
  8822. hum.WalkSpeed = 14
  8823. rainbowmode = false
  8824. chaosmode = false
  8825. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8826. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8827. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8828. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8829. end
  8830. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8831. ModeOfGlitch = 6
  8832. storehumanoidWS = 65
  8833. hum.WalkSpeed = 65
  8834. rainbowmode = false
  8835. chaosmode = false
  8836. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8837. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8838. MAINRUINCOLOR = BrickColor.new("White")
  8839. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8840. end
  8841. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8842. ModeOfGlitch = 8
  8843. storehumanoidWS = 100
  8844. hum.WalkSpeed = 100
  8845. rainbowmode = false
  8846. chaosmode = false
  8847. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8848. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8849. MAINRUINCOLOR = BrickColor.new("Alder")
  8850. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8851. end
  8852. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8853. ModeOfGlitch = 9
  8854. storehumanoidWS = 85
  8855. hum.WalkSpeed = 85
  8856. rainbowmode = false
  8857. chaosmode = false
  8858. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8859. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8860. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8861. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8862. end
  8863. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8864. ModeOfGlitch = 5555
  8865. storehumanoidWS = 30
  8866. hum.WalkSpeed = 30
  8867. rainbowmode = false
  8868. chaosmode = false
  8869. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8870. newTheme("rbxassetid://736003449",0,1,1.25)
  8871. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8872. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8873. end
  8874. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8875. CalamityTrans()
  8876. end
  8877. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8878. InsaneTrans()
  8879. end
  8880. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8881. ModeOfGlitch = 55469696922
  8882. storehumanoidWS = 95
  8883. hum.WalkSpeed = 95
  8884. rainbowmode = false
  8885. chaosmode = false
  8886. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8887. newTheme("rbxassetid://919231299",0,1.005,0.9)
  8888. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8889. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8890. end
  8891. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8892. ModeOfGlitch = 4367677813
  8893. storehumanoidWS = 75
  8894. hum.WalkSpeed = 75
  8895. rainbowmode = false
  8896. chaosmode = false
  8897. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8898. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8899. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8900. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8901. end
  8902. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8903. ModeOfGlitch = 9999999921111
  8904. storehumanoidWS = 145
  8905. hum.WalkSpeed = 145
  8906. rainbowmode = false
  8907. chaosmode = false
  8908. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8909. newTheme("rbxassetid://643309199",0,1.01,1)
  8910. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8911. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8912. end
  8913. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8914. ModeOfGlitch = 999999999556
  8915. storehumanoidWS = 115
  8916. hum.WalkSpeed = 115
  8917. rainbowmode = false
  8918. chaosmode = false
  8919. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8920. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8921. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8922. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8923. end
  8924. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8925. ModeOfGlitch = 12
  8926. storehumanoidWS = 19
  8927. hum.WalkSpeed = 19
  8928. rainbowmode = false
  8929. chaosmode = false
  8930. print'Mode was meant for Vengeful Program or those other fans out there'
  8931. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8932. newTheme("rbxassetid://1873219898",0,1,1.7)
  8933. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8934. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8935. end
  8936.  
  8937. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8938. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8939. for i = 0, 49 do
  8940. 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)
  8941. end
  8942. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8943. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8944. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8945. hum.WalkSpeed = storehumanoidWS
  8946. attack = false
  8947. ModeOfGlitch = 50
  8948. storehumanoidWS = 18
  8949. hum.WalkSpeed = 18
  8950. rainbowmode = false
  8951. chaosmode = false
  8952. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8953. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8954. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8955. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8956. end
  8957.  
  8958. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8959. hum.WalkSpeed = 0
  8960. attack = true
  8961. for i = 0,1,0.1 do
  8962. swait()
  8963. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8964. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8965. 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)
  8966. 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)
  8967. 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)
  8968. 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)
  8969. end
  8970. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8971. for i = 0, 148 do
  8972. 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)
  8973. end
  8974. for i = 0,3,0.1 do
  8975. 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)
  8976. end
  8977. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8978. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8979. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8980. hum.WalkSpeed = storehumanoidWS
  8981. attack = false
  8982. ModeOfGlitch = 66
  8983. storehumanoidWS = 16
  8984. hum.WalkSpeed = 16
  8985. rainbowmode = false
  8986. chaosmode = false
  8987. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8988. MAINRUINCOLOR = BrickColor.new("Really black")
  8989. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8990. for i = 0,2,0.1 do
  8991. swait()
  8992. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8993. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8994. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8995. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8996. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8997. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8998. end
  8999. end
  9000.  
  9001. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  9002. hum.WalkSpeed = 0
  9003. attack = true
  9004. for i = 0,1,0.1 do
  9005. swait()
  9006. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  9007. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  9008. 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)
  9009. 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)
  9010. 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)
  9011. 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)
  9012. end
  9013. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  9014. for i = 0, 49 do
  9015. 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)
  9016. end
  9017. for i = 0,3,0.1 do
  9018. 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)
  9019. end
  9020. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9021. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9022. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9023. hum.WalkSpeed = storehumanoidWS
  9024. attack = false
  9025. ModeOfGlitch = 13
  9026. storehumanoidWS = 45
  9027. hum.WalkSpeed = 45
  9028. rainbowmode = false
  9029. chaosmode = false
  9030. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  9031. newTheme("rbxassetid://190845741",0,1,1.35)
  9032. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  9033. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9034. for i = 0,2,0.1 do
  9035. swait()
  9036. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  9037. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  9038. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  9039. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  9040. 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)
  9041. 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)
  9042. end
  9043. end
  9044. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  9045. ModeOfGlitch = 1002
  9046. storehumanoidWS = 45
  9047. hum.WalkSpeed = 45
  9048. rainbowmode = false
  9049. chaosmode = false
  9050. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  9051. newTheme("rbxassetid://2027652726",0,1,0.85)
  9052. MAINRUINCOLOR = BrickColor.new("Dark blue")
  9053. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9054. end
  9055. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  9056. ModeOfGlitch = 1003
  9057. storehumanoidWS = 90
  9058. hum.WalkSpeed = 90
  9059. rainbowmode = false
  9060. chaosmode = false
  9061. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  9062. newTheme("rbxassetid://257453119",0,1,0.85)
  9063. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9064. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9065. end
  9066. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9067. ModeOfGlitch = 1264532489
  9068. storehumanoidWS = 175
  9069. hum.WalkSpeed = 175
  9070. rainbowmode = false
  9071. chaosmode = false
  9072. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9073. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9074. MAINRUINCOLOR = BrickColor.new("Pastel green")
  9075. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9076. end
  9077. if k == "l" and mutedtog == false then
  9078. mutedtog = true
  9079. kan.Volume = 0.85
  9080. elseif k == "l" and mutedtog == true then
  9081. mutedtog = false
  9082. kan.Volume = 0.85
  9083. end
  9084. if k == "p" and toggleTag == false then
  9085. toggleTag = true
  9086. modet.TextTransparency = 0
  9087. modet.TextStrokeTransparency = 0
  9088. elseif k == "p" and toggleTag == true then
  9089. toggleTag = false
  9090. modet.TextTransparency = 1
  9091. modet.TextStrokeTransparency = 1
  9092. end
  9093. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9094. ExtinctiveHeartbreak()
  9095. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9096. HeavenlyDisk()
  9097. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9098. DualGleamingBeam()
  9099. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9100. BanishingOrb()
  9101. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9102. hugg()
  9103. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9104. cutesigh()
  9105. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9106. Counter()
  9107. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9108. superjump()
  9109. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9110. dragin()
  9111. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9112. UniversalCollapse()
  9113. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9114. PureBomb()
  9115. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9116. Beams()
  9117. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9118. BeamOfDeath()
  9119. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9120. THE_TRUE_POWER_OF_VIOLENCE()
  9121. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9122. GleamingBeam()
  9123. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9124. ViolentRing()
  9125. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9126. CorruptionEvent()
  9127. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9128. CorruptBlink()
  9129. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9130. scattercorrupt()
  9131. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9132. shytaunty()
  9133. elseif k == "v" and attack == false and ModeOfGlitch == 8889 then
  9134. InsaneBeam()
  9135. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9136. RapidBurst()
  9137. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9138. InsaneDrop()
  9139. wait(2)
  9140. ChaosEND()
  9141. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9142. ChaosEND()
  9143. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9144. CyberSlash()
  9145. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9146. smiter()
  9147. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9148. SpeedDrop()
  9149. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9150. --DivineLights()
  9151. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9152. DivineBlast()
  9153. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9154. EquinoxOrbs()
  9155. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9156. yinyangi()
  9157. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9158. FallenOrbs()
  9159. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9160. StarfallEX()
  9161. end
  9162. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9163. FallenDEMISE()
  9164. end
  9165. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9166. EndGROUND()
  9167. end
  9168. end)
  9169.  
  9170. coroutine.resume(coroutine.create(function()
  9171. while true do
  9172. swait()
  9173. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 9 or ModeOfGlitch == 8889 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9174. 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)
  9175. end
  9176. if ModeOfGlitch == 5555 then
  9177. 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)
  9178. end
  9179. end
  9180. end))
  9181. --[[coroutine.resume(coroutine.create(function()
  9182. while true do
  9183. swait(2)
  9184. if chaosmode == true then
  9185. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9186. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9187. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9188. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9189. for i, v in pairs(mw1:GetChildren()) do
  9190. if v:IsA("Part") then
  9191. v.Transparency = 0.75
  9192. v.BrickColor = BrickColor.random()
  9193. v.Material = "Neon"
  9194. end
  9195. end
  9196. for i, v in pairs(m2:GetChildren()) do
  9197. if v:IsA("Part") then
  9198. v.BrickColor = BrickColor.random()
  9199. v.Material = "Neon"
  9200. end
  9201. end
  9202. end
  9203. end
  9204. end))]]
  9205.  
  9206.  
  9207.  
  9208. ff = Instance.new("ForceField",char)
  9209. ff.Visible = false
  9210. hum.Name = "Base"
  9211. hum.MaxHealth = 1.0E298
  9212. hum.Health = 1.0E298
  9213. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9214. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9215. hum.MaxHealth = 1.0E298
  9216. hum.Health = 1.0E298
  9217. end
  9218. end)
  9219.  
  9220. local Hair = Instance.new("Part", char)
  9221. Hair.Name = "Hair"
  9222. Hair.CanCollide = false
  9223. Hair.BrickColor = BrickColor.new("Institutional white")
  9224. Hair.Transparency = 0
  9225. Hair.Material = "Plastic"
  9226. Hair.Size = Vector3.new(1, 1, 2)
  9227. Hair.TopSurface = Enum.SurfaceType.Smooth
  9228. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9229.  
  9230.  
  9231. local bguis = Instance.new("BillboardGui",tors)
  9232. bguis.Size = UDim2.new(25, 0, 25, 0)
  9233. local imgca = Instance.new("ImageLabel",bguis)
  9234. imgca.BackgroundTransparency = 1
  9235. imgca.ImageTransparency = 1
  9236. imgca.Size = UDim2.new(1,0,1,0)
  9237. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9238. imgca.ImageColor3 = Color3.new(0,0,0)
  9239.  
  9240.  
  9241. local bguis2 = Instance.new("BillboardGui",tors)
  9242. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9243. local imgca2 = Instance.new("ImageLabel",bguis)
  9244. imgca2.BackgroundTransparency = 1
  9245. imgca2.ImageTransparency = 1
  9246. imgca2.Size = UDim2.new(1,0,1,0)
  9247. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9248. imgca2.ImageColor3 = Color3.new(0,0,0)
  9249.  
  9250.  
  9251.  
  9252. idleanim=.4
  9253. while true do
  9254. if mutedtog == false then
  9255. kan.Volume = currentVol
  9256. elseif mutedtog == true then
  9257. kan.Volume = 0
  9258. end
  9259. kan.PlaybackSpeed = currentPitch
  9260. kan.Pitch = currentPitch
  9261. kan.SoundId = currentThemePlaying
  9262. kan.Looped = true
  9263. kan.Parent = char
  9264. kan:Resume()
  9265. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9266. imgca.ImageTransparency = 1
  9267. imgca2.ImageTransparency = 1
  9268. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9269. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9270. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9271. elseif ModeOfGlitch == 13 then
  9272. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9273. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9274. end
  9275. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9276. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9277. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9278. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9279. coroutine.resume(coroutine.create(function()
  9280. if chaosmode == true then
  9281. for i, v in pairs(mw1:GetChildren()) do
  9282. if v:IsA("Part") then
  9283. v.Transparency = 0
  9284. v.BrickColor = BrickColor.random()
  9285. v.Material = "Neon"
  9286. end
  9287. end
  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("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9292. end
  9293. end))
  9294. coroutine.resume(coroutine.create(function()
  9295. if ModeOfGlitch == 66 then
  9296. for i, v in pairs(m:GetChildren()) do
  9297. if v:IsA("Part") then
  9298. v.Transparency = 0
  9299. v.BrickColor = BrickColor.random()
  9300. v.Material = "Neon"
  9301. end
  9302. end
  9303. for i, v in pairs(m2:GetChildren()) do
  9304. if v:IsA("Part") then
  9305. v.Transparency = 0
  9306. v.BrickColor = BrickColor.random()
  9307. v.Material = "Neon"
  9308. end
  9309. end
  9310. for i, v in pairs(mw1:GetChildren()) do
  9311. if v:IsA("Part") then
  9312. v.Transparency = 0
  9313. v.BrickColor = BrickColor.random()
  9314. v.Material = "Neon"
  9315. end
  9316. end
  9317. for i, v in pairs(extrawingmod1:GetChildren()) do
  9318. if v:IsA("Part") then
  9319. v.Transparency = 0.5
  9320. v.BrickColor = BrickColor.random()
  9321. v.Material = "Neon"
  9322. end
  9323. end
  9324. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9325. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9326. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9327. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9328. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9329. end
  9330. end))
  9331.  
  9332. coroutine.resume(coroutine.create(function()
  9333. if ModeOfGlitch == 66 then
  9334. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9335. end
  9336. end))
  9337.  
  9338. if chaosmode == false then
  9339. modet.Position = UDim2.new(0,0,0,0)
  9340. modet.Rotation = -5 * math.cos(sine / 32)
  9341. techc.Rotation = techc.Rotation + 1
  9342. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9343. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9344. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9345. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9346. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9347. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9348. else
  9349. techc.Rotation = techc.Rotation + 1
  9350. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9351. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9352. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9353. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9354. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9355. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9356. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9357. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9358. end
  9359. CameraManager()
  9360. swait()
  9361. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  9362. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  9363. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  9364. 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)
  9365. 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)
  9366. 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)
  9367. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  9368. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  9369. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  9370. 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)
  9371. 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)
  9372. 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)
  9373. sine = sine + change
  9374. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9375. local velderp=RootPart.Velocity.y
  9376. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9377. coroutine.resume(coroutine.create(function()
  9378. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1003 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 or ModeOfGlitch == 13 then
  9379. if hitfloor ~= nil then
  9380. 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"))
  9381. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9382. 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)
  9383. end
  9384. end
  9385. end
  9386. end))
  9387. if equipped==true or equipped==false then
  9388. if attack==false then
  9389. idle=idle+1
  9390. else
  9391. idle=0
  9392. end
  9393. if idle>=500 then
  9394. if attack==false then
  9395. --Sheath()
  9396. end
  9397. end
  9398. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9399. Anim="Jump"
  9400. if attack==false then
  9401. 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)
  9402. 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)
  9403. 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)
  9404. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9405. 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)
  9406. 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)
  9407. end
  9408. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9409. Anim="Fall"
  9410. if attack==false then
  9411. 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)
  9412. 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)
  9413. 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)
  9414. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9415. 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)
  9416. 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)
  9417. end
  9418. elseif torvel<1 and hitfloor~=nil then
  9419. Anim="Idle"
  9420. if attack==false then
  9421. if ModeOfGlitch == 1 then
  9422. local snap = math.random(1,10)
  9423. if snap == 1 then
  9424. 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)
  9425. end
  9426. 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)
  9427. 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)
  9428. 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)
  9429. 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)
  9430. 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)
  9431. 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)
  9432. elseif ModeOfGlitch == 2 then
  9433. 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)
  9434. 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)
  9435. 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)
  9436. 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)
  9437. 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)
  9438. 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)
  9439. elseif ModeOfGlitch == 2 then
  9440. 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)
  9441. 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)
  9442. 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)
  9443. 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)
  9444. 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)
  9445. 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)
  9446. elseif ModeOfGlitch == 50 then
  9447. 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)
  9448. 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)
  9449. 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)
  9450. 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)
  9451. 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)
  9452. 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)
  9453. elseif ModeOfGlitch == 5555 then --5555
  9454. 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)
  9455. 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)
  9456. 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)
  9457. 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)
  9458. 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)
  9459. 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)
  9460. elseif ModeOfGlitch == 1002 then
  9461. 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)
  9462. 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)
  9463. 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)
  9464. 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)
  9465. 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)
  9466. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9467. elseif ModeOfGlitch == 12 then
  9468. 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)
  9469. 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)
  9470. 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)
  9471. 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)
  9472. 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)
  9473. 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)
  9474. elseif ModeOfGlitch == 3 then
  9475. local snap = math.random(1,32)
  9476. if snap == 1 then
  9477. 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)
  9478. end
  9479. 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)
  9480. 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)
  9481. 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)
  9482. 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)
  9483. 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)
  9484. 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)
  9485. elseif ModeOfGlitch == 4 then
  9486. local snap = math.random(1,5)
  9487. if snap == 1 then
  9488. 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)
  9489. 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)
  9490. 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)
  9491. end
  9492. 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)
  9493. 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)
  9494. 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)
  9495. 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)
  9496. 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)
  9497. 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)
  9498. elseif ModeOfGlitch == 66 then
  9499. local snap = math.random(1,2)
  9500. if snap == 1 then
  9501. 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)
  9502. 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)
  9503. 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)
  9504. end
  9505. 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)
  9506. 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)
  9507. 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)
  9508. 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)
  9509. 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)
  9510. 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)
  9511. elseif ModeOfGlitch == 5 then
  9512. 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)
  9513. 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)
  9514. 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)
  9515. 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)
  9516. 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)
  9517. 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)
  9518. elseif ModeOfGlitch == 6 then
  9519. 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)
  9520. 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)
  9521. 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)
  9522. 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)
  9523. 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)
  9524. 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)
  9525. elseif ModeOfGlitch == 13 then
  9526. 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)
  9527. 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)
  9528. 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)
  9529. 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)
  9530. 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)
  9531. 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)
  9532. elseif ModeOfGlitch == 8 then
  9533. 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)
  9534. 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)
  9535. 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)
  9536. 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)
  9537. 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)
  9538. 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)
  9539. elseif ModeOfGlitch == 9 then
  9540. 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)
  9541. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
  9542. 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)
  9543. 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)
  9544. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1)
  9545. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9546. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1)
  9547. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  9548. elseif ModeOfGlitch == 1003 then
  9549. 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)
  9550. 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)
  9551. 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)
  9552. 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)
  9553. 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)
  9554. 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)
  9555.  
  9556. elseif ModeOfGlitch == 8889 then
  9557. 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)
  9558. 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)
  9559. 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)
  9560. 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)
  9561. 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)
  9562. 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)
  9563. elseif ModeOfGlitch == 1264532489 then
  9564. 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)
  9565. 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)
  9566. 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)
  9567. 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)
  9568. 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)
  9569. 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)
  9570. 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)
  9571. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9572. 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)
  9573. 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)
  9574. 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)
  9575. 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)
  9576. 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)
  9577. 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)
  9578. elseif ModeOfGlitch == 4367677813 then
  9579. 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)
  9580. 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)
  9581. 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)
  9582. 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)
  9583. 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)
  9584. 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)
  9585. elseif ModeOfGlitch == 55469696922 then --5555
  9586. 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)
  9587. 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)
  9588. 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)
  9589. 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)
  9590. 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)
  9591. 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)
  9592. elseif ModeOfGlitch == 999999999556 then
  9593. 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)
  9594. 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)
  9595. 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)
  9596. 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)
  9597. 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)
  9598. 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)
  9599. end
  9600. end
  9601. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9602. Anim="Walk"
  9603. if attack==false and ModeOfGlitch ~= 66 then
  9604. 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)
  9605. 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)
  9606. 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)
  9607. 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)
  9608. 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)
  9609. 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)
  9610. elseif attack==false and ModeOfGlitch == 66 then
  9611. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9612. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9613. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(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)
  9614. 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)
  9615. 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)
  9616. 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)
  9617. end
  9618. elseif torvel>=22 and hitfloor~=nil then
  9619. Anim="Run"
  9620. if attack==false then
  9621. 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
  9622. 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)
  9623. 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)
  9624. 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)
  9625. 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)
  9626. 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)
  9627. 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)
  9628. if ModeOfGlitch == 12 then
  9629. 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)
  9630. 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)
  9631. 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)
  9632. 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)
  9633. 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)
  9634. 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)
  9635. end
  9636. if ModeOfGlitch == 9 then
  9637. 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)
  9638. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
  9639. 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)
  9640. end
  9641. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1003 or ModeOfGlitch == 5555 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  9642. 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)
  9643. 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)
  9644. 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)
  9645. 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)
  9646. 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)
  9647. 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)
  9648. elseif ModeOfGlitch == 13 then
  9649. 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)
  9650. 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)
  9651. 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)
  9652. 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)
  9653. 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)
  9654. 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)
  9655. end
  9656. end
  9657. end
  9658. end
  9659. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement