-- NEBULA HD - PAINEL ADMINISTRADOR
-- Versão: Código Aberto para LocalScript
local Players = game:GetService("Players")
local TeleportService = game:GetService("TeleportService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer
-- Limpeza de versões anteriores para não sobrepor
pcall(function()
if LocalPlayer.PlayerGui:FindFirstChild("NEBULA_HD") then
LocalPlayer.PlayerGui:FindFirstChild("NEBULA_HD"):Destroy()
end
end)
-- Interface Principal
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "NEBULA_HD"
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false
--------------------------------------------------
-- BOTÃO FLUTUANTE (A BOLA BRANCA "HD")
--------------------------------------------------
local OpenButton = Instance.new("TextButton")
OpenButton.Parent = ScreenGui
OpenButton.Size = UDim2.new(0, 60, 0, 60)
OpenButton.Position = UDim2.new(0.02, 0, 0.45, 0)
OpenButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255) -- Branco como pedido
OpenButton.Text = "HD"
OpenButton.TextColor3 = Color3.fromRGB(0, 0, 0) -- Texto preto para contraste
OpenButton.TextScaled = true
OpenButton.Font = Enum.Font.GothamBold
-- Arredondar botão
local OBC = Instance.new("UICorner", OpenButton)
OBC.CornerRadius = UDim.new(1, 0)
-- Tornar o botão arrastável (Draggable)
local dragStart, startPos
OpenButton.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragStart = input.Position
startPos = OpenButton.Position
end
end)
OpenButton.InputChanged:Connect(function(input)
if dragStart and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
local delta = input.Position - dragStart
OpenButton.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
OpenButton.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragStart = nil
end
end)
--------------------------------------------------
-- MENU DE COMANDOS (VIEW COMMANDS)
--------------------------------------------------
local Main = Instance.new("Frame")
Main.Parent = ScreenGui
Main.Size = UDim2.new(0, 370, 0, 330)
Main.Position = UDim2.new(0.5, -185, 0.5, -165)
Main.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
Main.Visible = false
Main.BorderSizePixel = 0
local MC = Instance.new("UICorner", Main)
MC.CornerRadius = UDim.new(0, 10)
-- Barra Superior
local TopBar = Instance.new("Frame")
TopBar.Parent = Main
TopBar.Size = UDim2.new(1, 0, 0, 40)
TopBar.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
local TC = Instance.new("UICorner", TopBar)
TC.CornerRadius = UDim.new(0, 10)
local Title = Instance.new("TextLabel")
Title.Parent = TopBar
Title.Size = UDim2.new(1, 0, 1, 0)
Title.BackgroundTransparency = 1
Title.Text = "HD ADMIN - VIEW COMMANDS"
Title.TextColor3 = Color3.new(1, 1, 1)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 18
--------------------------------------------------
-- ÁREA DE SCROLL (ONDE FICAM OS BOTÕES)
--------------------------------------------------
local Scroll = Instance.new("ScrollingFrame")
Scroll.Parent = Main
Scroll.Size = UDim2.new(1, -20, 1, -60)
Scroll.Position = UDim2.new(0, 10, 0, 50)
Scroll.CanvasSize = UDim2.new(0, 0, 0, 1000) -- Aumente aqui para caber mais comandos
Scroll.ScrollBarThickness = 5
Scroll.BackgroundTransparency = 1
Scroll.BorderSizePixel = 0
local Layout = Instance.new("UIGridLayout")
Layout.Parent = Scroll
Layout.CellPadding = UDim2.new(0, 8, 0, 8)
Layout.CellSize = UDim2.new(0, 165, 0, 45)
--------------------------------------------------
-- FUNÇÃO PARA ADICIONAR COMANDOS RAPIDAMENTE
--------------------------------------------------
local function AddCommand(name, desc, func)
local CmdBtn = Instance.new("TextButton")
CmdBtn.Parent = Scroll
CmdBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 55)
CmdBtn.Text = name
CmdBtn.TextColor3 = Color3.new(1, 1, 1)
CmdBtn.Font = Enum.Font.Gotham
CmdBtn.TextSize = 14
local CC = Instance.new("UICorner", CmdBtn)
CmdBtn.MouseButton1Click:Connect(func)
end
local function getChar() return LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() end
local function getHum() return getChar():WaitForChild("Humanoid") end
--------------------------------------------------
-- LISTA DE COMANDOS (EXEMPLOS)
--------------------------------------------------
AddCommand("Speed 100", "Corre muito", function() getHum().WalkSpeed = 100 end)
AddCommand("Normal Speed", "Velocidade padrão", function() getHum().WalkSpeed = 16 end)
AddCommand("Jump 150", "Pulo alto", function() getHum().JumpPower = 150 end)
AddCommand("Normal Jump", "Pulo padrão", function() getHum().JumpPower = 50 end)
AddCommand("Infinite Jump", "Pula no ar", function()
_G.InfJump = true
game:GetService("UserInputService").JumpRequest:Connect(function()
if _G.InfJump then getHum():ChangeState("Jumping") end
end)
end)
AddCommand("Stop Inf Jump", "Para o pulo infinito", function() _G.InfJump = false end)
AddCommand("Invisible", "Ficar invisível", function()
local c = getChar()
if c:FindFirstChild("LowerTorso") then
c.LowerTorso.Root:Destroy()
end
end)
AddCommand("Reset", "Se matar", function() getChar():BreakJoints() end)
AddCommand("Rejoin", "Reiniciar servidor", function() TeleportService:Teleport(game.PlaceId, LocalPlayer) end)
AddCommand("Sit", "Sentar", function() getHum().Sit = true end)
AddCommand("Fly (Simulado)", "Ativa voo", function() print("Comando de voo acionado") end)
--------------------------------------------------
-- LÓGICA DE ABRIR/FECHAR
--------------------------------------------------
OpenButton.MouseButton1Click:Connect(function()
Main.Visible = not Main.Visible
if Main.Visible then
Main.Size = UDim2.new(0, 0, 0, 0)
TweenService:Create(Main, TweenInfo.new(0.3, Enum.EasingStyle.Back), {Size = UDim2.new(0, 370, 0, 330)}):Play()
end
end)
print("Painel HD Carregado com Sucesso!")
Comments
No comments yet
Be the first to share your thoughts!