Depends on how long & where you’re wanting to put it, you could also insert a TextLabel to change the text when you activate the button:
local Activated = false
local Cooldown = 60
local TextLabel = script.Parent.TextLabel --If you want
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local button = script.Parent
local confirmGui = PlayerGui:WaitForChild("ConfirmAction")
local yesButton = confirmGui.Yes
local noButton = confirmGui.No
print("Script Online")
button.MouseButton1Down:Connect(function()
if Activated == false then --This will just check if you've activated the tool, if you have then it'll only be activated once and you can't use it anymore
print("Activated")
Activated = true
confirmGui.Enabled = true
end
end)
yesButton.MouseButton1Down:Connect(function()
print("Yes")
game.ReplicatedStorage.SendWebhook:FireServer()
confirmGui.Enabled = false
for Loop = Cooldown, 0, -1 do
print("Time remaining: "..tostring(Loop))
TextLabel.Text = tostring(Loop)
wait(1)
end
Activated = false
print("Ready")
end)
noButton.MouseButton1Down:Connect(function()
print("No")
confirmGui.Enabled = false
Activated = false
end)
Since you’re disabling the GUI entirely, it’s also disabling the Timer Text as well which is making it invisible to you as it’s a descendant of the entire ScreenGui object
For this:
I have no clue why that isn’t working, it is printing Ready after waiting for it to cooldown, right?