I am making a border (so people cannot get past) for a zone in my game, and I have several parts that make up the border. All the border parts have been grouped together to form a model. However, I am struggling to find a way to have 1 script that can detect if anything is touching any of the parts in my model. I can easily insert a script into each part in the model to detect touch using the Touch event, but I feel this is not the most efficient way of doing it since I have many parts that form my border. I have explored the Roblox Developer pages by none seem to cover this aspect.
Why not just make a single part that represents your entire border and check that…?
You could try to encompass most of the border with tall invisible walls (physical and nonphysical) and that will be a lot easier to handle and improve performance.