--BROUGHT TO YOU BY RobloxScripter.com!--
-- Create a screen GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer.PlayerGui
-- Create a frame to hold the button
local frame = Instance.new("Frame")
frame.Parent = screenGui
frame.Size = UDim2.new(0, 200, 0, 50)
frame.Position = UDim2.new(0.5, -100, 0.5, -25)
frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
frame.BorderSizePixel = 0
-- Create a button
local button = Instance.new("TextButton")
button.Parent = frame
button.Size = UDim2.new(1, 0, 1, 0)
button.Text = "Close Game"
button.Font = Enum.Font.SourceSans
button.TextSize = 18
button.TextColor3 = Color3.fromRGB(255, 255, 255)
button.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
button.TextStrokeTransparency = 0.8
button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
-- Add a mouse-click event handler to the button
button.MouseButton1Click:Connect(function()
game:Shutdown()
end)