TakeDamage (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Trappingnoobs
Changed sentence structure a little. Removed unnecessary preformat tag.
>Itunes89
No edit summary
Line 1: Line 1:
{{deprecated}}
<onlyinclude>{{Method
<onlyinclude>{{Method
|name = TakeDamage
|name = TakeDamage

Revision as of 13:54, 16 January 2012

Deprecated:This item is deprecated. Do not use it for new work.
TakeDamage( Number damage )
Returns nil
Description: Subtracts the damage from the health of the targetted humanoid unless a ForceField is present.
Member of: Humanoid


Example

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