As title says, how to make one? I am doing revive system and I want to so when player gets 0 hp, they get downed and after about 20 seconds, they die.
Still need help
sadsdxcsadsadsdaasd
You could trigger an event when the player reaches 1HP, and connect it to your function of what should happen when the player is downed.
In the function you can make it wait for the player to get revived in the 20 seconds timeframe, and kill the player if the player never got revived.
Create a custom player/humanoid value, name something along the line of “Player_Health”, whatever you want to name it…
Essentially instead of using the Humanoid.Health in your scripts, refer to your custom value. As long as you are making sure to make changes server-side, you should have no issue.
To make the downed portion of the system, Create a custom health changed event, when the health is at zero, create a function to down the player, do whatever effects you would like, ect… and wait whatever amount of time before actually “killing” the player.
Hope that somewhat helped… for downing systems its easier to create a custom health value as I explained because using the humanoid.Health you will run into issues. (I have done this before.)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.