In my r15 game I literally have 1 script running(besides the default one) and all it does it lock the mouse to the center of the screen
local UserInputService = game:GetService("UserInputService")
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
but it is not working…is there any reason why? I opened a new place and changed it to r15 characters and it worked just fine. It doesn’t work in play solo nor server
No nothing is in the place at the start, they get put into your player when you start but thats no different than the other places I’ve tested it on and it works just fine
I’m not sure what you mean, if nothing is in the place then you are still using the default PlayerScripts. The CameraScript will control the MouseBehavior, like how right clicking locks the mouse to the current position or zooming to first person locks the mouse to the center of the screen.
I have that script I mentioned above, I go into the place I linked and I paste the script into starter player and the script doesnt work in that place. When I go into any other place, without changing a thing, and paste the script in there it works just fine.
Okay but when I delete the default scripts and run that line it still doesn’t work in the place I linked but it did work in the new blank place and thats why I’m confused.
In the game you linked the camera works, so the default CameraScript is not removed. I see an error in the console from the script PlayerScripts.Camera so maybe that is why it isn’t working. You need to override the default camera script by creating a script called “CameraScript” in StarterPlayerScripts.
Also, read the steps to report a bug, there is nothing in this thread that suggests you are encountering a bug.