Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a safe way to prevent resetting?[Don't answer]

Asked by 9 years ago

I know how, just change the humanoid's name, but is there a way to do it safely? Because if you do it this method, it will not allow the player the regen health! Which is a big problem. Thanks if you find a way.


EDIT

I don't want to change the humanoid's name or else I need to keep a copy of every script in the game that has "Humanoid" with a capital "H" and replace it with a lower case one.



EDIT

I don't care about this anymore, I'm moving on. I found a solution.

2
According to the wiki: Quickly change the Humanoid's Health from 0 to 100 and call MakeJoints on the character when it's about to die. This should prevent dying at all. It is suggested you use the Humanoid's Died event. DigitalVeer 1473 — 9y

1 answer

Log in to vote
-5
Answered by 9 years ago

Name Humanoid to humanoid

repeat wait() until game.Players.LocalPlayer.Character ~= nil
game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
game.Players.LocalPlayer.Character.Humanoid.Name = "humanoid"

Something like this LocalScript in StarterGui

0
I just said, is there a way to do so WITHOUT CHANGING THE HUMANOID'S NAME?! EzraNehemiah_TF2 3552 — 9y
0
If it's by the logic of changing the name of the humanoid, you could just paste a previous copy you made from it. FieryEvent 185 — 9y
Ad

Answer this question