Detecting what part another part is on top of

Hello developers I’ve created this pencil spike thing


And I need the red base part to be the same color as the part under it how would I achieve this

1 Like

You can raycast into the ground or you can check workspace and see which part is closest and change it to the color of that closest part

1 Like

I completely forgot about raycasting ty

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.