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

DiedEvent

const DiedEvent: EventHandle<DiedRecord, Reliable, Entity>

On an entity from the first reap that finds its health at zero, once per life: behaviours.reapDead of the same step for a hit dealt before it, and of the next step for one dealt after it. Its credit is the hit that first took it there: source is null for a death no hit dealt or a killer already gone, and instigatorTeam stays though the attacker’s character is gone; cause is DeathCause.Hit. A player’s character characters() downs for a change of team dies with no credit and DeathCause.TeamChange. The reap downs the entity as it dies, so its traits are still there for every system after the behaviours, and the next reap removes it unless it is a player’s character or has a respawn. The room emits it, and each page that holds the entity hears it a send later, where its entity reads null if the stream removed it first. Roblox’s Humanoid.Died.