
Key RequiredUniversal

-- Create the ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Create a Frame for the GUI
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0.3, 0, 0.3, 0)
frame.Position = UDim2.new(0.35, 0, 0.35, 0)
frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
frame.Parent = screenGui
-- Create a TextBox for the reason
local reasonBox = Instance.new("TextBox")
reasonBox.Size = UDim2.new(1, 0, 0.5, 0)
reasonBox.Position = UDim2.new(0, 0, 0, 0)
reasonBox.PlaceholderText = "Enter your kick reason here..."
reasonBox.Parent = frame
-- Create a Button to kick the player
local kickButton = Instance.new("TextButton")
kickButton.Size = UDim2.new(1, 0, 0.5, 0)
kickButton.Position = UDim2.new(0, 0, 0.5, 0)
kickButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
kickButton.Text = "Kick"
kickButton.Parent = frame
-- Function to kick the player
local function kickPlayer()
local reason = reasonBox.Text
game.Players.LocalPlayer:Kick(reason)
end
-- Connect the button to the kick function
kickButton.MouseButton1Click:Connect(kickPlayer)
-- Toggle GUI visibility
local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(0.1, 0, 0.05, 0)
toggleButton.Position = UDim2.new(0.9, 0, 0, 0)
toggleButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
toggleButton.Text = "Toggle"
toggleButton.Parent = screenGui
toggleButton.MouseButton1Click:Connect(function()
frame.Visible = not frame.Visible
end)No comments yet for this script.



