Advertisement
InTesting

Despacito Egg Boss

Jul 21st, 2019 (edited)
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 24.97 KB | None | 0 0
  1. --[[
  2.     code generated using luamin.js, Herrtt#3868
  3. --]]
  4.  
  5.  
  6.  
  7. local function Script_1(pl)
  8.     wait(.1)
  9.     local players = game:GetService("Players")
  10.     print[[
  11. https://pastebin.com/e0aC15s6
  12. If you guys can send a clubs mesh
  13. and a spades mesh if possible thx']]
  14.     local function Random_Value(a)
  15.         local b = {}
  16.         for _, c in pairs(a) do
  17.             table.insert(b, c)
  18.         end
  19.         return b[math.random(1, #b)]
  20.     end
  21.     local function Damage_aaa(h, d, f)
  22.         if not h then
  23.             return
  24.         end
  25.         d = d or 10
  26.         f = f or function()
  27.         end
  28.         local a = h:FindFirstAncestorWhichIsA'Model'
  29.         if not a or a == workspace then
  30.             return
  31.         end
  32.         local b, c = a:FindFirstChildWhichIsA'Humanoid', a:FindFirstChild'Head' or a:FindFirstChild'Torso' or a:FindFirstChild'HumanoidRootPart'
  33.         if b then
  34.             if b.Health > 101 then
  35.                 b.Health = 0
  36.             else
  37.                 b:TakeDamage(d)
  38.             end
  39.         elseif c then
  40.             c:Destroy()
  41.         else
  42.             pcall(function()
  43.                 a:BreakJoints()
  44.             end)
  45.         end
  46.         f()
  47.     end
  48.     local function cwrap(a)
  49.         a = a or function()
  50.         end
  51.         local b = coroutine.wrap(a)
  52.         b()
  53.         return b
  54.     end
  55.     local sss, tw, count_name = game:GetService("ServerScriptService"), game:GetService("TweenService"), 0
  56.     wait(.1)
  57.     if not sss or game.PlaceId == 843468296 then
  58.         return
  59.     end
  60.     if sss:FindFirstChild'' then
  61.         return
  62.     end
  63.     script.Name, script.Parent = '', sss
  64.     local function Instance_2(c, p)
  65.         if not c then
  66.             return
  67.         end
  68.         p = p or {}
  69.         local a = Instance.new(c, p.Parent)
  70.         for b, c in pairs(p) do
  71.             local _, d = pcall(function()
  72.                 a[b] = c
  73.             end)
  74.             if d then
  75.                 print(d)
  76.             end
  77.         end
  78.         return a
  79.     end
  80.     local function new_object(table_1)
  81.         if not table_1.ClassName or typeof(table_1.ClassName) ~= 'string' then
  82.             print'No classname.'
  83.         end
  84.         local ins = Instance.new(table_1.ClassName)
  85.         for i, v in pairs(table_1) do
  86.             if i ~= 'Parent' then
  87.                 pcall(function()
  88.                     ins[i] = v
  89.                 end)
  90.             end
  91.         end
  92.         ins.Parent = table_1.Parent
  93.         return ins
  94.     end
  95.     local function Weld_c(part_1, part_2)
  96.         local w = Instance.new("WeldConstraint", part_1)
  97.         w.Part0, w.Part1 = part_1, part_2
  98.         return w
  99.     end
  100.     local function Make_Sound(id, par)
  101.         local s = Instance.new("Sound", par)
  102.         s.SoundId, s.Volume = 'rbxassetid://'..id, 5
  103.         return s
  104.     end
  105.     local function check_ob(ob)
  106.         if not ob then
  107.             return
  108.         end
  109.         if typeof(ob) == 'userdata' then
  110.             return
  111.         end
  112.         if not ob.Parent then
  113.             return
  114.         end
  115.         return ob
  116.     end
  117.     local function check_strings(w_string, tab_st)
  118.         for _, v in pairs(tab_st) do
  119.             if string.find(w_string:lower():reverse(), tostring(v):lower():reverse()) then
  120.                 return v
  121.             end
  122.         end
  123.     end
  124.     local function Get_Player_From_Descendant(de)
  125.         local fn = de:GetFullName()
  126.         local sep1 = string.find(fn, '%.')
  127.         if not sep1 then
  128.             return
  129.         end
  130.         local sep2 = string.find(fn, '%.', sep1 + 1)
  131.         if not sep2 then
  132.             return
  133.         end
  134.         local pl = players:FindFirstChild(fn:sub(sep1 + 1, sep2 - 1))
  135.         if not pl then
  136.             return
  137.         end
  138.         return pl
  139.     end
  140.     local function GetValueFromTable(v, t)
  141.         for _, c in pairs(t) do
  142.             if c == v then
  143.                 return c
  144.             end
  145.         end
  146.     end
  147.     local function Make_Bossfight()
  148.         local target_tab = {'starglitcher','rainbow hell','kickisher','crescendio','freezing dispair',213546066,259878259,212830811,12592754,'crescendiac',1442022177,156292343,'NGRWings','Puller','Pusher','STARGLITCHER',415898123,1119453744,1509634377,415898123,723652641,519067542,152539141,614032233,'DERPZGLITCHER_REMAKE',1564523997,621367124,2074863720,623662713,862258091,1146120545,226788368,211637330,1637719516,1994963968,'Mayhem',1539245059,1283869370,1369263130,661079869,1347011178,1495032271,708334127,1359036559,582020393,363284685,643309199,2659531944,904930498,1259692095,561833161,1873219898,1166995642,1141556798,1420353940,147930134,157460916,190845741,432493949,1497785701,2347469019,228428389,919231299,1103329236,265913095,'GGLITCHER',435773595,736003449,1003121377,949709585,933674871,1449911189,258688195,265293315,1230880483,892260150,2533527428,2297862957,1588725965,1812212957,893350377,1702473314,1215691669,860594509,2116461106,2699922745,338787394,2781731664,2231500330,334283059,2082142910,654094806,2231500330,654094806,743334292,334283059,2082142910,2533527428,2656505560,556122490,924339757,144121562,2297862957,603291385,1030177093,183142252,468018712,391089144,'NGRwingsEGR',2071274388,692083837,436447939,2979962272,1290419263,340106355,844654533,1144419666,2984349070,705302406,1470848774,614032233,1102271169,798163149,256251217,1047567668,343860759,495971354,1914668859,681311208,283364132,1836986828,1521668385,1138145518,1155251570,142493403,1192214907,187944735,381659681,1083489617,1864632481,1296494908,1634231515,927737980,295882826,407749940,709122469,450622618,257700160,1755675637,293965978,1278102150,1947399124,1833385948,252266520,1338971957,598625751,965845438,838491143,314600371,1794707397,1298467151,544291208,151476016,1493957906,195916147,410474991,912554197,478890315,1088342507,1589396874,1846953343,1434166880,582904691,644271312,2142995292,869597342,1273944801,701895896,803373182,595800581,307911366,1296208488,142657040,899856040,544462530,729631989,300753631,2482117221,1747430851,899090278,2483763576,1505487022,719008519,1551788627,338871337,634255007,539526132,2622961126,398455752,1504604335,697467525,550578451,1025751967,190785069,1163789120,188256719,943961217,1764195391,877658690,737063244,304250448,'dominus',10604848,129620848,'shini-g4-m'}
  149.         local target_2_tab = {
  150.             272480200,
  151.             129459541,
  152.             357068192,
  153.             129064664,
  154.             267154303,
  155.             109044447,
  156.             104030830
  157.         }
  158.         local msg_tab = {
  159.             'Kickisher is a sin',
  160.             'pitygui is overused, it deserves to die',
  161.             'yeeto yeeto despacito, commit dead',
  162.             'Banishers are fat',
  163.             'Gltichers need to commit toaster bath',
  164.             'I can Do anything',
  165.             'I challlenge the big and strong.',
  166.             'Dont touch me >:['
  167.         }
  168.         local mr, is_on_target, has_lf, is_attacking, main_song_id, main_tween_info = math.rad, false, false, false, 2533880583, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0)
  169.         local sub_FX = {
  170.             OH = 2545012765,
  171.             Chuckle = 2545010175,
  172.             True_chaos = 2545018472,
  173.             Bye_bye = 2545211516,
  174.             ha_1 = 2606661976,
  175.             chaos_chaos = 2545008459,
  176.             ha_2 = 2606662454,
  177.             laugh_1 = 2545211765,
  178.             anything = 2544975373,
  179.             meta = 2545011398
  180.         }
  181.         local function EnableAttacks()
  182.             is_on_target,has_lf,is_attacking = false,false,false
  183.         end
  184.         local Beginning_ids = {
  185.             2545010175,
  186.             2544975373,
  187.             2545008459
  188.         }
  189.         local end_ids = {
  190.             2545012765,
  191.             2545008459,
  192.             2544975373,
  193.             2545211516,
  194.             2545018472,
  195.             2545011398
  196.         }
  197.         local des_part = Instance_2('Part', {
  198.             Size = Vector3.new(2, 3, 2),
  199.             Position = Vector3.new(0, 10, 20),
  200.             Parent = workspace,
  201.             Shape = 'Ball',
  202.             Massless = true,
  203.             Name = 'Des_Part_cito_'..tostring(count_name),
  204.             Locked = true
  205.         })
  206.         Instance_2('SpecialMesh', {
  207.             MeshId = 'rbxassetid://1510346896',
  208.             Scale = Vector3.new(.05, .05, .05),
  209.             TextureId = 'rbxassetid://1510346909',
  210.             Parent = des_part
  211.         })
  212.         des_part.ChildRemoved:Connect(function(ch)
  213.             if ch:IsA'SpecialMesh' then
  214.                 des_part.CanCollide = false
  215.             end
  216.         end)
  217.         count_name = count_name + 1
  218.         local base = workspace:FindFirstChild'Base'
  219.         if count_name % 5 == 0 and count_name ~= 0 and base then
  220.             local ran_check = true
  221.             local sound_id_1 = sub_FX.True_chaos
  222.             local sound__1 = Make_Sound(sound_id_1, base)
  223.             sound__1.Volume = 10
  224.             sound__1:Play()
  225.             sound__1.Ended:Connect(function()
  226.                 local new_scyy = new_object({
  227.                     ClassName = 'Part',
  228.                     Size = Vector3.new(1.45, 15, 10),
  229.                     Parent = workspace,
  230.                     CanCollide = false,
  231.                     Massless = true,
  232.                     Locked = true,
  233.                     Position = Vector3.new(0, 30, 0)
  234.                 })
  235.                 local new_scy = new_object({
  236.                     ClassName = 'SpecialMesh',
  237.                     MeshId = 'rbxassetid://218497396',
  238.                     TextureId = 'rbxassetid://1489112250',
  239.                     Parent = new_scyy
  240.                 })
  241.                 local bool = true
  242.                 new_scyy.Touched:Connect(function()
  243.                     if bool then
  244.                         bool = false
  245.                         local explos_1 = Instance_2('Part', {
  246.                             Parent = workspace;
  247.                             Massless = true;
  248.                             CanCollide = false;
  249.                             BrickColor = BrickColor.new("Institutional white");
  250.                             Material = 'SmoothPlastic';
  251.                             Shape = 'Ball';
  252.                             Size = Vector3.new(.1, .1, .1);
  253.                             Anchored = true;
  254.                             Position = new_scyy.Position
  255.                         })
  256.                         ran_check = false
  257.                         local t_inf_1 = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 0, false, 0)
  258.                         local New_props_1 = {
  259.                             Size = Vector3.new(1000, 1000, 1000);
  260.                             Transparency = 1
  261.                         }
  262.                         tw:Create(explos_1, t_inf_1, New_props_1):Play()
  263.                         local newsound = Make_Sound(262562442, base)
  264.                         newsound.Volume = 10
  265.                         newsound:Play()
  266.                         newsound.Ended:connect(function()
  267.                             if newsound then
  268.                                 newsound:Destroy()
  269.                                 explos_1:Destroy()
  270.                             end
  271.                         end)
  272.                         for _, v in pairs(workspace:GetDescendants()) do
  273.                             if check_ob(v) then
  274.                                 if v:IsA'Humanoid' then
  275.                                     if v.Health > 0 then
  276.                                         v.Health = 0
  277.                                     end
  278.                                 elseif check_strings(v.Name, {
  279.                                     'Head',
  280.                                     'Torso',
  281.                                     'UpperTorso',
  282.                                     'HumanoidRootPart'
  283.                                 }) then
  284.                                     v:Destroy()
  285.                                 end
  286.                             end
  287.                         end
  288.                     end
  289.                 end)
  290.                 sound__1:Destroy()
  291.             end)
  292.             wait(5)
  293.             if ran_check then
  294.                 for _, v in pairs(workspace:GetDescendants()) do
  295.                     if check_ob(v) then
  296.                         if v:IsA'Humanoid' then
  297.                             if v.Health > 0 then
  298.                                 v.Health = 0
  299.                             end
  300.                         elseif check_strings(v.Name, {
  301.                             'Head',
  302.                             'Torso',
  303.                             'UpperTorso',
  304.                             'HumanoidRootPart'
  305.                         }) then
  306.                             v:Destroy()
  307.                         end
  308.                     end
  309.                 end
  310.             end
  311.         end
  312.         if base then
  313.             wait(1)
  314.         end
  315.         local at_1, part_ori, at_3, scythe_part = Instance_2('Attachment', {
  316.             Parent = des_part,
  317.             Orientation = Vector3.new(0, 0, 90)
  318.         }), Instance_2('Part', {
  319.             Anchored = true,
  320.             Transparency = 1,
  321.             Position = Vector3.new(0, -5, 0),
  322.             Parent = workspace
  323.         }), Instance_2('Attachment', {
  324.             Parent = des_part,
  325.             Orientation = Vector3.new(90, 0, 90);
  326.             Position = Vector3.new(0, 0, 2.5)
  327.         }), Instance_2('Part', {
  328.             Size = Vector3.new(.29, 3, 2),
  329.             Parent = des_part,
  330.             CanCollide = false,
  331.             Massless = true,
  332.             Locked = true
  333.         })
  334.         Instance_2('SpecialMesh', {
  335.             MeshId = 'rbxassetid://218497396',
  336.             TextureId = 'rbxassetid://1489112250',
  337.             Parent = scythe_part
  338.         })
  339.         local at_2, at_4, at_5, at_6 = Instance_2('Attachment', {
  340.             Parent = part_ori,
  341.             Orientation = Vector3.new(0, 90, 90)
  342.         }), Instance_2('Attachment', {
  343.             Parent = scythe_part,
  344.             Orientation = Vector3.new(-90, 90, 90)
  345.         }), Instance_2('Attachment', {
  346.             Parent = scythe_part;
  347.             Position = Vector3.new(0, scythe_part.Size.Y * .25, scythe_part.Size.Z * -.5)
  348.         }), Instance_2('Attachment', {
  349.             Parent = scythe_part;
  350.             Position = Vector3.new(0, scythe_part.Size.Y * -.62, scythe_part.Size.Z * .25)
  351.         })
  352.         local a_ori, a_ori2, a_pos, trail = Instance_2('AlignOrientation', {
  353.             Attachment0 = at_1,
  354.             Attachment1 = at_2,
  355.             Parent = des_part,
  356.             PrimaryAxisOnly = true,
  357.             AlignType = 'Parallel',
  358.             Responsiveness = 1,
  359.             Enabled = true
  360.         }), Instance_2('AlignOrientation', {
  361.             Attachment0 = at_4,
  362.             Attachment1 = at_3,
  363.             Parent = des_part,
  364.             PrimaryAxisOnly = true,
  365.             AlignType = 'Parallel',
  366.             Responsiveness = 1,
  367.             Enabled = true
  368.         }), Instance_2('AlignPosition', {
  369.             Attachment0 = at_4,
  370.             Attachment1 = at_3,
  371.             Parent = des_part,
  372.             Responsiveness = 10,
  373.             Enabled = true
  374.         }), Instance_2('Trail', {
  375.             Parent = scythe_part;
  376.             Attachment0 = at_5;
  377.             Attachment1 = at_6;
  378.             Color = ColorSequence.new(Color3.new(255, 0, 0))
  379.         })
  380.         local function Make_msg(stri)
  381.             local bib = des_part:FindFirstChildWhichIsA'BillboardGui' or (function()
  382.                 return Instance_2('BillboardGui', {
  383.                     Parent = des_part;
  384.                     StudsOffsetWorldSpace = Vector3.new(0, 5, 0);
  385.                     Size = UDim2.new(10, 0, 5, 0)
  386.                 })
  387.             end)()
  388.             local tl = bib:FindFirstChildWhichIsA'TextBox' or (function()
  389.                 return Instance_2('TextBox', {
  390.                     Parent = bib;
  391.                     BackgroundTransparency = 1;
  392.                     Font = 'Code';
  393.                     TextColor3 = Color3.new(255, 255, 255);
  394.                     TextStrokeTransparency = 0;
  395.                     TextStrokeColor3 = Color3.new(0, 0, 0);
  396.                     Size = UDim2.new(1, 0, 1, 0);
  397.                     TextScaled = true
  398.                 })
  399.             end)()
  400.             tl.Text = stri
  401.         end
  402.         local function Make_Diamond()
  403.             local part_1 = Instance_2('Part', {
  404.                 Parent = workspace;
  405.                 Size = Vector3.new(4, 1, 2);
  406.                 CanCollide = false
  407.             })
  408.             Instance_2('SpecialMesh', {
  409.                 Parent = part_1;
  410.                 MeshType = 'FileMesh';
  411.                 MeshId = 'rbxassetid://9756362';
  412.                 Scale = part_1.Size * .75
  413.             })
  414.             return part_1
  415.         end
  416.         local function Make_Heart()
  417.             local part_1 = Instance_2('Part', {
  418.                 Parent = workspace;
  419.                 Size = Vector3.new(2, 2, 2);
  420.                 CanCollide = false
  421.             })
  422.             Instance_2('SpecialMesh', {
  423.                 Parent = part_1;
  424.                 MeshType = 'FileMesh';
  425.                 MeshId = 'rbxassetid://431221914';
  426.                 Scale = part_1.Size * .25
  427.             })
  428.             return part_1
  429.         end
  430.         local function Finish_1(pchar)
  431.             if not pchar then
  432.                 return
  433.             end
  434.             local hum = pchar:FindFirstChildWhichIsA('Humanoid', true)
  435.             local mainpart = pchar:FindFirstChild('Torso') or pchar:FindFirstChild('Head') or pchar:FindFirstChild('HumanoidRootPart')
  436.             if not mainpart then
  437.                 return
  438.             end
  439.             is_on_target = true
  440.             local s1 = mainpart:FindFirstChild('∞sound_1')
  441.             if s1 then
  442.                 return
  443.             end
  444.             local s = Make_Sound(end_ids[math.random(1, #end_ids)], mainpart)
  445.             s.Name, s.Volume = '∞sound_1', 10
  446.             s:Play()
  447.             local bodv = Instance_2('BodyVelocity', {
  448.                 Parent = mainpart;
  449.                 MaxForce = Vector3.new(0, math.huge, 0);
  450.                 Velocity = Vector3.new(0, 2, 0)
  451.             })
  452.             local explos_1 = Instance_2('Part', {
  453.                 Parent = pchar;
  454.                 Massless = true;
  455.                 CanCollide = false;
  456.                 BrickColor = BrickColor.new("Institutional white");
  457.                 Material = 'SmoothPlastic';
  458.                 Shape = 'Ball';
  459.                 Size = Vector3.new(.1, .1, .1);
  460.                 Anchored = true
  461.             })
  462.             local New_props_1 = {
  463.                 Size = Vector3.new(10, 10, 10);
  464.                 Transparency = 1
  465.             }
  466.             s.Ended:Connect(function()
  467.                 local s2 = Make_Sound(262562442, mainpart)
  468.                 local t_inf_1 = TweenInfo.new(s2.TimeLength, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 0, false, 0)
  469.                 tw:Create(explos_1, t_inf_1, New_props_1):Play()
  470.                 explos_1.Position = mainpart.Position
  471.                 s2.Volume = 10
  472.                 s2:Play()
  473.                 if hum then
  474.                     hum.Health = 0
  475.                 elseif mainpart then
  476.                     mainpart:Destroy()
  477.                 else
  478.                     pchar:Remove()
  479.                 end
  480.                 s2.Ended:Connect(function()
  481.                     if mainpart then
  482.                         mainpart:Destroy()
  483.                     end
  484.                 end)
  485.             end)
  486.             wait(2)
  487.             is_on_target = false
  488.             has_lf = false
  489.             is_attacking = false
  490.             des_part.Anchored = false
  491.             for _, v in pairs(pchar:GetDescendants()) do
  492.                 if v:IsA'BasePart' then
  493.                     v.CanCollide = false
  494.                 end
  495.             end
  496.         end
  497.         local function Fight_mode_1(pchar)
  498.             local head = pchar:FindFirstChild'Head'
  499.             local hrp = pchar:FindFirstChild'HumanoidRootPart'
  500.             local hum = pchar:FindFirstChildWhichIsA'Humanoid'
  501.             local target_part = hrp or head
  502.             if target_part then
  503.                 is_on_target = true
  504.                 is_attacking = true
  505.                 for i = 1, 15 do
  506.                     if (pchar:FindFirstChild'HumanoidRootPart' or pchar:FindFirstChild'Head') and des_part then
  507.                         des_part.CFrame = target_part.CFrame * CFrame.new(0, 0, 20) * CFrame.Angles(0, mr(90), 0)
  508.                         local sound = Make_Sound(sub_FX['OH'], des_part)
  509.                         sound.Volume = 10
  510.                         sound:Play()
  511.                         local dia = Make_Diamond()
  512.                         dia.BrickColor = BrickColor.new('Institutional white')
  513.                         dia.CFrame = des_part.CFrame
  514.                         dia.Anchored = true
  515.                         dia.Touched:Connect(function(h)
  516.                             Damage_aaa(h, 5)
  517.                         end)
  518.                         cwrap(function()
  519.                             local iinfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0)
  520.                             local prop = {
  521.                                 CFrame = dia.CFrame * CFrame.new(30, 0, 0)
  522.                             }
  523.                             tw:Create(dia, iinfo, prop):Play()
  524.                             wait(1)
  525.                             if dia then
  526.                                 dia.Anchored = false
  527.                             end
  528.                         end)
  529.                         wait(.6)
  530.                         if sound then
  531.                             sound:Destroy()
  532.                         end
  533.                     else
  534.                         break
  535.                     end
  536.                 end
  537.                 is_attacking = false
  538.                 is_on_target = false
  539.                 has_lf = false
  540.             end
  541.         end
  542.         local function Fight_mode_2(char)
  543.             local humanoid, target = char:FindFirstChildWhichIsA'Humanoid', char:FindFirstChild'Head' or char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'HumanoidRootPart'
  544.             if not humanoid or not target then
  545.                 return
  546.             end
  547.             is_attacking = true
  548.             local pos = target.Position
  549.             local start = math.random(1, 360)
  550.             local v3_scale = Vector3.new(3, 3, 3)
  551.             local ring, tween_1 = {}, TweenInfo.new(2.75, Enum.EasingStyle.Back, Enum.EasingDirection.In, 0, false, 0)
  552.             for a = 1, 8 do
  553.                 des_part.CFrame = CFrame.new(pos) * CFrame.Angles(0, math.rad((a * 45) + start), 0) * CFrame.new(0, 0, 25)
  554.                 local b = Make_Heart()
  555.                 b.CFrame = des_part.CFrame * CFrame.Angles(mr(90), 0, 0)
  556.                 b.Anchored = true
  557.                 b.CanCollide = false
  558.                 b.Color = Color3.new(1, 1, 1)
  559.                 table.insert(ring, b)
  560.                 b.Size = b.Size * v3_scale
  561.                 b:GetChildren()[1].Scale = b:GetChildren()[1].Scale * v3_scale
  562.                 b.Touched:Connect(function(c)
  563.                     Damage_aaa(c, 15)
  564.                 end)
  565.                 wait(.1)
  566.             end
  567.             for _, a in pairs(ring) do
  568.                 tw:Create(a, tween_1, {
  569.                     CFrame = a.CFrame * CFrame.new(0, -30, 0)
  570.                 }):Play()
  571.                 wait(.25)
  572.             end
  573.             wait(3)
  574.             for _, a in pairs(ring) do
  575.                 a.Anchored = false
  576.             end
  577.             is_attacking = false
  578.         end
  579.         local function Fight_mode_3(char)
  580.             local humanoid, target = char:FindFirstChildWhichIsA'Humanoid', char:FindFirstChild'Head' or char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'HumanoidRootPart'
  581.             if not humanoid or not target then
  582.                 return
  583.             end
  584.             is_attacking = true
  585.             for _ = 1, 10 do
  586.                 local velos = {}
  587.                 local Box = Instance_2('Part', {
  588.                     Parent = des_part;
  589.                     CFrame = target.CFrame * CFrame.Angles(0, mr(math.random(1, 360)), 0) * CFrame.new(0, 0, 20);
  590.                     Shape = 'Block';
  591.                     Size = Vector3.new(3, 2, 3);
  592.                     BrickColor = BrickColor.new('Institutional white');
  593.                     CanCollide = false;
  594.                     Anchored = false
  595.                 })
  596.                 Box.Orientation = Vector3.new(0, 0, 0)
  597.                 Box.Position = Box.Position + Vector3.new(0, -10, 0)
  598.                 Box.TopSurface = 'Smooth'
  599.                 Box.BottomSurface = 'Smooth'
  600.                 local a = math.huge
  601.                 table.insert(velos, Instance_2('BodyVelocity', {
  602.                     Parent = Box;
  603.                     MaxForce = Vector3.new(a, a, a);
  604.                     Velocity = Vector3.new(0, 90, 0)
  605.                 }))
  606.                 wait()
  607.                 for _, a in pairs(velos) do
  608.                     a:Destroy()
  609.                 end
  610.                 wait(.4)
  611.                 local sound = des_part:FindFirstChild'BoxExplosion' or Instance_2('Sound', {
  612.                     SoundId = 'rbxassetid://144699494';
  613.                     Volume = 5;
  614.                     Looped = false;
  615.                     Playing = false;
  616.                     Parent = des_part;
  617.                     Name = 'BoxExplosion'
  618.                 })
  619.                 sound:Play()
  620.                 for a = 1, 3 do
  621.                     local b = Make_Heart()
  622.                     b.Anchored = true
  623.                     b.CanCollide = false
  624.                     b.Position = Box.Position
  625.                     b.Parent = des_part
  626.                     b.BrickColor = BrickColor.new("Institutional white")
  627.                     b.CFrame = CFrame.new(b.Position, target.Position)
  628.                     b.CFrame = b.CFrame * CFrame.Angles(mr(90), 0, mr((a * 30) - 60))
  629.                     tw:Create(b, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0), {
  630.                         CFrame = b.CFrame * CFrame.new(0, -40, 0)
  631.                     }):Play()
  632.                     local d = true
  633.                     b.Touched:Connect(function(c)
  634.                         if not d then
  635.                             return
  636.                         end
  637.                         Damage_aaa(c, 10, function()
  638.                             d = false
  639.                         end)
  640.                     end)
  641.                     cwrap(function()
  642.                         wait(1)
  643.                         b.Anchored = false
  644.                     end)
  645.                 end
  646.                 Box:Destroy()
  647.             end
  648.             is_attacking = false
  649.         end
  650.         local finishes = {
  651.             Finish_1
  652.         }
  653.         local fights = {
  654.             Fight_mode_1;
  655.             Fight_mode_2;
  656.             Fight_mode_3
  657.         }
  658.         local Current_Target_1
  659.         local function On_Touch_1(h)
  660.             local a = h:FindFirstAncestorWhichIsA'Model'
  661.             if not a then
  662.                 return
  663.             end
  664.             local hum = a:FindFirstChildWhichIsA'Humanoid'
  665.             if not hum then
  666.                 return
  667.             end
  668.             if hum.Health > 101 then
  669.                 finishes[math.random(1, #finishes)](a)
  670.             else
  671.                 if not has_lf and not is_attacking then
  672.                     fights[math.random(1, #fights)](a)
  673.                     Current_Target_1 = hum
  674.                 end
  675.             end
  676.         end
  677.         local function Target_pl(pl)
  678.             Make_msg(msg_tab[math.random(1, #msg_tab)])
  679.             local pchar = pl.Character
  680.             if not pchar then
  681.                 return
  682.             end
  683.             local hum = pchar:FindFirstChildWhichIsA'Humanoid'
  684.             local mainpart = pchar:FindFirstChild'HumanoidRootPart' or pchar:FindFirstChild'Head'
  685.             local lf = pchar:FindFirstChild('∞Line_Force', true)
  686.             local bool_set = true
  687.             if lf then
  688.                 if not lf.Attachment0 then
  689.                     bool_set = false
  690.                     lf:Destroy()
  691.                 end
  692.             end
  693.             if not mainpart or not bool_set then
  694.                 return
  695.             end
  696.             if not mainpart:IsA'BasePart' then
  697.                 return
  698.             end
  699.             local at_5 = Instance.new("Attachment", mainpart)
  700.             local beam = Instance.new("Beam", at_5)
  701.             beam.Attachment0 = at_1
  702.             beam.Attachment1 = at_5
  703.             beam.FaceCamera = true
  704.             local lf = Instance.new("LineForce", at_5)
  705.             lf.Name = '∞Line_Force'
  706.             lf.Magnitude = (hum and hum.WalkSpeed < 25 and 275) or 500
  707.             lf.Attachment0 = at_1
  708.             lf.Attachment1 = at_5
  709.             if des_part.Position.Y + 7.5 < mainpart.Position.Y or des_part.Position.Y - 7.5 > mainpart.Position.Y then
  710.                 mainpart.Anchored = true
  711.                 if hum then
  712.                     hum.MaxHealth = 100000
  713.                     hum.Health = hum.MaxHealth
  714.                 end
  715.                 des_part.Position = mainpart.Position
  716.                 finishes[math.random(1, #finishes)](pchar)
  717.             end
  718.             return at_5
  719.         end
  720.         if count_name % 5 ~= 0 then
  721.             local sound_1 = Make_Sound(Beginning_ids[math.random(1, 3)], des_part)
  722.             sound_1.Volume = 7.5
  723.             wait(.1)
  724.             sound_1:Play()
  725.             wait(sound_1.TimeLength)
  726.             sound_1:Destroy()
  727.         else
  728.             wait(1)
  729.         end
  730.         local ms_1 = Make_Sound(main_song_id, des_part)
  731.         ms_1:Play()
  732.         ms_1.Volume = 2
  733.         ms_1.Looped = true
  734.         des_part.Touched:Connect(On_Touch_1)
  735.         scythe_part.Touched:Connect(function(h)
  736.             local hp = h:FindFirstAncestorWhichIsA'Model'
  737.             if not hp then return end
  738.             local hum = hp:FindFirstChildWhichIsA'Humanoid'
  739.             if not hum or hp == workspace then return;end
  740.             hum.Sit = true
  741.         end)
  742.         local function Attack_Target_1(ob)
  743.             local pl = Get_Player_From_Descendant(ob)
  744.             if pl then
  745.                 is_on_target = true
  746.                 local attach = Target_pl(pl)
  747.                 has_lf = true
  748.                 cwrap(function()
  749.                    
  750.                     while true do
  751.                         if attach then
  752.                             local lf = attach:FindFirstChild('∞Line_Force')
  753.                             if lf then
  754.                                 if not lf.Attachment1 then
  755.                                     EnableAttacks()
  756.                                     break
  757.                                 elseif not lf.Attachment1:FindFirstAncestor(game.Name) then
  758.                                     EnableAttacks()
  759.                                     break
  760.                                 end
  761.                             else
  762.                                 EnableAttacks()
  763.                                 break
  764.                             end
  765.                         else
  766.                             is_on_target = false
  767.                             has_lf = false
  768.                             is_attacking = false
  769.                             break
  770.                         end
  771.                         wait(1)
  772.                     end
  773.                 end)
  774.             end
  775.         end
  776.         cwrap(function()
  777.             while true do
  778.                 if des_part then
  779.                     des_part.Anchored = false
  780.                 end
  781.                 for _, v in pairs(workspace:GetDescendants()) do
  782.                     if check_ob(v) and not is_on_target then
  783.                         if v:IsA'Humanoid' then
  784.                             if v.Health > 101 then
  785.                                 Attack_Target_1(v)
  786.                             end
  787.                         end
  788.                     end
  789.                 end
  790.                 for _, v in pairs(workspace:GetDescendants()) do
  791.                     if check_ob(v) and not is_on_target then
  792.                         if v:IsA'TextLabel' then
  793.                             if check_strings(v.Text, target_tab) then
  794.                                 Attack_Target_1(v)
  795.                             end
  796.                         elseif v:IsA'Sound' then
  797.                             if check_strings(v.SoundId, target_tab) then
  798.                                 Attack_Target_1(v)
  799.                             end
  800.                         elseif v:IsA'SpecialMesh' then
  801.                             if check_strings(v.MeshId, target_tab) then
  802.                                 Attack_Target_1(v)
  803.                             end
  804.                         elseif v:IsA'Tool' then
  805.                             if (v.Name == 'Remote' and v:FindFirstChild('Handle', true)) and (v:FindFirstChild('p1', true) or v:FindFirstChild('p2', true) or v:FindFirstChild('p3', true) or v:FindFirstChild('p4', true)) then
  806.                                 Attack_Target_1(v)
  807.                             end
  808.                         elseif v:IsA'Model' then
  809.                             if check_strings(v.Name, target_tab) then
  810.                                 Attack_Target_1(v)
  811.                             end
  812.                         end
  813.                     end
  814.                 end
  815.                 for _, v in pairs(players:GetPlayers()) do
  816.                     for _, c in pairs(target_2_tab) do
  817.                         if c == v.UserId then
  818.                             Attack_Target_1(v)
  819.                         end
  820.                     end
  821.                 end
  822.                 wait(1)
  823.                 if Current_Target_1 and Current_Target_1.Parent ~= nil and Current_Target_1.Parent.Parent ~= nil then
  824.                     fights[math.random(1, #fights)](Current_Target_1.Parent)
  825.                 else
  826.                     Current_Target_1 = nil
  827.                 end
  828.             end
  829.         end)
  830.     end
  831.     wait(1)
  832.     Make_Bossfight()
  833.     local a = 'des_part_cito'
  834.     local function temp1()
  835.         for _, v in pairs(workspace:GetChildren()) do
  836.             local vn = v.Name
  837.             if vn:sub(1, a:len()):lower() == 'des_part_cito' then
  838.                 return true
  839.             end
  840.         end
  841.     end
  842.     workspace.ChildRemoved:Connect(function(c)
  843.         wait(2)
  844.         local cn = c.Name
  845.         if string.find(cn:lower(), a:lower()) and not temp1() then
  846.             Make_Bossfight()
  847.         end
  848.     end)
  849. end
  850. Script_1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement