Script
-- Admin Panel V2
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AdminPanelV2"
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false
local MainFrame = Instance.new("Frame")
MainFrame.Parent = ScreenGui
MainFrame.Size = UDim2.new(0, 320, 0, 380)
MainFrame.Position = UDim2.new(0.5, -160, 0.5, -190)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 12)
local Header = Instance.new("Frame", MainFrame)
Header.Size = UDim2.new(1, 0, 0, 40)
Header.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
Instance.new("UICorner", Header).CornerRadius = UDim.new(0, 12)
local Title = Instance.new("TextLabel", Header)
Title.Text = "Admin Panel V2"
Title.Font = Enum.Font.GothamBold
Title.TextSize = 18
Title.TextColor3 = Color3.new(1,1,1)
Title.Size = UDim2.new(1, -80, 1, 0)
Title.Position = UDim2.new(0, 10, 0, 0)
Title.BackgroundTransparency = 1
Title.TextXAlignment = Enum.TextXAlignment.Left
local CloseBtn = Instance.new("TextButton", Header)
CloseBtn.Size = UDim2.new(0, 30, 0, 30)
CloseBtn.Position = UDim2.new(1, -35, 0.1, 0)
CloseBtn.BackgroundColor3 = Color3.fromRGB(220,60,60)
CloseBtn.Text = "X"
CloseBtn.TextColor3 = Color3.new(1,1,1)
CloseBtn.Font = Enum.Font.GothamBold
CloseBtn.TextSize = 14
Instance.new("UICorner", CloseBtn).CornerRadius = UDim.new(1, 0)
local MinBtn = Instance.new("TextButton", Header)
MinBtn.Size = UDim2.new(0, 30, 0, 30)
MinBtn.Position = UDim2.new(1, -70, 0.1, 0)
MinBtn.BackgroundColor3 = Color3.fromRGB(80,80,200)
MinBtn.Text = "-"
MinBtn.TextColor3 = Color3.new(1,1,1)
MinBtn.Font = Enum.Font.GothamBold
MinBtn.TextSize = 18
Instance.new("UICorner", MinBtn).CornerRadius = UDim.new(1, 0)
local minimized = false
MinBtn.MouseButton1Click:Connect(function()
if minimized then
local tween = TweenService:Create(MainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0,320,0,380)})
tween:Play()
minimized = false
else
local tween = TweenService:Create(MainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0,200,0,40)})
tween:Play()
minimized = true
end
end)
local Scrolling = Instance.new("ScrollingFrame", MainFrame)
Scrolling.Size = UDim2.new(1, -20, 1, -50)
Scrolling.Position = UDim2.new(0, 10, 0, 45)
Scrolling.CanvasSize = UDim2.new(0, 0, 5, 0)
Scrolling.ScrollBarThickness = 6
Scrolling.BackgroundTransparency = 1
local Layout = Instance.new("UIListLayout", Scrolling)
Layout.Padding = UDim.new(0, 8)
local Popup = Instance.new("Frame")
Popup.Parent = ScreenGui
Popup.Size = UDim2.new(0, 250, 0, 120)
Popup.Position = UDim2.new(0.5, -125, 0.5, -60)
Popup.BackgroundColor3 = Color3.fromRGB(40,40,40)
Popup.Visible = false
Instance.new("UICorner", Popup).CornerRadius = UDim.new(0, 12)
local PopupLabel = Instance.new("TextLabel", Popup)
PopupLabel.Size = UDim2.new(1, 0, 0, 30)
PopupLabel.BackgroundTransparency = 1
PopupLabel.Text = "Enter Username:"
PopupLabel.Font = Enum.Font.GothamBold
PopupLabel.TextSize = 16
PopupLabel.TextColor3 = Color3.new(1,1,1)
local InputBox = Instance.new("TextBox", Popup)
InputBox.Size = UDim2.new(1, -20, 0, 30)
InputBox.Position = UDim2.new(0, 10, 0, 40)
InputBox.BackgroundColor3 = Color3.fromRGB(55,55,55)
InputBox.PlaceholderText = "Username..."
InputBox.TextColor3 = Color3.new(1,1,1)
InputBox.Font = Enum.Font.Gotham
InputBox.TextSize = 14
Instance.new("UICorner", InputBox).CornerRadius = UDim.new(0, 8)
local OkBtn = Instance.new("TextButton", Popup)
OkBtn.Size = UDim2.new(0.45, 0, 0, 30)
OkBtn.Position = UDim2.new(0.05, 0, 1, -40)
OkBtn.BackgroundColor3 = Color3.fromRGB(70,130,250)
OkBtn.Text = "OK"
OkBtn.TextColor3 = Color3.new(1,1,1)
OkBtn.Font = Enum.Font.GothamBold
OkBtn.TextSize = 14
Instance.new("UICorner", OkBtn).CornerRadius = UDim.new(0, 8)
local CancelBtn = Instance.new("TextButton", Popup)
CancelBtn.Size = UDim2.new(0.45, 0, 0, 30)
CancelBtn.Position = UDim2.new(0.5, 0, 1, -40)
CancelBtn.BackgroundColor3 = Color3.fromRGB(200,50,50)
CancelBtn.Text = "Cancel"
CancelBtn.TextColor3 = Color3.new(1,1,1)
CancelBtn.Font = Enum.Font.GothamBold
CancelBtn.TextSize = 14
Instance.new("UICorner", CancelBtn).CornerRadius = UDim.new(0, 8)
local function askUsername(callback)
Popup.Visible = true
OkBtn.MouseButton1Click:Once(function()
Popup.Visible = false
callback(InputBox.Text)
InputBox.Text = ""
end)
CancelBtn.MouseButton1Click:Once(function()
Popup.Visible = false
InputBox.Text = ""
end)
end
local function createButton(name, needsInput, callback)
local Btn = Instance.new("TextButton", Scrolling)
Btn.Size = UDim2.new(1, -10, 0, 40)
Btn.BackgroundColor3 = Color3.fromRGB(45,45,45)
Btn.TextColor3 = Color3.new(1,1,1)
Btn.Font = Enum.Font.GothamBold
Btn.TextSize = 16
Btn.Text = name
Instance.new("UICorner", Btn).CornerRadius = UDim.new(0, 8)
Btn.MouseEnter:Connect(function()
TweenService:Create(Btn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(70,70,120)}):Play()
end)
Btn.MouseLeave:Connect(function()
TweenService:Create(Btn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(45,45,45)}):Play()
end)
Btn.MouseButton1Click:Connect(function()
if needsInput then
askUsername(callback)
else
callback()
end
end)
end
local followLoop, tpLoop, afkLoop, swimLoop = nil, nil, nil, nil
createButton("Teleport To Player", true, function(name)
local target = Players:FindFirstChild(name)
if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
LocalPlayer.Character:MoveTo(target.Character.HumanoidRootPart.Position + Vector3.new(2,0,2))
end
end)
createButton("Follow Player", true, function(name)
if followLoop then task.cancel(followLoop) followLoop = nil return end
local target = Players:FindFirstChild(name)
if target then
followLoop = task.spawn(function()
while true do
if target.Character and LocalPlayer.Character and target.Character:FindFirstChild("HumanoidRootPart") then
LocalPlayer.Character:MoveTo(target.Character.HumanoidRootPart.Position + Vector3.new(2,0,2))
end
task.wait(0.3)
end
end)
end
end)
createButton("Unfollow", false, function()
if followLoop then task.cancel(followLoop) followLoop = nil end
end)
createButton("God Mode", false, function()
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
LocalPlayer.Character:FindFirstChildOfClass("Humanoid").MaxHealth = math.huge
LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Health = math.huge
end
end)
createButton("Grab All Tools", false, function()
for _,tool in pairs(workspace:GetDescendants()) do
if tool:IsA("Tool") then
tool.Parent = LocalPlayer.Backpack
end
end
end)
createButton("Back To Spawn", false, function()
if LocalPlayer.Character then
LocalPlayer.Character:MoveTo(workspace.FallenPartsDestroyHeight * Vector3.new(0,0,0))
end
end)
createButton("ForceField", false, function()
Instance.new("ForceField", LocalPlayer.Character)
end)
createButton("View Player", true, function(name)
local target = Players:FindFirstChild(name)
if target and target.Character then
workspace.CurrentCamera.CameraSubject = target.Character:FindFirstChildWhichIsA("Humanoid")
end
end)
createButton("Unview", false, function()
if LocalPlayer.Character then
workspace.CurrentCamera.CameraSubject = LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid")
end
end)
createButton("AFK Mode (Spin)", false, function()
if afkLoop then
task.cancel(afkLoop)
afkLoop = nil
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
LocalPlayer.Character.HumanoidRootPart.Orientation = Vector3.new(0,0,0)
end
else
afkLoop = task.spawn(function()
while true do
local char = LocalPlayer.Character
if char and char:FindFirstChild("HumanoidRootPart") then
local root = char:FindFirstChild("HumanoidRootPart")
root.CFrame = root.CFrame * CFrame.Angles(0, math.rad(5), 0)
end
task.wait(0.05)
end
end)
end
end)
createButton("Swim In Air", false, function()
if swimLoop then task.cancel(swimLoop) swimLoop = nil return end
local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
if hum then
swimLoop = task.spawn(function()
while true do
if hum then
hum:ChangeState(Enum.HumanoidStateType.Swimming)
end
task.wait(0.2)
end
end)
end
end)
createButton("Sit In Air", false, function()
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Sit = true
end
end)
createButton("Anti Slip", false, function()
local char = LocalPlayer.Character
if char then
for _,part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CustomPhysicalProperties = PhysicalProperties.new(1, 0, 0, 1, 1)
end
end
end
end)
createButton("Refresh Avatar", false, function()
if LocalPlayer.Character then
local pos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position
LocalPlayer.Character:BreakJoints()
LocalPlayer.CharacterAdded:Wait()
task.wait(0.5)
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
LocalPlayer.Character:MoveTo(pos + Vector3.new(0,5,0))
end
end
end)
CloseBtn.MouseButton1Click:Connect(function()
MainFrame.Visible = false
if followLoop then task.cancel(followLoop) followLoop = nil end
if afkLoop then task.cancel(afkLoop) afkLoop = nil end
if swimLoop then task.cancel(swimLoop) swimLoop = nil end
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
local hum = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
hum:ChangeState(Enum.HumanoidStateType.Physics)
hum.Sit = false
end
end)Features
- Works for all games!