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

PlayerText

Words a player wrote, as a playerText() field holds them: opaque, so a system never reads them unfiltered. filterText(step, text) gives an authoritative step the text filtered for every player, or a refusal; findMatchingText, isTextEqual and readTextLength compare and measure it without reading it. It cannot be written to a trait, a save or a stream: the types refuse it, and its JSON encoding throws. As Roblox’s TextFilterResult, which a game turns into a string only through the filter.

[inspect](): string

string


[toPrimitive](): string

string


toJSON(): never

Throws: a player’s words are never written as JSON.

never


toString(): string

[PlayerText]: never the words.

string