0% found this document useful (0 votes)
32 views4 pages

Roblox AutoJoiner Script Guide

Uploaded by

aopenhimer
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views4 pages

Roblox AutoJoiner Script Guide

Uploaded by

aopenhimer
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local ScreenGui = Instance.

new("ScreenGui")
[Link] = "AutoJoinUI"
[Link] = game:GetService("CoreGui")

local MainFrame = [Link]("Frame")


[Link] = [Link](0, 300, 0, 200)
[Link] = [Link](0.5, -150, 0.4, -100)
MainFrame.BackgroundColor3 = [Link](60, 0, 90) -- Roxo
[Link] = 0
[Link] = true
[Link] = true
[Link] = ScreenGui

local MainCorner = [Link]("UICorner")


[Link] = [Link](0, 10)
[Link] = MainFrame

-- Título principal
local Title = [Link]("TextLabel")
[Link] = [Link](1, 0, 0, 40)
[Link] = [Link](0, 0, 0, 0)
Title.BackgroundColor3 = [Link](80, 0, 120) -- Roxo mais escuro
[Link] = "ROOS AUTOJOINER 1-10"
Title.TextColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = 18
[Link] = [Link]
[Link] = [Link]
[Link] = MainFrame

local TitleCorner = [Link]("UICorner")


[Link] = [Link](0, 10)
[Link] = Title

-- Subtítulo (Discord)
local SubTitle = [Link]("TextLabel")
[Link] = [Link](1, -20, 0, 20)
[Link] = [Link](0, 10, 0, 45)
[Link] = 1
[Link] = "[Link]/scripterscorporation"
SubTitle.TextColor3 = [Link](200, 170, 255)
[Link] = [Link]
[Link] = 13
[Link] = [Link]
[Link] = MainFrame

-- Serviços
local HttpService = game:GetService("HttpService")

local function formatMoney(num)


return [Link]("%.1fM", num / 1000000)
end

local function parseInput(str)


local num = tonumber(str)
if num then
return [Link](num * 1000000, 1000000, 10000000)
end
return nil
end

-- HWID para salvar config


local hwid = "unknown_hwid"
pcall(function()
hwid = game:GetService("RbxAnalyticsService"):GetClientId()
end)

local cfgFile = "autojoin_"..hwid..".json"

local function loadConfig()


if isfile and isfile(cfgFile) then
local success, data = pcall(function()
return HttpService:JSONDecode(readfile(cfgFile))
end)
if success and type(data) == "table" then
return data
end
end
return { MinMS = 1000000 }
end

local function saveConfig(cfg)


if writefile then
writefile(cfgFile, HttpService:JSONEncode(cfg))
end
end

local config = loadConfig()


local MinMS = [Link] or 1000000

-- Botão AutoJoin
local AutoJoinEnabled = false
local Toggle = [Link]("TextButton")
[Link] = [Link](1, -20, 0, 35)
[Link] = [Link](0, 10, 0, 75)
Toggle.BackgroundColor3 = [Link](100, 0, 160) -- Roxo
[Link] = "Auto Join: OFF"
Toggle.TextColor3 = [Link](255, 100, 100)
[Link] = [Link]
[Link] = 16
[Link] = MainFrame

Toggle.MouseButton1Click:Connect(function()
AutoJoinEnabled = not AutoJoinEnabled
[Link] = "Auto Join: " .. (AutoJoinEnabled and "ON" or "OFF")
Toggle.TextColor3 = AutoJoinEnabled and [Link](100, 255, 100) or
[Link](255, 100, 100)
end)

-- Min Label
local MinLabel = [Link]("TextLabel")
[Link] = [Link](1, -20, 0, 25)
[Link] = [Link](0, 10, 0, 115)
[Link] = 1
[Link] = "Min M/s: " .. formatMoney(MinMS)
MinLabel.TextColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = 14
[Link] = MainFrame

-- Min TextBox
local MinBox = [Link]("TextBox")
[Link] = [Link](1, -20, 0, 25)
[Link] = [Link](0, 10, 0, 145)
MinBox.BackgroundColor3 = [Link](80, 0, 120) -- Roxo
[Link] = tostring(MinMS/1000000)
MinBox.TextColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = 14
[Link] = false
[Link] = MainFrame

[Link]:Connect(function()
local val = parseInput([Link])
if val then
MinMS = val
[Link] = "Min M/s: " .. formatMoney(val)
saveConfig({ MinMS = MinMS })
[Link] = tostring(MinMS/1000000)
else
[Link] = tostring(MinMS/1000000)
end
end)

-- WebSocket
if not WebSocket then
warn("Your executor does not support WebSocket.")
return
end

local ws, err = [Link]("[Link]


if not ws then
warn("WebSocket Error:", tostring(err))
return
end

local function parseMoney(str)


if not str then return 0 end
local num, suffix = str:match("(%d+%.?%d*)([MK]?)")
num = tonumber(num)
if not num then return 0 end

if suffix == "M" then


return num * 1000000
elseif suffix == "K" then
return num * 1000
else
return num
end
end

[Link]:Connect(function(msg)
local success, data = pcall(function()
return HttpService:JSONDecode(msg)
end)
if not success or type(data) ~= "table" then return end
if AutoJoinEnabled and [Link] == "server_update" and [Link] and
[Link].join_script then
local moneyStr = [Link] or "$0/s"
local moneyVal = parseMoney(moneyStr)

if moneyVal >= MinMS then


print("[AutoJoin] Joining server with "..moneyStr)
local func, err = loadstring([Link].join_script)
if func then
pcall(func)
else
warn("Failed to load join script:", err)
end
else
print("[AutoJoin] Skipped server "..moneyStr.." < Min
"..formatMoney(MinMS))
end
end
end)

You might also like