Chaotic Scripts Bot Commands

Script Credit :- IFriendBottedYou
Features

Bot Commands

Script
--BROUGHT TO YOU BY RobloxScripter.com!--

repeat task.wait() until game:IsLoaded() local host = "dossey67"-- by username, this is the main aka the controller local display = "AltAccount" -- i have no clue why but some games use display name and others use username??????????? if game.Players.LocalPlayer.Name ~= host then -- unless you wanna run commands on yourself task.wait(5) local hypes = { "God Your Soo GOOD! omg!", "Your Just Perfect!", "Omg! Amazing!", "Wow!", "Good Stuff!", "I Like Them Apples!" } local means = { "Your So Bad Get Good", "xD ugly ew!", "No one likes you ew!", "Get Good!", "Your Bad Kid", "Loser!", "Jerk!", "Dunce!", "Stupid!", "Imbecile!", } local player = game.Players.LocalPlayer local action = false -- dont touch function minutes(x) return (x * 60) or (2 * 60)-- default to a 2 minutes end local commands = { ["Bacons Assemble!"] = function(msg, root) player.Character.HumanoidRootPart.Position = (root.Character.Head.Position * math.random(1, 1.1)) end, ["Bacons Say!"] = function(msg) return game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, string.find(msg, "!")+1, msg:len()), "All") end, ["Bacons TP!"] = function(msg) -- will tp concurrently for i,v in pairs(game.Players:GetPlayers()) do if string.match(msg, v.Name:lower()) or msg:match(v.DisplayName) then function thread() return v.Character.Head.Position * math.random(1, 1.1) -- prevent errors with no character end player.Character.HumanoidRootPart.Position = task.spawn(thread) end end end, ["Bacons Go!"] = function() player:Kick("You Were Ordered To Leave!") end, ["Bacons Advertise!"] = function() Actions = true task.spawn(function() while task.wait(1) and Actions do local targ = game.Players:GetPlayers()[math.random(1, #game.Players:GetPlayers())] pcall(function() game.Players.LocalPlayer.Character.HumanoidRootPart.Position = targ.Character.Head.Position end) local msg = "hi "..targ.Name.." Sub To Chaotic Scripts!" local args = { [1] = msg, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end end) end, ["Bacons Follow!"] = function(msg) local targ for i,v in pairs(game.Players:GetPlayers()) do if string.match(msg, v.Name:lower()) or msg:match(v.DisplayName) then targ = v break end end task.spawn(function() Actions = true -- even if its true on say advertise command you still have to call the function to get the command to work so essientally we can convienety(jesus) set actions to true! while task.wait(.5) and Actions do task.spawn(function() player.Character.HumanoidRootPart.Position = targ.Character.Head.Position end) end end) end, ["Bacons Stop Actions!"] = function() Actions = false end, ["Bacons Hype!"] = function(msg) Actions = true task.spawn(function() while task.wait(1) and Actions do local hypeMsg = hypes[math.random(1, #hypes)] local targ task.spawn(function() for i,v in pairs(game.Players:GetPlayers()) do if string.match(msg, v.Name:lower()) or msg:match(v.DisplayName) then targ = v break end end end) player.Character.HumanoidRootPart.Position = targ.Character.Head.Position * math.random(1, 1.1) local args = { [1] = targ.Name.." "..hypeMsg, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end end) end, ["Bacons Rick Roll!"] = function() Actions = true task.spawn(function() while task.wait() and Actions do local targ = game.Players:GetPlayers()[math.random(1, #game.Players:GetPlayers())] pcall(function() game.Players.LocalPlayer.Character.HumanoidRootPart.Position = targ.Character.Head.Position end) local msg = "hi "..targ.Name.." Get Rick Rolled!" local args = { [1] = msg, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end end) end, --[[ ["Bacon[] Do()!"] = function(msg) -- msg commands look after ! idk how it will work with well i might just do userid task.spawn(function() local targ = string.sub(msg, string.find(msg, "[", string.find(msg, "]"))) local command = string.sub(msg, string.find(msg, "("), string.find(msg, ")")-1) command = command.."!)" -- modify command, why well we have to say the command if we do Bacons Say! as the command it will call bacons say on everyone regardless of the bacon we picked so we counteract this by not passing over the ! and then adding it later so were basically modifing the message local success, err = pcall(function() targ = game.Players[targ] if targ == player.Name then commands[command](msg) end end) if err then pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Command Returned Error: "..tostring(err), "All") end) end end) end,]] ["Bacons Die!"] = function() player.Character:FindFirstChildWhichIsA("Humanoid").Health = nil end, --[[ ["Bacons Loop Die On!"] = function(msg) Actions = true local self -- gives errors if defined on function creation task.spawn(function() local humanoid = player.Character:FindFirstChildWhichIsA("Humanoid") local targ = function() local val for i,v in pairs(game.Players:GetPlayers()) do if string.match(msg, v.Name:lower()) or msg:match(v.DisplayName) then val = v break end end if val then return val -- cant return in a loop atleast from what i remember end end targ = targ() humanoid.Health = nil self = player.CharacterAdded:Connect(function() -- if we dont set it to something we cant disconnect it, why do we need to well if we connect it once and then turn actions off it will still do its thing when actions is enabled but the command wasnt called therefore we disconnect it if Actions then player.Character.HumanoidRootPart.Position = targ.Character.Head.Position task.wait(.2) humanoid.Health = nil else self:Disconnect() end end) end) end,]] ["Bacons Smack Talk!"] = function(msg) Actions = true task.spawn(function() while task.wait(1) and Actions do local hypeMsg = means[math.random(1, #means)] local targ task.spawn(function() for i,v in pairs(game.Players:GetPlayers()) do if string.match(msg, v.Name:lower()) or msg:match(v.DisplayName) then targ = v break end end end) player.Character.HumanoidRootPart.Position = targ.Character.Head.Position * math.random(1, 1.1) local args = { [1] = targ.Name.." "..hypeMsg, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end end) end, ["Bacons Tp All!"] = function() Actions = true task.spawn(function() while task.wait(1) and Actions do local targ = game.Players:GetPlayers()[math.random(1, #game.Players:GetPlayers())] pcall(function() game.Players.LocalPlayer.Character.HumanoidRootPart.Position = targ.Character.Head.Position end) end end) end, ["Bacons Repeat!"] = function(msg) Actions = true task.spawn(function() while task.wait(1) and Actions do local newmsg = msgConfusedub(msg:find("!")+1, msg:len()) local args = { [1] = newmsg, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end end) end, ["Bacons Users!"] = function() local args = { [1] = "UserId: "..player.UserId, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end, ["Bacons Host!"] = function() local args = { [1] = "Your Host Is: "..host, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end, ["Bacons Announce!"] = function(msg) local newmsg = msgConfusedub(msg:find("!")+1, msg:len()) local args = { [1] = newmsg:upper(), [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end, ["Bacons Print Players!"] = function() local msg = "" for i,v in pairs(game:GetPlayers()) do msg = msg..v.Name.."; " end local args = { [1] = msg, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end, ["Bacons SpinBot!"] = function() Actions = true task.spawn(function() local count = 1, 1, 1 while task.wait() and Actions do if count >= 360 then count = 1, 1, 1 end player.Character.HumanoidRootPart.Orientation = Vector3.new(count) count = count+1 end end) end, ["Bacons Destroy BodyPart!"] = function(msg) task.spawn(function() for i,v in pairs(player.Character:GetChildren()) do if msg:match(v.Name) then v:Destroy() end end end) end, ["Bacons Who Are You!"] = function() local args = { [1] = "Chaotic Scripts", [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end, ["Bacons Who Do You Work For!"] = function() local args = { [1] = " We Work For: Chaotic Scripts", [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end, ["Bacons State Your Users!"] = function() local args = { [1] = player.Name, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end, ["Bacons I Own This!"] = function() Actions = true task.spawn(function() while task.wait(1) and Actions do local targ = game.Players:GetPlayers()[math.random(1, #game.Players:GetPlayers())] pcall(function() game.Players.LocalPlayer.Character.HumanoidRootPart.Position = targ.Character.Head.Position end) local msg = "Chaotic Scripts YT Owns This Server Now!" local args = { [1] = msg, [2] = "All" } pcall(function() -- so if an error occurs dont break game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end) end end) end, ["Bacons Fling!"] = function(msg) local targ for i,v in pairs(game.Players:GetPlayers()) do if string.match(msg, v.Name:lower()) or msg:match(v.DisplayName) then targ = v break end end task.spawn(function() Actions = true -- even if its true on say advertise command you still have to call the function to get the command to work so essientally we can convienety(jesus) set actions to true! while task.wait(.2) and Actions do task.spawn(function() player.Character.HumanoidRootPart.Position = targ.Character.HumanoidRootPart.Position end) end end) end, ["Bacons Beat!"] = function(msg) Actions = true task.spawn(function() while task.wait() and Actions do task.spawn(function() player.Character.HumanoidRootPart.Orientation = targ.Character.HumanoidRootPart.Orientation end) end end) task.spawn(function() while task.wait(1) and Actions do local targ for i,v in pairs(game.Players:GetPlayers()) do if string.match(msg, v.Name:lower()) or msg:match(v.DisplayName) then targ = v break end end pcall(function() game.Players.LocalPlayer.Character.HumanoidRootPart.Position = targ.Character.Head.Position end) task.spawn(function() local tool if not player.Character:FindFirstChild("Combat") then tool = player.Backpack["Combat"] tool.Parent = player.Character end if tool then mouse1click() end end) end end) end, ["Bacons Phone!"] = function(msg) Actions = true task.spawn(function() while task.wait(1) and Actions do local targ for i,v in pairs(game.Players:GetPlayers()) do if string.match(msg, v.Name:lower()) or msg:match(v.DisplayName) then targ = v break end end task.spawn(function() local tool if not player.Character:FindFirstChild("[Phone]") then tool = player.Backpack["[Phone]"] tool.Parent = player.Character end if tool then game:GetService("ReplicatedStorage").MainEvent:FireServer("PhoneCall", targ.Name) end end) end end) end, } task.spawn(function() -- actual command setup, listens for a new chat local chat = player.PlayerGui:WaitForChild("Chat").Frame.ChatChannelParentFrame["Frame_MessageLogDisplay"].Scroller chat.ChildAdded:Connect(function© task.wait(3) if string.match(c.TextLabel.TextButton.Text, host) or c.TextLabel.TextButton.Text:match(display) then for i,v in pairs(commands) do if string.match(c.TextLabel.Text, i) then v(c.TextLabel.Text:lower(), game.Players[host]) end end end end) end) end