Hello I made door game object that contains door script and animator component. Door script works with raycast that if hit specific layer and E button is pressed it plays animation for door opening. The problem is when I duplicate the door and hit E on one of them it opens both doors.
It sounds like you’re using the same Animator component for both doors. When you play the animation on one door, it also plays the animation on the other door because they are using the same Animator component.
To fix this issue, you can either create a new Animator component for each door, or you can use a shared Animator component but use different animation states for each door