--[[local db = false

local cooldown = 10

local players = game:GetService("Players")
local localPlayer = players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
	if script.Parent.Parent.message.Text ~= "" then
		if not db then
			db = true
			game.ReplicatedStorage.announceSystem.announce:FireServer(script.Parent.Parent.message.Text)
			-- Start the countdown loop
			for i = cooldown, 1, -1 do
				script.Parent.Text = "Cooldown for " .. i .. " seconds"
				wait(1)
			end

			-- Reset the button text and db flag
			script.Parent.Text = "Send"
			db = false
		else
			script.Parent.Text = "Cooldown for " .. cooldown .. " seconds"
		end
	end
end)

]]