pasteblox
Explore
Key systems
Docs
Search scripts
⌘K
Sign in
Explore
Key systems
Docs
Discord
New paste
Paste a Luau script and get a page plus a raw link that works with loadstring.
Or let the script's first comment name it.
Empty
/ 512kb
Language
.luau
.lua
Open file
⌘O
Empty
Limit 512kb
Explore
Key systems
Docs
Explore
Key systems
Docs
Sign in
683 lines · 20.2kb
/ 512kb
Language
.luau
.lua
Open file
⌘O
--[[ ROCKSTAR HUB v1.0.0 — [Atualização] Super Toilet Fight Biblioteca: Redz Library (V5 remake) Compatível: PC e Mobile ]] local ENV = (getgenv and getgenv()) or _G -- Evita duplicação: se já existe uma instância, destrói antes de criar outra if ENV.RockstarHub and ENV.RockstarHub.Destroy then pcall(ENV.RockstarHub.Destroy) end ---------------------------------------------------------------- -- SERVIÇOS ---------------------------------------------------------------- local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local VirtualUser = game:GetService("VirtualUser") local CoreGui = game:GetService("CoreGui") local MarketplaceService = game:GetService("MarketplaceService") local LP = Players.LocalPlayer ---------------------------------------------------------------- -- CONFIGURAÇÃO ---------------------------------------------------------------- local CONFIG = { Name = "ROCKSTAR HUB", Version = "1.0.0", Credits = "Rockstar Hub", GameDev = "dowfr39", IconId = "rbxassetid://104086931591455", IconNumber = "104086931591455", LibURL = "https://raw.githubusercontent.com/minhdepzai-v/LibraryRobloc/refs/heads/main/RedzLibrary.lua", -- Remote de morph (fornecido pelo usuário) MorphKeyA = "AAAAAAAAAwakjdhasjkdhu wihcniuawnwuirncyuircwncriua", MorphKeyB = "whobbbbbbbbbrgjkshekwhfeukehfuiewffukshdfkjsh", -- Para adicionar novos personagens, basta incluir o nome nas listas abaixo Morphs = { Characters = { "Poly", "Camera Man", "Speaker Head", "Tv Head", "Plunger Camera" }, Titans = { "Titan Speaker", "Titan Camera", "Titan Tv Head" }, Upgraded = { "Upgraded Titan Speaker", "Upgraded Titan Camera", "Upgraded Titan Tv Head" }, }, } local COLORS = { Vermelho = Color3.fromRGB(255, 30, 50), Branco = Color3.fromRGB(255, 255, 255), Verde = Color3.fromRGB(60, 255, 100), Azul = Color3.fromRGB(60, 140, 255), Amarelo = Color3.fromRGB(255, 220, 50), Roxo = Color3.fromRGB(170, 70, 255), Ciano = Color3.fromRGB(50, 230, 255), } local COLOR_NAMES = { "Vermelho", "Branco", "Verde", "Azul", "Amarelo", "Roxo", "Ciano" } ---------------------------------------------------------------- -- UTILIDADES ---------------------------------------------------------------- local Hub = { Alive = true } local function newBag() return { list = {}, add = function(self, c) self.list[#self.list + 1] = c return c end, clear = function(self) for _, c in ipairs(self.list) do pcall(function() c:Disconnect() end) end table.clear(self.list) end, } end local mainBag = newBag() -- conexões globais do hub local function safe(fn, ...) local ok, err = pcall(fn, ...) if not ok then warn("[Rockstar Hub] " .. tostring(err)) end return ok, err end local function guiParent() if gethui then local ok, h = pcall(gethui) if ok and h then return h end end local ok = pcall(function() return CoreGui.Name end) if ok then return CoreGui end return LP:WaitForChild("PlayerGui") end local function guiRoots() local roots = {} if gethui then local ok, h = pcall(gethui) if ok and h then roots[#roots + 1] = h end end roots[#roots + 1] = CoreGui local pg = LP:FindFirstChildOfClass("PlayerGui") if pg then roots[#roots + 1] = pg end return roots end local function getChar() return LP.Character end local function getHum() local c = getChar() return c and c:FindFirstChildOfClass("Humanoid") end local function getRoot() local c = getChar() return c and c:FindFirstChild("HumanoidRootPart") end ---------------------------------------------------------------- -- CARREGAR REDZ LIBRARY ---------------------------------------------------------------- local okLib, redz = pcall(function() return loadstring(game:HttpGet(CONFIG.LibURL))() end) if not okLib or not redz then warn("[Rockstar Hub] Falha ao carregar a Redz Library: " .. tostring(redz)) return end pcall(function() redz:SetTheme("Darker") end) local function notify(title, text, t) safe(function() redz:MakeNotifi({ Title = title, Text = text, Time = t or 4 }) end) end local Window = redz:MakeWindow({ Title = CONFIG.Name, SubTitle = "Super Toilet Fight • v" .. CONFIG.Version, SaveFolder = "RockstarHub_STF", }) -- Ícone flutuante nativo da Redz (arrastável, abre/fecha o hub ao clicar) safe(function() Window:AddMinimizeButton({ Button = { Image = CONFIG.IconId, BackgroundTransparency = 0 }, Corner = { CornerRadius = UDim.new(0, 14) }, }) end) local function makeTab(title, icon) local ok, tab = pcall(function() return Window:MakeTab({ title, icon }) end) if ok and tab then return tab end return Window:MakeTab({ title }) end local function setDesc(obj, text) if obj then pcall(function() obj:SetDesc(text) end) end end -- Localiza o botão do ícone flutuante (cache) local function findIcon() if Hub.Icon and Hub.Icon.Parent then return Hub.Icon end for _, root in ipairs(guiRoots()) do local ok, desc = pcall(function() return root:GetDescendants() end) if ok then for _, d in ipairs(desc) do if (d:IsA("ImageButton") or d:IsA("ImageLabel")) and tostring(d.Image):find(CONFIG.IconNumber, 1, true) then local target = d:IsA("GuiButton") and d or d:FindFirstAncestorWhichIsA("GuiButton") or d Hub.Icon = target return target end end end end return nil end local function toggleHubViaIcon() local icon = findIcon() if not icon or not getconnections then return false end for _, sig in ipairs({ "Activated", "MouseButton1Click" }) do local ok, conns = pcall(getconnections, icon[sig]) if ok and conns and #conns > 0 then for _, c in ipairs(conns) do if not pcall(function() c:Fire() end) then pcall(function() c.Function() end) end end return true end end return false end ---------------------------------------------------------------- -- ESTADO / FORWARD DECLARATIONS ---------------------------------------------------------------- local Farm = { On = false, Target = "Todos", Interval = 0.3, Teleport = true, Attack = true, Distance = 4, Errors = 0, Live = {}, Names = {}, Token = nil, } local ESP = { On = false, Name = true, Distance = true, Highlight = true, Fill = COLORS.Vermelho, Outline = COLORS.Branco, FillTrans = 0.5, MaxDist = 1000, Entries = {}, } local Misc = { WalkOn = false, Walk = 16, JumpOn = false, Jump = 50, HotKey = "RightShift" } local Morph = { Selected = nil, Auto = false } local farmBag, espBag, humBag, miscBag = newBag(), newBag(), newBag(), newBag() local statusPara, farmStatusPara, morphSelPara local farmToggle local espFolder, fpsGui, fpsConn, afkConn local function updateStatus() local parts = { "Hub: online", "Farm: " .. (Farm.On and "ligado" or "desligado"), "ESP: " .. (ESP.On and "ligado" or "desligado"), "Morph auto: " .. (Morph.Auto and "ligado" or "desligado"), } setDesc(statusPara, table.concat(parts, " • ")) end ---------------------------------------------------------------- -- ABA: HOME ---------------------------------------------------------------- safe(function() local Tab = makeTab("Home", "home") local gameName = "Super Toilet Fight" pcall(function() gameName = MarketplaceService:GetProductInfo(game.PlaceId).Name end) Tab:AddSection({ "Rockstar Hub" }) Tab:AddParagraph({ "Bem-vindo, " .. LP.DisplayName, "@" .. LP.Name .. " • UserId " .. LP.UserId }) Tab:AddParagraph({ "Jogo", gameName .. "\nPlaceId: " .. game.PlaceId .. "\nDesenvolvedor: " .. CONFIG.GameDev }) statusPara = Tab:AddParagraph({ "Status do script", "Hub: online" }) Tab:AddParagraph({ "Versão", "v" .. CONFIG.Version }) Tab:AddParagraph({ "Créditos", CONFIG.Credits }) Tab:AddButton({ "Informações", function() notify(CONFIG.Name, "Use o ícone flutuante para abrir/fechar. Abas: Auto Farm, ESP, Misc e Auto Morph.", 6) end }) pcall(function() Window:SelectTab(Tab) end) updateStatus() end) ---------------------------------------------------------------- -- ABA: AUTO FARM ---------------------------------------------------------------- local stopFarm safe(function() local Tab = makeTab("Auto Farm", "swords") local function mobsFolder() return RS:FindFirstChild("Mobs") end local function refreshNames() table.clear(Farm.Names) local list = {} local f = mobsFolder() if f then for _, c in ipairs(f:GetChildren()) do if not Farm.Names[c.Name] then Farm.Names[c.Name] = true list[#list + 1] = c.Name end end end table.sort(list) table.insert(list, 1, "Todos") return list end local optionList = refreshNames() local dropdown local function syncDropdown() local new = refreshNames() if dropdown then for _, old in ipairs(optionList) do pcall(function() dropdown:Remove(old) end) end for _, opt in ipairs(new) do pcall(function() dropdown:Add(opt) end) end pcall(function() dropdown:Set(Farm.Target) end) end optionList = new return #new - 1 end local function tryRegister(inst) if inst:IsA("Humanoid") then local m = inst.Parent if m and m:IsA("Model") and Farm.Names[m.Name] and not Players:GetPlayerFromCharacter(m) then Farm.Live[m] = inst end end end local function pickTarget(fromPos) local best, bestRoot, bestDist for m, h in pairs(Farm.Live) do if not m:IsDescendantOf(workspace) or h.Health <= 0 then Farm.Live[m] = nil elseif Farm.Target == "Todos" or m.Name == Farm.Target then local root = m:FindFirstChild("HumanoidRootPart") or m.PrimaryPart if root then local d = (root.Position - fromPos).Magnitude if not bestDist or d < bestDist then best, bestRoot, bestDist = m, root, d end end end end return best, bestRoot end local function farmStep() local char = getChar() local hrp = getRoot() local hum = getHum() if not char or not hrp or not hum or hum.Health <= 0 then return "aguardando personagem" end local m, root = pickTarget(hrp.Position) if not m then return "nenhum toilet encontrado" end if Farm.Teleport then local pos = (root.CFrame * CFrame.new(0, 0, Farm.Distance)).Position hrp.CFrame = CFrame.lookAt(pos, root.Position) end if Farm.Attack then local tool = char:FindFirstChildOfClass("Tool") if not tool then local bp = LP:FindFirstChildOfClass("Backpack") local t = bp and bp:FindFirstChildOfClass("Tool") if t then hum:EquipTool(t) tool = t end end if tool then tool:Activate() end end return "farmando: " .. m.Name end stopFarm = function() if not Farm.On then return end Farm.On = false Farm.Token = nil farmBag:clear() table.clear(Farm.Live) setDesc(farmStatusPara, "Parado") pcall(function() if farmToggle then farmToggle:Set(false) end end) updateStatus() end local function startFarm() if Farm.On then return end refreshNames() if next(Farm.Names) == nil then notify("Auto Farm", "Pasta Mobs não encontrada ou vazia em ReplicatedStorage.", 5) end Farm.On = true Farm.Errors = 0 table.clear(Farm.Live) task.spawn(function() for _, d in ipairs(workspace:GetDescendants()) do tryRegister(d) end end) farmBag:add(workspace.DescendantAdded:Connect(tryRegister)) local token = {} Farm.Token = token task.spawn(function() local last = "" while Farm.On and Farm.Token == token and Hub.Alive do local ok, res = pcall(farmStep) if ok then Farm.Errors = 0 if res ~= last then last = res setDesc(farmStatusPara, "Ativo • " .. res) end else Farm.Errors += 1 warn("[Rockstar Hub] Auto Farm: " .. tostring(res)) if Farm.Errors >= 5 then notify("Auto Farm", "Parado após 5 erros seguidos. Veja o console (F9).", 6) setDesc(farmStatusPara, "Erro • verifique o console") stopFarm() break end end task.wait(Farm.Interval) end end) updateStatus() end Tab:AddSection({ "Toilets" }) dropdown = Tab:AddDropdown({ Name = "Toilet alvo", Description = "Lidos da pasta Mobs do ReplicatedStorage", Options = optionList, Default = "Todos", Callback = function(v) Farm.Target = v end, }) Tab:AddButton({ "Atualizar lista de toilets", function() local n = syncDropdown() notify("Auto Farm", n .. " toilet(s) detectado(s).", 3) end }) Tab:AddSection({ "Automação" }) farmStatusPara = Tab:AddParagraph({ "Indicador", "Parado" }) farmToggle = Tab:AddToggle({ Name = "Ativar Auto Farm", Default = false, Callback = function(v) if v then startFarm() else stopFarm() end end, }) Tab:AddToggle({ Name = "Teleportar até o alvo", Default = true, Callback = function(v) Farm.Teleport = v end, }) Tab:AddToggle({ Name = "Atacar com a ferramenta equipada", Default = true, Callback = function(v) Farm.Attack = v end, }) Tab:AddSlider({ Name = "Intervalo (segundos)", Min = 0.1, Max = 2, Increase = 0.1, Default = 0.3, Callback = function(v) Farm.Interval = v end, }) Tab:AddSlider({ Name = "Distância do alvo (studs)", Min = 2, Max = 15, Increase = 1, Default = 4, Callback = function(v) Farm.Distance = v end, }) -- Atualização automática da lista quando a pasta Mobs mudar local f = mobsFolder() if f then mainBag:add(f.ChildAdded:Connect(function() task.defer(syncDropdown) end)) mainBag:add(f.ChildRemoved:Connect(function() task.defer(syncDropdown) end)) end end) ---------------------------------------------------------------- -- ABA: ESP ---------------------------------------------------------------- local clearESP safe(function() local Tab = makeTab("ESP", "eye") espFolder = Instance.new("Folder") espFolder.Name = "RockstarESP" espFolder.Parent = guiParent() local function removeEntry(plr) local e = ESP.Entries[plr] if e then pcall(function() e.hl:Destroy() end) pcall(function() e.bb:Destroy() end) ESP.Entries[plr] = nil end end local function styleEntry(e) e.hl.FillColor = ESP.Fill e.hl.OutlineColor = ESP.Outline e.hl.FillTransparency = ESP.FillTrans e.lbl.TextColor3 = ESP.Fill end local function buildEntry(plr) if plr == LP then return end local char = plr.Character if not char then return end local head = char:FindFirstChild("Head") or char:FindFirstChild("HumanoidRootPart") if not head then return end removeEntry(plr) local hl = Instance.new("Highlight") hl.Adornee = char hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.OutlineTransparency = 0 hl.Parent = espFolder local bb = Instance.new("BillboardGui") bb.Adornee = head bb.AlwaysOnTop = true bb.Size = UDim2.fromOffset(180, 34) bb.StudsOffset = Vector3.new(0, 2.6, 0) bb.Parent = espFolder local lbl = Instance.new("TextLabel") lbl.BackgroundTransparency = 1 lbl.Size = UDim2.fromScale(1, 1) lbl.Font = Enum.Font.GothamBold lbl.TextSize = 14 lbl.TextStrokeTransparency = 0.3 lbl.Text = plr.DisplayName lbl.Parent = bb local e = { hl = hl, bb = bb, lbl = lbl, char = char } ESP.Entries[plr] = e styleEntry(e) end local function hookPlayer(plr) if plr == LP then return end espBag:add(plr.CharacterAdded:Connect(function() task.wait(0.5) if ESP.On then buildEntry(plr) end end)) if plr.Character then buildEntry(plr) end end local acc = 0 local function update(dt) acc += dt if acc < 0.15 then return end acc = 0 local myRoot = getRoot() for plr, e in pairs(ESP.Entries) do local char = plr.Character if char ~= e.char or not char or not char.Parent then task.defer(buildEntry, plr) elseif myRoot then local root = char:FindFirstChild("HumanoidRootPart") if root then local dist = (root.Position - myRoot.Position).Magnitude local vis = dist <= ESP.MaxDist e.hl.Enabled = ESP.Highlight and vis e.bb.Enabled = (ESP.Name or ESP.Distance) and vis local text = "" if ESP.Name then text = plr.DisplayName end if ESP.Distance then text = text .. (text ~= "" and "\n" or "") .. math.floor(dist) .. " studs" end e.lbl.Text = text end end end end local function enableESP() if ESP.On then return end ESP.On = true for _, p in ipairs(Players:GetPlayers()) do hookPlayer(p) end espBag:add(Players.PlayerAdded:Connect(hookPlayer)) espBag:add(Players.PlayerRemoving:Connect(removeEntry)) espBag:add(RunService.Heartbeat:Connect(update)) updateStatus() end clearESP = function() ESP.On = false espBag:clear() for plr in pairs(ESP.Entries) do removeEntry(plr) end updateStatus() end local function restyleAll() for _, e in pairs(ESP.Entries) do styleEntry(e) end end Tab:AddSection({ "Ativação" }) Tab:AddToggle({ Name = "Player ESP", Description = "Liga/desliga todo o sistema de ESP", Default = false, Callback = function(v) if v then enableESP() else clearESP() end end, }) Tab:AddToggle({ Name = "Name ESP", Default = true, Callback = function(v) ESP.Name = v end }) Tab:AddToggle({ Name = "Distance ESP", Default = true, Callback = function(v) ESP.Distance = v end }) Tab:AddToggle({ Name = "Highlight ESP", Default = true, Callback = function(v) ESP.Highlight = v end }) Tab:AddSection({ "Cores e visibilidade" }) Tab:AddDropdown({ Name = "Cor do preenchimento / texto", Options = COLOR_NAMES, Default = "Vermelho", Callback = function(v) ESP.Fill = COLORS[v] or ESP.Fill; restyleAll() end, }) Tab:AddDropdown({ Name = "Cor do contorno", Options = COLOR_NAMES, Default = "Branco", Callback = function(v) ESP.Outline = COLORS[v] or ESP.Outline; restyleAll() end, }) Tab:AddSlider({ Name = "Transparência do preenchimento (%)", Min = 0, Max = 100, Increase = 5, Default = 50, Callback = function(v) ESP.FillTrans = v / 100; restyleAll() end, }) Tab:AddSlider({ Name = "Distância máxima (studs)", Min = 50, Max = 3000, Increase = 50, Default = 1000, Callback = function(v) ESP.MaxDist = v end, }) end) ---------------------------------------------------------------- -- ABA: MISC ---------------------------------------------------------------- safe(function() local Tab = makeTab("Misc", "settings") local function applyHumanoid() local hum = getHum() if not hum then return end if Misc.WalkOn then hum.WalkSpeed = Misc.Walk end if Misc.JumpOn then hum.UseJumpPower = true hum.JumpPower = Misc.Jump end end local function bindHumanoid(char) humBag:clear() local hum = char:WaitForChild("Humanoid", 5) if not hum then return end humBag:add(hum:GetPropertyChangedSignal("WalkSpeed"):Connect(function() if Misc.WalkOn and hum.WalkSpeed ~= Misc.Walk then hum.WalkSpeed = Misc.Walk end end)) humBag:add(hum:GetPropertyChangedSignal("JumpPower"):Connect(function() if Misc.JumpOn and hum.JumpPower ~= Misc.Jump then hum.JumpPower = Misc.Jump end end)) applyHumanoid() end mainBag:add(LP.CharacterAdded:Connect(bindHumanoid)) if LP.Character then task.spawn(bindHumanoid, LP.Character) end local function setFPS(on) if on then if fpsGui then return end fpsGui = Instance.new("ScreenGui") fpsGui.Name = "RockstarFPS" fpsGui.ResetOnSpawn = false fpsGui.IgnoreGuiInset = true fpsGui.DisplayOrder = 5 fpsGui.Parent = guiParent() local lbl = Instance.new("TextLabel") lbl.AnchorPoint = Vector2.new(0.5, 0) lbl.Position = UDim2.new(0.5, 0, 0, 6) lbl.Size = UDim2.fromOffset(86, 22) lbl.BackgroundColor3 = Color3.fromRGB(10, 10, 10) lbl.BackgroundTransparency = 0.25 lbl.TextColor3 = Color3.fromRGB(255, 40, 60) lbl.Font = Enum.Font.GothamBold lbl.TextSize = 13 lbl.Text = "FPS: --" lbl.Active = false lbl.Parent = fpsGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = lbl local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(220, 20, 40) stroke.Thickness = 1 stroke.Parent = lbl local frames, last = 0, os.clock() fpsConn = RunService.RenderStepped:Connect(function() frames += 1 local now = os.clock()
683 lines · 20.2kb
Limit 512kb