-
What do you want to achieve?
I want to make the Countdown make the Numbers change smoothly -
What is the issue?
I get Errors while its trying to change the number
-
What solutions have you tried so far?
Script:
wait()
local mFloor = math.floor
local Next = next
local Tick = tick
local Wait = wait
local Stop = 0
local NumberSpinner = require(script.NumberSpinner)
local PriceSpinner = NumberSpinner.new()
PriceSpinner.Duration = 0.25
PriceSpinner.Parent = workspace.Countdown.BillboardGui
while true do wait(1)
wait()
local TweenService = game:GetService("TweenService")
local Time = 16223112000 - Tick()
local Days = mFloor((Time / 60 / 60 / 24) % (365 + 0.2425))
local Hours = mFloor((Time / 60 / 60) % 24)
local Minutes = mFloor((Time / 60) % 60)
local Seconds = mFloor(Time % 60)
if Stop == 0 then
PriceSpinner.Value = Days.." : "..Hours.. " : "..Minutes.." : "..Seconds..""
--script.Parent.Time.Text = Days.." : "..Hours.. " : "..Minutes.." : "..Seconds..""
end
if Days==0 and Hours==0 and Minutes==5 and Seconds==25 then
end
end