How to make it so that when a player's health reaches below 20, they are fully recovered and teleported to a random place

So basically, I wanted to make it so that once a player passes an extremely difficult area, if their health is below 20, they will be teleported to a random teleporter and fully recovered (shield included)
Does anyone know how to do this?

Welcome to the forums @hello_therel

You cant fully make that, its not posible to detect how much health a player has.

The only half working way I know, is you have a zone right after the end of the difficult area, which is wired to a grant health. Unfortunately you can’t detect health yet. (due to Gimkit Limitations)

okay, is it possible if i make it so that when they are Knocked Out the health is recovered and they are teleported?

i guess we need a health detector device

hopefully gimkit makes one

You would need to do a pseudo health system, which is basically fake health but functions the same way is it usually would as the in game health

how do i make that? also, what do you mean ‘fake health’ ?

Follow this guide to make it: How to make a Pseudo-Health Bar

When I mean fake health, I mean a system in where you make your very own health system that acts as the in-game health, but isnt the in game health, if that makes sense. It will act the same way

3 Likes

If this has helped you, please mark it as a solution.

Yes, use a lifecycle set to player knocked out, so that when event happens → teleport player here.
REMEMBER TO PUT A CHECKPOINT ON WHERE YOU TELEPORT

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.