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

How can I change the player's health?

Some told me to check at StarterPlayer but I don't see any properties in StarterPlayer that can change the player's health. Is there any way to do this?

1 answer

✓ Accepted answer

put this in ServerScriptService

game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
char.Humanoid.MaxHealth = 200 -- change the health
char.Humanoid.Health = char.Humanoid.MaxHealth
end)
end)

1 comment

0

Thanks lad

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