How do I make my tools follow the Y axis of my camera?

When I move my camera, my tools only follow on the X axis, so how can I make this the same way with the Y axis?
This has stumped me recently.

I tried changing the grip of my tool to the LookVector of the camera, and the CFrame of my tool’s handle to the CFrame LookVector of the camera, and none of these worked.

What I meant by 'none of these worked'

https://i.imgur.com/upuMmo9.mp4

Can anyone tell me what I am doing wrong?
Thanks!

3 Likes

I managed to figure it out.

local c = game.Workspace.CurrentCamera
char.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0) * CFrame.Angles(-math.asin((m.Origin.p - m.Hit.p).unit.y),1.55,0)
char.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0) * CFrame.Angles(-math.asin((m.Origin.p - m.Hit.p).unit.y),-1.55,0)
char.Torso["Neck"].C0 = CFrame.new(0,1,0) * CFrame.Angles(-math.asin((m.Origin.p - m.Hit.p).unit.y) + 1.55,3.15,0)

That code moves the tools with the camera vertically!

3 Likes

I am very confused, does this work with R6? And if so, the script isn’t working for me.

I don’t get it. Where do I have to put this script?