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)

2 comments
h=character.Humanoid.MaxHealth character.Humanoid.Health=h
Um...isn't this unnecessary? When a character is respawned, its health is automatically set to its MaxHealth.