ieatgrass103

4nn1 kaboom bot

Dec 15th, 2024 (edited)
702
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.03 KB | None | 0 0
  1. --Fedora admin sucks kaboom bot is better  đŸ„¶
  2.  
  3.  
  4. print("ran")
  5. BLACKLISTED = {
  6.     --anyone who isn't able to use the bot
  7. }
  8.  
  9. local admins = {
  10.     --If you are using this script add the name of your main account here, or anyone else you want to be able to use admin commands
  11.     "GarbageMold"
  12. }
  13.  
  14. local sounds = {}
  15. spamsounds = false
  16.  
  17. local cmdlist = {
  18.     kaboom = "Grabs the cats and makes the bot walk toward the targeted player, on contact the cats will explode",
  19.     exterminate = "Similar to ;kaboom, however ;exterminate directly teleports to the player. This is very unreliable.",
  20.     getno = "Attempts to gain networkownership of the cats. ",
  21.     grabcats = "Teleports the cats to the targeted player.",
  22.     dig = "Brings the cats below the player running the command.",
  23.     digf = "Brings the cats infront of the player running the command.",
  24.     digt = "Brings the cats above the player running the command. This is untested.",
  25.     checkadmin = "Lists off players who are admins",
  26.     checkblacklist = "Lists off players who are blacklisted from using commands.",
  27.     cmds = "Lists off the commands. There is also ;cmds admin, which lists off commands that can only be used by the bot.",
  28.     credits = "Credits to the creator of the script.",
  29.     reset = "Kills the bot. This is an admin only command.",
  30.     forceleave = "Forces the bot to leave the game. This is an admin only command.",
  31.     blacklist = "Prevents the targeted player from running commands. This is an admin only command.",
  32.     whitelist = "Unblacklists the targeted player. This is an admin only command.",
  33.     checkrunning = "Displays the current script version. This is an admin only command.",
  34.     antifling = "Prevents other exploiters from flinging the bot.",
  35.     to = "Brings the bot to the targeted player. This is an admin only command.",
  36.     rejoin = "Makes the bot rejoin the game. This is an admin only command.",
  37.     info = "Provides information on the specified command.",
  38.     spamsounds = "Plays any audios that are a descendant of workspace",
  39.     explain = "Gives some information on the usage of the bot",
  40.     crash = "Crashes the bot"
  41. }
  42.  
  43. local plr = game.Players.LocalPlayer
  44. table.insert(admins, plr.Name)
  45. local tweenservice = game:GetService("TweenService")
  46. ischasing = false
  47. digpos = nil
  48. skidactive = false
  49. silent = false
  50. --collision remover--
  51. local function noclip()
  52.     for _, v in pairs(workspace.Cabins:GetDescendants()) do
  53.         if v:IsA("BasePart") then
  54.             v.CanCollide = false
  55.         end
  56.     end
  57. end
  58.  
  59. local function getplr(string)
  60.     local lower = string:lower()
  61.     for _, plar in next, game.Players:GetPlayers() do
  62.         if plar.Name:sub(1,#string):lower() == lower then
  63.             return plar
  64.         end
  65.     end
  66. end
  67.  
  68. local function clip()
  69.     for _, v in pairs(workspace.Cabins:GetDescendants()) do
  70.         if v:IsA("BasePart") then
  71.             v.CanCollide = true
  72.         end
  73.     end
  74. end
  75. local function crash()
  76.     while true do end
  77. end
  78.  
  79. local function nocoli()
  80.     --turns off collision for the dogs
  81.     for _, v in pairs(workspace.muffy:GetChildren()) do
  82.         if v:IsA("BasePart") then
  83.             v.CanCollide = false
  84.         end
  85.     end
  86.  
  87.     for _, v in pairs(workspace.socky:GetChildren()) do
  88.         if v:IsA("BasePart") then
  89.             v.CanCollide = false
  90.         end
  91.     end
  92. end
  93.  
  94. --Grabs every sound in workspace
  95. local function getsounds()
  96.     for _, sound in pairs(workspace:GetDescendants()) do
  97.         if sound:IsA("Sound") then
  98.             if table.find(sounds, sound) == nil then
  99.                 table.insert(sounds, sound)
  100.             end
  101.         end
  102.     end
  103. end
  104.  
  105. local function killdogs()
  106.     --sets health to 100 incase client buggs the dogs--
  107.     workspace.muffy.Humanoid.Health = 100
  108.     workspace.socky.Humanoid.Health = 100
  109.     task.wait()
  110.     workspace.muffy.Humanoid.Health = 0
  111.     workspace.socky.Humanoid.Health = 0
  112. end
  113.  
  114. --attempts to get networkownership--
  115. local function stealdogs()
  116.     plr.Character.HumanoidRootPart.CFrame = workspace.muffy.Torso.CFrame
  117.     task.wait(0.75)
  118.     plr.Character.HumanoidRootPart.CFrame = workspace.socky.Torso.CFrame
  119.     workspace.muffy.Torso.CFrame = plr.Character.HumanoidRootPart.CFrame
  120.     task.wait(0.75)
  121.     workspace.muffy.Torso.CFrame = plr.Character.Head.CFrame
  122.     workspace.socky.Torso.CFrame = plr.Character.Head.CFrame
  123. end
  124.  
  125.  
  126. --regular commands--
  127. local function thecomand(msg, player)
  128.     if table.find(BLACKLISTED, player) then
  129.         print(player.." is blacklisted.")
  130.         return end
  131.     if string.find(msg, ";kaboom ") then
  132.         local name = string.gsub(msg, ";kaboom ", "")
  133.         print("name is "..name)
  134.         if name == "me" then name = player end
  135.         local victim = getplr(name)
  136.         if victim == plr then return end
  137.         if victim == nil then return end
  138.         ischasing = true
  139.         print("victim is "..victim.Name)
  140.         nocoli()
  141.         noclip()
  142.         local startercframe = plr.Character.HumanoidRootPart.CFrame
  143.         stealdogs()
  144.         plr.Character.HumanoidRootPart.CFrame = startercframe
  145.         --the important stuff--
  146.          pcall( function() task.spawn(function() while plr.Character.Humanoid.Health > 10 do
  147.                     plr.Character.Humanoid:MoveTo(victim.Character.HumanoidRootPart.Position) task.wait(0.25) end end)
  148.             while plr.Character.Humanoid.Health > 10 or victim.Character.Humanoid.Health > 10 or ischasing == true do
  149.                 task.wait()
  150.                 workspace:FindFirstChild("muffy"):FindFirstChild("Torso").CFrame = plr.Character.Head.CFrame
  151.                 workspace:FindFirstChild("socky"):FindFirstChild("Torso").CFrame = plr.Character.Head.CFrame
  152.                 victim.Character.HumanoidRootPart.Touched:Connect(function(hit)
  153.                         task.wait()
  154.                         if not workspace:FindFirstChild("muffy") or not workspace:FindFirstChild("socky") then
  155.                             clip()
  156.                             ischasing = false
  157.                             return end
  158.                         if hit.Parent == workspace:FindFirstChild("muffy") or workspace:FindFirstChild("socky") then
  159.                             if ischasing == true then
  160.                                 killdogs()
  161.                             end
  162.                             clip()
  163.                             ischasing = false
  164.                             return end
  165.                 end)
  166.             end
  167.         end)
  168.     end
  169.     if string.find(msg, ";grabcats ") then
  170.         print("detected ;grabcats")
  171.         local name = string.gsub(msg, ";grabcats ", "")
  172.         if name == "me" then name = player end
  173.         local victim = getplr(name)
  174.         if victim == nil then return end
  175.         stealdogs()
  176.         workspace:FindFirstChild("muffy"):FindFirstChild("Torso").CFrame = victim.Character.Head.CFrame
  177.         workspace:FindFirstChild("socky"):FindFirstChild("Torso").CFrame = victim.Character.Head.CFrame
  178.     end
  179.     if string.match(msg, ";getno") then
  180.         if string.gsub(msg, ";getno", "") == "" then
  181.             stealdogs()
  182.         end
  183.     end              
  184.  
  185.     if string.match(msg, ";dig") then
  186.         if string.gsub(msg, ";dig", "") == "" then
  187.             if ischasing then return end
  188.             print("dig")
  189.             nocoli()
  190.             stealdogs()
  191.             task.wait()
  192.             local digpos = game.Players:FindFirstChild(player)
  193.             plr.Character.HumanoidRootPart.CFrame = digpos.Character.HumanoidRootPart.CFrame
  194.             workspace.muffy.Torso.CFrame = plr.Character.Head.CFrame - Vector3.new(0,7,0)
  195.             workspace.socky.Torso.CFrame = plr.Character.Head.CFrame - Vector3.new(0,7,0)
  196.             task.wait(0.1)
  197.             killdogs()
  198.         end
  199.     end
  200.     if string.match(msg, ";digf") then
  201.         print("test1")
  202.         if string.gsub(msg, ";digf", "") == "" then
  203.             print("test2")
  204.             if ischasing then return end
  205.             print("digf")
  206.             nocoli()
  207.             stealdogs()
  208.             task.wait()
  209.             local digpos = game.Players:FindFirstChild(player)
  210.             plr.Character.HumanoidRootPart.CFrame = digpos.Character.HumanoidRootPart.CFrame
  211.             local cframe = plr.Character.HumanoidRootPart.CFrame + Vector3.new(0, 1, 0)
  212.             workspace.muffy.Torso.CFrame = cframe + cframe.LookVector * 3
  213.             workspace.socky.Torso.CFrame = cframe + cframe.LookVector * 3
  214.             task.wait(0.075)
  215.             killdogs()
  216.         end
  217.     end
  218.     if string.match(msg, ";digt") then
  219.         if string.gsub(msg, ";digt", "") == "" then
  220.             if ischasing then return end
  221.             print("digt")
  222.             nocoli()
  223.             stealdogs()
  224.             task.wait()
  225.             local digpos = game.Players:FindFirstChild(player)
  226.             plr.Character.HumanoidRootPart.CFrame = digpos.Character.HumanoidRootPart.CFrame
  227.             local cframe = plr.Character.Head.CFrame
  228.             workspace.muffy.Torso.CFrame = cframe + Vector3.new(0,6,0)
  229.             workspace.socky.Torso.CFrame = cframe + Vector3.new(0,6,0)
  230.             task.wait()
  231.             killdogs()
  232.         end
  233.     end
  234.     if string.match(msg, ";spamsounds") then
  235.         if string.gsub(msg, ";spamsounds", "") == "" then
  236.             if spamsounds == true then return end
  237.             spamsounds = true
  238.             getsounds()
  239.             while spamsounds == true do
  240.                 for _, sound in pairs(sounds) do
  241.                     sound:Play()
  242.                 end
  243.                 task.wait(0.5)
  244.             end
  245.         end
  246.     end
  247.     if string.match(msg, ";unspamsounds") then
  248.         if string.gsub(msg, ";unspamsounds", "") == "" then
  249.             spamsounds = false
  250.         end
  251.     end
  252.     if string.find(msg, ";checkadmin") then
  253.         if string.gsub(msg, ";checkadmin", "") == "" then
  254.             print(";cmds detetected")
  255.             game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync("Admins: "..table.concat(admins, ", "))
  256.         end
  257.     end
  258.     if string.find(msg, ";credits") then
  259.         if string.gsub(msg, ";credits", "") ~= "" then return end
  260.         print(";credits detetected")
  261.         game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync("Script: 4nn1 kaboom bot  Made By: ieatgrass103 on pastebin.")
  262.     end
  263.     if string.find(msg, ";checkblacklist") then
  264.         if string.gsub(msg, ";checkblacklist", "") == "" then
  265.             print(";cmds detetected")
  266.             game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync("Blacklisted: "..table.concat(BLACKLISTED, ", "))
  267.         end
  268.     end
  269.     if string.find(msg, ";cmds ") then
  270.         if string.gsub(msg, ";cmds ", "") == "admin" then
  271.             game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync("Adminonly Commands: ;reset, ;forceleave, ;blacklist (plr), ;whitelist (plr), ;checkrunning, ;to (plr), ;rejoin")                
  272.         end
  273.     end
  274.     if string.find(msg, ";cmds") then
  275.         if string.gsub(msg, ";cmds", "") == "" then
  276.             game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync("Commands: ;kaboom (plr), ;exterminate (plr), ;getno, ;grabcats (plr), ;dig, ;digf, ;digt, ;spamsounds, ;unspamsounds, ;checkadmin, ;checkblacklist, ;cmds, ;credits, ;info (command)")
  277.         end
  278.     end
  279.     if string.find(msg, ";info ") then
  280.         local cmd = string.gsub(msg, ";info ", "")
  281.         if cmd == "" then
  282.             game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync(";info gets information on the specified command. For example ;info info")
  283.         end
  284.         if cmdlist[cmd] ~= nil then
  285.             game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync(cmdlist[cmd])
  286.         end
  287.     end
  288.     if string.find(msg, ";exterminate ") then
  289.         if ischasing then return end
  290.         local name = string.gsub(msg, ";exterminate ", "")
  291.         if name == "me" then name = player end
  292.         local  victim = getplr(name)
  293.         if victim == plr then return end
  294.         if victim == nil then return end
  295.         print("victim is "..victim.Name)
  296.         nocoli()
  297.         stealdogs()
  298.         plr.Character.HumanoidRootPart.CFrame = victim.Character.HumanoidRootPart.CFrame
  299.         workspace.muffy.Torso.CFrame = plr.Character.Head.CFrame
  300.         workspace.socky.Torso.CFrame = plr.Character.Head.CFrame
  301.         task.wait(0.1)
  302.         killdogs()
  303.     end
  304. end
  305. local function admincommand(msg)
  306.     if string.match(msg, ";reset") then
  307.         if string.gsub(msg, ";reset", "") ~= "" then return end
  308.         plr.Character:FindFirstChild("Humanoid").Health = 0
  309.         ischasing = false
  310.     end
  311.     if string.find(msg, ";blacklist ") then
  312.         local name = string.gsub(msg, ";blacklist ", "")
  313.         local victim = getplr(name)
  314.         if victim == nil then return end
  315.         table.insert(BLACKLISTED, victim.Name)
  316.         print("blacklisted "..victim.Name)
  317.     end
  318.     if string.find(msg, ";whitelist ") then
  319.         local name = string.gsub(msg, ";whitelist ", "")
  320.         local victim = getplr(name)
  321.         if victim == nil then return end
  322.         table.remove(BLACKLISTED, table.find(BLACKLISTED, victim.Name))
  323.         print("whitelisted "..victim.Name)
  324.     end
  325.     if string.match(msg, ";forceleave") then
  326.         if string.gsub(msg, ";forceleave", "") == "" then
  327.             game.Players.LocalPlayer:Kick("An admin used ;forceleave on you.")
  328.         end
  329.     end
  330.     if string.find(msg, ";to ") then
  331.         local name = string.gsub(msg, ";to ", "")
  332.         local victim = getplr(name)
  333.         if victim == nil then return end
  334.         plr.Character.HumanoidRootPart.CFrame = victim.Character.HumanoidRootPart.CFrame
  335.     end
  336.  
  337.     if string.find(msg, ";checkrunning") then
  338.         if string.gsub(msg, ";checkrunning", "") ~= "" then return end
  339.         print(";cmds detetected")
  340.         game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync("Kaboom Bot is currently active.")
  341.     end
  342.     if string.find(msg, ";explain") then
  343.         if string.gsub(msg, ";explain", "") ~= "" then return end
  344.         print("explaining")
  345.         game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync("Anyone can run commands that are on ;cmds. If you want to find out more about a command then use ;info (command)")
  346.     end
  347.     if string.find(msg, ";rejoin") then
  348.         if string.gsub(msg, ";rejoin", "") ~= "" then return end
  349.         print("rejoining")
  350.         game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId,game.JobId)
  351.     end
  352.     if string.match(msg, ";crash") then
  353.         crash()
  354.     end
  355.     if string.find(msg, ";debug ") then
  356.         local name = string.gsub(msg, ";debug ", "")
  357.         local victim = getplr(name)
  358.         if victim == nil then print("it was nil") return end
  359.         print(victim.Name)
  360.     end
  361.     if string.match(msg, ";silent") then
  362.         silent = true
  363.     end
  364.     if string.match(msg, ";loud") then
  365.         silent = false
  366.     end
  367.     if string.find(msg, ";skid ") then
  368.         print(";skid detected")
  369.         if skidactive then warn("skidactive == true") return end
  370.         local name = string.gsub(msg, ";skid ", "")
  371.         local victim = getplr(name)
  372.         if victim == nil then return end
  373.         ischasing = true
  374.         if silent == false then
  375.         game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync(victim.Name.." ur not cool buddy💔")
  376.         end
  377.         skidactive = true
  378.         while skidactive do task.wait() pcall(function()
  379.                 if workspace:FindFirstChild("muffy") then
  380.                     if workspace:FindFirstChild("socky") then
  381.                         if victim.Character then
  382.                             if victim.Character:FindFirstChild("HumanoidRootPart") then
  383.                                 if plr.Character:FindFirstChild("HumanoidRootPart") then
  384.                                     stealdogs()
  385.                                     plr.Character.HumanoidRootPart.CFrame = victim.Character.HumanoidRootPart.CFrame
  386.                                     workspace.muffy.Torso.CFrame = plr.Character.Head.CFrame
  387.                                     workspace.socky.Torso.CFrame = plr.Character.Head.CFrame
  388.                                     task.wait(0.1)
  389.                                     killdogs()
  390.                                     task.wait(2)
  391.                                 else task.wait(2) end
  392.                             else task.wait(2) end
  393.                         else task.wait(2) end
  394.                     else task.wait(1) end
  395.                 else task.wait(1) end
  396.             end)
  397.         end
  398.     end
  399.     if string.match(msg, ";unskid") then
  400.         print(";unskid detected")
  401.         skidactive = false
  402.     end
  403. end
  404. --events--
  405. plr.Chatted:Connect(thecomand)
  406. game.Players.PlayerAdded:Connect(function(plar)
  407.     if table.find(admins, plar.Name) then
  408.         plar.Chatted:Connect(admincommand)
  409.     end
  410.     plar.Chatted:Connect(function(message)
  411.         thecomand(message, plar.Name)
  412.     end)  
  413. end)
  414. for _, v in pairs(game.Players:GetChildren()) do
  415.     print(v)
  416.     if table.find(admins, v.Name) then
  417.         v.Chatted:Connect(admincommand)
  418.     end
  419.     v.Chatted:Connect(function(message)
  420.         thecomand(message, v.Name)
  421.     end)
  422. end
  423. --needz this--
  424. plr.Character.Humanoid.Died:Connect(function() ischasing = false task.wait(2) clip()end)
  425. plr.Character.Humanoid.Seated:Connect(function() plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment