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
Thanks for stopping by!