How would you create a skybox which changes instantly at a set time of playing? (not day and night cycle)

basically, I’m making a game in which I want the first like 5 minutes to be at night for the like intro and then like 30 minutes of day time and 20 minutes of the night (DONT ASK QUESTIONS)

also, I’m not looking for like a day-to-night cycle, if you still don’t understand then basically:
the first 5 minutes of the game are set during night
after the 5 minutes, the game INSTANTLY turns day as it cuts to another part of the game
the daytime lasts 30 minutes
the rest of the game is at night.

it’s not exactly a day-to-night cycle thing since it’ll need to be easily customisable and change time instantly
sorry if this seems lazy btw, I feel like it’s very possible but for the life of me, I can’t do it.

1 Like

If I have the concept right, try this:

First go to the properties of Lighting (parented to the game) and change ClockTime to night (ex: 1 is a night time, 14 is a day time, the numbers are represented by the hours in a real life day) and then start your code:

local lighting = game.Lighting

wait(300)
Lighting.ClockTime = 14
wait(1800)
lighting.ClickTime = 1

Put this in a Script and you should be good to go. Sorry if I got the concept wrong

Also if you are looking for an in-game time system, that is also completely possible

1 Like

oh wow that’s simpler than i thought lol
thank’s so much for the help :slight_smile:

1 Like

No problem dude :sunglasses: I dont know how to script a lot of things but for this it’s basically in my skill zone

2 Likes