TakeDamage (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
Example
>Camoy
used clear floats
Line 6: Line 6:
}}</onlyinclude>
}}</onlyinclude>


{{clear floats}}


 
{{Example|<pre>
 
game.Players.LocalPlayer.Character.Humanoid:TakeDamage(99)
 
</pre>}}
 
 
 
 
 
 
 
 
 
 
{{Example|
<pre>
game.Players.LocalPlayer.Character.Humanoid:TakeDamage( 99 )
</pre>
}}


[[Category:Methods]]
[[Category:Methods]]

Revision as of 12:33, 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)