local camera = ...
local Tool = ...
local SwordModel = tool.SwordModel
local Center = SwordModel:GetPivot()
camera.CFrame = CFrame.new((Center * CFrame.new(0, 0, 5)).Position, swordCenter.Position)
This basically aligns the camera with the center of the sword and moves it outwards away from the sword by 5 studs, then it fixes the rotation of the camera by refocusing the camera on the sword
my best guess is that your handle is facing downwards (or upwards)
you’re moving forward by 5 and then up by 10, but your camera is looking directly down (or up) at your sword with seemingly no movement on the x or z axis.
id try changing the direction of the handle.
if you cant then try rightvector or upvector instead of lookvector