TakeDamage (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac Added the main reason why this function was made to the description. |
>ArceusInator Example |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Method | <onlyinclude>{{Method | ||
|name = TakeDamage | |name = TakeDamage | ||
|arguments = [[number]] | |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 | ||
}}</onlyinclude> | }}</onlyinclude> | ||
{{Example| | |||
<pre> | |||
game.Players.LocalPlayer.Character.Humanoid:TakeDamage( 99 ) | |||
</pre> | |||
}} | |||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 03:36, 30 December 2010
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 )