I have a dual handle tool (lockpick) that I want to follow the camera. I already have the script to make it follow the camera which I also plan on using for other tools. Changing a cframe with cframe.angles effects it on the local axis, and im sure you can see why that’s a problem in the video below. I know you have to use worldspace but I dont know how to implement it.
I took out some parts of this code to make it more simple to read, but it should still work. Also you can’t use tab on devforum so sorry about the indents
game:GetService("RunService").PreSimulation:Connect(function()
local rotationX, rotationY, rotationZ = camera.CFrame.Rotation:ToOrientation()
cf = cf:Lerp(CFrame.Angles(rotationX, 0, 0), .2)
rightShoulder.Transform *= cf
leftShoulder.Transform *= cf
end)