Heal Ability Bug

Hi, I have this ability where you spawn in a heal field for 5 seconds and it disappears.
image

When I spawn it in using the ability keyblind, there is a script inside of the neon part which will heal the player which is touching it.

The problem is that once you spawn it and you are standing still the script will not see that your touching it, i have to step once to activate the .Touched event.

How can I constantly check if the player is touching the heal field?

1 Like

You can use Region3 to try to do this.

I have never used Region3, so am unsure on how to make it work.

Touch event and TouchEnded event works acceptable. You just need an invisible collision box bigger than a player character, read when HumanoidRootPart touches the invisible box, and stop the healing when TouchEnded triggers when player leaves the box

2 Likes

I will try this now, Ill let you know once I tried

1 Like

You would require to perform loops in order to make it work with region3, or reading distance, a less resource consuming approach is using the Touch events

It worked, didn’t realise it was the hitbox, thanks.

1 Like

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