Skip to content

warn

Function · warn · server and client scripts

warn(...any) -> ()

warn writes its arguments to the output as a warning, like print. The script keeps running.

Example

-- Server script.
local config: { [string]: number } = { MaxPlayers = 8 }
if config.SpawnInterval == nil then
    warn("SpawnInterval is missing; using 2 seconds")
end