what I'm asking here will be something that I didn't knew how to solve since I use commands blocks. When I target a player, there is @p, @a, @e, and @r. But what I wanted was that the command block target the player that was, like, the nearest, and then continue to target this one until we say to stop.
What I wrote above is my question; if it requires to use the /scoreboard command, please tell me how to use it.
Thank