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

findController

findController(_world, entity): Entity | null

The controller entity reads its input from on the tick being stepped, or null where none controls it: on a page, the controller as the room last streamed it, null where the room hides it from this page, and her own player for each entity her acknowledgement says she controls. As Roblox’s GetPlayerFromCharacter.

Parameter Type
_world World
entity Entity

Entity | null