Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My real time script runs in Studio but not in the Client?

Asked by 6 years ago

So I found a script which is GMT time as far as I know. If its BST then even better. It works in studio, syncs up to my clock. Run it in Player. Nothing happens. Run it in Studio, works perfectly. Just day time when you run it in the Player.

local time_zone = -5        -- Time zone, offset from GMT.

local tz_diff = 5*3600 + time_zone*3600
local secondsInDay = 60*60*24

while true do
    game.Lighting:setMinutesAfterMidnight(math.fmod(tick() + tz_diff,secondsInDay)/60)
    wait(0.1)
end

0
Just realised the account this is synced up to got terminated in 2015. Yet to make a new one lol CarlPlandog 20 — 6y

Answer this question