"can you make me a ban gui for owners that has a closing button and an open button?"
xxxxxxxxxx
-- Here's a basic ban GUI script for owners with a closing button and an open button
local banGui = game.Players.LocalPlayer.PlayerGui:WaitForChild("BanGui")
local openButton = script.Parent.OpenButton
local closeButton = banGui.CloseButton
openButton.MouseButton1Click:Connect(function()
banGui.Enabled = true
end)
closeButton.MouseButton1Click:Connect(function()
banGui.Enabled = false
end)
local function banPlayer(player)
-- code to ban player goes here
end
local banButton = banGui.BanButton
banButton.MouseButton1Click:Connect(function()
local playerToBan = banGui.PlayerToBanTextBox.Text
local player = game.Players:FindFirstChild(playerToBan)
if player then
banPlayer(player)
end
end)