Hi there, I have this simple script which edits the cframe of the right shoulder based of mouse.Hit.Position. The issue is, is that it returns a error saying attempt to call nil value. I do not know the issue as it seems perfectly fine to me, nor do I have a attempt.
local plr = game.Players.LocalPlayer
local rightarm = plr.Character.Torso["Right Shoulder"]
local mouse = plr:GetMouse()
mouse.Move:Connect(function()
rightarm.C0 = CFrame.lookVector(rightarm.C0,mouse.Hit.Position)
end)