Issue in Raycast

I’m basically trying to hit the model on other model with instantiate but it didn’t work .Need your help

Hi @HasnainX! Can you explain a little better what you are trying to achieve and what your current result is? A link to your project can also be helpful.

yeah thanks for asking me i can show you the link so it would be better to understand

I think you need result.entity to get the entity that is clicked on and result.point to get the position.

To be able to click on the entity the entity need a collision component and a rigidbody component.