TakeDamage (Method)

From Legacy Roblox Wiki
Revision as of 20:57, 8 July 2011 by >PurpleKiwi (Minor mistake: Damage is done to Health, not MaxHealth.)
Jump to navigationJump to search
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' is the amount of damage that character will take from their Health.