How do you change what time it get's dark in Roblox?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want the sun to set later then 17:00:00

  2. What is the issue? I’m unsure how to change what time it get’s dark

  3. What solutions have you thought of so far? i tried looking for a setting in lighting but no luck

Hello, so I’m trying to change what time it get’s dark in Roblox but i can’t find a setting in lighting for it anyone know how to change what time it get’s dark?

How are you changing time in your game? Through code? The best method is to simply make the day go slower, and have the night run faster. You don’t need the night to come later in terms of hours, you just need the day to be longer.

Hmm then just make the script that changes the time cycle just subtract from when it usually sets.

s = time sun sets

(time = t - 3)

Ya know?

I think the simplest way would be to change Lighting’s “GeographicLatitude” property to change your game’s simulated latitude to a place where it doesn’t get dark until after 17:00:00.

You can use some math to link a day & night cycle with the time system in your game, here is a simple script and you can do the rest.

local Time = 0.01
local TimeChange = 0.002

while wait(Time) do
	game.Lighting.ClockTime = game.Lighting.ClockTime + TimeChange
end

USE IN SERVERSCRIPTSERVICE

2 Likes