How to get parts prior to the fallen part height?

I’m trying to detect when a part is about to touch the fallen parts height boundary, but there is no built in way to do so. Has anyone achieved something like this?

I’m currently using Part.Touched() events in a very sophisticated manner and is very performance heavy.

Guessing


You could set a Y-axis boundary for parts. When they cross this(their position is below that line), do whatever you want it to do.

Region3 the area below the Y, find parts that enters this Region3. Specifically, use this function of workspace: Workspace:FindPartsInRegion3(Region3 region, Instance ignoreDescendantsInstance, int maxParts)

Else use .Touched, an event and not a function, on a large part below the map. Restriction is that it is limited to 2048x2048 studs.

2 Likes