How do I make this work? It only gets set to 100 and not to full heatlh
player = game.Players.LocalPlayer game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character.Humanoid.Health = character.Humanoid.MaxHealth end) end)
I don't know why you would ever want to do that, but...
I think you just got two scripts mixed up. It's supposed to look like this:
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character.Humanoid.Health = character.Humanoid.MaxHealth end) end)
And also, every humanoid has a died event. Might come in handy.