So I wrote a script that makes your arms look towards camera and it works with default tool animation. But when I try it with my own tool animation, the orientation of the C0 changes but it doesn’t affect anything. When I disabled the animation script for player it also worked. So I thought the problem was because of priority so I changed the animationpriority to action but that didn’t work either.
The code:
game:GetService("RunService").RenderStepped:Connect(function()
local CameraDirection = Root.CFrame:toObjectSpace(Camera.CFrame).lookVector
if Neck then
Neck.C0 = CFNew(0, YOffset, 0) * CFAng(0, -asin(CameraDirection.x), 0) * CFAng(asin(CameraDirection.y), 0, 0)
leftShoulder.C0 = CFrame.new(leftShoulder.C0.Position.X, leftShoulder.C0.Position.Y, Neck.C0.Position.Z) * CFAng(0, -asin(CameraDirection.x), 0) * CFAng(asin(CameraDirection.y), 0, 0)
rightShoulder.C0 = CFrame.new(rightShoulder.C0.Position.X, rightShoulder.C0.Position.Y, Neck.C0.Position.Z) * CFAng(0, -asin(CameraDirection.x), 0) * CFAng(asin(CameraDirection.y), 0, 0)
end
end)
end)
Here is how it is with default animation:
https://gyazo.com/4833f5db58729e3d063e81d60a76ab3e