Reference only one istance of the same item?

Im starting a new project and there is an odd issue I have run into. When I am facing an item and go to pick it up with a raycast, it picksup every instance of that item on my screen. I only need to pickup one of the trash bags. How do i go about doing this?

It’s casting the ray against the player. It needs to be against the trashbag.

WOW! This is why you shouldnt wakup at 3am and code videogames :sweat_smile: Thankyou!

1 Like