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
local Player = script.Parent local humanoid = Player.Character.Humanoid humanoid.Health = humanoid.Health = 200 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?
The easiest way to do this is to put the script in StarterCharacter scripts and doing this
local Char = script.Parent Char.Humanoid.MaxHealth = 200 Char.Humanoid.Health = 200
You also set the health the wrong way, humanoid.maxHealth = humanoid.MaxHealth = 200