Hi how can I make it that when this timer form my script
local targetDate = os.time({year=2023, month=12, day=24, hour=0, min=0, sec=0})
function updateCountdownDisplay()
local Time = os.date("!*t", os.time() + 1 * 60 * 60)
local currentDate = os.time(Time)
local secondsLeft = targetDate - currentDate
local days = math.floor(secondsLeft / (24 * 60 * 60))
local hours = math.floor((secondsLeft % (24 * 60 * 60)) / (60 * 60))
local minutes = math.floor((secondsLeft % (60 * 60)) / 60)
local seconds = math.floor(secondsLeft % 60)
game.Workspace.CountdownPart.SurfaceGui.CountdownText.Text = string.format("%dd %02dh %02dm %02ds", days, hours, minutes, seconds)
end
while true do
updateCountdownDisplay()
wait(1)
end
Ends an moon animator 2 animation starts playing.
I need a step step tutorial I’m not trusted with animation and these things