Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AdminPanel = Instance.new("Folder")
- AdminPanel.Name = "AdminPanel"
- AdminPanel.Parent = game.ServerScriptService
- local AdminCheck = Instance.new("Script")
- AdminCheck.Name = "AdminCheck"
- AdminCheck.Parent = AdminPanel
- AdminCheck.Source = [[
- local admins = {"crazylockmen", "rIco_kaoBR", "dasfgenj"}
- local function isAdmin(player)
- for _, name in ipairs(admins) do
- if player.Name == name then
- return true
- end
- end
- return false
- end
- local function isVIP(player)
- if game.VIPServerId ~= "" and game.VIPServerOwnerId == player.UserId then
- return true
- end
- return false
- end
- local AdminEvent = Instance.new("RemoteEvent")
- AdminEvent.Name = "AdminEvent"
- AdminEvent.Parent = game.ReplicatedStorage
- game.Players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Wait()
- local adminStatus = isAdmin(player)
- local vipStatus = isVIP(player)
- AdminEvent:FireClient(player, adminStatus, vipStatus)
- end)
- ]]
- local AdminGUI = Instance.new("LocalScript")
- AdminGUI.Name = "AdminGUI"
- AdminGUI.Parent = AdminPanel
- AdminGUI.Source = [[
- local ScreenGUI = Instance.new("ScreenGui")
- ScreenGUI.Name = "ScreenGUI"
- ScreenGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local Frame = Instance.new("Frame")
- Frame.Name = "Frame"
- Frame.Size = UDim2.new(0.2, 0, 0.4, 0)
- Frame.Position = UDim2.new(0.8, 0, 0.1, 0)
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.Parent = ScreenGUI
- local KillButton = Instance.new("TextButton")
- KillButton.Name = "KillButton"
- KillButton.Text = "Kill"
- KillButton.Size = UDim2.new(0.8, 0, 0.1, 0)
- KillButton.Position = UDim2.new(0.1, 0, 0.1, 0)
- KillButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- KillButton.Parent = Frame
- local KickButton = Instance.new("TextButton")
- KickButton.Name = "KickButton"
- KickButton.Text = "Kick"
- KickButton.Size = UDim2.new(0.8, 0, 0.1, 0)
- KickButton.Position = UDim2.new(0.1, 0, 0.2, 0)
- KickButton.BackgroundColor3 = Color3.fromRGB(255, 165, 0)
- KickButton.Parent = Frame
- local FlingButton = Instance.new("TextButton")
- FlingButton.Name = "FlingButton"
- FlingButton.Text = “Fling”
- FlingButton.Size = UDim2.new(0.8, 0, 0.1, 0)
- FlingButton.Position = UDim2.new(0.1, 0, 0.3, 0)
- FlingButton.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
- FlingButton.Parent = Frame
- AdminButton = Instance.new(“TextButton”)
- AdminButton.Name = “AdminButton”
- AdminButton.Text = “Give Admin”
- AdminButton.Size = UDim2.new(0.80, 0.1, 0)
- AdminButton.Position = UDim2.new(0.1, 0, 0.4, 0)
- AdminButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- AdminButton.Parent = Frame
- local GiveAdminEvent = Instance.new(“RemoteEvent”)
- GiveAdminEvent.Name = “GiveAdminEvent”
- GiveAdminEvent.Parent = game.ReplicatedStorage
- AdminButton.MouseClick:Connect(function()
- local targetName = game:GetService(“UserInputService”):InputBox(“Enter the name of the player you want to give admin to:”, “Give Admin”, Enum.InputBoxType.Default).Text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement