UI mouse problem

So I’m not sure what I’m doing wrong but when I enable 1 certain frame in a screen gui it makes it so in first person my mouse doesn’t lock but its at the bottom right of the screen and nowhere in the middle and I have no clue why it only this frame and when It’s visible