Skip to content

Instantly share code, notes, and snippets.

@DuyNgao2306
Created May 2, 2026 04:21
Show Gist options
  • Select an option

  • Save DuyNgao2306/6e0d30283f49cbdebfede17c68a3c8a1 to your computer and use it in GitHub Desktop.

Select an option

Save DuyNgao2306/6e0d30283f49cbdebfede17c68a3c8a1 to your computer and use it in GitHub Desktop.
--================ CORE =================--
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Stats = game:GetService("Stats")
local UIS = game:GetService("UserInputService")
local VirtualUser = game:GetService("VirtualUser")
local TeleportService = game:GetService("TeleportService")
local player = Players.LocalPlayer
if not game:IsLoaded() then game.Loaded:Wait() end
--================ SCRIPT MAIN =================--
local MAIN_SCRIPT_URL = "https://rawscripts.net/raw/Slime-RNG-Auto-Roll-Auto-Farm-Mobs-Auto-area-206413"
--================ KEY SAVE =================--
local KEY_FILE = "saved_key.txt"
local TIME_FILE = "key_time.txt"
local function now()
return os.time()
end
local savedKey = isfile and isfile(KEY_FILE) and readfile(KEY_FILE) or nil
local savedTime = isfile and isfile(TIME_FILE) and tonumber(readfile(TIME_FILE)) or nil
local expired = true
if savedKey and savedTime then
if now() - savedTime < 24 * 60 * 60 then
expired = false
end
end
--================ LOADING =================--
task.spawn(function()
local gui = Instance.new("ScreenGui")
gui.Parent = game.CoreGui
gui.ResetOnSpawn = false
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(1,0,1,0)
frame.BackgroundColor3 = Color3.fromRGB(10,10,15)
local txt = Instance.new("TextLabel", frame)
txt.Size = UDim2.new(1,0,0.3,0)
txt.Position = UDim2.new(0,0,0.35,0)
txt.BackgroundTransparency = 1
txt.Text = "LOADING SCRIPT..."
txt.TextScaled = true
txt.Font = Enum.Font.GothamBlack
txt.TextColor3 = Color3.fromRGB(0,255,180)
local a = Instance.new("TextLabel", frame)
a.Size = UDim2.new(1,0,0.2,0)
a.Position = UDim2.new(0,0,0.6,0)
a.BackgroundTransparency = 1
a.Text = "By: Crow"
a.TextScaled = true
a.Font = Enum.Font.GothamBold
a.TextColor3 = Color3.fromRGB(180,180,180)
task.wait(2)
gui:Destroy()
end)
--================ FPS + PING =================--
local ui = Instance.new("ScreenGui", game.CoreGui)
ui.ResetOnSpawn = false
local frame = Instance.new("Frame", ui)
frame.Size = UDim2.new(0,220,0,90)
frame.Position = UDim2.new(0,20,0.4,0)
frame.BackgroundColor3 = Color3.fromRGB(25,25,30)
frame.Active = true
frame.Draggable = true
local stroke = Instance.new("UIStroke", frame)
stroke.Thickness = 2
task.spawn(function()
while task.wait() do
stroke.Color = Color3.fromHSV((tick()%5)/5,1,1)
end
end)
local label = Instance.new("TextLabel", frame)
label.Size = UDim2.new(1,0,1,0)
label.BackgroundTransparency = 1
label.TextScaled = true
label.Font = Enum.Font.GothamBold
label.TextColor3 = Color3.fromRGB(255,255,255)
local fpsT, pingT = {}, {}
local last = tick()
RunService.RenderStepped:Connect(function(dt)
local fps = math.floor(1/dt)
local ping = 0
pcall(function()
ping = math.floor(Stats.Network.ServerStatsItem["Data Ping"]:GetValue())
end)
table.insert(fpsT, fps)
table.insert(pingT, ping)
if #fpsT > 20 then table.remove(fpsT,1) end
if #pingT > 20 then table.remove(pingT,1) end
if tick() - last > 0.5 then
last = tick()
local f,p = 0,0
for _,v in ipairs(fpsT) do f += v end
for _,v in ipairs(pingT) do p += v end
label.Text =
"⚡ FPS: "..math.floor(f/#fpsT)..
"\n📡 Ping: "..math.floor(p/#pingT)..
"\n👤 By: Crow"
end
end)
--================ KEY UI =================--
local function showKeyUI()
local g = Instance.new("ScreenGui")
g.Parent = game.CoreGui
g.ResetOnSpawn = false
local f = Instance.new("Frame", g)
f.Size = UDim2.new(0,260,0,160)
f.Position = UDim2.new(0.5,-130,0.5,-80)
f.BackgroundColor3 = Color3.fromRGB(30,30,35)
local box = Instance.new("TextBox", f)
box.Size = UDim2.new(0.9,0,0.3,0)
box.Position = UDim2.new(0.05,0,0.1,0)
box.PlaceholderText = "Enter Key"
box.TextScaled = true
local b = Instance.new("TextButton", f)
b.Size = UDim2.new(0.9,0,0.3,0)
b.Position = UDim2.new(0.05,0,0.6,0)
b.Text = "SAVE KEY"
b.MouseButton1Click:Connect(function()
if box.Text ~= "" then
savedKey = box.Text
if writefile then
writefile(KEY_FILE, savedKey)
writefile(TIME_FILE, tostring(now()))
end
g:Destroy()
end
end)
repeat task.wait() until savedKey
end
if expired or not savedKey then
showKeyUI()
end
--================ LOAD MAIN =================--
task.spawn(function()
task.wait(1)
loadstring(game:HttpGet(MAIN_SCRIPT_URL))()
end)
--================ 🔥 DETECT PRO AUTO KEY =================--
task.spawn(function()
task.wait(5)
if not savedKey then return end
local function isKeyUI(v)
if not v:IsA("TextBox") then return false end
local n = v.Name:lower()
local p = v.Parent and v.Parent.Name:lower() or ""
local ph = (v.PlaceholderText or ""):lower()
return (
n:find("key") or
n:find("login") or
n:find("license") or
p:find("key") or
p:find("login") or
ph:find("key") or
ph:find("enter")
)
end
local start = tick()
repeat
for _,v in pairs(game.CoreGui:GetDescendants()) do
if isKeyUI(v) then
v.Text = savedKey
-- try submit buttons nearby
local parent = v.Parent
if parent then
for _,b in pairs(parent:GetDescendants()) do
if b:IsA("TextButton") then
local t = b.Text:lower()
if t:find("submit") or t:find("enter") or t:find("verify") then
task.wait(0.2)
pcall(function()
b:Activate()
end)
end
end
end
end
end
end
task.wait(0.4)
until tick() - start > 12
end)
--================ ANTI AFK =================--
player.Idled:Connect(function()
VirtualUser:CaptureController()
VirtualUser:ClickButton2(Vector2.new())
end)
--================ AUTO REJOIN =================--
if queue_on_teleport then
queue_on_teleport('task.wait(2); loadstring(game:HttpGet("'..MAIN_SCRIPT_URL..'"))()')
end
game:GetService("CoreGui").RobloxPromptGui.promptOverlay.ChildAdded:Connect(function(c)
if c.Name == "ErrorPrompt" then
task.wait(2)
TeleportService:Teleport(game.PlaceId, player)
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment