-- Function to handle the button click

local function onClick()
	-- Destroy the parent GUI (the ScreenGui containing the TextButton)
	button.Parent:Destroy()
end

button.MouseButton1Click:Connect(onClick)
