Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change the health of the players in my game?

I want the players to have more than 100 health. How do I do this? (Include the script in your answer).

1 comment

0

Question answered. For future reference, manners are appreciated.

1 answer

✓ Accepted answer

You'd need to use the PlayerAdded and CharacterAdded event. Something like this:

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		character.Humanoid.MaxHealth = 1000
		character.Humanoid.Health = 1000
	end)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.