How do I prevent a user from opening multiple instances on the same computer?

— found answer! it had to do with localconnection thanks