How to use both hands on a script

My goal is to utilize both hands to hold an item, which is my barbell. I have the barbell animation, but I want both hands to grip the barbell, which is proving to be impossible right now

2 Likes

Hey, I would highly recommend using an animation to do this. Scripting the hands position to change when a tool is activated is a really bad way to go about it when animations are there for a reason.

Go to: Studio > Avatar > Animator

Avatar is on the bar at the top of the screen, once you have it open click on the character you want to test on. Then move the arms into a position that looks good to you. Press the 3 dots and publish it to roblox make sure to publish it to your account or a group if you are working under one.

Once published copy your animation id.

If you need help scripting the animation to play when the tool is activated I can help with that too.

If u are using R6:

   local motor = Instance.new("Motor6D")
    motor.Part0 = handle
    motor.Part1 = leftArm
    motor.Name = "LeftArmAttach"
    motor.C0 = CFrame.new(-1, 0, 0) * CFrame.Angles(0, 0, math.rad(90)) -- adjust as needed
    motor.C1 = CFrame.new(0, -1, 0)
    motor.Parent = handle

Would be something like this but i havent tried the snippet yet

(tools are held with RightArm)

The way I did it was just welding assets to each arm separately and then using animations to make it seem like both arms are in use instead of just the right.