Guide 1 Docs 2 Reference 3

Function of World

world.time

Holds the sky at a time (ticks, or "sunrise", "day", "noon", "sunset", "night", "midnight"), or asks a function each tick, s seconds after the call. With no argument: the time of day now, 0 to 23999.

world.time((at: number | TimeName | (s: number) -> number | TimeName) -> ()) →  & (() -> number)

Parameters

(atnumber | TimeName | (s: number) -> number | TimeName) -> ()required

Returns

& (() -> number)

Used in