How do i make a player shifting ability

What should i use to transform into other players in the game after someone killed a player. Im new to scripting but i dont know what to use to make the code.

You would need to have the client send a message to the server that they killed someone, and have the server check if it was possible. If it was possible, update every client with the murderer’s new look.