TakeDamage (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875 No edit summary |
>Trappingnoobs Changed sentence structure a little. Removed unnecessary preformat tag. |
||
Line 8: | Line 8: | ||
{{clear floats}} | {{clear floats}} | ||
{{Example| | {{Example| | ||
game.Players.LocalPlayer.Character.Humanoid:TakeDamage(99) -- '99' | game.Players.LocalPlayer.Character.Humanoid:TakeDamage(99) -- '99' damage will be subtracted from the Humanoid's health. | ||
}} | |||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 09:14, 9 July 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) -- '99' damage will be subtracted from the Humanoid's health.