How do i replicate an interaction that only one player can do at a time?

how do i replicate an interaction that only one player can do at a time?