I found a script on the toolbox, but it obviously doesn’t work as this isn’t happening.
local CurrentSec
local CurrentMin
local CurrentHour
local CurrentTime
while true do
wait(1)
CurrentSec = os.date("!*t")["sec"]
CurrentMin = os.date("!*t")["min"]
CurrentHour = os.date("!*t")["hour"]
CurrentTime = CurrentHour..":"..CurrentMin..":"..CurrentSec
game.Lighting.TimeOfDay = tostring(CurrentTime)
end
How would I make a real-time light script that would actually set to the timezone of where the player is?