The check must be possible to perform at any time and must work in multiplayer, because this is for a placement system and its preview. The preview is player-specific, so the check needs to be done per player.
I want to check a specific creative prop that I define (the prop currently controlled or previewed by the agent/player). Based on its position, the system should determine whether the prop is touching another prop or is inside a specific area or box.
For example, there are two different floor areas: one with a brown floor and one with a yellow floor.
If the preview prop is on the brown floor, it should turn green; if it is on the yellow floor, it should turn blue.
I already have a script that moves the preview prop, and I want to perform this check during movement, but none of my previous attempts worked.