warn
(...any) -> () write a warning to the output
Flagging a Budget Overrun
Lifecycle: Shared
A warning stands out from ordinary log lines, so reserve it for conditions a developer has to act on.
Luau
local budget = 4.0local spent = 6.2if spent > budget then warn(string.format("Tick budget exceeded: %.1f ms of %.1f ms", spent, budget))end Output: Tick budget exceeded: 6.2 ms of 4.0 ms