So currently there's real time day-night scripts. The thing is they run on current time at the ROBLOX HQ. PDT whatever. Is there any way to actually make this script run real-time but BST (British Summer Time)?
COMMUNITY QUESTION
How to make Real Time Day Night Script in BST? (British Summer Time)
1 answer
local _G,_VERSION,assert,collectgarbage,dofile,error,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,xpcall,coroutine,math,string,table,game,Game,workspace,Workspace,delay,Delay,LoadLibrary,printidentity,Spawn,tick,time,version,Version,Wait,wait,PluginManager,crash__,LoadRobloxLibrary,settings,Stats,stats,UserSettings,Enum,Color3,BrickColor,Vector2,Vector3,Vector3int16,CFrame,UDim,UDim2,Ray,Axes,Faces,Instance,Region3,Region3int16=_G,_VERSION,assert,collectgarbage,dofile,error,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,xpcall,coroutine,math,string,table,game,Game,workspace,Workspace,delay,Delay,LoadLibrary,printidentity,Spawn,tick,time,version,Version,Wait,wait,PluginManager,crash__,LoadRobloxLibrary,settings,Stats,stats,UserSettings,Enum,Color3,BrickColor,Vector2,Vector3,Vector3int16,CFrame,UDim,UDim2,Ray,Axes,Faces,Instance,Region3,Region3int16
math.randomseed(tick())
local Lighting = Game:GetService('Lighting')
-- Basically, this will set the game time to the real time it is outside in California (Where ROBLOX's servers are).
local function GetTime()
local timeFormat = "%.2d:%.2d:%.2d"
local t = tick()
return timeFormat:format(math.floor((t/3600)%24), math.floor((t/60)%60), math.floor((t%60)))
end
while true do
Lighting.TimeOfDay = GetTime();
wait(1)
end
This is real time from everywhere. So, if you are BST it will show BST time for you. But, I am in EST show it so me EST time for me.
This discussion is preserved as it was. New answers, comments, and votes are closed.
