How would I make a revive system for an obby? Whenever a player falls or dies, I want them to be able to revive. Initially, I’ll give them 3 revives for free when they first play. After all of the free revives are used, they would need to buy the revives via a developer product. When they revive, they teleport to their last location before they fell or die. I don’t want the location to be the exact same because they would just fall or die again.
It depends on how you’re handling your checkpoint system.
And when they die, you could probably send them back to the start. If they use a life (free or paid) then bring them back to the checkpoint before the one they died at.
If it’s just an int value, you’d probably just decrement (subtract 1) from the checkpoint value.
If they were to fall, would I trigger the Revive button if their Y position is lower than their previous checkpoint’s?
I mean you could but youd have to constantly check their position which would waste resources.
It’s also a bit redundant because they would probably die like 2 seconds later so maybe you should trigger the Revive Button after they die or after they respawn
I’m making a tower game, so most of the time when they fall, they usually land on another level or to the very bottom.
Oh I see. Well yeah I guess you would do that.
Maybe you could detect when their HumanoidState changes to Air and then prompt the Revive thing
(you can do this with GetPropertyChangedSignal)
Thank you! I figured out how to detect when the player is below their checkpoint, indicating that they fell.