Health script not working

My built in roblox health script isn’t regenerating any health, is there any way to fix it?

1 Like

Is this the default script named Health that is inside all Roblox players?

Or, is this a copy of it that has been placed into a LocalScript?

1 Like

It is the default script and I didn’t do anything to it

1 Like

image
could the connection be tampering with the health

1 Like

Try this file and see if your health regenerates after touching the red block.

HealthTest.rbxl (53.7 KB)

1 Like

It regenerates after touching the red brick. In my place I tried deleting every script, every part, everything that could tamper the health and it still does not regenerate, I tried taking the scripts to a different place (new game) and it didn’t regenerate health. Should I consider replacing the built in health script?

1 Like

If the health script works for you in the file I posted then there is nothing wrong with your Studio and nothing wrong with the script.

That means something is wrong with one of your scripts.

Replacing the Health script doesn’t seem like a solution since something is still wrong.

1 Like

The script that was damaging the player was a local script, so on the server the player still was 100hp. Regeneration works now.
Thank you for helping me find the solution :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.