Reference/Datatypes/EntitySnapshot
Datatype · Structs

EntitySnapshot

struct

Single row returned by entity.get_entities. Reflects the live state at call time; consecutive calls may return different rows as characters spawn or despawn.

Fields

NameTypeDescription
CharacterInstance?

Character model, or nil if it was destroyed since resolution.

DisplayNamestring?

Underlying player's display name when the entity is a Player.

Healthnumber?

Current Humanoid.Health, or nil when there is no Humanoid.

HumanoidHumanoid?

Character's Humanoid, if present.

IsBotboolean

true when the entity was classified as a non-player character.

KindEntityKind

Classification: Player, NPC, or Unknown.

MaxHealthnumber?

Current Humanoid.MaxHealth, or nil when there is no Humanoid.

PlayerRbxPlayer?

Live Player userdata when the entity resolves to a real player. Independent of Kind - player-puppeted NPCs surface here too.

PrimaryPartBasePart?

Primary part (HumanoidRootPart for R15, Torso for R6).

RelationEntityRelation

Relation to the local player.

TeamColorColor4?

Resolved team colour, or nil when no team rule applied.

TeamNamestring?

Resolved team name, or nil when no team rule applied.

Usernamestring?

Underlying player's username when the entity is a Player.