I’m working on a third person guns mechanic, and its going great except i cant get the arms to aim where the camera looks at properly.
I have this code, its connected to a onserverevent that fires on renderstepped from a local script, and it works fine as long as no animations are playing. With animations, the arms barely move, move the wrong direction or dont move at all.
Weirdly, it also worked on top of animations when the animations were published to my profile, instead of the group the game is from, but the anims dont work outside of testing otherwise.
local leftMotor6 = character:WaitForChild("LeftUpperArm").LeftShoulder
local rightMotor6 = character:WaitForChild("RightUpperArm").RightShoulder
local headMotor6 = character:WaitForChild("Head").Neck
leftMotor6.C0 = CFrame.new(leftMotor6.C0.Position) * CFrame.Angles(camera.LookVector.Y, 0, 0)
rightMotor6.C0 = CFrame.new(rightMotor6.C0.Position) * CFrame.Angles(camera.LookVector.Y, 0, 0)
headMotor6.C0 = CFrame.new(headMotor6.C0.Position) * CFrame.Angles(camera.LookVector.Y, 0, 0)
I’m looking for any assistance on how to get it to work again, because it DOES work with the animations before I reuploaded them to the group.