Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

setLightingHour

setLightingHour(world, hour): void

Stands this page’s lighting at hour, from 0 up to 24: the sun, the moon, the fill and the sky’s light draw at it, while the Landscape’s clock, which logic reads with findTimeOfDay, keeps running. An hour past either end wraps, so 25 is 1. null hands the lighting back to the clock, and so does the last World on the page unmounting, so the next scene follows its own clock. One hour for the page, whatever the number of Worlds; a game that shows the hour keeps its own value. A presentation verb: on a room’s world, which draws nothing, it throws in development and logs once in a built game, as it does for an hour that is not finite. A Roblox LocalScript sets Lighting.ClockTime for its own client the same way, though there a write from the server lands over it; here the page’s hour holds until the page lets it go.

Parameter Type
world World
hour number | null

void