-
What do you want to achieve? Keep it simple and clear!
My countdown runs on Unix Time Stamp so it runs in GMT, I want it to run in BST!
-
What is the issue? Include screenshots / videos if possible!
I can’t change it to BST
-
What solutions have you tried so far?
Online Solutions
local DataStore = game:GetService("DataStoreService"):GetDataStore("trainingstuff")
wait()
local mFloor = math.floor
local Next = next
local Tick = tick
local Wait = wait
local Stop = 0
while true do Wait(1)
wait()
local Time = DataStore:GetAsync("TargetTime") - Tick() --Put Unix time here
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
script.Parent.NextTraining.Description.Text = Days.."D "..Hours.. "H "..Minutes.."M "..Seconds.."S"
end
if Days==0 and Hours==0 and Minutes==0 and Seconds==0 then
Stop=1
script.Parent.Time.Text = "No trainings available" --What it will say when countdown completes
end
end