Need help with health settings

  1. I’m trying to edit the health for my game, though all my solutions don’t work (roughly 1-5)

  2. I’m not asking for full scripts, but could anyone help me to think of a solution?

One of my ways is from editing a humanoid inside of characterscripts, but it still doesn’t work.

Can you please show your current script? We might need some more background information if you want us to help you.

I’ll show them right away! Once I finished re-scripting it.

In a server script, use Players.PlayerAdded and wait until the player’s character loads using player.CharacterAdded then find the humanoid and change the MaxHealth and Healt to whatever health you want. Or you can create a Humanoid object and rename it to “StarterHumanoid”, place this in StarterPlayer and change the MaxHealth and Health values.

2 Likes

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
char.Humanoid.Health = 0 — amount
end)
end)

Edit: Make sure to change the Humanoid MaxHealth too

1 Like

I’ll try that. If it doesn’t work I’ll do something else.

Thanks a-lot you kind human being!

1 Like

Make sure to close this thread if your problem has been solved.