Default camera script constantly setting Mouse Behavior to Default

Today, I was debugging my “radial” radio system.

It normally works like this:

https://streamable.com/vlqtwg

But due to a roblox update a little while back (about a month or two maybe) it started acting like this (my cursor is invisible, but free):

https://streamable.com/m4c6e8

I started digging into my code to find out why, and nothing was solving the issue. Then I remembered about the camera script inserting itself after runtime. So I checked for anything that set mouse behavior after starting in play solo and the camera script had a few hits.

After numbering the hits with a print() I tested again, and well…

hit number 5 was going off every frame.

I don’t think this is intended behavior. I could be wrong, but I thought I’d tell you guys anyways.
It can be found at line 1132 of the BaseCamera module, which reads “UserInputService.MouseBehavior = Enum.MouseBehavior.Default”.

For some reason this is going on infinitely and I’m not sure what caused it or maybe even if it’s intended but I’m shocked nobody else has seemed to run into this issue. Anyways, that’s all I have to say.

Game link:[Subaru Kits!]Midnight Racing: Tokyo DEMO - Roblox

3 Likes