I have a problem with my mouse after I build the game

So I am making a system where your mouse shows, and movement stops when you open any menu, and it all works in the game engine, but after I build the game that part doesn’t work(the movement stops, but the mouse doesn’t show) I am using ‘rigid body first-person controller’ from the ‘standard assets’

I’ve done a lot of research and can’t find anything

Are you using Cursor.visible = true?

so bassicly to solve it, i was using ‘rigid body first-person controller’ from the ‘standard assets’, so I opened the script ‘mouse look’ and removed the lines ‘Cursor.lockState = CursorLockMode.None;’ ‘Cursor.visible = true;’

hope this helps to anyone else