That is a good question and whe would instruct you step by step how to do that.
You are insert a new script to the ServerScriptService
Then you are take the real time in a local value at the first line like...
local timeTable = os.data("*t", os.time())
Then you are do the server time to the convertet time like...
local timeTable = os.data("*t", os.time())
game.Lightning.TimeOfDay = timeTable.hour..":"..timeTable.min..":"..timeTable.sec
You are do a while wait(1) loop like this.
local timeTable = os.data("*t", os.time())
game.Lightning.TimeOfDay = timeTable.hour..":"..timeTable.min..":"..timeTable.sec
while wait(1) do
end
Then you are do the same thing like in step 3
local timeTable = os.data("*t", os.time())
game.Lightning.TimeOfDay = timeTable.hour..":"..timeTable.min..":"..timeTable.sec
while wait(1) do
game.Lightning.TimeOfDay = timeTable.hour..":"..timeTable.min..":"..timeTable.sec
end
The step by step istruction is at the end and now the script will sync your time with the server time
local timeTable = os.data("*t", os.time())
game.Lightning.TimeOfDay = timeTable.hour..":"..timeTable.min..":"..timeTable.sec
while wait(1) do
game.Lightning.TimeOfDay = timeTable.hour..":"..timeTable.min..":"..timeTable.sec
end
Thank you for listening to the tutorial and I hope it did help you!