Skip to content
On this page

maxHealth()

Used to get or set the player's Maximum Health. Makes it larger than 199.

Function Definition

ts
public maxHealth: number;

Returns

  • number

Documentation

Examples

ts
const maxHealth = player.maxHealth;
console.log(`Their max health is: ${maxHealth}`);
player.maxHealth = 1999;

Documentation Created with ❤️ by Stuyk