Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change the CFrame angle of a player's limb?

I'm trying to make it so that when a player equips a tool. Their arm would be in a different position than the normal roblox equip pose, but I can't figure out what is going on.

local RightArm = Character["Right Arm"]
local function onEquip()
	RightArm.CFrame.Angles = 1/2 * math.pi
end

1 answer

✓ Accepted answer

You need to manipulate the weld object inside of their torso.

--Edit this to your preference
local wantedRot = CFrame.Angles(math.rad(90),0,0);

local armWeld = Character.Torso["Right Shoulder"];

function onEquip()
	local pos = armWeld.C0.p;
	armWeld.C0 = pos * wantedRot;
end

This discussion is preserved as it was. New answers, comments, and votes are closed.