Im making a game and I want a grabbing feature then I realize I need a way to point. I have tried a lot of searching around and trying scripts but they all dont work how I like. I have made a separate pair of arms that are a ragdoll version of normal hands which Im using as the hands to point with. How do I go to have the hand point at mouse without breaking constraints or making the character fly? Here is the code im using new. I have tried using body positions as well as CFrame and body positions seem to work best.
local mouse1Down = false
local R_Hand = character.newRightHand
local L_Hand = character.newLeftHand
function createMovers(hand)
local posMover = Instance.new("BodyPosition", hand)
posMover.MaxForce = Vector3.new(40000, 40000, 40000)
posMover.Name = "MoverPos"
end
mouse.Button1Down:Connect(function() --// This is what im working on
mouse1Down = true
createMovers(R_Hand)
repeat wait()
until mouse1Down == false
end)