I have two attachments in the weapon. The arms have a pivot point that attaches to the attachments, and points to the camera.
Why do my arms rotate like this?
return function(GunModel:Model)
local LeftArmAttachment = GunModel:FindFirstChild("LeftHand",true)
local RightArmAttachment = GunModel:FindFirstChild("RightHand",true)
local LeftArmAttachmentPosition = LeftArmAttachment.WorldCFrame.Position
local RightArmAttachmentPosition = RightArmAttachment.WorldCFrame.Position
LeftArm:PivotTo(
CFrame.new(
LeftArmAttachmentPosition,
(Camera.CFrame*LeftArmOffset).Position
)
)
RightArm:PivotTo(
CFrame.new(
RightArmAttachmentPosition,
(Camera.CFrame*RightArmOffset).Position
)
)
end
what’s wrong with my math? Ive been tearing my hair out over this.