How do I change the players health for when there playing each level of the game to a specific health amount. Like for the tutorial could be infinite and level one could be a high amount of health. If you know please reply.Thank you.
1 Like
You can reference the humanoid of the character, then set the max health with a script.
For example, you can use:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
char.Humanoid.MaxHealth = 1000 — Makes the players max health to 1000
end)
end)
2 Likes
Additionally in ‘Tutorial mode’ I would recommend an invisible ForceField rather then setting the MaxHealth.