Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --CREDITS:chatGPT3.5 and FabiPixel1 local AdminPanel = Instance.new("ScreenGui")
- AdminPanel.Name = "AdminPanel"
- AdminPanel.Enabled = false -- Standardmäßig deaktiviert
- AdminPanel.IgnoreGuiInset = true -- Damit das Panel über anderen UI-Elementen liegt
- AdminPanel.ResetOnSpawn = false -- Damit das Panel nicht jedes Mal zurückgesetzt wird, wenn der Spieler wiederbelebt wird
- AdminPanel.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Funktion zum Öffnen und Schließen des Panels
- local isOpen = false
- local function togglePanel()
- isOpen = not isOpen
- AdminPanel.Enabled = isOpen
- end
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.F7 then
- togglePanel()
- elseif input.KeyCode == Enum.KeyCode.F8 then
- togglePanel()
- end
- end)
- -- Hinzufügen von visuellen Effekten
- -- Du kannst hier verschiedene visuelle Effekte hinzufügen, z.B. Animationen beim Öffnen oder Schließen des Panels
- -- Erstellen der GUI-Elemente für das Admin-Panel
- local Frame = Instance.new("Frame")
- Frame.Size = UDim2.new(0.5, 0, 0.5, 0)
- Frame.Position = UDim2.new(0.25, 0, 0.25, 0)
- Frame.BackgroundColor3 = Color3.fromRGB(128, 0, 128) -- Lila Farbe
- Frame.Parent = AdminPanel
- local Title = Instance.new("TextLabel")
- Title.Size = UDim2.new(1, 0, 0.1, 0)
- Title.Position = UDim2.new(0, 0, 0, 0)
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.Text = "Admin Panel"
- Title.Font = Enum.Font.SourceSansBold
- Title.TextSize = 24
- Title.Parent = Frame
- -- Beispiel für Admin-Befehle
- local Commands = {
- {Name = "Kick Player", Description = "Kickt einen Spieler aus dem Spiel"},
- {Name = "Ban Player", Description = "Verbietet einem Spieler, das Spiel zu betreten"},
- {Name = "Teleport Player", Description = "Teleportiert einen Spieler zu einem bestimmten Ort"},
- -- Weitere Befehle hier hinzufügen...
- }
- -- Erstellen von GUI-Elementen für Admin-Befehle
- for i, command in ipairs(Commands) do
- local Button = Instance.new("TextButton")
- Button.Size = UDim2.new(0.8, 0, 0.1, 0)
- Button.Position = UDim2.new(0.1, 0, 0.15 * i, 0)
- Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextColor3 = Color3.fromRGB(0, 0, 0)
- Button.Text = command.Name
- Button.Parent = Frame
- local Description = Instance.new("TextLabel")
- Description.Size = UDim2.new(1, 0, 0.2, 0)
- Description.Position = UDim2.new(0, 0, 1, 0)
- Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Description.TextColor3 = Color3.fromRGB(0, 0, 0)
- Description.Text = command.Description
- Description.Parent = Button
- end
Advertisement
Advertisement