Differentiate a wall and floor?

Hello, I’m currently in the process of making a bouncing bomb. I want it to bounce off floors, and explode on any player or wall. Is there any way to easily tell whether it touches a wall or a floor?

(The ways I could think of are checking the height, checking the name of the part, or using a bool value inside each part, but they seem inefficient, and the first option forces the build to be one elevation)

This service should help you:

1 Like

Another way is to Raycast below the bomb when the bomb collides with something, if the ray hits it’s probably the floor below…or a players head…

Yeah maybe the collection service suggested by @BenMactavsin is an easier solution just mark the walls and players as places to explode.