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?

1 comment
Accept @Gingerely's answer if it is correct please, so we know this question has been answered.