Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- 🛠️ Admin Panel GUI with:
- ✔️ Mobile + PC support
- ✔️ Dragging
- ✔️ Minimize / Close / Reopen
- ✔️ Player dropdown
- ✔️ JumpTo, Kill, LoopKill, Fling, Spin, Fly, ESP, Noclip, Invisible, Untouchable, WalkSpeed, JumpPower
- ✔️ Command Console
- ]]--
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- -- GUI setup
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- gui.Name = "AdminPanel"
- gui.ResetOnSpawn = false
- -- Main Frame
- local frame = Instance.new("Frame", gui)
- frame.Size = UDim2.new(0, 240, 0, 600)
- frame.Position = UDim2.new(0, 20, 0.4, -200)
- frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- frame.BorderSizePixel = 0
- frame.Active = true
- frame.Draggable = true
- -- Drag for mobile
- local dragging, dragStart, startPos = false
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then dragging = false end
- end)
- end
- end)
- frame.InputChanged:Connect(function(input)
- if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
- -- Header
- local header = Instance.new("TextLabel", frame)
- header.Size = UDim2.new(1, 0, 0, 30)
- header.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
- header.Text = "Admin Panel"
- header.TextColor3 = Color3.new(1,1,1)
- header.TextScaled = true
- header.Font = Enum.Font.GothamBold
- -- Minimize Button
- local minimize = Instance.new("TextButton", frame)
- minimize.Size = UDim2.new(0, 30, 0, 30)
- minimize.Position = UDim2.new(1, -60, 0, 0)
- minimize.Text = "-"
- minimize.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- minimize.TextColor3 = Color3.new(1,1,1)
- -- Close Button
- local close = Instance.new("TextButton", frame)
- close.Size = UDim2.new(0, 30, 0, 30)
- close.Position = UDim2.new(1, -30, 0, 0)
- close.Text = "X"
- close.BackgroundColor3 = Color3.fromRGB(40, 0, 0)
- close.TextColor3 = Color3.new(1,1,1)
- -- Reopen button
- local reopen = Instance.new("TextButton", gui)
- reopen.Size = UDim2.new(0, 100, 0, 30)
- reopen.Position = UDim2.new(0, 20, 0, 20)
- reopen.Text = "Open Admin"
- reopen.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- reopen.TextColor3 = Color3.new(1,1,1)
- reopen.Visible = false
- minimize.MouseButton1Click:Connect(function()
- for _, v in pairs(frame:GetChildren()) do
- if v ~= header and v ~= minimize and v ~= close then
- v.Visible = not v.Visible
- end
- end
- end)
- close.MouseButton1Click:Connect(function()
- frame.Visible = false
- reopen.Visible = true
- end)
- reopen.MouseButton1Click:Connect(function()
- frame.Visible = true
- reopen.Visible = false
- end)
- -- Button Creator
- local buttonY = 40
- local function makeButton(text, callback)
- local btn = Instance.new("TextButton", frame)
- btn.Size = UDim2.new(0, 200, 0, 30)
- btn.Position = UDim2.new(0, 20, 0, buttonY)
- btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- btn.TextColor3 = Color3.new(1,1,1)
- btn.Font = Enum.Font.Gotham
- btn.TextScaled = true
- btn.Text = text
- btn.MouseButton1Click:Connect(callback)
- buttonY += 35
- end
- -- Player Dropdown
- local dropdown = Instance.new("TextButton", frame)
- dropdown.Size = UDim2.new(0, 200, 0, 30)
- dropdown.Position = UDim2.new(0, 20, 0, buttonY)
- dropdown.Text = "Select Player"
- dropdown.BackgroundColor3 = Color3.fromRGB(50,50,50)
- dropdown.TextColor3 = Color3.new(1,1,1)
- dropdown.TextScaled = true
- local selectedName = nil
- buttonY += 35
- dropdown.MouseButton1Click:Connect(function()
- local menu = Instance.new("Frame", frame)
- menu.Size = UDim2.new(0, 200, 0, 150)
- menu.Position = dropdown.Position + UDim2.new(0, 0, 0, 30)
- menu.BackgroundColor3 = Color3.fromRGB(25,25,25)
- menu.ClipsDescendants = true
- for _, plr in pairs(game.Players:GetPlayers()) do
- local item = Instance.new("TextButton", menu)
- item.Size = UDim2.new(1, 0, 0, 25)
- item.Text = plr.Name
- item.BackgroundColor3 = Color3.fromRGB(60,60,60)
- item.TextColor3 = Color3.new(1,1,1)
- item.TextScaled = true
- item.MouseButton1Click:Connect(function()
- selectedName = plr.Name
- dropdown.Text = "Selected: " .. plr.Name
- menu:Destroy()
- end)
- end
- end)
- -- Admin Actions
- local function getTargetHRP()
- if not selectedName then return nil end
- local target = game.Players:FindFirstChild(selectedName)
- return target and target.Character and target.Character:FindFirstChild("HumanoidRootPart")
- end
- makeButton("Kill", function()
- local hrp = getTargetHRP()
- if hrp then
- local hum = hrp.Parent:FindFirstChild("Humanoid")
- if hum then hum.Health = 0 end
- end
- end)
- makeButton("Fling", function()
- local hrp = getTargetHRP()
- if hrp then hrp.Velocity = Vector3.new(0, 9999, 0) end
- end)
- makeButton("Spin", function()
- local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
- if hrp then
- coroutine.wrap(function()
- while true do
- hrp.CFrame *= CFrame.Angles(0, math.rad(15), 0)
- task.wait()
- end
- end)()
- end
- end)
- makeButton("ESP", function()
- for _, v in pairs(game.Players:GetPlayers()) do
- if v ~= player and v.Character and not v.Character:FindFirstChild("ESP") then
- local esp = Instance.new("BillboardGui", v.Character)
- esp.Name = "ESP"
- esp.Adornee = v.Character:FindFirstChild("Head")
- esp.Size = UDim2.new(0,100,0,40)
- esp.AlwaysOnTop = true
- local label = Instance.new("TextLabel", esp)
- label.Size = UDim2.new(1,0,1,0)
- label.Text = v.Name
- label.BackgroundTransparency = 1
- label.TextColor3 = Color3.new(1,0,0)
- label.TextScaled = true
- end
- end
- end)
- makeButton("Invisible", function()
- for _, p in pairs(player.Character:GetDescendants()) do
- if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
- p.Transparency = 1
- end
- end
- end)
- makeButton("Noclip", function()
- game:GetService("RunService").Stepped:Connect(function()
- for _, p in pairs(player.Character:GetDescendants()) do
- if p:IsA("BasePart") then p.CanCollide = false end
- end
- end)
- end)
- -- Command Console
- local cmdBox = Instance.new("TextBox", frame)
- cmdBox.Size = UDim2.new(0, 200, 0, 30)
- cmdBox.Position = UDim2.new(0, 20, 0, buttonY)
- cmdBox.PlaceholderText = "Command: kill PlayerName"
- cmdBox.BackgroundColor3 = Color3.fromRGB(60,60,60)
- cmdBox.TextColor3 = Color3.new(1,1,1)
- cmdBox.TextScaled = true
- cmdBox.Font = Enum.Font.Gotham
- buttonY += 35
- makeButton("Run Command", function()
- local input = cmdBox.Text
- local parts = string.split(input, " ")
- local cmd = parts[1]
- local targetName = parts[2]
- local target = game.Players:FindFirstChild(targetName or "")
- if cmd == "kill" and target then
- local hum = target.Character and target.Character:FindFirstChild("Humanoid")
- if hum then hum.Health = 0 end
- elseif cmd == "fling" and target then
- local hrp = target.Character and target.Character:FindFirstChild("HumanoidRootPart")
- if hrp then hrp.Velocity = Vector3.new(9999,9999,9999) end
- elseif cmd == "tp" and target then
- local myHRP = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
- local trgHRP = target.Character and target.Character:FindFirstChild("HumanoidRootPart")
- if myHRP and trgHRP then myHRP.CFrame = trgHRP.CFrame + Vector3.new(0,5,0) end
- end
- end)
- print("Admin Panel Loaded")
Advertisement
Add Comment
Please, Sign In to add comment