How can i make the player camera relative to player, not the world

I want the camera CFrame to be relative to player CFrame, I have something similar to walk on walls.

Oh the graphics were inda of confusing, but it looks like the thing with 3 squares is the character and you want basically the camera to basically rotate relative to the player

You’d have to do some CFrame transformation, using

:ToObjectSpace(c) or :PointToObjectSpace(v)

He wants the player’s camera to shift when a player changes what platform they’re walking on, so if they’re walking on a wall, the camera changes so it looks normal.

Yes


I’d try setting the camera to Scriptable then locking it into the player’s head? That would mean you can’t really control the camera, but it’s one step forward.

I feel like at that point then you wouldnt just need transformation math but youd have to know the rotation of the plane the player is standing on,

but what is confusing me is that what if the player walks onto a wall moving forward then there is another wall to the left of that would your camera still be looking forwards or would it rotate 90 degrees to the left?

No no this would not be a problem because there are no 90 degree turns the max like 10 degrees or so