How to change player controller at runtime?

Yes, that seems to be the problem. So how to do it the right way? Couldn’t find any working way.