ADVERTISEMENTREMOVE ADS
Hub brenixz
47,153 views
Script Preview
ADVERTISEMENTREMOVE ADS
181 Lines • 5.67 KiB
-- Hub BRENIXZ
-- Criado para executores (Delta, Synapse, etc.)
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
-- Função para criar UI
local function createScreenGui(name)
local gui = Instance.new("ScreenGui")
gui.Name = name
gui.ResetOnSpawn = false
gui.Parent = game.CoreGui
return gui
end
-- Boas vindas
local gui = createScreenGui("BRENIXZ_HUB")
local welcome = Instance.new("TextLabel", gui)
welcome.Size = UDim2.new(0.6, 0, 0.2, 0)
welcome.Position = UDim2.new(0.2, 0, 0.4, 0)
welcome.BackgroundTransparency = 0.3
welcome.BackgroundColor3 = Color3.fromRGB(255,255,255)
welcome.Text = "Seja bem vindo ao Hub BRENIXZ!"
welcome.TextScaled = true
welcome.TextColor3 = Color3.fromRGB(0,0,0)
task.wait(5)
welcome:Destroy()
-- Aba Idioma
local idiomaFrame = Instance.new("Frame", gui)
idiomaFrame.Size = UDim2.new(0.4, 0, 0.3, 0)
idiomaFrame.Position = UDim2.new(0.3, 0, 0.35, 0)
idiomaFrame.BackgroundColor3 = Color3.fromRGB(240,240,240)
idiomaFrame.Active = true
idiomaFrame.Draggable = true
local idiomaTitle = Instance.new("TextLabel", idiomaFrame)
idiomaTitle.Size = UDim2.new(1, 0, 0.3, 0)
idiomaTitle.BackgroundTransparency = 1
idiomaTitle.Text = "Escolha seu idioma / Choose your language"
idiomaTitle.TextScaled = true
idiomaTitle.TextColor3 = Color3.fromRGB(0,0,0)
local ptBtn = Instance.new("TextButton", idiomaFrame)
ptBtn.Size = UDim2.new(0.4, 0, 0.3, 0)
ptBtn.Position = UDim2.new(0.05, 0, 0.5, 0)
ptBtn.Text = "Português"
ptBtn.TextScaled = true
ptBtn.BackgroundColor3 = Color3.fromRGB(200,200,200)
local enBtn = Instance.new("TextButton", idiomaFrame)
enBtn.Size = UDim2.new(0.4, 0, 0.3, 0)
enBtn.Position = UDim2.new(0.55, 0, 0.5, 0)
enBtn.Text = "English"
enBtn.TextScaled = true
enBtn.BackgroundColor3 = Color3.fromRGB(200,200,200)
local lang = "PT"
ptBtn.MouseButton1Click:Connect(function()
lang = "PT"
idiomaFrame:Destroy()
end)
enBtn.MouseButton1Click:Connect(function()
lang = "EN"
idiomaFrame:Destroy()
end)
-- Função texto por idioma
local function T(pt, en)
return lang == "PT" and pt or en
end
-- Criação do Hub Principal
local hubFrame = Instance.new("Frame", gui)
hubFrame.Size = UDim2.new(0.4, 0, 0.5, 0)
hubFrame.Position = UDim2.new(0.3, 0, 0.25, 0)
hubFrame.BackgroundColor3 = Color3.fromRGB(255,255,255)
hubFrame.Active = true
hubFrame.Draggable = true
hubFrame.Visible = false
local hubTitle = Instance.new("TextLabel", hubFrame)
hubTitle.Size = UDim2.new(1, 0, 0.15, 0)
hubTitle.Text = "Hub BRENIXZ"
hubTitle.TextScaled = true
hubTitle.BackgroundColor3 = Color3.fromRGB(200,200,200)
-- Botão Abrir/Fechar
local toggleBtn = Instance.new("TextButton", gui)
toggleBtn.Size = UDim2.new(0.1, 0, 0.05, 0)
toggleBtn.Position = UDim2.new(0, 0, 0.9, 0)
toggleBtn.Text = "Abrir Hub"
toggleBtn.BackgroundColor3 = Color3.fromRGB(180,180,180)
toggleBtn.MouseButton1Click:Connect(function()
hubFrame.Visible = not hubFrame.Visible
toggleBtn.Text = hubFrame.Visible and "Fechar Hub" or "Abrir Hub"
end)
-- Botão Painel ADM
local admBtn = Instance.new("TextButton", hubFrame)
admBtn.Size = UDim2.new(0.8, 0, 0.15, 0)
admBtn.Position = UDim2.new(0.1, 0, 0.3, 0)
admBtn.Text = "Painel ADM"
admBtn.TextScaled = true
admBtn.BackgroundColor3 = Color3.fromRGB(220,220,220)
-- Painel ADM
local admFrame = Instance.new("Frame", gui)
admFrame.Size = UDim2.new(0.4, 0, 0.5, 0)
admFrame.Position = UDim2.new(0.3, 0, 0.25, 0)
admFrame.BackgroundColor3 = Color3.fromRGB(255,255,255)
admFrame.Active = true
admFrame.Draggable = true
admFrame.Visible = false
admBtn.MouseButton1Click:Connect(function()
admFrame.Visible = not admFrame.Visible
end)
-- Dropdown Players
local playerDropdown = Instance.new("TextButton", admFrame)
playerDropdown.Size = UDim2.new(0.8, 0, 0.1, 0)
playerDropdown.Position = UDim2.new(0.1, 0, 0.1, 0)
playerDropdown.Text = T("Selecionar Jogador","Select Player")
playerDropdown.TextScaled = true
playerDropdown.BackgroundColor3 = Color3.fromRGB(230,230,230)
local selectedPlayer = nil
playerDropdown.MouseButton1Click:Connect(function()
local list = Instance.new("Frame", admFrame)
list.Size = UDim2.new(0.8, 0, 0.4, 0)
list.Position = UDim2.new(0.1, 0, 0.2, 0)
list.BackgroundColor3 = Color3.fromRGB(240,240,240)
list.ClipsDescendants = true
for _,plr in ipairs(Players:GetPlayers()) do
local btn = Instance.new("TextButton", list)
btn.Size = UDim2.new(1,0,0,30)
btn.Text = plr.Name
btn.MouseButton1Click:Connect(function()
selectedPlayer = plr
playerDropdown.Text = plr.Name
list:Destroy()
end)
end
end)
-- Funções de Comandos (⚠ só funcionam globalmente com backdoor)
local function jail(p) print("JAILED: "..p.Name) end
local function kill(p) print("KILLED: "..p.Name) end
local function kick(p) print("KICKED: "..p.Name) end
local function ban(p) print("BANNED: "..p.Name) end
local function permban(p) print("PERMBANNED: "..p.Name) end
-- Botões ADM
local cmds = {
{T("Prender","Jail"), jail},
{T("Matar","Kill"), kill},
{T("Expulsar","Kick"), kick},
{T("Banir","Ban"), ban},
{T("Banir Permanentemente","PermBan"), permban},
}
for i,cmd in ipairs(cmds) do
local btn = Instance.new("TextButton", admFrame)
btn.Size = UDim2.new(0.8, 0, 0.1, 0)
btn.Position = UDim2.new(0.1, 0, 0.25 + (i*0.12), 0)
btn.Text = cmd[1]
btn.TextScaled = true
btn.BackgroundColor3 = Color3.fromRGB(230,230,230)
btn.MouseButton1Click:Connect(function()
if selectedPlayer then
cmd[2](selectedPlayer)
end
end)
end
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS
Comments