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

isPredictedHere

isPredictedHere(world, trait): boolean

Whether world steps trait for its own player: true on a room and in a game played alone, which predict nothing but decide everything, and on a page where the room agreed to predict it. A page lists the predicted traits it defines when it joins and the room keeps those it defines too. What a predicted system reads before it writes trait, beside step.authoritative: a page that stepped a trait the room did not agree would add its own change on top of the room’s stream and snap back at each send. Takes the trait defineTrait returned, predicted and in either form, and throws for one not defined predicted. As Roblox’s GetPredictionStatus, narrowed to one question.

Parameter Type
world World
trait Trait | PredictedTrait<any>

boolean