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

findTimeOfDay

findTimeOfDay(world, options?): number | undefined

The hour of the world’s day: from 0 up to but not 24, with the minutes as a fraction, so 18.5 is half past six in the evening, as Roblox’s Lighting.ClockTime reads. The step moves it on the room alone, at <World dayLengthSeconds>, and a page in a room reads the room’s. Undefined where no clock is found: a scene with no World, a page in a room before the room’s clock streams in, or a ground with no clock. Throws where two Worlds keep one each and options names no ground.

Parameter Type Default value
world World undefined
options TimeOfDayOptions noOptions

number | undefined