Camera follows mouse

Hello!
I’m making a horror game, and I need a script to make it so the camera follows your cursor. Normally the camera only moves when you click and drag your mouse. Could someone help me with this? Thanks!

Hi @TheLaidBackLama,

Unfortunately, this is not really possible in CoBlocks or via the Javascript Public API.

I submitted this as a feature request last year, so the team are aware of it. See Feature Request: add Camera.mouseLocked to the public API for more details, and like the post if you’d like to see this happen.

Many thanks,
Geoff

I tried to create a script with Unity and it works but you can’t add it to CoSpaces, I confirm it.
It would take the developer option open.