Baconcoder

admin panel

Jun 29th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.55 KB | None | 0 0
  1. --[[
  2. 🛠️ Admin Panel GUI with:
  3. ✔️ Mobile + PC support
  4. ✔️ Dragging
  5. ✔️ Minimize / Close / Reopen
  6. ✔️ Player dropdown
  7. ✔️ JumpTo, Kill, LoopKill, Fling, Spin, Fly, ESP, Noclip, Invisible, Untouchable, WalkSpeed, JumpPower
  8. ✔️ Command Console
  9. ]]--
  10.  
  11. local player = game.Players.LocalPlayer
  12. local mouse = player:GetMouse()
  13.  
  14. -- GUI setup
  15. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  16. gui.Name = "AdminPanel"
  17. gui.ResetOnSpawn = false
  18.  
  19. -- Main Frame
  20. local frame = Instance.new("Frame", gui)
  21. frame.Size = UDim2.new(0, 240, 0, 600)
  22. frame.Position = UDim2.new(0, 20, 0.4, -200)
  23. frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  24. frame.BorderSizePixel = 0
  25. frame.Active = true
  26. frame.Draggable = true
  27.  
  28. -- Drag for mobile
  29. local dragging, dragStart, startPos = false
  30. frame.InputBegan:Connect(function(input)
  31. if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  32. dragging = true
  33. dragStart = input.Position
  34. startPos = frame.Position
  35. input.Changed:Connect(function()
  36. if input.UserInputState == Enum.UserInputState.End then dragging = false end
  37. end)
  38. end
  39. end)
  40. frame.InputChanged:Connect(function(input)
  41. if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
  42. local delta = input.Position - dragStart
  43. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  44. end
  45. end)
  46.  
  47. -- Header
  48. local header = Instance.new("TextLabel", frame)
  49. header.Size = UDim2.new(1, 0, 0, 30)
  50. header.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  51. header.Text = "Admin Panel"
  52. header.TextColor3 = Color3.new(1,1,1)
  53. header.TextScaled = true
  54. header.Font = Enum.Font.GothamBold
  55.  
  56. -- Minimize Button
  57. local minimize = Instance.new("TextButton", frame)
  58. minimize.Size = UDim2.new(0, 30, 0, 30)
  59. minimize.Position = UDim2.new(1, -60, 0, 0)
  60. minimize.Text = "-"
  61. minimize.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  62. minimize.TextColor3 = Color3.new(1,1,1)
  63.  
  64. -- Close Button
  65. local close = Instance.new("TextButton", frame)
  66. close.Size = UDim2.new(0, 30, 0, 30)
  67. close.Position = UDim2.new(1, -30, 0, 0)
  68. close.Text = "X"
  69. close.BackgroundColor3 = Color3.fromRGB(40, 0, 0)
  70. close.TextColor3 = Color3.new(1,1,1)
  71.  
  72. -- Reopen button
  73. local reopen = Instance.new("TextButton", gui)
  74. reopen.Size = UDim2.new(0, 100, 0, 30)
  75. reopen.Position = UDim2.new(0, 20, 0, 20)
  76. reopen.Text = "Open Admin"
  77. reopen.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  78. reopen.TextColor3 = Color3.new(1,1,1)
  79. reopen.Visible = false
  80.  
  81. minimize.MouseButton1Click:Connect(function()
  82. for _, v in pairs(frame:GetChildren()) do
  83. if v ~= header and v ~= minimize and v ~= close then
  84. v.Visible = not v.Visible
  85. end
  86. end
  87. end)
  88.  
  89. close.MouseButton1Click:Connect(function()
  90. frame.Visible = false
  91. reopen.Visible = true
  92. end)
  93.  
  94. reopen.MouseButton1Click:Connect(function()
  95. frame.Visible = true
  96. reopen.Visible = false
  97. end)
  98.  
  99. -- Button Creator
  100. local buttonY = 40
  101. local function makeButton(text, callback)
  102. local btn = Instance.new("TextButton", frame)
  103. btn.Size = UDim2.new(0, 200, 0, 30)
  104. btn.Position = UDim2.new(0, 20, 0, buttonY)
  105. btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  106. btn.TextColor3 = Color3.new(1,1,1)
  107. btn.Font = Enum.Font.Gotham
  108. btn.TextScaled = true
  109. btn.Text = text
  110. btn.MouseButton1Click:Connect(callback)
  111. buttonY += 35
  112. end
  113.  
  114. -- Player Dropdown
  115. local dropdown = Instance.new("TextButton", frame)
  116. dropdown.Size = UDim2.new(0, 200, 0, 30)
  117. dropdown.Position = UDim2.new(0, 20, 0, buttonY)
  118. dropdown.Text = "Select Player"
  119. dropdown.BackgroundColor3 = Color3.fromRGB(50,50,50)
  120. dropdown.TextColor3 = Color3.new(1,1,1)
  121. dropdown.TextScaled = true
  122. local selectedName = nil
  123. buttonY += 35
  124.  
  125. dropdown.MouseButton1Click:Connect(function()
  126. local menu = Instance.new("Frame", frame)
  127. menu.Size = UDim2.new(0, 200, 0, 150)
  128. menu.Position = dropdown.Position + UDim2.new(0, 0, 0, 30)
  129. menu.BackgroundColor3 = Color3.fromRGB(25,25,25)
  130. menu.ClipsDescendants = true
  131.  
  132. for _, plr in pairs(game.Players:GetPlayers()) do
  133. local item = Instance.new("TextButton", menu)
  134. item.Size = UDim2.new(1, 0, 0, 25)
  135. item.Text = plr.Name
  136. item.BackgroundColor3 = Color3.fromRGB(60,60,60)
  137. item.TextColor3 = Color3.new(1,1,1)
  138. item.TextScaled = true
  139. item.MouseButton1Click:Connect(function()
  140. selectedName = plr.Name
  141. dropdown.Text = "Selected: " .. plr.Name
  142. menu:Destroy()
  143. end)
  144. end
  145. end)
  146.  
  147. -- Admin Actions
  148. local function getTargetHRP()
  149. if not selectedName then return nil end
  150. local target = game.Players:FindFirstChild(selectedName)
  151. return target and target.Character and target.Character:FindFirstChild("HumanoidRootPart")
  152. end
  153.  
  154. makeButton("Kill", function()
  155. local hrp = getTargetHRP()
  156. if hrp then
  157. local hum = hrp.Parent:FindFirstChild("Humanoid")
  158. if hum then hum.Health = 0 end
  159. end
  160. end)
  161.  
  162. makeButton("Fling", function()
  163. local hrp = getTargetHRP()
  164. if hrp then hrp.Velocity = Vector3.new(0, 9999, 0) end
  165. end)
  166.  
  167. makeButton("Spin", function()
  168. local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  169. if hrp then
  170. coroutine.wrap(function()
  171. while true do
  172. hrp.CFrame *= CFrame.Angles(0, math.rad(15), 0)
  173. task.wait()
  174. end
  175. end)()
  176. end
  177. end)
  178.  
  179. makeButton("ESP", function()
  180. for _, v in pairs(game.Players:GetPlayers()) do
  181. if v ~= player and v.Character and not v.Character:FindFirstChild("ESP") then
  182. local esp = Instance.new("BillboardGui", v.Character)
  183. esp.Name = "ESP"
  184. esp.Adornee = v.Character:FindFirstChild("Head")
  185. esp.Size = UDim2.new(0,100,0,40)
  186. esp.AlwaysOnTop = true
  187.  
  188. local label = Instance.new("TextLabel", esp)
  189. label.Size = UDim2.new(1,0,1,0)
  190. label.Text = v.Name
  191. label.BackgroundTransparency = 1
  192. label.TextColor3 = Color3.new(1,0,0)
  193. label.TextScaled = true
  194. end
  195. end
  196. end)
  197.  
  198. makeButton("Invisible", function()
  199. for _, p in pairs(player.Character:GetDescendants()) do
  200. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  201. p.Transparency = 1
  202. end
  203. end
  204. end)
  205.  
  206. makeButton("Noclip", function()
  207. game:GetService("RunService").Stepped:Connect(function()
  208. for _, p in pairs(player.Character:GetDescendants()) do
  209. if p:IsA("BasePart") then p.CanCollide = false end
  210. end
  211. end)
  212. end)
  213.  
  214. -- Command Console
  215. local cmdBox = Instance.new("TextBox", frame)
  216. cmdBox.Size = UDim2.new(0, 200, 0, 30)
  217. cmdBox.Position = UDim2.new(0, 20, 0, buttonY)
  218. cmdBox.PlaceholderText = "Command: kill PlayerName"
  219. cmdBox.BackgroundColor3 = Color3.fromRGB(60,60,60)
  220. cmdBox.TextColor3 = Color3.new(1,1,1)
  221. cmdBox.TextScaled = true
  222. cmdBox.Font = Enum.Font.Gotham
  223. buttonY += 35
  224.  
  225. makeButton("Run Command", function()
  226. local input = cmdBox.Text
  227. local parts = string.split(input, " ")
  228. local cmd = parts[1]
  229. local targetName = parts[2]
  230. local target = game.Players:FindFirstChild(targetName or "")
  231.  
  232. if cmd == "kill" and target then
  233. local hum = target.Character and target.Character:FindFirstChild("Humanoid")
  234. if hum then hum.Health = 0 end
  235. elseif cmd == "fling" and target then
  236. local hrp = target.Character and target.Character:FindFirstChild("HumanoidRootPart")
  237. if hrp then hrp.Velocity = Vector3.new(9999,9999,9999) end
  238. elseif cmd == "tp" and target then
  239. local myHRP = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  240. local trgHRP = target.Character and target.Character:FindFirstChild("HumanoidRootPart")
  241. if myHRP and trgHRP then myHRP.CFrame = trgHRP.CFrame + Vector3.new(0,5,0) end
  242. end
  243. end)
  244.  
  245. print("Admin Panel Loaded")
  246.  
Advertisement
Add Comment
Please, Sign In to add comment