Advertisement
InTesting

Beez

Jul 24th, 2019
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.88 KB | None | 0 0
  1. -- Why publish this?
  2. -- Kick gun's a bitch
  3.  
  4. -- thanks for coming to my ted talk 2
  5.  
  6. local function script_1(owner_1)
  7.     local players = game:GetService("Players")
  8.     local life_wasted = 0
  9.     local tab = {'god mode',143884682,'kick',156292343,'rainbow hell','kickisher','crescendio',
  10.             'freezing dispair','crescendiac','dominus','revenger','ban','hello void',135903655}
  11.    
  12.     local function Get_Player_From_Keyword(keyword)
  13.         for _,v in pairs(players:GetPlayers())do
  14.             local vn = v.Name
  15.             if string.find(
  16.                 vn:lower():reverse(),
  17.                 keyword:lower():reverse(),
  18.                 vn:len() - keyword:len()
  19.                 )then
  20.                 return v
  21.             end
  22.         end
  23.     end
  24.     local function Harm(pchar)
  25.         local head = pchar:FindFirstChild'Head'
  26.         local hum = pchar:FindFirstChildWhichIsA'Humanoid'
  27.         local torso = pchar:FindFirstChild'Torso'
  28.         if pchar==owner.Character then return;end;
  29.         if hum then
  30.             if hum.Health<101 then
  31.                 hum:TakeDamage(5)
  32.                 if hum.Health<=0 then
  33.                     return true
  34.                 end
  35.             else
  36.                 hum.Health = 0
  37.                 return true
  38.             end
  39.         elseif head then
  40.             head:Destroy()
  41.             return true
  42.         elseif torso then
  43.             torso:Destroy()
  44.             return true
  45.         else
  46.             if pchar:IsA'Model'and players:GetPlayerFromCharacter(pchar)then
  47.                 pchar:BreakJoints()
  48.             end
  49.         end
  50.     end
  51.    
  52.     local function Compare_Value_To_Table(val,tab)
  53.         for _,v in pairs(tab)do
  54.             if v==val then
  55.                 return v
  56.             end
  57.         end
  58.     end
  59.     local function Find_Sub_String_In_Whole_String(whole_string,sub_strings_table)
  60.         for _,v in pairs(sub_strings_table)do
  61.             if string.find(whole_string:lower()
  62.                 ,tostring(v):lower()
  63.             )then
  64.                 return v
  65.             end
  66.         end
  67.     end
  68.     local function obj_check_one(ob)
  69.         if ob~=nil then
  70.             if typeof(ob)~='userdata'then
  71.                 if ob.Parent~=nil then
  72.                     return ob
  73.                 end
  74.             end
  75.         end
  76.     end
  77.     local function Get_Player_From_Character_Descendant(ob)
  78.         local full_1 = ob:GetFullName()
  79.         local sep1 = string.find(full_1:lower(),
  80.             '%.'
  81.         )
  82.         if sep1 then
  83.             local sep2 = string.find(full_1:lower(),
  84.                 '%.',
  85.                 sep1 + 1
  86.             )
  87.             if sep2 then
  88.                 local char_name = full_1:sub(sep1 + 1,sep2 - 1)
  89.                 if char_name then
  90.                     local player = game:service'Players':FindFirstChild(char_name)
  91.                     if player then
  92.                         return player
  93.                     end
  94.                 end
  95.             end
  96.         end
  97.     end
  98.     local function Check_Name_Property_From_Table(ob,table_of_classnames,table_to_check)
  99.     for _,z in pairs(table_of_classnames)do
  100.         if pcall(ob:IsA(z))then
  101.             if Find_Sub_String_In_Whole_String(ob.Name,table_to_check)then
  102.                 local plr = Get_Player_From_Character_Descendant(ob)
  103.                 if plr then
  104.                     plr:LoadCharacter()
  105.                     return true
  106.                 else
  107.                     ob:Destroy()
  108.                     return true
  109.                 end
  110.             end
  111.         end
  112.     end
  113. end
  114.    
  115.     local function New_Beez()
  116.         local part = Instance.new("Part",workspace)
  117.         part.Size = Vector3.new(2, 2, 2)
  118.         part.Shape = Enum.PartType.Ball
  119.         life_wasted=life_wasted+1
  120.         part.Name = 'The_Hive_'.. life_wasted
  121.         part.Anchored = false
  122.         wait(.1)
  123.         part.Anchored = true
  124.        
  125.         local sm1 = Instance.new("SpecialMesh",part)
  126.         sm1.MeshType = Enum.MeshType.FileMesh
  127.         sm1.MeshId = 'rbxassetid://2960004532'
  128.         sm1.TextureId = 'rbxassetid://2960004642'
  129.        
  130.         if part:FindFirstChild('∞sound')==nil then
  131.             local sound = Instance.new("Sound",part)
  132.             sound.SoundId = 'rbxassetid://382403699'
  133.             sound.Volume = 5
  134.             sound.Looped = true
  135.             sound:Play()
  136.             sound.Name = '∞sound'
  137.         end
  138.        
  139.         return part
  140.     end
  141.     local function New_bee(main)
  142.         local part = Instance.new("Part",main)
  143.         part.Size = Vector3.new(0.3, 0.3, 0.3)
  144.         part.Shape = Enum.PartType.Ball
  145.         part.Massless = true
  146.         part.Position = main.Position
  147.         part.CanCollide = true
  148.         part.CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.ForceField)
  149.        
  150.         local sm1 = Instance.new("SpecialMesh",part)
  151.         sm1.MeshType = Enum.MeshType.FileMesh
  152.         sm1.MeshId = 'rbxassetid://475824177'
  153.         sm1.TextureId = 'rbxassetid://475824195'
  154.        
  155.         local attachment = Instance.new("Attachment",part)
  156.        
  157.         return part
  158.     end
  159.    
  160.     local hive = New_Beez()
  161.     local function Sting_1(player)
  162.         local pchar = (player:IsA'Player'and player.Character) or player
  163.         if pchar then
  164.             local head = pchar:FindFirstChild'Head'
  165.             local hrp = pchar:FindFirstChild'HumanoidRootPart'
  166.             local torso = pchar:FindFirstChild'Torso'
  167.             local mainpart
  168.             if head then
  169.                 mainpart = head
  170.             elseif hrp then
  171.                 mainpart = hrp
  172.             elseif torso then
  173.                 mainpart = torso
  174.             end
  175.             if mainpart then
  176.                 if mainpart:FindFirstChild'soundIshthing'==nil then
  177.                     local s = Instance.new("Sound",mainpart)
  178.                     s.Volume = 7.5
  179.                     s.SoundId = 'rbxassetid://2687298075'
  180.                     s:Play()
  181.                     s.Looped = true
  182.                     s.Name = 'soundIshthing'
  183.                    
  184.                 end
  185.                 local tab = {}
  186.                 for i=1,10 do
  187.                     local bee = New_bee(hive)
  188.                     bee.Parent = pchar
  189.                     local at_1 = bee:FindFirstChildWhichIsA('Attachment')
  190.                     if at_1 then
  191.                         local at_2 = Instance.new("Attachment",mainpart)
  192.                         at_2.Name = 'Attachment_2'
  193.                         local Line_f = Instance.new("LineForce",at_1)
  194.                         Line_f.Attachment0 = at_1
  195.                         Line_f.Attachment1 = at_2
  196.                         Line_f.Magnitude = 500
  197.                         bee.Touched:Connect(function(h)
  198.                             if h.Parent then
  199.                                 local is_dead = Harm(h.Parent)
  200.                                 if is_dead then
  201.                                 end
  202.                             end
  203.                         end)
  204.                     end
  205.                 end
  206.             end
  207.         end
  208.     end
  209.     local function check_Kickisher(ob)
  210.         wait(1)
  211.         local players =  game:GetService'Players'
  212.        
  213.  
  214.        
  215.         if players.Name=='Players'then
  216.             players.Name = 'Players_Replacement_Name'
  217.         end
  218.         if obj_check_one(ob)then
  219.             if Check_Name_Property_From_Table(ob,
  220.                 {'Humanoid'}
  221.                 ,tab
  222.             )then
  223.                 return
  224.             elseif ob:IsA'Sound'then
  225.                 if Find_Sub_String_In_Whole_String(ob.SoundId,tab)then
  226.                     local plr = Get_Player_From_Character_Descendant(ob)
  227.                     if plr then
  228.                         Sting_1(plr)
  229.                     else
  230.                         ob:Destroy()
  231.                     end
  232.                 end
  233.             elseif ob:IsA'TextLabel'then
  234.                 if Find_Sub_String_In_Whole_String(ob.Text,tab)then
  235.                     local plr = Get_Player_From_Character_Descendant(ob)
  236.                     if plr then
  237.                         Sting_1(plr)
  238.                     else
  239.                         ob:Destroy()
  240.                     end
  241.                 end
  242.             elseif ob:IsA'SpecialMesh'then
  243.                 if Find_Sub_String_In_Whole_String(ob.MeshId,tab)then
  244.                     local plr = Get_Player_From_Character_Descendant(ob)
  245.                     if plr then
  246.                         Sting_1(plr)
  247.                     else
  248.                         ob:Destroy()
  249.                     end
  250.                 end
  251.             end
  252.         end
  253.     end
  254.    
  255.     local function Temp_function()
  256.         for _,v in pairs(workspace:GetChildren())do
  257.             local vn = v.Name
  258.             if string.find(vn:lower(),'the_hive_')then
  259.                 return true
  260.             end
  261.         end
  262.     end
  263.     workspace.ChildRemoved:Connect(function(ch)
  264.         if Temp_function()==nil then
  265.             hive = New_Beez()
  266.         end
  267.     end)
  268.     print('cmd is "beez/<keyword of player name>"')
  269.     owner_1.Chatted:Connect(function(msg)
  270.         local a,b = string.find(msg,'beez/')
  271.         local name
  272.         if b then
  273.             name = msg:lower():sub(b + 1)
  274.             local pl = Get_Player_From_Keyword(name)
  275.             if pl then
  276.                 Sting_1(pl)
  277.             end
  278.         elseif'beezdef/noplayer'==msg:lower()then
  279.             for _,f in pairs(workspace:GetDescendants())do
  280.                 if f.Name:sub(1,9)=='The_Hive_' then
  281.                     f.Anchored=false;
  282.                     f.CFrame=owner_1.Character.Head.CFrame;
  283.                     local g = Instance.new('WeldConstraint',owner_1.Character.Head);
  284.                     g.Part0=owner_1.Character.Head
  285.                     g.Part1=f;
  286.                 end;
  287.             end;
  288.             local bool=true
  289.             owner_1.Character.Humanoid.Touched:Connect(function(c)
  290.                 if not bool then return;end;
  291.                 local d=c:FindFirstAncestorWhichIsA'Model'
  292.                 if not d then return end;
  293.                 local e = d:FindFirstChildWhichIsA'Humanoid';
  294.                 if not e or game:GetService'Players':GetPlayerFromCharacter(d)then return;end;
  295.                 bool=false;
  296.                 Sting_1(d)
  297.                 wait()
  298.                 bool=true;
  299.             end)
  300.         end
  301.     end)
  302.     for _,v in pairs(workspace:GetDescendants())do
  303.         check_Kickisher(v)
  304.     end
  305.     workspace.DescendantAdded:Connect(check_Kickisher)
  306. end
  307. wait(.1)
  308. script_1(owner)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement