I’m trying to create an optimized anticheat that detects if users are flying. Sending a single raycast downwards is only so accurate because the player could be standing on the edge of something, and I want to avoid sending excess raycasts.
I was trying to incorporate searching for bounds that overlap with a given region, but functions like GetPartBoundsInBox() only return baseparts and not terrain. It’d be perfect if GetPartBoundsInRadius() also returned terrain.
The only solutions I can think of are to create a part and do GetTouchingParts() (but that would replicate the part to players which seems unnecessary and makes me mad) or I could send a few more raycasts, but I’m not sure what would be more optimized. Any suggestions would be great