Ive run into this problem while making this freecam script, I’ve scowered fourms for an answer to no avail.
I’m getting this unwanted z axis rotation because the cframe is going off the cameras axis, fine for x and y but I need z to be on the world axis, I’ve tried building a new cframe using ToWorldAxis() to get z but that just breaks x and y.
just imagine them as local variables in your case, this code used for my module script self.DeltaX and self.DeltaY are self explanatory. self.Target its the BasePart my camera follows, in my case its Character’s Head, you could just use your’s camera position instead. self.Current its the current rotational values
I’ve used all my brainpower failing, I know this is easy but
mouseDelta.X -= mouseDelta.X
throws X cannot be assigned to, I assume I’m doing this wrong but can you point me in the right direction? also current would be a cframe’s rot which I dont think I can lerp with vector2s