I'm trying to make the arm point towards the mouse, but when I run the game, the arm goes flying whenever I move the mouse. I didn't change the position of the arm, so why does it do this?
Here's the code:
local RS = script.Parent.RightUpperArm['RightShoulder']
local mouse = game.Players:GetPlayerFromCharacter(script.Parent):GetMouse()
game:GetService('RunService').RenderStepped:Connect(function()
local mh = mouse.Hit.p
RS.C0 = CFrame.new(RS.Parent.RightShoulderRigAttachment.OriginalPosition.Value - mh)
end)
This is a local script and inside StarterCharacterScripts btw.
