TakeDamage (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Flurite
spelling and rewording
>Mr Doom Bringer
No edit summary
Line 2: Line 2:
|name = TakeDamage
|name = TakeDamage
|arguments = [[Number]] ''damage''
|arguments = [[Number]] ''damage''
|description = Subtracts the damage from the health of the targeted humanoid unless the character has a [[ForceField]].
|description = Subtracts the damage from the health of the targeted humanoid unless the character has a [[ForceField]]. Can be negative to 'heal'.
|object = Humanoid
|object = Humanoid
}}</onlyinclude>
}}</onlyinclude>

Revision as of 00:17, 13 March 2012

TakeDamage( Number damage )
Returns nil
Description: Subtracts the damage from the health of the targeted humanoid unless the character has a ForceField. Can be negative to 'heal'.
Member of: Humanoid


Example

game.Players.LocalPlayer.Character.Humanoid:TakeDamage(99) -- '99' damage will be subtracted from the Humanoid's health.