PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

TakeDamage

Subtracts the damage from the health of the targeted humanoid unless the character has a ForceField.

Parameters

Name Type Default Description

Returns

Return Type Summary

Code Samples


Humanoid:TakeDamage

This code, put in a LocalScript, would make the local player take 99 damage only if a ForceField wasn’t present.

game.Players.LocalPlayer.Character.Humanoid:TakeDamage(99)