Method of Player
player:damage
A hit in half-hearts: the flash, the sound, the resistance window. false on a version with no damage rules.
player:damage(amount: number) → boolean
Parameters
amountnumberReturns
booleanUsed in
player:damage(4) -- a hit: two hearts, the flash, the sound, the resistance windowPlayers`player:damage`). `message` is the broadcast English death line. `by` is thePlayersplayer:damage(4) -- two hearts, with the flash and the sound; "<name> died" if it was the lastBody and movementAnything that is not a rule is the pack's job: `player:damage` for a hit,Room ruleshit.player:damage(2)Room rules- A pack's own `player:damage` is not asked about, in this pack or another.Cancelling events