Rockstar Hub[BETA]
About
Esse é um script brasileiro atualmente em beta para STF (super toilet fight) com várias funções
Script
pbx pull dfhgrjc48trockstar-hub-beta.luau683 lines · 20.2kb
--[[
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
Lines 1–300 of 683Open raw Find-in-page only searches the lines loaded so far. Show all loads the rest.
Changelog
1 version