local cooldown = 20
local countdown = 0
while true do
local args = {
workspace.Baseplate.Cities.Jamaica:GetChildren(),
[2] = "Develop City"
}
workspace.GameManager.CreateBuilding:FireServer(unpack(args))
wait(cooldown)
end
What I want is for every time the wait(cooldown) starts, a timer show up under the countdown variable which counts until the loop reiterates
local cooldown = 20
local textLabel = "Your TextLabel"
textLabel.Text = cooldown
while true do
local args = {
workspace.Baseplate.Cities.Jamaica:GetChildren(),
[2] = "Develop City"
}
repeat task.wait() do
textLabel.Text -= 1
task.wait(1)
until textLabel.Text == 0
workspace.GameManager.CreateBuilding:FireServer(unpack(args))
end