How to prevent hitbox from detecting players through walls?

  1. What do you want to achieve? Keep it simple and clear!
    When the bomb lands I need it to not be able to detect players through parts (for context the bomb has a large spherical hitbox that detects when a part is touching it and blows up destroying the part)

  2. What is the issue? Include screenshots / videos if possible!
    Player being killed through walls because the hitbox goes through them

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have considered trying to add tags for parts when a player is indoors however there is a building system so this wouldnt work out if a player built an inclosed space.
Screenshot 2024-08-04 193334

In the screenshot;
The grey half transparent sphere is the hitbox, the grey wall divides the hitbox and the player and I need it so the player can not be killed through the wall

3 Likes

Shoot raycast when player is detected, then if it hit walls, don’t deal damage

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