I made a Script that makes the shoulder point towards the direction of the camera and it works perfectly fine on a normal Roblox avatar but when i try it on a custom r15 rig with everything EXACTLY the same as a default r15 rig including the names of the motor6ds and parts it does absolutely nothing, no errors, it just doesn’t move the shoulder c0 at all. I have no idea what could be causing this since everything else on the rig works fine.
This is the script:
local character = script.Parent local camera = game.Workspace.CurrentCamera local Shoulder = character:WaitForChild("RightUpperArm"):WaitForChild("RightShoulder"); local DefShoulderC0 = Shoulder.C0; game:GetService("RunService").RenderStepped:Connect(function() local angle = math.asin(camera.CFrame.LookVector.y); Shoulder.C0 = DefShoulderC0 * CFrame.fromEulerAnglesYXZ(angle, 0, 0); end) if anyone knows why this could be happening please let me know.