How to make the cam follow the mouse?

The camera needs to follow the mouse as listed, But mine keeps bugging and going verry fast when I move It, any solutions?
This is for the UI layer.

you could make something like this, or you could make a system where you can drag the mouse on the screen to move it.

Your problem is that when the mouse is moved forward, it keeps moving forward until it goes back to the very center, which is when it stops.

I’ll try to make another one that might be what you want later.