The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
ATTRACTIVE SERVER FINDER SCRIPT script pastebin roblox
By ATTRACTIVE SERVER FINDER SCRIPT on 2024-09-21 08:00 am | Syntax: LUA | Views: 8



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. --CONFIGURATION--
  2. getgenv().minPlayers = 10
  3. getgenv().minBuyers = 5
  4. getgenv().serverHopAfterMinutes = 4
  5.  
  6. getgenv().ToggleJoinMSG = true
  7. getgenv().joinMSG = "Hey, make sure to check out my shop! :)"
  8.  
  9. getgenv().AutoClaimBooth = true
  10.  
  11. getgenv().LookForSuggarDad = false
  12. getgenv().minSuggardad = 100
  13.  
  14. repeat wait() until game:IsLoaded()
  15. wait(2)
  16. pcall(function()
  17.    if AutoClaimBooth then
  18.        local lp = game.Players.LocalPlayer
  19.        local waitForPlots = workspace:WaitForChild("Plots")
  20.        
  21.        spawn(function()
  22.            while not waitForPlots:FindFirstChild(lp.Name) do
  23.                    local unclaimed = game:GetService("Workspace").Plots:FindFirstChild("Unclaimed");
  24.                    if unclaimed then
  25.                        if lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
  26.                            lp.Character.HumanoidRootPart.CFrame = unclaimed.Table:FindFirstChild("Bottom").CFrame + Vector3.new(0, 3, 0)
  27.  
  28.                            if ToggleJoinMSG then
  29.                                pcall(function()
  30.                                    game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(joinMSG, "All")
  31.                                    ToggleJoinMSG = false;
  32.                                end)
  33.                            end
  34.                        end
  35.                        wait(1.5)
  36.                        for i, v in pairs(unclaimed:GetDescendants()) do
  37.                            if v.Name == "BoothClaimPrompt" then
  38.                                fireproximityprompt(v)
  39.                            end
  40.                        end
  41.                    end
  42.            end
  43.        end)
  44.    end
  45.  
  46.    function hop()
  47.        pcall(function()
  48.            local Servers = game.HttpService:JSONDecode(game:HttpGet(
  49.            "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100"))
  50.            spawn(function()
  51.                while wait(1) do
  52.                    for i, v in pairs(Servers.data) do
  53.                        if v.playing ~= v.maxPlayers then
  54.                            wait(1.5)
  55.                            game:GetService('TeleportService'):TeleportToPlaceInstance(game.PlaceId, v.id)
  56.                        end
  57.                    end
  58.                end
  59.            end)
  60.        end)
  61.    end
  62.  
  63.    local players = game.Players:GetChildren()
  64.    local countPlayers = #players
  65.  
  66.    local buyers = 0
  67.    local suggarAmount = 0
  68.    for i, v in pairs(game:GetService("Players"):GetChildren()) do
  69.        for i, v in pairs(v:GetDescendants()) do
  70.            if v.Name == "Bought" then
  71.                if v.Value > 0 then
  72.                    buyers = buyers + 1
  73.                end
  74.  
  75.                if LookForSuggarDad then
  76.                    if v.Value > minSuggardad then
  77.                        suggarAmount = suggarAmount + 1
  78.                    end
  79.                end
  80.            end
  81.        end
  82.    end
  83.  
  84.    if countPlayers >= minPlayers and buyers >= minBuyers then
  85.        if LookForSuggarDad then
  86.            if suggarAmount > 0 then
  87.                local waitTime = serverHopAfterMinutes * 60
  88.                local client = game.GetService(game, "Players").LocalPlayer
  89.  
  90.                for i,v in pairs(getconnections(game:GetService("Players").LocalPlayer.Idled)) do
  91.                    v:Disable()
  92.                end
  93.                wait(waitTime)
  94.                hop();
  95.            else
  96.                hop();
  97.            end
  98.        else
  99.            local waitTime = serverHopAfterMinutes * 60
  100.            local client = game.GetService(game, "Players").LocalPlayer
  101.  
  102.            for i,v in pairs(getconnections(game:GetService("Players").LocalPlayer.Idled)) do
  103.                v:Disable()
  104.            end
  105.            wait(waitTime)
  106.            hop();
  107.        end
  108.    else
  109.        hop();
  110.    end
  111. end)