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 make a player stay alive and not break joints when he dies?

Simple as it is in the question.

I've seen some games do it and I want to do a revive script using defribilators. How do I do that? Sorry for the request

3 comments

0

"How to make a player stay alive when he dies". Don't have the player die, then? If you want to disable the reset button then you can do that too.

0

Not sure if I completely understand what you mean by this.

0

They simply stay in the ground and do not reset/load character -.-

1 answer

✓ Accepted answer

On a local script:

local player = game.Players.LocalPlayer

player.CharacterAdded:connect(function(char)
	char:WaitForChild("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Dead, false)
end)

This will literally make you unable to die (how cool is that!). With this being set, all you have to do now is have your revive script trigger whenever your character's health reaches 0.

You can also manipulate other HumanoidStateTypes.

Hope this helps!

1 comment

0

Ty buddy

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