Problems with the controls of the controller and mouse

Hello, I am creating a local server and after having placed some scripts, the mouse to change the character’s view is not working within the server, much less the control of the xbox. Do you have any advice to resolve this issue?

Thanks in advance