I've seen lots of bricks that heal you when touched, but I am specifically trying to make like a "healing zone" that will slowly heal you the longer you are in contact with a large uncancollided brick. As soon as you are no longer touching the brick you should stop getting healed. Is there a way to do this?
✓ ANSWER ACCEPTED
How to Make a Brick that Heals Anyone in Contact with it Over Time?
1 answer
✓ Accepted answer
I've recently come across this forum that explains your options including a module that does it for you.
Basically, you can:
- Use a touched event to see when they enter an area and position checking to see when they exit.
- Have them stand on a part and use :GetTouchingParts() to find Characters that are touching it
- Make your area circular to use Magnitude
- Make your area a box to use Region3
- Use raycasting
From what I've heard, ForeverHD's module uses Region3 to see if they are in the area then checks through raycasting if they are within the boundary.
Once you figure out a way to get the players in your area, just single out to only a table of players/humanoids and apply the healing effect.
This discussion is preserved as it was. New answers, comments, and votes are closed.
