-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[ Made by Stizzyyy · https://rscripts.net/@Stizzyyy My scripts are ALWAYS free and keyless. If you find my features or code behind a key system, it's a stolen re-upload, not mine. ]] --[[ RT3 Hub — Restaurant Tycoon 3 Menu: RightControl | Inf jump: V | Noclip: N | WalkSpeed: C ]] if game.PlaceId ~= 119048529960596 and game.PlaceId ~= 99889627739043 then return end -- Restaurant Tycoon 3 only (safe in autoexec) if getgenv().RT3H and getgenv().RT3H.Unload then pcall(getgenv().RT3H.Unload) end local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") -- player profile data is only sent when players join, so start listening before anything else local PD = getgenv().RT3H_PD or {} -- PD[player][store][key]; survives reloads of this script getgenv().RT3H_PD = PD local earlyConns = {} do local Data = RS:WaitForChild("Events"):WaitForChild("Data") table.insert(earlyConns, Data:WaitForChild("PlayerDataSet").OnClientEvent:Connect(function(p, store, data) PD[p] = PD[p] or {}; PD[p][store] = type(data) == "table" and data or {} end)) table.insert(earlyConns, Data:WaitForChild("PlayerDataUpdated").OnClientEvent:Connect(function(p, store, list) PD[p] = PD[p] or {}; PD[p][store] = PD[p][store] or {} if type(list) == "table" then for _, kv in pairs(list) do if type(kv) == "table" then PD[p][store][kv[1]] = kv[2] end end end end)) end if not game:IsLoaded() then game.Loaded:Wait() end while not Players.LocalPlayer do task.wait() end RS:WaitForChild("Source"); RS.Events:WaitForChild("Restaurant") local CS = game:GetService("CollectionService") local UIS = game:GetService("UserInputService") local RunS = game:GetService("RunService") local HS = game:GetService("HttpService") local lp = Players.LocalPlayer local E = RS.Events local R = E.Restaurant local H = {Run = true, conns = {}, stats = setmetatable({}, {__index = function() return 0 end})} local function stat(k) H.stats[k] = H.stats[k] + 1 end getgenv().RT3H = H local function conn(c) table.insert(H.conns, c) return c end local function log(...) print("[RT3H]", ...) end ---------------------------------------------------------------- settings local DEFAULT = { AutoCook = true, InstantCook = true, AutoSeat = true, AutoOrder = true, AutoServe = true, AutoDishes = true, AutoBills = true, AutoTips = true, AutoDrops = true, DriveThru = true, CalmRude = true, CatchDash = true, AntiAFK = true, InfJump = false, Noclip = false, WalkSpeedOn = false, WalkSpeed = 40, NameESP = false, } local S = {} pcall(makefolder, "RT3Hub") do local ok, saved = pcall(function() return HS:JSONDecode(readfile("RT3Hub/settings.json")) end) for k, v in pairs(DEFAULT) do S[k] = v end if ok and type(saved) == "table" then for k, v in pairs(saved) do if DEFAULT[k] ~= nil then S[k] = v end end end S.AntiAFK = true -- always on end local function save() pcall(writefile, "RT3Hub/settings.json", HS:JSONEncode(S)) end local function readJSON(path) local ok, t = pcall(function() return HS:JSONDecode(readfile(path)) end) return ok and type(t) == "table" and t or {} end local function myTy() local v = lp:FindFirstChild("Tycoon") return v and v.Value end local function myHRP() local c = lp.Character return c and c:FindFirstChild("HumanoidRootPart") end local function myHum() local c = lp.Character return c and c:FindFirstChildOfClass("Humanoid") end ---------------------------------------------------------------- state tracking (from the same events the game uses) local G, Cars = {}, {} -- G[groupId] = {State, C = {[custId] = {State, Order}}} local function grp(g) g = tostring(g); G[g] = G[g] or {C = {}}; return G[g] end local function cust(g, c) local gr = grp(g); c = tostring(c); gr.C[c] = gr.C[c] or {}; return gr.C[c] end local function car(id) id = tostring(id); Cars[id] = Cars[id] or {}; return Cars[id] end local onGroupState, onCustState -- defined below conn(R.CustomerActionReplicated.OnClientEvent:Connect(function(ty, act, g, a, b) if ty ~= myTy() then return end if act == "CreateGroup" then local gr = grp(g); gr.State = type(a) == "table" and a.State or gr.State if type(a) == "table" and type(a.Customers) == "table" then for cid, c in pairs(a.Customers) do local cu = cust(g, cid); cu.State = c.State; cu.Order = c.Order end end elseif act == "DeleteGroup" then G[tostring(g)] = nil elseif act == "DeleteAllGroups" then table.clear(G) elseif act == "SetGroupState" then grp(g).State = a; onGroupState(tostring(g), a) elseif act == "SetCustomerState" then cust(g, a).State = b; onCustState(tostring(g), tostring(a), b) elseif act == "UpdateCustomerData" and type(b) == "table" then local cu = cust(g, a); for k, v in pairs(b) do cu[k] = v end end end)) conn(R.DriveThruActionReplicated.OnClientEvent:Connect(function(ty, act, id, a) if ty ~= myTy() then return end if act == "CreateCar" then car(id).State = "Entering" elseif act == "CarStateChanged" then car(id).State = a elseif act == "SetCarOrders" then car(id).Orders = a elseif act == "DeleteCar" then Cars[tostring(id)] = nil elseif act == "DeleteAll" then table.clear(Cars) end end)) -- interactions from other tycoons (so we never fire their prompts) local otherIds = {} conn(R.Interactions.InteractionCreated.OnClientEvent:Connect(function(ty, data) if type(data) ~= "table" then return end if ty ~= myTy() then otherIds[tostring(data.Id)] = true return end if data.Key == "CollectBill" and S.AutoBills then R.TaskCompleted:FireServer({Name = "CollectBill", FurnitureModel = data.Model, Tycoon = ty}); stat("bill") elseif data.Key == "CollectDishes" and S.AutoDishes then R.TaskCompleted:FireServer({Name = "CollectDishes", FurnitureModel = data.Model, Tycoon = ty}); stat("dishes") end end)) ---------------------------------------------------------------- teleport helper (one at a time) local tpBusy = false local function withTeleport(cf, fn) while tpBusy do task.wait(0.05) end tpBusy = true local hrp = myHRP() local back = hrp and hrp.CFrame if hrp then hrp.CFrame = cf; task.wait(0.3) end local ok, err = pcall(fn) if not ok then log("action error", err) end task.wait(0.2) if hrp and back then hrp.CFrame = back end tpBusy = false end local function dummyOf(g, c) local ty = myTy() local gf = ty and ty:FindFirstChild("ClientCustomers") and ty.ClientCustomers:FindFirstChild(g) return gf and gf:FindFirstChild(c or "1") end ---------------------------------------------------------------- dine and dash local dashBusy = {} local function catchDash(g) if dashBusy[g] then return end dashBusy[g] = true local ty = myTy() for _ = 1, 30 do local gr = G[g] if gr and gr.State and gr.State ~= "DineAndDashing" then break end local d = dummyOf(g, "1") local hrp = d and d:FindFirstChild("HumanoidRootPart") if hrp then withTeleport(hrp.CFrame * CFrame.new(0, 0, 3), function() local p = hrp:FindFirstChildOfClass("ProximityPrompt") if p then fireproximityprompt(p) end R.Customers.DineAndDashCaught:FireServer(ty, g) end) end task.wait(0.5) if not d or not d.Parent then break end end log("dine-and-dash handled, group", g, "state", G[g] and G[g].State) dashBusy[g] = nil end ---------------------------------------------------------------- rude customers (server picks what calms them; we learn from results) local rudeMemory = readJSON("RT3Hub/rude_answers.json") -- [answer] = score local rudePending = {} local GOOD = {"sorry", "apolog", "understand", "calm", "help", "right away", "of course", "my bad", "fix", "free", "discount", "please", "happy", "certainly", "absolutely"} local BAD = {"leave", "get out", "whatever", "deal with it", "not my problem", "shut", "go away", "rude", "don't care", "dont care", "no way"} local function pickResponse(list) local best, bestScore for _, r in pairs(list) do local s, low = 0, tostring(r):lower() for _, w in ipairs(GOOD) do if low:find(w, 1, true) then s = s + 2 end end for _, w in ipairs(BAD) do if low:find(w, 1, true) then s = s - 3 end end s = s + (rudeMemory[tostring(r)] or 0) if not bestScore or s > bestScore then best, bestScore = r, s end end return best end local function calmRude(g, c) local key = g .. ":" .. c if rudePending[key] then return end rudePending[key] = {} local ty = myTy() local d = dummyOf(g, c) local hrp = d and d:FindFirstChild("HumanoidRootPart") local function talk() local _, resp = R.Customers.GetRudeCustomerDialog:InvokeServer(ty, g, c) for _ = 1, 8 do if type(resp) ~= "table" or next(resp) == nil then break end local choice = pickResponse(resp) table.insert(rudePending[key], tostring(choice)) _, resp = R.Customers.GetRudeCustomerDialog:InvokeServer(ty, g, c, choice) end end if hrp then withTeleport(hrp.CFrame * CFrame.new(0, 0, 3), talk) else pcall(talk) end log("rude customer answered:", table.concat(rudePending[key], " / ")) task.delay(60, function() rudePending[key] = nil end) end local function rudeOutcome(g, c, good) local picks = rudePending[g .. ":" .. c] if not picks then return end for _, a in ipairs(picks) do rudeMemory[a] = (rudeMemory[a] or 0) + (good and 3 or -6) end pcall(writefile, "RT3Hub/rude_answers.json", HS:JSONEncode(rudeMemory)) log("rude customer result:", good and "CALMED" or "angry ending") rudePending[g .. ":" .. c] = nil end onGroupState = function(g, st) if st == "DineAndDashing" and S.CatchDash then task.spawn(catchDash, g) end end onCustState = function(g, c, st) if st == "CustomerAngry" and S.CalmRude then task.spawn(calmRude, g, c) elseif st == "CustomerAngry_CalmEnding" then rudeOutcome(g, c, true) elseif st == "CustomerAngry_AngryEnding" or st == "CustomerAngry_UpsetEnding" then rudeOutcome(g, c, false) end end ---------------------------------------------------------------- cooking local cooking, cookStart = false, 0 conn(E.Cook.CookUpdated.OnClientEvent:Connect(function(kind, a, b) if kind == "Start" then cooking, cookStart = true, os.clock() elseif kind == "Finish" then cooking = false; stat("cookFinished") elseif kind == "DirectToEquipment" and S.InstantCook then cooking = true task.spawn(function() E.Cook.CookInputRequested:FireServer("Interact", a, b) task.wait(0.15) E.Cook.CookInputRequested:FireServer("CompleteTask", a, b) end) end end)) -- each chef tablet shows "N Orders" on a screen right where its Cook prompt sits local screens, screensAt = {}, -99 -- {label, part}, re-scanned every 10 s (new tablets get built) local function tabletOrders(prompt) local part = prompt.Parent if not (part and part:IsA("BasePart")) then return 0 end if os.clock() - screensAt > 10 then screensAt, screens = os.clock(), {} local ty = myTy() for _, g in ipairs(ty and ty:GetDescendants() or {}) do if g:IsA("TextLabel") and g.Text:match("Orders?$") then local sp = g:FindFirstAncestorWhichIsA("BasePart") if sp then screens[#screens + 1] = {l = g, p = sp} end end end end local best, bd = 0, 4 -- the screen is at the prompt's spot for _, s in ipairs(screens) do local d = (s.p.Position - part.Position).Magnitude if d < bd then best, bd = tonumber(s.l.Text:match("^(%d+)")) or 0, d end end return best end -- cook at the tablet with the most orders (it works from anywhere), drinks when no tablet has any local function startCook() local pick, most = nil, -1 for _, p in ipairs(CS:GetTagged("Interaction")) do if p:IsA("ProximityPrompt") and p.Enabled and not otherIds[p.Name] then if p.ActionText == "Cook" then local n = tabletOrders(p) if n > most then pick, most = p, n end elseif p.ActionText == "Make Drink" and not pick then pick = p end end end if not pick then return end fireproximityprompt(pick) cooking, cookStart = true, os.clock() stat("cookStarted") return true end ---------------------------------------------------------------- serving (customers + drive thru) local holding, holdStart = false, 0 conn(R.GrabEnded.OnClientEvent:Connect(function() holding = false end)) local function findFood(ty, key) local f = ty:FindFirstChild("Objects") and ty.Objects:FindFirstChild("Food") if not f then return end for _, food in ipairs(f:GetChildren()) do if food.Name == tostring(key) and not food:GetAttribute("Taken") then return food end end end local function grabAndServe(ty, food, fallback) local ok, info = R.GrabFood:InvokeServer(food) if not ok then return false end holding, holdStart = true, os.clock() local t = {Name = "Serve", FoodModel = food, Tycoon = ty} info = type(info) == "table" and info or {} if info.TargetCarId then t.CarId = info.TargetCarId elseif info.TargetPlayerName then t.Player = Players:FindFirstChild(info.TargetPlayerName) else for k, v in pairs(fallback) do t[k] = v end end R.TaskCompleted:FireServer(t) while holding and os.clock() - holdStart < 3 do task.wait(0.1) end if holding then -- never get stuck holding a plate R.CancelGrabRequested:FireServer(); holding = false; stat("serveCancelled") return false end stat("served") return true end -- a plate that couldn't be delivered is skipped for 30 s, so one stuck customer can't block serving and cooking local failed = {} local function tryServe(ty, food, key, fallback) if (failed[key] or 0) > os.clock() then return false end if grabAndServe(ty, food, fallback) then return true end failed[key] = os.clock() + 30 return false end local function serveOne(ty) for g, gr in pairs(G) do for c, cu in pairs(gr.C) do if cu.State == "WaitingForDish" and cu.Order then local food = findFood(ty, cu.Order) if food and tryServe(ty, food, "c" .. tostring(g) .. ":" .. tostring(c), {GroupId = g, CustomerId = c}) then return true end end end end if S.DriveThru then for id, cr in pairs(Cars) do if cr.State == "WaitingForFood" and type(cr.Orders) == "table" then for _, key in pairs(cr.Orders) do local food = findFood(ty, type(key) == "table" and (key.FoodKey or key[1]) or key) if food and tryServe(ty, food, "car" .. tostring(id) .. ":" .. tostring(food.Name), {CarId = id}) then return true end end end end end end ---------------------------------------------------------------- seat + take orders (fire the game's own customer prompts) local function customerPrompts(ty) for _, p in ipairs(CS:GetTagged("CustomerInteractPrompt")) do if p.Enabled and p:IsDescendantOf(ty) and p.Parent and p.Parent.Parent and p.Parent.Parent.Parent then local c, g = p.Parent.Parent.Name, p.Parent.Parent.Parent.Name local gr = G[g] local cu = gr and gr.C[c] local kind if gr and gr.State == "Entered" and c == "1" then kind = "seat" elseif cu and cu.State == "Ordering" then kind = "order" end if (kind == "seat" and S.AutoSeat) or (kind == "order" and S.AutoOrder) or (not kind and S.AutoSeat and S.AutoOrder) then fireproximityprompt(p) stat(kind or "seatOrOrder") end end end end ---------------------------------------------------------------- bills / dishes / tips / drive-thru bills (sweep for anything missed) local FU = require(RS.Source.Utility.FurnitureUtility) local IT = require(RS.Source.Enums.Placement.ItemType) local function sweep(ty) for _, m in ipairs(ty.Items:GetDescendants()) do if m:IsA("Model") then if FU:IsTable(m.Name) then local bill = m:FindFirstChild("Bill") if S.AutoBills and bill and not bill:GetAttribute("Taken") then R.TaskCompleted:FireServer({Name = "CollectBill", FurnitureModel = m, Tycoon = ty}) end local trash = m:FindFirstChild("Trash") if S.AutoDishes and trash and trash:GetAttribute("Collectable") then R.TaskCompleted:FireServer({Name = "CollectDishes", FurnitureModel = m, Tycoon = ty}) end elseif S.AutoTips and (m:GetAttribute("Value") or 0) > 0 and FU:Is(m.Name, IT.TipJar) then R.TipsCollected:FireServer(ty) end end end if S.DriveThru then for id, cr in pairs(Cars) do if cr.State == "Ordering" then R.TaskCompleted:FireServer({Name = "TakeDriveThruOrder", CarId = id, Tycoon = ty}) elseif cr.State == "Paying" then R.TaskCompleted:FireServer({Name = "CollectDriveThruBill", CarId = id, Tycoon = ty}) end end end -- catch any dine-and-dash / rude prompt the tracker missed (e.g. started before the script) for _, p in ipairs(ty:GetDescendants()) do if p:IsA("ProximityPrompt") and p.Enabled and p.Parent and p.Parent.Parent and p.Parent.Parent.Parent then local c, g = p.Parent.Parent.Name, p.Parent.Parent.Parent.Name if p.ObjectText == "Dine-and-Dash" and S.CatchDash then task.spawn(catchDash, g) elseif p.ObjectText == "Rude Customer" and S.CalmRude then task.spawn(calmRude, g, c) end end end end -- cash drops + food critic clipboards conn(E.Currency.DropSpawned.OnClientEvent:Connect(function(_, id) if S.AutoDrops then task.delay(0.3, function() E.Currency.PlayerCollectedDrops:FireServer({id}) end) end end)) ---------------------------------------------------------------- main farm loops local lastErr = 0 local function guard(fn, ...) local ok, err = pcall(fn, ...) if not ok and os.clock() - lastErr > 5 then lastErr = os.clock(); log("error:", err) end end task.spawn(function() while H.Run do local ty = myTy() if ty then if S.AutoSeat or S.AutoOrder then guard(customerPrompts, ty) end if cooking and os.clock() - cookStart > 25 then E.Cook.CookInputRequested:FireServer("CancelCooking"); cooking = false end local busy = cooking or tpBusy if not busy and S.AutoServe then local ok, did = pcall(serveOne, ty); busy = ok and did end if not busy and S.AutoCook then guard(startCook) end end task.wait(0.4) end end) task.spawn(function() while H.Run do local ty = myTy() if ty and ty:FindFirstChild("Items") then guard(sweep, ty) end task.wait(1.5) end end) ---------------------------------------------------------------- staff animation fix -- game bug: workers restart the same animation without stopping the old one, hit Roblox's 64-track cap and freeze. -- keep only the newest copy of each animation per worker. local function fixWorkerAnims(ty) local workers = ty:FindFirstChild("ClientWorkers") if not workers then return 0 end local stopped = 0 for _, a in ipairs(workers:GetDescendants()) do if a:IsA("Animator") then local newest = {} for _, t in ipairs(a:GetPlayingAnimationTracks()) do local id = t.Animation and t.Animation.AnimationId or tostring(t) local keep = newest[id] if not keep then newest[id] = t else -- the copy with the lowest TimePosition started most recently; stop the other local old = t.TimePosition < keep.TimePosition and keep or t newest[id] = old == keep and t or keep old:Stop(0); stopped = stopped + 1 end end end end return stopped end H.FixWorkerAnims = fixWorkerAnims task.spawn(function() while H.Run do local ty = myTy() if ty then guard(fixWorkerAnims, ty) end task.wait(3) end end) ---------------------------------------------------------------- local player conn(lp.Idled:Connect(function() if S.AntiAFK then local vu = game:GetService("VirtualUser"); vu:CaptureController(); vu:ClickButton2(Vector2.new()) end end)) conn(UIS.JumpRequest:Connect(function() if S.InfJump then local h = myHum() if h then h:ChangeState(Enum.HumanoidStateType.Jumping) end end end)) conn(RunS.Stepped:Connect(function() if S.Noclip and lp.Character then for _, p in ipairs(lp.Character:GetDescendants()) do if p:IsA("BasePart") and p.CanCollide then p.CanCollide = false end end end end)) local wsWasOn = false conn(RunS.Heartbeat:Connect(function() local h = myHum() if not h then return end if S.WalkSpeedOn then h.WalkSpeed = tonumber(S.WalkSpeed) or 40; wsWasOn = true elseif wsWasOn then h.WalkSpeed = 16; wsWasOn = false end end)) ---------------------------------------------------------------- codes local codeCache = readJSON("RT3Hub/codes_" .. lp.UserId .. ".json") -- [code] = "redeemed"/"invalid"/"claimed" local lastNotif conn(E.NotificationSent.OnClientEvent:Connect(function(msg) lastNotif = tostring(msg) end)) local function fetchCodes() local list, seen = {}, {} local function add(c) c = tostring(c):gsub(" ", ""):gsub("&", "&"):gsub("^%s+", ""):gsub("%s+$", "") if #c > 1 and #c < 40 and not seen[c:lower()] then seen[c:lower()] = true; table.insert(list, c) end end local ok, body = pcall(game.HttpGet, game, "https://robloxden.com/game-codes/restaurant-tycoon-3") if ok then for exp, code in body:gmatch('data%-expired="(%a+)".-data%-copy="([^"]+)"') do if exp == "false" then add(code) end end end local ok2, b2 = pcall(game.HttpGet, game, "https://beebom.com/restaurant-tycoon-3-codes/") if ok2 then local cut = b2:find("[Ee]xpired [^<]-[Cc]odes") for code in (cut and b2:sub(1, cut) or b2):gmatch("
  • %s*([^<]+)") do add(code) end end return list, ok, ok2 end local codeStatus -- GUI label, set later local function setCodeStatus(t) if codeStatus then codeStatus.Text = t end log(t) end local redeeming = false local function redeemAll() if redeeming then return end redeeming = true setCodeStatus("Fetching latest codes…") local list, a, b = fetchCodes() local todo = {} for _, c in ipairs(list) do if not codeCache[c] then table.insert(todo, c) end end setCodeStatus(("Found %d codes (RobloxDen %s, Beebom %s). %d new to try."):format(#list, a and "ok" or "failed", b and "ok" or "failed", #todo)) local got = {} for i, c in ipairs(todo) do lastNotif = nil E.Shop.CodeSubmitted:FireServer(c) local t = os.clock() while not lastNotif and os.clock() - t < 4 do task.wait(0.1) end local m = (lastNotif or ""):lower() -- server only replies on failure ("Invalid code!" / "Already claimed code!"); silence = redeemed local res = m:find("invalid") and "invalid" or ((m:find("already") or m:find("claimed")) and "claimed") or "redeemed" codeCache[c] = res if res == "redeemed" then table.insert(got, c) end setCodeStatus(("Trying %d/%d: %s → %s"):format(i, #todo, c, res)) task.wait(1.2) end pcall(writefile, "RT3Hub/codes_" .. lp.UserId .. ".json", HS:JSONEncode(codeCache)) setCodeStatus(#got > 0 and ("Redeemed " .. #got .. " new: " .. table.concat(got, ", ")) or ("Done. No new working codes (" .. #todo .. " tried).")) redeeming = false end H.RedeemCodes = redeemAll ---------------------------------------------------------------- player data (for the stats window) for _, c in ipairs(earlyConns) do conn(c) end local joinTime = getgenv().RT3H_JOIN or {} -- survives reloads getgenv().RT3H_JOIN = joinTime local scriptStart = getgenv().RT3H_START or os.time() getgenv().RT3H_START = scriptStart for _, p in ipairs(Players:GetPlayers()) do if joinTime[p] == nil then joinTime[p] = false end end -- joined before script: unknown conn(Players.PlayerAdded:Connect(function(p) joinTime[p] = os.time() end)) local ratings = getgenv().RT3H_RATINGS or {} -- survives reloads getgenv().RT3H_RATINGS = ratings -- [tycoon] = {restaurantValue, tipChance, ...}; server pushes these every few minutes conn(RS.Events.Ratings.RatingsUpdated.OnClientEvent:Connect(function(ty, data) if type(data) == "table" then ratings[ty] = data end end)) local function pdKey(p, key) local d = PD[p] if not d then return nil end for _, st in pairs(d) do if st[key] ~= nil then return st[key] end end end local function count(t) local n = 0 if type(t) == "table" then for _ in pairs(t) do n = n + 1 end end return n end local function fmt(n) n = tonumber(n); if not n then return "n/a" end local s, sfx = n, "" for _, u in ipairs({{1e12, "T"}, {1e9, "B"}, {1e6, "M"}, {1e3, "K"}}) do if math.abs(n) >= u[1] then s, sfx = n / u[1], u[2] break end end return sfx == "" and tostring(math.floor(n)) or string.format("%.2f%s", s, sfx) end local function hms(sec) sec = math.floor(sec) return string.format("%dh %02dm", sec // 3600, (sec % 3600) // 60) end local function tycoonOf(p) for _, t in ipairs(workspace.Tycoons:GetChildren()) do local v = t:FindFirstChild("Player") if v and v.Value == p then return t end end end local LIMITS = {{"Small Decoration", "SmallItemsBuilt", 500}, {"Wall Furniture", "WallItemsBuilt", 500}, {"Furniture", "FurnitureItemsBuilt", 1500}, {"Walls", "WallsBuilt", 400}, {"Roof Furniture", "RoofItemsBuilt", 500}} -- your own Manager Desk screen keeps the last numbers the game showed you; used to fill gaps for yourself local function deskValue(path) local mdm = lp.PlayerGui:FindFirstChild("ManagerDeskMenu") local o = mdm and mdm:FindFirstChild("Frame") for part in ("Content.Stats.Content.ScrollingFrame." .. path .. ".TextLabel"):gmatch("[^%.]+") do o = o and o:FindFirstChild(part) end local t = o and o.Text if not t or t == "" or t == "Label" then return nil end return t end local function deskNum(path) local t = deskValue(path) return t and tonumber((t:gsub("[^%d%.]", ""))) end local DESK = " (Manager Desk)" local lastCustomers = getgenv().RT3H_LASTCUST or {} -- [tycoon] = {count, time}; survives reloads getgenv().RT3H_LASTCUST = lastCustomers local function statsText(p) local ty = tycoonOf(p) local isMe = p == lp local L = {} local function add(k, v) table.insert(L, ("%s: %s"):format(k, tostring(v))) end add("Player", p.DisplayName .. " (@" .. p.Name .. ")") add("Restaurant", ty and (ty:GetAttribute("RestaurantName") or "?") or "no restaurant") local ls = p:FindFirstChild("leaderstats") local cash; if ls then for _, v in ipairs(ls:GetChildren()) do if v.Name:find("Cash") then cash = v.Value end end end add("Money", fmt(cash or pdKey(p, "Cash"))) local jt = joinTime[p] add("Current playtime", p == lp and hms(workspace.DistributedGameTime) or (jt and hms(os.time() - jt)) or ("≥ " .. hms(os.time() - scriptStart) .. " (joined before script)")) local cb, kc, bf = pdKey(p, "Cookbook"), pdKey(p, "KidsMenuCookbook"), pdKey(p, "BoostedFoods") local kidsBoosted = 0 if type(kc) == "table" and type(bf) == "table" then for k in pairs(kc) do if bf[k] == true then kidsBoosted = kidsBoosted + 1 end end end local unlocked = cb and (count(cb) + count(kc)) local boosted = bf and (count(bf) + kidsBoosted) if isMe then -- live data can miss the kids menu until it changes; the desk number includes it local du, db = deskNum("StatsRow1.DishesUnlocked"), deskNum("StatsRow1.DishesBoosted") if du and (not unlocked or (kc == nil and du > unlocked)) then unlocked = du .. DESK end if db and (not boosted or (kc == nil and db > boosted)) then boosted = db .. DESK end end add("Dishes unlocked", unlocked or "n/a") add("Dishes boosted", boosted or "n/a") local enc = pdKey(p, "CustomerEncounters"); local tot = 0 if type(enc) == "table" then for _, v in pairs(enc) do tot = tot + (tonumber(v) or 0) end end local deskTc = isMe and deskNum("StatsRow1.TotalCustomers") add("Total customers", enc and fmt(tot) or (deskTc and (fmt(deskTc) .. DESK)) or "n/a") local deskObj = isMe and deskNum("StatsRow2.ObjectivesCompleted") if deskObj then add("Objectives completed", deskObj .. DESK) end -- the game only loads customers for your own restaurant and the one you're near; remember the last real count local cur = 0 if ty and ty:FindFirstChild("ClientCustomers") then for _, gf in ipairs(ty.ClientCustomers:GetChildren()) do cur = cur + #gf:GetChildren() end end if ty and cur > 0 then lastCustomers[ty] = {cur, os.time()} end local last = ty and lastCustomers[ty] if cur > 0 then add("Current customers", cur) elseif last then add("Current customers", ("%d (seen %s ago, go near their restaurant to refresh)"):format(last[1], hms(os.time() - last[2]):gsub("^0h ", ""))) else add("Current customers", "only visible when you're near their restaurant") end if ty then local r = ratings[ty] if not (r and r.restaurantValue) then local ok, got = pcall(function() return RS.Events.Ratings.GetRatings:InvokeServer(ty) end) if ok and type(got) == "table" and got.restaurantValue then r = got; ratings[ty] = got end end r = r or {} local tc = tonumber(r.tipChance) local deskRv, deskTip = isMe and deskNum("RestaurantValue"), isMe and deskValue("StatsRow3.TipChance") add("Restaurant value", r.restaurantValue and ("$" .. fmt(r.restaurantValue)) or (deskRv and ("$" .. fmt(deskRv) .. DESK)) or "waiting for next ratings update") add("Tip chance", tc and ((tc <= 1 and math.floor(tc * 100 + 0.5) or tc) .. "%") or (deskTip and (deskTip .. DESK)) or "waiting for next ratings update") local ok2, b = pcall(function() return RS.Events.Placement.GetBuildStats:InvokeServer(ty) end) b = ok2 and type(b) == "table" and b or {} add("Items built", b.ItemsBuilt or "n/a") table.insert(L, "Item limits (base; 2x with gamepass):") for _, l in ipairs(LIMITS) do -- for yourself, the desk shows your real cap (doubled if you own the gamepass) local cap = isMe and deskValue("Limits." .. l[2]) and deskValue("Limits." .. l[2]):match("/%s*([%d,]+)") or tostring(l[3]) table.insert(L, (" %s: %s / %s"):format(l[1], tostring(b[l[2]] or "?"), cap)) end end if not PD[p] then table.insert(L, "Profile data (diamonds, playtime, dishes) arrives when a player joins. Put RT3Hub in autoexec to capture it for everyone.") end return table.concat(L, "\n") end H.StatsText = statsText ---------------------------------------------------------------- name ESP local espFolder = Instance.new("Folder") local guiParent = (gethui and gethui()) or game:GetService("CoreGui") espFolder.Name = "RT3H_ESP"; espFolder.Parent = guiParent local esp = {} task.spawn(function() while H.Run do for _, p in ipairs(Players:GetPlayers()) do if p ~= lp then local head = p.Character and p.Character:FindFirstChild("Head") local b = esp[p] if S.NameESP and head then if not b or not b.Parent then b = Instance.new("BillboardGui"); b.Size = UDim2.fromOffset(200, 40); b.AlwaysOnTop = true; b.StudsOffset = Vector3.new(0, 2.5, 0) local t = Instance.new("TextLabel", b); t.Size = UDim2.fromScale(1, 1); t.BackgroundTransparency = 1 t.TextColor3 = Color3.fromRGB(120, 200, 255); t.TextStrokeTransparency = 0.3; t.Font = Enum.Font.GothamBold; t.TextSize = 14 b.Parent = espFolder; esp[p] = b end b.Adornee = head local me = myHRP() local dist = me and math.floor((head.Position - me.Position).Magnitude) or 0 b.TextLabel.Text = p.DisplayName .. "\n" .. dist .. "m" b.Enabled = true elseif b then b.Enabled = false end end end for p, b in pairs(esp) do if not p.Parent then b:Destroy(); esp[p] = nil end end task.wait(0.25) end end) ---------------------------------------------------------------- GUI (shared glass library) H.insts = {} local TS, Http = game:GetService("TweenService"), game:GetService("HttpService") local HUI = guiParent local function inst(cls, p, parent) local i = Instance.new(cls) for k, v in pairs(p or {}) do i[k] = v end if parent then i.Parent = parent end return i end local function gconn(sig, f) return conn(sig:Connect(f)) end ----------------------------------------------------------------- UI library (glass) · themes are shared by every Stizzyyy hub -- dark glassmorphism window + soft glass cards + liquid glass pills -- C keeps the same keys the hubs already use (clay = primary accent); C.accent2 = secondary accent local C = {} local PRESETS = { {name = "Claude Glass", bg = "141311", side = "1E1C1A", card = "2A2724", stroke = "4A453F", text = "F2EEE6", muted = "9A948A", primary = "D97757", secondary = "F2B880"}, {name = "ChatGPT / Codex", bg = "0D0D0D", side = "171717", card = "212121", stroke = "3A3A3A", text = "ECECEC", muted = "8E8EA0", primary = "10A37F", secondary = "74AA9C"}, {name = "Solara", bg = "0E0B16", side = "161224", card = "201A33", stroke = "3B3157", text = "F1EEFA", muted = "A39BBF", primary = "9D5CFF", secondary = "5B8CFF"}, {name = "Discord", bg = "1E1F22", side = "2B2D31", card = "313338", stroke = "45474E", text = "F2F3F5", muted = "B5BAC1", primary = "5865F2", secondary = "EB459E"}, {name = "Netflix", bg = "0B0B0B", side = "141414", card = "1F1F1F", stroke = "363636", text = "FFFFFF", muted = "B3B3B3", primary = "E50914", secondary = "B81D24"}, {name = "Grok", bg = "000000", side = "0A0A0A", card = "151515", stroke = "2F2F2F", text = "FFFFFF", muted = "8B8B8B", primary = "E7E9EA", secondary = "6E6E6E"}, } local THEME_FILE = "StizzyyyUI.json" local TH = {preset = "Claude Glass", glass = 20} pcall(function() local t = Http:JSONDecode(readfile(THEME_FILE)) for k, v in pairs(t) do TH[k] = v end end) TH.glass = math.clamp(tonumber(TH.glass) or 20, 20, 45) -- below 20% the glass loses its depth local function presetOf(n) for _, p in ipairs(PRESETS) do if p.name == n then return p end end return PRESETS[1] end local function hex(h) local ok, c = pcall(Color3.fromHex, tostring(h or "")) return ok and c or nil end local function loadTheme() local p = presetOf(TH.preset) for _, k in ipairs({"bg", "side", "card", "stroke", "text", "muted"}) do C[k] = hex(p[k]) end C.clay = hex(TH.primary) or hex(p.primary) C.accent2 = hex(TH.secondary) or hex(p.secondary) C.primary, C.secondary = C.clay, C.accent2 end loadTheme() local WHITE = Color3.new(1, 1, 1) local function face(w) return Font.new("rbxasset://fonts/families/Montserrat.json", w or Enum.FontWeight.Regular) end local MED, SEMI, BOLD = Enum.FontWeight.Medium, Enum.FontWeight.SemiBold, Enum.FontWeight.Bold -- every themed property is registered, so switching theme recolours the whole menu live local themed, painters = {}, {} local function th(i, prop, role) themed[#themed + 1] = {i, prop, role} i[prop] = C[role] return i end local function painter(f) painters[#painters + 1] = f f() return f end local grads = {} local function accentGrad(parent, rot) local g = inst("UIGradient", {Rotation = rot or 0, Color = ColorSequence.new(C.clay, C.accent2)}, parent) grads[#grads + 1] = g return g end local glassParts = {} -- {instance, extra transparency} local function glassy(i, extra) glassParts[#glassParts + 1] = {i, extra or 0} i.BackgroundTransparency = math.clamp(TH.glass / 100 + (extra or 0), 0, 0.95) return i end local Gui = inst("ScreenGui", {Name = "RT3H" .. math.random(1e5, 1e6), ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, DisplayOrder = 50}, HUI) H.insts[#H.insts + 1] = Gui local function corner(p, r) inst("UICorner", {CornerRadius = r == "pill" and UDim.new(1, 0) or UDim.new(0, r or 8)}, p) end local function stroke(p, c) local s = inst("UIStroke", {Color = c or C.stroke, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = 0.25}, p) if not c then themed[#themed + 1] = {s, "Color", "stroke"} end return s end -- dark glass edge: one thin, even, light outline local function rim(p, t) return inst("UIStroke", {Color = WHITE, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = t or 0.8}, p) end -- liquid glass: clear pill, light gathering at both rounded ends, and a crisp highlight line along the inside top edge local function liquid(p, strong) p.BackgroundColor3 = WHITE glassy(p, strong and 0.74 or 0.82) local s = inst("UIStroke", {Color = WHITE, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = 0}, p) inst("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.3), NumberSequenceKeypoint.new(0.2, 0.72), NumberSequenceKeypoint.new(0.5, 0.86), NumberSequenceKeypoint.new(0.8, 0.72), NumberSequenceKeypoint.new(1, 0.3)})}, s) -- a soft vertical sheen: the top of the glass catches more light than the bottom local sheen = inst("UIGradient", {Rotation = 90, Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0.45)})}, p) local shine = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 1), Size = UDim2.new(1, -18, 0, 1), BackgroundTransparency = 0.45, ZIndex = p.ZIndex}, p) inst("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.3, 0.3), NumberSequenceKeypoint.new(0.7, 0.3), NumberSequenceKeypoint.new(1, 1)})}, shine) return s, shine, sheen end -- motion helpers local function tween(i, t, props, style, dir) local tw = TS:Create(i, TweenInfo.new(t, style or Enum.EasingStyle.Quint, dir or Enum.EasingDirection.Out), props) tw:Play() return tw end local function pressable(b) local sc = inst("UIScale", {}, b) b.MouseButton1Down:Connect(function() tween(sc, 0.08, {Scale = 0.96}) end) b.MouseButton1Up:Connect(function() tween(sc, 0.25, {Scale = 1}, Enum.EasingStyle.Back) end) b.MouseLeave:Connect(function() tween(sc, 0.2, {Scale = 1}) end) end -- thin line that fades out at both ends (the dividers in the dark glass panel) local function divider(parent, pos, size, vertical) local d = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, Position = pos, Size = size, BackgroundTransparency = 0.55}, parent) inst("UIGradient", {Rotation = vertical and 90 or 0, Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0.35), NumberSequenceKeypoint.new(1, 1)})}, d) return d end local function dragify(handle, frame) local drag, start, pos handle.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag, start, pos = true, i.Position, frame.Position end end) gconn(UIS.InputChanged, function(i) if drag and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local d = i.Position - start frame.Position = UDim2.new(pos.X.Scale, pos.X.Offset + d.X, pos.Y.Scale, pos.Y.Offset + d.Y) end end) gconn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag = false end end) end ----------------------------------------------------------------- window (dark glassmorphism) local Win = inst("Frame", {Size = UDim2.fromOffset(620, 430), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.5), BorderSizePixel = 0, Active = true, BackgroundColor3 = WHITE}, Gui) glassy(Win) corner(Win, 12) rim(Win, 0.72) -- smoked glass: a lighter grey at the top fading to near black at the bottom local winGrad = inst("UIGradient", {Rotation = 90}, Win) painter(function() winGrad.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, C.bg:Lerp(WHITE, 0.2)), ColorSequenceKeypoint.new(0.45, C.bg:Lerp(WHITE, 0.07)), ColorSequenceKeypoint.new(1, C.bg)}) end) -- soft drop shadow so the panel floats (a sibling behind the window that follows it) local Shadow = inst("ImageLabel", {Image = "rbxassetid://6015897843", ImageColor3 = Color3.new(0, 0, 0), ImageTransparency = 0.78, BackgroundTransparency = 1, ScaleType = Enum.ScaleType.Slice, SliceCenter = Rect.new(49, 49, 450, 450), ZIndex = 0}, Gui) do local function syncShadow() Shadow.Visible = Win.Visible Shadow.Position = UDim2.fromOffset(Win.AbsolutePosition.X - 22, Win.AbsolutePosition.Y - 14) Shadow.Size = UDim2.fromOffset(Win.AbsoluteSize.X + 44, Win.AbsoluteSize.Y + 44) end for _, p in ipairs({"AbsolutePosition", "AbsoluteSize", "Visible"}) do gconn(Win:GetPropertyChangedSignal(p), syncShadow) end task.defer(syncShadow) end local Top = inst("Frame", {Size = UDim2.new(1, 0, 0, 70), BackgroundTransparency = 1}, Win) th(inst("TextLabel", {Text = "RT3 Hub · Restaurant Tycoon 3", FontFace = face(BOLD), TextSize = 19, BackgroundTransparency = 1, Position = UDim2.fromOffset(20, 30), Size = UDim2.new(0, 360, 0, 26), TextXAlignment = Enum.TextXAlignment.Left}, Top), "TextColor3", "text") th(inst("TextLabel", {Text = UIS.KeyboardEnabled and "RightControl to hide" or "", FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -20, 0, 30), Size = UDim2.new(0, 240, 0, 26), TextXAlignment = Enum.TextXAlignment.Right}, Top), "TextColor3", "muted") -- window state: body parts (hidden while minimised), sizes, mode, scale target local WS = {parts = {}, sizes = {normal = Vector2.new(620, 430), big = Vector2.new(780, 540)}, mode = "normal", min = false, fit = 1, anim = false} WS.parts[1] = divider(Win, UDim2.fromOffset(20, 66), UDim2.new(1, -40, 0, 1)) -- shrink to fit small windows local fit = inst("UIScale", {}, Win) local function refit() local v = workspace.CurrentCamera.ViewportSize local sz = WS.sizes[WS.mode] WS.fit = math.clamp(math.min((v.Y - 80) / sz.Y, (v.X - 20) / sz.X), 0.45, 1) if not WS.anim then fit.Scale = WS.fit end end refit() gconn(workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"), refit) dragify(Top, Win) -- window buttons, like a Mac window: red hides the menu, yellow folds it down to the title bar, green makes it bigger do -- short legend for the three buttons, on the same row as them th(inst("TextLabel", {RichText = true, FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Text = '● hide ● fold ● bigger', Position = UDim2.new(1, -20, 0, 8), Size = UDim2.new(0, 240, 0, 22), TextXAlignment = Enum.TextXAlignment.Right}, Top), "TextColor3", "muted") local dots, marks = {}, {} for i, col in ipairs({Color3.fromRGB(255, 95, 87), Color3.fromRGB(254, 188, 46), Color3.fromRGB(40, 200, 64)}) do local d = inst("TextButton", {Text = "", AutoButtonColor = false, BackgroundColor3 = col, BorderSizePixel = 0, Position = UDim2.fromOffset(16 + (i - 1) * 18, 14), Size = UDim2.fromOffset(12, 12)}, Top) corner(d, "pill") marks[i] = inst("TextLabel", {Text = ({"×", "–", "+"})[i], FontFace = face(BOLD), TextSize = 11, TextColor3 = Color3.new(0, 0, 0), TextTransparency = 1, BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1), Position = UDim2.fromOffset(0, -1)}, d) pressable(d) dots[i] = d end -- the symbols show while the mouse is over the buttons local over = 0 local function showMarks(on) for _, m in ipairs(marks) do tween(m, 0.15, {TextTransparency = on and 0.45 or 1}) end end for _, d in ipairs(dots) do d.MouseEnter:Connect(function() over += 1 showMarks(true) end) d.MouseLeave:Connect(function() over = math.max(0, over - 1) task.delay(0.05, function() if over == 0 then showMarks(false) end end) end) end local function setParts(on) for _, o in ipairs(WS.parts) do o.Visible = on end end -- resize around the top edge, so the title bar stays where it is local function resizeTo(size, keepTop) local old = Win.AbsoluteSize / math.max(fit.Scale, 0.01) local shift = keepTop and (size.Y - old.Y) / 2 * fit.Scale or 0 tween(Win, 0.35, {Size = UDim2.fromOffset(size.X, size.Y), Position = Win.Position + UDim2.fromOffset(0, shift)}) end dots[1].Activated:Connect(function() Win.Visible = false end) dots[2].Activated:Connect(function() WS.min = not WS.min local full = WS.sizes[WS.mode] if WS.min then setParts(false) resizeTo(Vector2.new(full.X, 64), true) else resizeTo(full, true) task.delay(0.22, function() if not WS.min then setParts(true) end end) end end) dots[3].Activated:Connect(function() WS.mode = WS.mode == "normal" and "big" or "normal" refit() if WS.min then WS.min = false task.delay(0.22, function() if not WS.min then setParts(true) end end) end resizeTo(WS.sizes[WS.mode], false) tween(fit, 0.35, {Scale = WS.fit}) end) end -- open / close motion: the panel eases in from slightly smaller and lower, and eases out the same way -- (hubs just set Win.Visible, so this watches that property) do local function openAnim() local pos = Win.Position WS.anim = true fit.Scale = WS.fit * 0.92 Win.Position = pos + UDim2.fromOffset(0, 14) tween(fit, 0.32, {Scale = WS.fit}, Enum.EasingStyle.Back) tween(Win, 0.32, {Position = pos}).Completed:Connect(function() WS.anim = false end) end -- our own Visible changes are skipped (signals can arrive late, so count them instead of using a flag) local ignoreVis = 0 local function setVis(v) if Win.Visible ~= v then ignoreVis += 1 Win.Visible = v end end gconn(Win:GetPropertyChangedSignal("Visible"), function() if ignoreVis > 0 then ignoreVis -= 1 return end if WS.anim then return end if Win.Visible then openAnim() return end WS.anim = true setVis(true) local pos = Win.Position tween(fit, 0.16, {Scale = WS.fit * 0.92}, Enum.EasingStyle.Quad, Enum.EasingDirection.In) tween(Win, 0.16, {Position = pos + UDim2.fromOffset(0, 14)}, Enum.EasingStyle.Quad, Enum.EasingDirection.In).Completed:Connect(function() setVis(false) Win.Position, fit.Scale = pos, WS.fit WS.anim = false end) end) task.defer(openAnim)end -- floating liquid glass button to bring the menu back on phones (no RightShift there) -- phones/tablets only: a round glass button with a menu icon; tap = show/hide, drag = move it local Tog = th(inst("TextButton", {Text = "≡", FontFace = face(SEMI), TextSize = 28, AutoButtonColor = false, Position = UDim2.new(0, 14, 0.5, -26), Size = UDim2.fromOffset(52, 52), Visible = UIS.TouchEnabled and not UIS.KeyboardEnabled}, Gui), "TextColor3", "text") corner(Tog, "pill") liquid(Tog, true) pressable(Tog) -- it glows in the theme colour while the menu is hidden, so it's easy to spot local togGlow = inst("UIStroke", {Color = C.clay, Thickness = 2, Transparency = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, Tog) themed[#themed + 1] = {togGlow, "Color", "clay"} gconn(Win:GetPropertyChangedSignal("Visible"), function() tween(togGlow, 0.3, {Transparency = Win.Visible and 1 or 0.3}) end) dragify(Tog, Tog) local togAt Tog.InputBegan:Connect(function() togAt = Tog.AbsolutePosition end) Tog.Activated:Connect(function() if togAt and (Tog.AbsolutePosition - togAt).Magnitude > 6 then return end Win.Visible = not Win.Visible end) H.Tog = Tog -- sidebar: "MENU" list straight on the glass, active item marked by an accent bar on the window edge -- it scrolls (clipped above the account card) once a hub has more tabs than fit local Side = inst("ScrollingFrame", {Position = UDim2.fromOffset(0, 76), Size = UDim2.new(0, 164, 1, -150), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, ScrollingDirection = Enum.ScrollingDirection.Y}, Win) th(Side, "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 2), SortOrder = Enum.SortOrder.LayoutOrder}, Side) inst("UIPadding", {PaddingLeft = UDim.new(0, 16), PaddingRight = UDim.new(0, 6), PaddingBottom = UDim.new(0, 6)}, Side) th(inst("TextLabel", {Text = "MENU", FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 26), LayoutOrder = -1, TextXAlignment = Enum.TextXAlignment.Left}, Side), "TextColor3", "muted").TextTransparency = 0.1 WS.parts[#WS.parts + 1] = Side WS.parts[#WS.parts + 1] = divider(Win, UDim2.fromOffset(170, 80), UDim2.new(0, 1, 1, -96), true) WS.parts[#WS.parts + 1] = divider(Win, UDim2.new(0, 20, 1, -70), UDim2.fromOffset(130, 1)) -- account card at the bottom, like the profile row in the glass sidebar do local Acc = inst("Frame", {Position = UDim2.new(0, 16, 1, -62), Size = UDim2.fromOffset(150, 48), BackgroundTransparency = 1}, Win) WS.parts[#WS.parts + 1] = Acc local av = inst("ImageLabel", {BackgroundColor3 = WHITE, BackgroundTransparency = 0.92, Size = UDim2.fromOffset(38, 38), Position = UDim2.fromOffset(0, 5), Image = "rbxthumb://type=AvatarHeadShot&id=" .. tostring(game:GetService("Players").LocalPlayer.UserId) .. "&w=48&h=48"}, Acc) corner(av, "pill") rim(av, 0.35) th(inst("TextLabel", {Text = game:GetService("Players").LocalPlayer.DisplayName, FontFace = face(SEMI), TextSize = 13, BackgroundTransparency = 1, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(48, 7), Size = UDim2.new(1, -50, 0, 18), TextXAlignment = Enum.TextXAlignment.Left}, Acc), "TextColor3", "text") th(inst("TextLabel", {Text = "@" .. game:GetService("Players").LocalPlayer.Name, FontFace = face(), TextSize = 10, BackgroundTransparency = 1, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(48, 25), Size = UDim2.new(1, -50, 0, 14), TextXAlignment = Enum.TextXAlignment.Left}, Acc), "TextColor3", "muted") end local Pages = inst("Frame", {Position = UDim2.fromOffset(184, 80), Size = UDim2.new(1, -198, 1, -94), BackgroundTransparency = 1}, Win) WS.parts[#WS.parts + 1] = Pages local UI = {refresh = {}, el = {}, repaint = {}} local tabs = {} local function paintTabs() for _, o in ipairs(tabs) do local on = o.page.Visible o.btn.TextColor3 = on and C.text or C.muted o.btn.FontFace = face(on and SEMI or MED) o.bar.Visible = on o.chev.Visible = on end end function UI.tab(name, order) local btn = inst("TextButton", {Text = name, FontFace = face(MED), TextSize = 13, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 34), AutoButtonColor = false, TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = order or #tabs + 1}, Side) inst("UIPadding", {PaddingLeft = UDim.new(0, 8)}, btn) -- the accent bar sits on the window's left edge (inside the scroll area so it isn't clipped) local bar = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, -14, 0.5, 0), Size = UDim2.fromOffset(3, 22), Visible = false}, btn) accentGrad(bar, 90) local chev = th(inst("TextLabel", {Text = "›", FontFace = face(SEMI), TextSize = 18, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, 0, 0.5, -1), Size = UDim2.fromOffset(16, 20), Visible = false}, btn), "TextColor3", "text") local page = inst("ScrollingFrame", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, Visible = false}, Pages) th(page, "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder}, page) -- a little room on every side so the cards' outlines are never clipped by the scroll area inst("UIPadding", {PaddingLeft = UDim.new(0, 2), PaddingRight = UDim.new(0, 9), PaddingBottom = UDim.new(0, 8), PaddingTop = UDim.new(0, 3)}, page) local t = setmetatable({page = page, btn = btn, bar = bar, chev = chev, n = 0}, {__index = UI.el}) local function select() if page.Visible then return end for _, o in ipairs(tabs) do o.page.Visible = false end page.Visible = true paintTabs() -- the new page glides up into place and the accent bar grows in page.Position = UDim2.fromOffset(0, 12) tween(page, 0.35, {Position = UDim2.new()}) bar.Size = UDim2.fromOffset(3, 0) tween(bar, 0.3, {Size = UDim2.fromOffset(3, 22)}, Enum.EasingStyle.Back) chev.Position = UDim2.new(1, -8, 0.5, -1) tween(chev, 0.3, {Position = UDim2.new(1, 0, 0.5, -1)}) end btn.MouseButton1Click:Connect(select) btn.MouseEnter:Connect(function() if not page.Visible then tween(btn, 0.15, {TextColor3 = C.text}) end end) btn.MouseLeave:Connect(function() if not page.Visible then tween(btn, 0.2, {TextColor3 = C.muted}) end end) tabs[#tabs + 1] = t if #tabs == 1 then select() else paintTabs() end return t end ----------------------------------------------------------------- content (soft glassmorphism cards) -- rounded translucent card with a soft tonal gradient, tinted by the ambient theme colour on the left local function card(f) f.BackgroundColor3 = WHITE glassy(f, 0.22) corner(f, 14) rim(f, 0.9) local g = inst("UIGradient", {Rotation = 0}, f) painter(function() g.Color = ColorSequence.new(C.card:Lerp(C.clay, 0.16), C.card) end) -- the card brightens a touch under the mouse f.MouseEnter:Connect(function() tween(f, 0.18, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.14, 0, 0.95)}) end) f.MouseLeave:Connect(function() tween(f, 0.25, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.22, 0, 0.95)}) end) return f end local function row(t, h) t.n += 1 return card(inst("Frame", {Size = UDim2.new(1, 0, 0, h or 40), BorderSizePixel = 0, LayoutOrder = t.n}, t.page)) end local function lbl(parent, text) return th(inst("TextLabel", {Text = text, FontFace = face(MED), TextSize = 13, BackgroundTransparency = 1, Position = UDim2.fromOffset(16, 0), Size = UDim2.new(1, -32, 1, 0), TextXAlignment = Enum.TextXAlignment.Left}, parent), "TextColor3", "text") end function UI.el:section(text) self.n += 1 local l = th(inst("TextLabel", {Text = string.upper(text), FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 24), TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = self.n}, self.page), "TextColor3", "muted") inst("UIPadding", {PaddingLeft = UDim.new(0, 4), PaddingTop = UDim.new(0, 8)}, l) end -- grey second line under a control's name; the card grows with the text local function desc(f, l, text, rightPad) if not text then return end l.Position, l.Size = UDim2.fromOffset(16, 7), UDim2.new(1, -rightPad, 0, 18) th(inst("TextLabel", {Text = text, FontFace = face(), TextSize = 11, BackgroundTransparency = 1, TextWrapped = true, Position = UDim2.fromOffset(16, 26), Size = UDim2.new(1, -rightPad, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top}, f), "TextColor3", "muted") f.AutomaticSize = Enum.AutomaticSize.Y inst("UIPadding", {PaddingBottom = UDim.new(0, 10)}, f) end -- liquid glass switch; when on it fills with the accent and glows function UI.el:toggle(text, key, cb, d) local f = row(self, d and 58) desc(f, lbl(f, text), d, 78) local sw = inst("Frame", {AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -16, 0.5, 0), Size = UDim2.fromOffset(42, 24), BorderSizePixel = 0}, f) if d then sw.AnchorPoint, sw.Position = Vector2.new(1, 0), UDim2.new(1, -16, 0, 9) end corner(sw, "pill") local edge, shine, sheen = liquid(sw) local g = accentGrad(sw, 0) local glow = inst("UIStroke", {Color = C.clay, Thickness = 3, Transparency = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, sw) themed[#themed + 1] = {glow, "Color", "clay"} local knob = inst("Frame", {AnchorPoint = Vector2.new(0, 0.5), Size = UDim2.fromOffset(18, 18), Position = UDim2.new(0, 3, 0.5, 0), BackgroundColor3 = WHITE, BorderSizePixel = 0, ZIndex = 2}, sw) corner(knob, "pill") local first = true local function paint() local on = S[key] sheen.Enabled, g.Enabled, edge.Enabled, shine.Visible = not on, on, not on, not on local t = first and 0 or 0.22 tween(sw, t, {BackgroundTransparency = on and 0 or math.clamp(TH.glass / 100 + 0.82, 0, 0.95)}) tween(glow, t + 0.1, {Transparency = on and 0.6 or 1}) -- the knob stretches a little while it slides, like a drop of liquid if not first then tween(knob, 0.1, {Size = UDim2.fromOffset(24, 18)}).Completed:Connect(function() tween(knob, 0.18, {Size = UDim2.fromOffset(18, 18)}) end) end tween(knob, t + 0.06, {Position = on and UDim2.new(0, 21, 0.5, 0) or UDim2.new(0, 3, 0.5, 0)}) first = false end inst("TextButton", {Text = "", BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1)}, f).MouseButton1Click:Connect(function() S[key] = not S[key] paint() if cb then cb(S[key]) end end) paint() UI.refresh[#UI.refresh + 1] = function() paint() if cb then cb(S[key]) end end UI.repaint[#UI.repaint + 1] = paint end -- slim track with a glowing accent fill (like the progress ring in the soft glass widget) function UI.el:slider(text, key, min, max, step, cb, d, store) store = store or S local dy = d and 26 or 0 local f = row(self, 56 + dy) local l = lbl(f, text) l.Size = UDim2.new(1, -32, 0, 32) desc(f, l, d, 100) local val = th(inst("TextLabel", {FontFace = face(SEMI), TextSize = 13, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -16, 0, 0), Size = UDim2.fromOffset(80, 32), TextXAlignment = Enum.TextXAlignment.Right}, f), "TextColor3", "text") local bar = inst("Frame", {Position = UDim2.new(0, 16, 0, 38 + dy), Size = UDim2.new(1, -32, 0, 4), BackgroundColor3 = WHITE, BackgroundTransparency = 0.86, BorderSizePixel = 0}, f) corner(bar, "pill") local fill = inst("Frame", {Size = UDim2.fromScale(0, 1), BackgroundColor3 = WHITE, BorderSizePixel = 0}, bar) corner(fill, "pill") accentGrad(fill, 0) local knob = inst("Frame", {AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(1, 0.5), Size = UDim2.fromOffset(14, 14), BackgroundColor3 = WHITE, BorderSizePixel = 0}, fill) corner(knob, "pill") themed[#themed + 1] = {inst("UIStroke", {Color = C.clay, Thickness = 3, Transparency = 0.55}, knob), "Color", "clay"} local hit = inst("TextButton", {Text = "", BackgroundTransparency = 1, Position = UDim2.new(0, 8, 0, 28 + dy), Size = UDim2.new(1, -16, 0, 22)}, f) local function paint() fill.Size = UDim2.fromScale(math.clamp((store[key] - min) / (max - min), 0, 1), 1) val.Text = tostring(store[key]) end local dragging = false local function set(x) local a = math.clamp((x - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, 0, 1) local v = math.floor((min + (max - min) * a) / step + 0.5) * step if step < 1 then v = tonumber(string.format("%.2f", v)) end store[key] = v paint() if cb then cb(v) end end hit.MouseButton1Down:Connect(function(x) dragging = true set(x) end) gconn(UIS.InputChanged, function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then set(i.Position.X) end end) gconn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = false end end) paint() UI.refresh[#UI.refresh + 1] = paint return paint end -- liquid glass pill that cycles through the options function UI.el:choice(text, key, opts, cb, d, store) store = store or S local f = row(self, d and 58) desc(f, lbl(f, text), d, 156) local b = th(inst("TextButton", {FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(132, 26), AutoButtonColor = false}, f), "TextColor3", "text") if d then b.AnchorPoint, b.Position = Vector2.new(1, 0), UDim2.new(1, -14, 0, 8) end corner(b, "pill") liquid(b) pressable(b) local function paint() b.Text = tostring(store[key]) .. " ›" end b.MouseButton1Click:Connect(function() local i = table.find(opts, store[key]) or 0 store[key] = opts[i % #opts + 1] paint() if cb then cb(store[key]) end end) paint() UI.refresh[#UI.refresh + 1] = paint return paint end -- full-width liquid glass pill button function UI.el:button(text, fn, d) self.n += 1 local b = th(inst("TextButton", {Text = d and (text .. "\n" .. d .. "") or text, RichText = true, FontFace = face(SEMI), TextSize = 13, Size = UDim2.new(1, 0, 0, d and 50 or 38), AutoButtonColor = false, LayoutOrder = self.n}, self.page), "TextColor3", "text") corner(b, "pill") liquid(b, true) pressable(b) b.MouseEnter:Connect(function() tween(b, 0.18, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.62, 0, 0.95)}) end) b.MouseLeave:Connect(function() tween(b, 0.25, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.74, 0, 0.95)}) end) b.MouseButton1Click:Connect(function() task.spawn(fn) end) return b end function UI.el:input(text, placeholder, cb) local f = row(self) lbl(f, text) local box = th(th(inst("TextBox", {PlaceholderText = placeholder, Text = "", FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(170, 26), ClearTextOnFocus = false}, f), "TextColor3", "text"), "PlaceholderColor3", "muted") corner(box, "pill") liquid(box) box.FocusLost:Connect(function(enter) if cb then cb(box.Text, enter) end end) return box end function UI.el:label(text) self.n += 1 local f = card(inst("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BorderSizePixel = 0, LayoutOrder = self.n}, self.page)) inst("UIPadding", {PaddingTop = UDim.new(0, 11), PaddingBottom = UDim.new(0, 11), PaddingLeft = UDim.new(0, 16), PaddingRight = UDim.new(0, 16)}, f) local l = th(inst("TextLabel", {Text = text, RichText = true, FontFace = face(), TextSize = 13, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, LineHeight = 1.2}, f), "TextColor3", "text") return function(s) l.Text = s end end function UI.el:list(h) local f = row(self, h) local sc = th(inst("ScrollingFrame", {Size = UDim2.new(1, -10, 1, -10), Position = UDim2.fromOffset(5, 5), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y}, f), "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 5), SortOrder = Enum.SortOrder.LayoutOrder}, sc) return sc end local function listItem(sc, text, btnText, fn, order) local f = inst("Frame", {Size = UDim2.new(1, -6, 0, 32), BorderSizePixel = 0, LayoutOrder = order or 0, BackgroundColor3 = WHITE, BackgroundTransparency = 0.94}, sc) corner(f, 12) th(inst("TextLabel", {Text = text, FontFace = face(), TextSize = 12, BackgroundTransparency = 1, Position = UDim2.fromOffset(12, 0), Size = UDim2.new(1, -100, 1, 0), TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, f), "TextColor3", "text") if btnText then local b = th(inst("TextButton", {Text = btnText, FontFace = face(SEMI), TextSize = 12, BackgroundColor3 = WHITE, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -5, 0.5, 0), Size = UDim2.fromOffset(80, 24), AutoButtonColor = true}, f), "TextColor3", "bg") corner(b, "pill") accentGrad(b, 0) b.MouseButton1Click:Connect(function() task.spawn(fn) end) end return f end ----------------------------------------------------------------- notifications (soft glass cards) local Toasts = inst("Frame", {AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 70), Size = UDim2.fromOffset(420, 500), BackgroundTransparency = 1}, Gui) inst("UIListLayout", {Padding = UDim.new(0, 10), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder}, Toasts) local toastN = 0 -- one card for every notification: top centre, newest on top, colours + glass from the chosen preset local function toastCard(title, text, col) toastN += 1 local holder = inst("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, LayoutOrder = -toastN}, Toasts) local f = inst("Frame", {Size = UDim2.new(1, 0, 0, 0), Position = UDim2.fromOffset(0, -20), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = WHITE, BackgroundTransparency = 1, BorderSizePixel = 0}, holder) corner(f, 18) local st = rim(f, 0.82) inst("UIGradient", {Rotation = 90, Color = ColorSequence.new(C.bg:Lerp(WHITE, 0.14), C.bg)}, f) inst("UIPadding", {PaddingTop = UDim.new(0, 13), PaddingBottom = UDim.new(0, 14), PaddingLeft = UDim.new(0, 44), PaddingRight = UDim.new(0, 18)}, f) -- the padding moves children too, so the dot sits at a negative x to land in the left margin, level with the title local dot = inst("Frame", {Size = UDim2.fromOffset(10, 10), Position = UDim2.fromOffset(-26, 5), BackgroundColor3 = col or C.clay, BorderSizePixel = 0}, f) corner(dot, "pill") inst("UIStroke", {Color = col or C.clay, Thickness = 3, Transparency = 0.6}, dot) local lbl = inst("TextLabel", {Text = "" .. title .. "\n" .. text, RichText = true, FontFace = face(), TextSize = 17, LineHeight = 1.1, TextColor3 = C.text, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left}, f) tween(f, 0.4, {Position = UDim2.new(), BackgroundTransparency = math.clamp(TH.glass / 100, 0, 0.6)}, Enum.EasingStyle.Back) local closed = false local function close() if closed then return end closed = true tween(f, 0.3, {Position = UDim2.fromOffset(0, -20), BackgroundTransparency = 1}, Enum.EasingStyle.Quad, Enum.EasingDirection.In) for _, x in ipairs(f:GetDescendants()) do if x:IsA("TextLabel") then tween(x, 0.25, {TextTransparency = 1}) elseif x:IsA("UIStroke") then tween(x, 0.25, {Transparency = 1}) elseif x:IsA("Frame") then tween(x, 0.25, {BackgroundTransparency = 1}) end end task.delay(0.35, function() if holder.Parent then holder:Destroy() end end) end return lbl, close, st end local function notify(title, text, col) if not S.Notify then return end local _, close = toastCard(title, text, col) task.delay(5, close) end ----------------------------------------------------------------- trackers / panels the hub adds itself -- anything a hub puts in the GUI (stat panels, timers, warnings) gets the same glass, outline, corners and font do local libOwn = {[Win] = true, [Shadow] = true, [Tog] = true, [Toasts] = true} local MONT = "rbxasset://fonts/families/Montserrat.json" local function glassify(o) if libOwn[o] or not o:IsA("GuiObject") or o:GetAttribute("NoGlass") or o:GetAttribute("Glassed") then return end o:SetAttribute("Glassed", true) local function refont(d) if d:IsA("TextLabel") or d:IsA("TextButton") or d:IsA("TextBox") then pcall(function() d.FontFace = Font.new(MONT, d.FontFace.Weight, d.FontFace.Style) end) end end refont(o) for _, d in ipairs(o:GetDescendants()) do refont(d) end o.DescendantAdded:Connect(function(d) task.defer(refont, d) end) if o.BackgroundTransparency >= 0.95 then return end o.BackgroundColor3 = WHITE glassy(o, 0.04) if o:IsA("Frame") then -- smoked glass, lighter at the top local g = inst("UIGradient", {Rotation = 90}, o) painter(function() g.Color = ColorSequence.new(C.bg:Lerp(WHITE, 0.16), C.bg) end) else -- text panels: a gradient would also tint the text, so these get the flat glass tone painter(function() o.BackgroundColor3 = C.bg:Lerp(WHITE, 0.1) end) end local c = o:FindFirstChildOfClass("UICorner") if c then c.CornerRadius = UDim.new(0, 14) else corner(o, 14) end for _, s in ipairs(o:GetChildren()) do if s:IsA("UIStroke") then s:Destroy() end end rim(o, 0.8) end gconn(Gui.ChildAdded, function(c) task.defer(glassify, c) end) task.defer(function() for _, c in ipairs(Gui:GetChildren()) do glassify(c) end end) end ----------------------------------------------------------------- theme tab (always the last tab) local function applyTheme() loadTheme() for _, t in ipairs(themed) do pcall(function() t[1][t[2]] = C[t[3]] end) end for _, g in ipairs(grads) do g.Color = ColorSequence.new(C.clay, C.accent2) end for _, gp in ipairs(glassParts) do gp[1].BackgroundTransparency = math.clamp(TH.glass / 100 + gp[2], 0, 0.95) end for _, f in ipairs(painters) do pcall(f) end paintTabs() for _, f in ipairs(UI.repaint) do pcall(f) end pcall(function() writefile(THEME_FILE, Http:JSONEncode(TH)) end) end H.applyTheme = applyTheme task.defer(function() local T = UI.tab("Theme", 999) T:section("Preset") local names = {} for _, p in ipairs(PRESETS) do names[#names + 1] = p.name end local repaintPickers = {} T:choice("Theme", "preset", names, function() TH.primary, TH.secondary = nil, nil -- a new preset brings its own accents applyTheme() for _, f in ipairs(repaintPickers) do f() end end, "Shared by all my hubs: pick it once and every hub uses it.", TH) T:slider("Glass (transparency %)", "glass", 20, 45, 1, function() applyTheme() end, nil, TH) -- colour pickers: hue / saturation / brightness sliders plus a hex box local function picker(label, key) T:section(label) local hsv = {} local function cur() return key == "primary" and C.clay or C.accent2 end local function readHSV() local h, s, v = cur():ToHSV() hsv.h, hsv.s, hsv.v = math.floor(h * 360 + 0.5), math.floor(s * 100 + 0.5), math.floor(v * 100 + 0.5) end readHSV() local f = row(T, 40) lbl(f, "Colour") local sw = inst("Frame", {AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(48, 24), BorderSizePixel = 0, BackgroundColor3 = cur()}, f) corner(sw, "pill") rim(sw, 0.55) local box = th(inst("TextBox", {Text = "", FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -70, 0.5, 0), Size = UDim2.fromOffset(88, 24), ClearTextOnFocus = false}, f), "TextColor3", "text") corner(box, "pill") liquid(box) local paints = {} local function push(c) TH[key] = c:ToHex() applyTheme() sw.BackgroundColor3 = c box.Text = "#" .. c:ToHex():upper() end local function fromHSV() push(Color3.fromHSV(hsv.h / 360, hsv.s / 100, hsv.v / 100)) end paints[#paints + 1] = T:slider("Hue", "h", 0, 360, 1, fromHSV, nil, hsv) paints[#paints + 1] = T:slider("Saturation", "s", 0, 100, 1, fromHSV, nil, hsv) paints[#paints + 1] = T:slider("Brightness", "v", 0, 100, 1, fromHSV, nil, hsv) box.FocusLost:Connect(function() local c = hex((box.Text:gsub("#", ""))) if c then push(c) readHSV() for _, p in ipairs(paints) do p() end end end) local function repaint() readHSV() for _, p in ipairs(paints) do p() end sw.BackgroundColor3 = cur() box.Text = "#" .. cur():ToHex():upper() end repaint() repaintPickers[#repaintPickers + 1] = repaint end picker("Primary colour", "primary") picker("Secondary colour", "secondary") T:button("Reset to preset colours", function() TH.primary, TH.secondary = nil, nil applyTheme() for _, f in ipairs(repaintPickers) do f() end end) paintTabs() end) -- end of UI library -- names the stats window below still uses C.panel, C.item, C.txt, C.dim, C.acc = C.side, C.card, C.text, C.muted, C.clay local function new(cls, props, parent) local i = Instance.new(cls) for k, v in pairs(props) do i[k] = v end if parent then i.Parent = parent end return i end local function draggable(frame, handle) dragify(handle, frame) end local sg, main = Gui, Win local function repaintAll() for _, f in ipairs(UI.repaint) do f() end end local toggleRefs = setmetatable({}, {__index = function() return repaintAll end}) local function tg(t, label, key, note) t:toggle(label, key, save, note) end local T = UI.tab("Autofarm") T:section("Kitchen") tg(T, "Auto Cook Food​​", "AutoCook", "Cooks at the chef tablet with the most orders.") tg(T, "Instant Cook​​", "InstantCook", "Finishes every cooking step instantly.") T:section("Customers") tg(T, "Auto Seat Customers​​", "AutoSeat") tg(T, "Auto Take Orders​​", "AutoOrder") tg(T, "Auto Give Food​​", "AutoServe", "Auto-cancels a stuck plate after 3s.") tg(T, "Auto Pickup Dirty Dishes​​", "AutoDishes") T:section("Money") tg(T, "Auto Collect Bills​​", "AutoBills") tg(T, "Auto Collect Tips​​", "AutoTips") tg(T, "Auto Collect Drop Money / Food Critic​​", "AutoDrops") T:section("Special customers") tg(T, "Auto Serve Drive Thru​​", "DriveThru", "Take order, serve and collect payment.") tg(T, "Auto Calm Rude Customer​​", "CalmRude", "Learns which answers work.") tg(T, "Auto Catch Dine-and-Dash​​", "CatchDash", "Teleports to the runner and back.") T = UI.tab("Player") tg(T, "Anti AFK (always on)​​", "AntiAFK") T:section("Movement") tg(T, "Infinite Jump [V]​​", "InfJump") tg(T, "Noclip [N]​​", "Noclip") tg(T, "WalkSpeed [C]​​", "WalkSpeedOn") local wsBox = T:input("WalkSpeed value", "40", function(txt) local n = tonumber(txt) if n then S.WalkSpeed = math.clamp(n, 1, 500) save() end end) wsBox.Text = tostring(S.WalkSpeed) T = UI.tab("Codes") T:button("Redeem All Valid Codes", redeemAll) local setCode = T:label("Pulls the newest codes from RobloxDen + Beebom each time you click, tries only ones not tried before on this account.") codeStatus = setmetatable({}, {__newindex = function(_, k, v) if k == "Text" then setCode(v) end end, __index = function() return "" end}) T:button("Forget tried codes (retry all)", function() codeCache = {}; pcall(writefile, "RT3Hub/codes_" .. lp.UserId .. ".json", "{}"); setCodeStatus("Cleared. Next redeem tries every listed code again.") end) T = UI.tab("ESP & Stats") tg(T, "Player Names + Distance​​", "NameESP") local statsWin T:button("Open Restaurant Stats Window", function() statsWin.Visible = true end, "Pick a player with < >, it refreshes every 10s.") T = UI.tab("Settings") T:label("Menu: RightControl · Inf jump: V · Noclip: N · WalkSpeed: C\nSettings save automatically.") T:label("Made by Stizzyyy · always free & keyless.\nFound this behind a key system? It's a stolen copy.") do -- extras: the same set every Stizzyyy hub has (pass 2) local Pl, HS, TP, RunX, LightX = game:GetService("Players"), game:GetService("HttpService"), game:GetService("TeleportService"), game:GetService("RunService"), game:GetService("Lighting") local XT = UI.tab("Extras") local XF = "StizzyyyExtras_" .. game.GameId .. ".json" local XS = {Notify = true, X_No3D = false} pcall(function() for k, v in pairs(HS:JSONDecode(readfile(XF))) do if XS[k] ~= nil and type(v) == type(XS[k]) then XS[k] = v end end end) for k, v in pairs(XS) do S[k] = v end local function xsave() for k in pairs(XS) do XS[k] = S[k] end pcall(function() writefile(XF, HS:JSONEncode(XS)) end) end local function xalive() return Gui ~= nil and Gui.Parent ~= nil end -- the menu is gone once the hub unloads XT:section("General") XT:toggle("Notifications​​", "Notify", xsave) XT:section("Performance") XT:toggle("Turn off 3D rendering​​", "X_No3D", xsave, "Black screen and much less GPU, for AFK grinding.") task.spawn(function() local gfx, cap, r3d local function ungfx() if gfx then pcall(function() LightX.GlobalShadows = gfx.shadows end) for d in pairs(gfx.fx) do pcall(function() d.Enabled = true end) end gfx = nil end end while xalive() do if S.X_No3D ~= r3d then r3d = S.X_No3D pcall(RunX.Set3dRenderingEnabled, RunX, not r3d) end task.wait(1) end ungfx() pcall(RunX.Set3dRenderingEnabled, RunX, true) end) XT:section("Server") local function xhop(mode) if mode == "rejoin" then notify("Server", "Rejoining…") pcall(TP.TeleportToPlaceInstance, TP, game.PlaceId, game.JobId, Pl.LocalPlayer) return end -- "very limited spots": 2-5 left, or 1 up to half the server when servers hold 6 or fewer local max = Pl.MaxPlayers local lo = max <= 6 and 1 or 2 local hi = math.min(5, math.max(lo, math.floor(max / 2))) local picks, cursor, reached = {}, nil, false for _ = 1, 3 do local ok, body = pcall(game.HttpGet, game, "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=" .. (mode == "small" and "Asc" or "Desc") .. "&excludeFullGames=true&limit=100" .. (cursor and ("&cursor=" .. cursor) or "")) local ok2, t = pcall(HS.JSONDecode, HS, ok and body or "") if not (ok2 and type(t) == "table") then break end reached = true for _, sv in ipairs(t.data or {}) do local free = (sv.maxPlayers or 0) - (sv.playing or 0) if sv.id ~= game.JobId and free > 0 and (mode ~= "full" or (free >= lo and free <= hi)) then picks[#picks + 1] = sv end end cursor = t.nextPageCursor if #picks > 0 or not cursor then break end end if not reached then notify("Server", "Couldn't look up servers on this executor.") if mode ~= "full" then pcall(TP.Teleport, TP, game.PlaceId, Pl.LocalPlayer) end return end if #picks == 0 then notify("Server", mode == "full" and "No server with very limited spots right now. Try again in a bit." or "No other server found right now.") return end if mode == "small" then table.sort(picks, function(x, y) return (x.playing or 0) < (y.playing or 0) end) end local pick = mode == "small" and picks[1] or picks[math.random(#picks)] notify("Server", mode == "full" and "Joining a server with very limited spots…" or mode == "small" and "Joining a small server…" or "Joining another server…") if not pcall(TP.TeleportToPlaceInstance, TP, game.PlaceId, pick.id, Pl.LocalPlayer) then notify("Server", "Couldn't join that server, try again.") end end XT:button("Rejoin", function() xhop("rejoin") end) if Pl.MaxPlayers > 1 then -- one-player games: every server is just you XT:button("Server hop", function() xhop("any") end) XT:button("Join a small server", function() xhop("small") end) XT:button("Join a full server", function() xhop("full") end, "A server with very limited spots left") end end T:button("Unload RT3 Hub", function() H.Unload() end) -- stats window statsWin = new("Frame", {Size = UDim2.fromOffset(330, 400), Position = UDim2.new(0.5, 250, 0.5, -200), BackgroundColor3 = C.bg, Visible = false, BorderSizePixel = 0}, sg); corner(statsWin, 16); glassy(statsWin); rim(statsWin) local sTop = new("Frame", {Size = UDim2.new(1, 0, 0, 34), BackgroundTransparency = 1, BorderSizePixel = 0}, statsWin) draggable(statsWin, sTop) local prevB = new("TextButton", {Text = "<", Size = UDim2.fromOffset(28, 26), Position = UDim2.fromOffset(4, 4), BackgroundColor3 = C.item, TextColor3 = C.txt, Font = Enum.Font.GothamBold, TextSize = 14}, sTop); corner(prevB) local nameL = new("TextLabel", {Text = "", Size = UDim2.new(1, -110, 1, 0), Position = UDim2.fromOffset(36, 0), BackgroundTransparency = 1, TextColor3 = C.txt, Font = Enum.Font.GothamBold, TextSize = 13}, sTop) local nextB = new("TextButton", {Text = ">", Size = UDim2.fromOffset(28, 26), Position = UDim2.new(1, -70, 0, 4), BackgroundColor3 = C.item, TextColor3 = C.txt, Font = Enum.Font.GothamBold, TextSize = 14}, sTop); corner(nextB) local closeS = new("TextButton", {Text = "×", Size = UDim2.fromOffset(28, 26), Position = UDim2.new(1, -36, 0, 4), BackgroundColor3 = C.item, TextColor3 = C.txt, Font = Enum.Font.GothamBold, TextSize = 16}, sTop); corner(closeS) local body = new("TextLabel", {Text = "", RichText = true, Size = UDim2.new(1, -16, 1, -44), Position = UDim2.fromOffset(8, 40), BackgroundTransparency = 1, TextColor3 = C.txt, Font = Enum.Font.Gotham, TextSize = 13, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top}, statsWin) local sel = 1 local function selPlayer() local list = Players:GetPlayers(); sel = ((sel - 1) % #list) + 1; return list[sel] end local function refreshStats() local p = selPlayer(); nameL.Text = p.DisplayName; local ok, t = pcall(statsText, p); body.Text = ok and t or ("error: " .. tostring(t)) end prevB.MouseButton1Click:Connect(function() sel = sel - 1; task.spawn(refreshStats) end) nextB.MouseButton1Click:Connect(function() sel = sel + 1; task.spawn(refreshStats) end) closeS.MouseButton1Click:Connect(function() statsWin.Visible = false end) task.spawn(function() while H.Run do if statsWin.Visible then refreshStats() end task.wait(10) end end) statsWin:GetPropertyChangedSignal("Visible"):Connect(function() if statsWin.Visible then task.spawn(refreshStats) end end) conn(UIS.InputBegan:Connect(function(i, gp) if gp then return end local k = i.KeyCode if k == Enum.KeyCode.RightControl then main.Visible = not main.Visible elseif k == Enum.KeyCode.V then S.InfJump = not S.InfJump; toggleRefs.InfJump(); save() elseif k == Enum.KeyCode.N then S.Noclip = not S.Noclip; toggleRefs.Noclip(); save() elseif k == Enum.KeyCode.C then S.WalkSpeedOn = not S.WalkSpeedOn; toggleRefs.WalkSpeedOn(); save() end end)) function H.Unload() H.Run = false for _, c in ipairs(H.conns) do pcall(function() c:Disconnect() end) end pcall(function() sg:Destroy() end); pcall(function() espFolder:Destroy() end) local h = myHum() if h and wsWasOn then h.WalkSpeed = 16 end getgenv().RT3H = nil log("unloaded") end log("loaded — RightControl toggles the menu") print("[RT3 Hub] by Stizzyyy · always free & keyless · rscripts.net/@Stizzyyy")