How to change the player while playing??

I’m developing a game in which the players pass notes to each other .The player who has the note gets the controls and is able to pass the note to the player next to him .Any help with the script/ code that I need ?

In each Player just make a flag isactiveplayer default to false and every time you change players set the flag to true for the new player and false to the old one.

Then only allow input in your Player script if isactiveplayer Is set to true.