How to set extra health?
So, I'm making a game with specific player classes and to do that i use teams, since when they spawn they're gonna be assigned random classes.
Anyways i put this script in StarterPlayerScripts, so that if it'd work it would be easier for me to check the player's team
1 | local Player = script.Parent |
2 | local humanoid = Player.Character.Humanoid |
4 | humanoid.Health = humanoid.Health = 200 |
5 | humanoid.MaxHealth = humanoid.MaxHealth = 200 |
But when i run the script it just doesn't set the player's maxhealth, and gives no errors in the output window.
Help?