Advertisement
2AreYouMental110

The Chosen One (AFK BOT AND ANTI AFK)

Sep 16th, 2023 (edited)
1,860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.73 KB | None | 0 0
  1. --[[ how to use
  2. say "startauto" to start the bot
  3. say "stopauto" to stop the bot
  4. say "turnoff" to turn off everything
  5. say "turnon" to turn on everything
  6.  
  7. if you are away, get an account that is friended with yours and you can do
  8. "YOURPLAYERNAME stop." to stop it
  9. "YOURPLAYERNAME start." to start it
  10. "YOURPLAYERNAME say (whatever you want)" to make it say stuff
  11.  
  12.  
  13. if you are not using the bot, you can use the features of it that include:
  14. Anti-glitch
  15. Anti-fling
  16. Anti-jail
  17. Anti-freeze
  18. Anti-afk
  19. Anti-blind
  20. Anti-stun
  21. Anti-invis
  22. Anti-toxify
  23. Anti-blur
  24. Anti-nocolor (idk what it is)
  25.  
  26. It will still say stuff when muted, but if you want to actually talk while muted, use infinite yield's "chat command"
  27.  
  28.  
  29. WEBHOOKING:
  30. Put the webhook you want below and optional, the person you will tag   ]]
  31. local webhookurl = ""
  32. local tagperson = "<@USERIDHERE>"
  33. -- it will tell you when you've disconnected, your time is losing, or the admin changes
  34.  
  35. loadstring(game:HttpGet("https://pastebin.com/raw/rH4hbmK9"))()
  36. if getgenv().thechosenonescriptdisable then
  37.     getgenv().thechosenonescriptdisable()
  38. end
  39.  
  40. local localplr = game.Players.LocalPlayer
  41. local automessage = false
  42. local off = false
  43.  
  44. function isadmin(plr)
  45.     print(plr.Team == game.Teams.Admin)
  46.     if plr.Team == game.Teams.Admin then return true end
  47.     print(plr.Backpack:FindFirstChild("The Arkenstone") or plr.Character:FindFirstChild("The Arkenstone"))
  48.     if plr.Backpack:FindFirstChild("The Arkenstone") or plr.Character:FindFirstChild("The Arkenstone") then return true end
  49.     local found = false
  50.     for i,v in pairs(workspace:GetChildren()) do
  51.         if v.Name == "The Arkenstone" and v.Handle:FindFirstChild("TouchInterest") then
  52.             found = true
  53.         end
  54.     end
  55.     return found
  56. end
  57. function getadmin()
  58.     if localplr.Team ~= game.Teams.Admin and localplr.Character and not localplr.Character:FindFirstChild("The Arkenstone") and not localplr.Backpack:FindFirstChild("The Arkenstone") then
  59.         local found = false
  60.         for i,v in pairs(workspace:GetChildren()) do
  61.             if found then
  62.                 continue
  63.             elseif v.Name == "The Arkenstone" and v.Handle:FindFirstChild("TouchInterest") then
  64.                 found = v
  65.             end
  66.         end
  67.         if found and localplr.Character and localplr.Character:FindFirstChild("HumanoidRootPart") then
  68.             task.spawn(function()
  69.                 repeat
  70.                     wait()
  71.                     found.Handle.CFrame = localplr.Character.HumanoidRootPart.CFrame
  72.                     found.Handle.ForceField.CFrame = localplr.Character.HumanoidRootPart.CFrame
  73.                 until not found or not found:FindFirstChild("Handle") or localplr.Character:FindFirstChild("The Arkenstone")
  74.                 return true
  75.             end)
  76.         end
  77.     end
  78. end
  79. function equipadmin()
  80.     if localplr.Team ~= game.Teams.Admin and not localplr.Character:FindFirstChild("The Arkenstone") then
  81.         local tool = localplr.Backpack:FindFirstChild("The Arkenstone")
  82.         if tool then
  83.             tool.Parent = localplr.Character
  84.         end
  85.     end
  86. end
  87. local chat = require(game:GetService("Players").LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("ChatScript"):WaitForChild("ChatMain"))
  88. function say(text,channel)
  89.     game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest"):FireServer(text,channel or "All")
  90.     wait(.5)
  91.     chat.MessagePosted:fire(text)
  92. end
  93. local connect1 = {}
  94. local playertimes = {}
  95. function doplr(plr)
  96.     if off then return end
  97.     local speaker = plr.Name
  98.     if plr:IsFriendsWith(localplr.UserId) and isadmin(localplr) then
  99.         getadmin()
  100.         equipadmin()
  101.         say("enlighten "..speaker,"System")
  102.     end
  103.     if not playertimes[speaker] then
  104.         playertimes[speaker] = 0
  105.     end
  106.     table.insert(connect1,plr:GetPropertyChangedSignal("Team"):Connect(function()
  107.         if plr.Team == game.Teams.Admin then
  108.             webhook("NEW ADMIN! "..plr.Name.."/"..plr.DisplayName,tonumber(0xFFFF00))
  109.         end
  110.     end))
  111.     table.insert(connect1,plr.Chatted:Connect(function(text)
  112.         local text = text:lower()
  113.         if speaker ~= localplr.Name then
  114.             if text == localplr.Name:lower().." stop." and game.Players[speaker]:IsFriendsWith(localplr.UserId) then
  115.                 automessage = false
  116.             elseif text == localplr.Name:lower().." start." and game.Players[speaker]:IsFriendsWith(localplr.UserId) then
  117.                 automessage = true
  118.             elseif string.sub(text,1,string.len(localplr.Name:lower().." say")) == localplr.Name:lower().." say" and game.Players[speaker]:IsFriendsWith(localplr.UserId) then
  119.                 say(string.sub(text,string.len(localplr.Name:lower().." say ")+1),"All")
  120.             elseif string.sub(text,1,6) == "donate" and isadmin(localplr) then
  121.                 getadmin()
  122.                 local split = string.split(text," ")
  123.                 local num
  124.                 local plrname
  125.                 if tonumber(split[2]) then
  126.                     num = tonumber(split[2])
  127.                     plrname = split[3]
  128.                 elseif tonumber(split[3]) then
  129.                     num = tonumber(split[3])
  130.                     plrname = split[2]
  131.                 end
  132.                 local found = false
  133.                 local player = nil
  134.                 if num and plrname then
  135.                     playertimes[speaker] += num
  136.                     for i=1,string.len(plrname)+1 do
  137.                         if found then continue end
  138.                         local amt = i-1
  139.                         print(i,amt)
  140.                         local newplrname = string.sub(plrname:lower(),1,string.len(plrname)-amt)
  141.                         for i,v in pairs(game.Players:GetPlayers()) do
  142.                             if found then continue end
  143.                             if v.Name:lower() == newplrname then
  144.                                 found = true
  145.                                 player = v
  146.                             end
  147.                         end
  148.                         for i,v in pairs(game.Players:GetPlayers()) do
  149.                             if found then continue end
  150.                             if string.find(v.Name:lower(),newplrname) then
  151.                                 found = true
  152.                                 player = v
  153.                             end
  154.                         end
  155.                     end
  156.                     if found and plr and plr == localplr and playertimes[speaker] >= 500 then
  157.                         getadmin()
  158.                         equipadmin()
  159.                         say("enlighten "..speaker,"All")
  160.                     end
  161.                 end
  162.             end
  163.         elseif plr == localplr then
  164.             if text == "startauto" then
  165.                 automessage = true
  166.             elseif text == "stopauto" then
  167.                 automessage = false
  168.             elseif text == "turnoff" then
  169.                 off = true
  170.             elseif text == "turnon" then
  171.                 off = false
  172.             end
  173.         end
  174.     end))
  175. end
  176. local connect2 = game.Players.PlayerAdded:Connect(function(plr)
  177.     doplr(plr)
  178. end)
  179. function webhook(text,color)
  180.     if webhookurl == "" then
  181.         return
  182.     elseif webhookurl ~= "" then
  183.         text = tostring(text)
  184.         local col = tonumber(0xFFFF00)
  185.         if color then
  186.             col = color
  187.         end
  188.         local http = game:GetService("HttpService")
  189.         if tagperson ~= "<@USERIDHERE>" then
  190.             local s = request({
  191.                 Url = webhookurl,
  192.                 Method = "POST",
  193.                 Headers = {
  194.                     ["Content-Type"] = "application/json"
  195.                 },
  196.                 Body = http:JSONEncode({
  197.                     ["content"] = tagperson,
  198.                     ["embeds"] = {{
  199.                         ["title"] = text,
  200.                         ["description"] = text,
  201.                         ["type"] = "rich",
  202.                         ["color"] = col
  203.                     }}
  204.                 })
  205.             })
  206.             table.foreach(s,print)
  207.         else
  208.             local s = request({
  209.                 Url = webhookurl,
  210.                 Method = "POST",
  211.                 Headers = {
  212.                     ["Content-Type"] = "application/json"
  213.                 },
  214.                 Body = http:JSONEncode({
  215.                     ["content"] = "",
  216.                     ["embeds"] = {{
  217.                         ["title"] = text,
  218.                         ["description"] = text,
  219.                         ["type"] = "rich",
  220.                         ["color"] = col
  221.                     }}
  222.                 })
  223.             })
  224.             table.foreach(s,print)
  225.         end
  226.     end
  227. end
  228. table.insert(connect1,game.CoreGui:FindFirstChild("RobloxPromptGui"):FindFirstChild("promptOverlay").DescendantAdded:Connect(function(gui)
  229.     if notifyondisconnect == true and gui.Name == "ErrorTitle" then
  230.         gui:GetPropertyChangedSignal("Text"):Connect(function()
  231.             if gui.Text == "Disconnected" then
  232.                 webhook("You Got Disconnected!",tonumber(0xFF0000))
  233.             end
  234.         end)
  235.         if gui.Text == "Disconnected" then
  236.             webhook("You Got Disconnected!",tonumber(0xFF0000))
  237.         end
  238.     end
  239. end))
  240. for i,plr in pairs(game.Players:GetPlayers()) do
  241.     doplr(plr)
  242. end
  243.  
  244. table.insert(connect1,workspace.Cubes.DescendantAdded:Connect(function(cube)
  245.     if cube:IsA("Part") then
  246.         cube.CanTouch = false
  247.     end
  248. end))
  249. for i,cube in pairs(workspace.Cubes:GetDescendants()) do
  250.     if cube:IsA("Part") then
  251.         cube.CanTouch = false
  252.     end
  253. end
  254.  
  255. function disablefunc()
  256.     for i,v in pairs(connect1) do
  257.         v:Disconnect()
  258.     end
  259.     connect2:Disconnect()
  260.     off = true
  261. end
  262.  
  263. getgenv().thechosenonescriptdisable = disablefunc
  264. task.spawn(function()
  265.     while wait(.25) do
  266.         if not off then
  267.             game.ReplicatedStorage.System:FireServer("Focused")
  268.         end
  269.     end
  270. end)
  271. task.spawn(function()
  272.     while wait(.5) do
  273.         if localplr.Character and not off then
  274.             getadmin()
  275.             game.ReplicatedStorage.System:FireServer("Input")
  276.             if localplr.Character:FindFirstChild("HumanoidRootPart") and localplr.Character:FindFirstChild("Humanoid") and localplr.Character.HumanoidRootPart.Anchored == true then
  277.                 localplr.Character.Humanoid.Health = 0
  278.             end
  279.             if localplr.Character:FindFirstChild("Torso") and localplr.Character:FindFirstChild("Humanoid") and localplr.Character.Torso.Transparency == 1 then
  280.                 localplr.Character.Humanoid.Health = 0
  281.             end
  282.             if localplr.PlayerGui:FindFirstChild("BlindGUI") then
  283.                 localplr.PlayerGui.BlindGUI.Enabled = false
  284.             end
  285.             game.Lighting.Blur.Enabled = false
  286.             game.Lighting.RGB.Enabled = false
  287.             if localplr.Character:FindFirstChild("HumanoidRootPart") and (localplr.Character.HumanoidRootPart.Position.Y >= 100000 or localplr.Character.HumanoidRootPart.Position.X >= 10000 or localplr.Character.HumanoidRootPart.Position.X <= -10000 or localplr.Character.HumanoidRootPart.Position.Z >= 10000 or localplr.Character.HumanoidRootPart.Position.Z <= -10000) then
  288.                 localplr.Character.HumanoidRootPart.AssemblyLinearVelocity = Vector3.new(0,0,0)
  289.                 localplr.Character:PivotTo(CFrame.new(0,200,0))
  290.             end
  291.             if localplr.Character:FindFirstChild("Humanoid") and (localplr.Character.Humanoid.PlatformStand == true or localplr.Character.Humanoid.Sit == true) then
  292.                 localplr.Character.Humanoid.PlatformStand = false
  293.                 localplr.Character.Humanoid.Sit = false
  294.             end
  295.             if localplr.Character:FindFirstChild("HumanoidRootPart") and localplr.Character.HumanoidRootPart.CollisionGroup == "NoClip" then
  296.                 for i,v in pairs(localplr.Character:GetChildren()) do
  297.                     if v:IsA("BasePart") then
  298.                         v.CollisionGroup = "Default"
  299.                     end
  300.                 end
  301.             end
  302.             if localplr.Character:FindFirstChild("Humanoid") then
  303.                 if localplr.Character.Humanoid.WalkSpeed <= 0 then
  304.                     localplr.Character.Humanoid.WalkSpeed = 16
  305.                     localplr.Character.Humanoid.JumpPower = 50
  306.                 end
  307.             end
  308.             if localplr.Character:FindFirstChild("Jail") then
  309.                 for i,v in pairs(localplr.Character.Jail:GetChildren()) do
  310.                     v.CanCollide = false
  311.                 end
  312.             end
  313.         end
  314.     end
  315. end)
  316. local origtime = localplr.leaderstats.Time.Value
  317. local messages = {
  318.     "Donate For Enlighten!",
  319.     "donate for enlighten lol",
  320.     "donate to me for enlighten",
  321.     "donate 2 me for enlighten",
  322.     "get enlighten if u donate to me",
  323.     "Donate 4 Enlighten!",
  324.     "plz donate, ill give enlighten",
  325.     "Enlighten 4 sale!",
  326.     "don 8 for enlighten",
  327.     "lol donate for enlighten",
  328.     "if u want enlighten just donate",
  329.     "ENLIGHTEN FOR SALE! ONLY 500",
  330.     "JUST DO IT. MAKE YOUR ENLIGHTEN SPAWN WITH A DONATION OF 500 TO ME"
  331. }
  332. task.spawn(function()
  333.     while wait(15) do
  334.         if not off then
  335.             if automessage then
  336.                 local tosay = ""
  337.                 tosay = messages[math.random(1,#messages)]
  338.                 --[[if localplr.Character and localplr.Character:FindFirstChild("Muted") and localplr.Character.Muted:FindFirstChild("TextLabel") and localplr.Character.Muted.TextLabel.Visible == true and game.Teams.Admin:GetPlayers()[1] then
  339.                     tosay = "/w "..game.Teams.Admin:GetPlayers()[1].Name.." "..tosay
  340.                 end]]
  341.                 say(tosay,"All")
  342.             end
  343.             if localplr.Character and localplr.Character:FindFirstChild("Humanoid") then
  344.                 if localplr.leaderstats.Time.Value <= origtime then
  345.                     localplr.Character.Humanoid.Health = 0
  346.                     if localplr.leaderstats.Time.Value == origtime then
  347.                         webhook("Your time is not changing! Time Difference: "..tostring(localplr.leaderstats.Time.Value-origtime),tonumber(0xFF0000))
  348.                     else
  349.                         webhook("You are losing time! Time Difference: "..tostring(localplr.leaderstats.Time.Value-origtime),tonumber(0xFF0000))
  350.                     end
  351.                 elseif automessage then
  352.                     localplr.Character.Humanoid:MoveTo(Vector3.new(math.random(-50,50),100,math.random(-50,50)))
  353.                 end
  354.             end
  355.             origtime = localplr.leaderstats.Time.Value
  356.         end
  357.     end
  358. end)
  359. game:GetService("StarterGui"):SetCore("SendNotification",{
  360.     Title = "Script done!",
  361.     Text = "Script done!"
  362. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement