CFrame Offset Not Working!

Hello developers!
I came across some wierd behavior regarding offsets of CFrames, especially on the Camera object. Here is a video: Watch Roblox-2025-06-04T01_55_04.486Z | Streamable
Now you can see, the offset relative to the humanoidrootpart’s CFrame is not the same for each time I move to another angle. Here is the code sniplet on the client:

Camera.CameraType = Enum.CameraType.Scriptable

	Camera.CFrame = HRP.CFrame+Params.VectorOffset
	Camera.CFrame = CFrame.lookAt(Camera.CFrame.Position, HRP.Position)
	Camera.Focus = Camera.CFrame

Here is the Server side sending some info: (The Bindable Function is secured before sending to the client)

HRP.CFrame = CFrame.new(HRP.CFrame.Position, TargetHRP.CFrame.Position)
	task.wait(1)
	ExecutionYieldBindable:Invoke("EndTransitionEnter", {["VectorOffset"] = SL_Settings.Server.VectorOffset}, 5)

Here is the VectorOffset sent as the param:
VectorOffset = Vector3.new(12,7,0) --Camera
Now either I’m tweaking, but the X should go right, and Y up. Somehow a Z axis is involved and moving my camera forward in randomized magnitudes. Pls help :pray:

Thanks for stopping by! :slight_smile:

Try making vector offset into a cframe and instead of + put *

Hey thanks!
Now I wonder why this would work instead of doing the vector addition. Maybe I am missing out on something?

1 Like

1 Like

The : after the equation means the type written after it, is the type of the result

Wow I need to work on my grammar

1 Like

This sources from API reference. A tutorial explaining CFrames more in-depth and less technically can be seen here

1 Like

Thanks for the link! I appreciate all of your help :slight_smile:

1 Like

Oh, it’s not a video. It’s a text tutorial on operations with CFrames, I don’t know any video ones on CFrames but pretty sure it’s easy to find some

1 Like

Sry I opened ur tab and was watching another video lol.

Thanks

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.