TakeDamage (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
used clear floats
>Camoy
No edit summary
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name = TakeDamage
|name = TakeDamage
|arguments = [[number]] ''damage''
|arguments = [[Number]] ''damage''
|description = Subtracts the damage from the health of the targetted humanoid unless a [[ForceField]] is present.
|description = Subtracts the damage from the health of the targetted humanoid unless a [[ForceField]] is present.
|object = Humanoid
|object = Humanoid

Revision as of 15:35, 29 January 2011

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)