How would I make it so players do not fully die? Like they die, their health is 0, but they dont respawn.
I want something that makes it so players dont fully die, and can be revived, or can respawn. This is for my rp game. I want to make it so they can choose to respawn or be revived by a medic.
You can try to set game.Players.CharacterAutoLoads to false alongside adding a custom StarterHumanoid inside game.StarterPlayer that has it’s BreakJointsOnDeath property to set false to make the character not fall apart when it dies.
Instead of actually damaging the player, another workaround here is to create your own character health system, which may seem complicated at first but it’ll be easy to figure out.
I’d say either disable CharacterAutoLoads from Players or not actually set their health to 0, but rather to 1 and disable their ability to get damaged. Also change whatever script that needs to consider them “dead” in this possible state of revival to check if the health is equal to 1.
I’m recommending this as force blocking a respawn might interfere with some of your scripts. I think it’s easier to make some of the specific scripts that need to see if the player can be revived ask for a different health value, and this way you also don’t have to worry about making whatever you add to the game compatible with the revive system.
Keep in mind we don’t have a ton of details on how this works, so we can’t give you a 100% best solution, just some ideas.