How do i make a code to control a different player and if they die then they return to their body
Can you explain further please?
In response to Kyle_ZX (#1)
As in you click a verb and you control the other mob or players movement and this would be good if it worked with npcs too but when they die then you control yourself again
Change client.mob.
In response to Joshuaray202 (#2)
You'd want to alter the mob variable.
In response to Joshuaray202 (#2)
Changing the client's mob variable is one thing but you'll face different problems. The original controller of that mob will be kicked out of the game if you won't give it a temporary mob beforehand. Another problem is that you'll have that mobs every command even if you don't want them. Another thing to consider is something like saving the game while having a different mob can mess things up.

You can make use of the client's eye variable then override control procs like client.Move(). That's my advice.