of     1   

cool_riki2321gamer
#183455873Friday, February 12, 2016 10:26 PM GMT

I saw one game that was using a system that had an exact hour to mine in real life. How do you do these?
cool_riki2321gamer
#183456197Friday, February 12, 2016 10:29 PM GMT

local time_zone = -8 -- 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) workspace.Lighting.Brightness = 0 wait(0.1) end I made this thing
wonderful72pike
#183456480Friday, February 12, 2016 10:32 PM GMT

workspace.Lighting.Brightness = 0 This will give you an error, "Lighting" is inside of the game, not Workspace. Make it like this: game.Lighting.Brightness = 0
cool_riki2321gamer
#183456574Friday, February 12, 2016 10:33 PM GMT

Another great fix by wonderful. Thanks!
cool_riki2321gamer
#183457446Friday, February 12, 2016 10:41 PM GMT

--After fixing this to add a time check to my gui... local player = game.Players.LocalPlayer function onchange() script.Parent.Text = "Rock : "..player.leaderstats.Rock.Value.." Wood : "..player.leaderstats.Wood.Value.." Hunger : %"..player.leaderstats.Hunger.Value.." HP : "..math.floor(player.Character.Humanoid.Health.." TIME : "..game.Lighting.TimeOfDay) end player.leaderstats.Hunger.Changed:connect(onchange) player.leaderstats.Rock.Changed:connect(onchange) player.leaderstats.Wood.Changed:connect(onchange) player.Character.Humanoid.Health.Changed:connect(onchange) game.Lighting.TimeOfDay.Changed:connect(onchange) --Doesn't show TIME value.
cool_riki2321gamer
#183458622Friday, February 12, 2016 10:53 PM GMT

--Edit : fixed it local player = game.Players.LocalPlayer function onchange() script.Parent.Text = "Rock : "..player.leaderstats.Rock.Value.." Wood : "..player.leaderstats.Wood.Value.." Hunger : %"..player.leaderstats.Hunger.Value.." HP : "..math.floor(player.Character.Humanoid.Health).." TIME : "..game.Workspace.TimeCheck.Value end player.leaderstats.Hunger.Changed:connect(onchange) player.leaderstats.Rock.Changed:connect(onchange) player.leaderstats.Wood.Changed:connect(onchange) player.Character.Humanoid.Health.Changed:connect(onchange) game.Workspace.TimeCheck.Changed:connect(onchange)

    of     1