How do I change the CFrame/Position of a part relative to a characters arm?

How do I make positioning or moving a CFrame relative to a part? In my case, I am trying to move a welded part to the player’s left arm -.5 studs(relative to their arm’s position because of walking anims etc)

If you are standing entirely still, it works perfectly. Welds to the player at the wrist, stays attached at the right spot, good job :white_check_mark:
But if the player is moving, the arms sway and cause the -.5s to just go down, not down the arm.

	local part = game.ReplicatedStorage.BRICK:Clone()  
	part.CanCollide = false 
	part.Massless = true

	local weldConstraint ="WeldConstraint")
	weldConstraint.Part0 = part
	weldConstraint.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
	weldConstraint.Parent = part
	part.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame

	part.Parent = game.Players.LocalPlayer.Character

this is the code (ignore the mess and absence of variables, it was just to test the weld)

You gotta do some math,

Local leftArm = game.Players.LocalPlayer.Character["Left Arm"]
local NewConstraint ="WeldConstraint")

NewConstraint.Position = (leftArm.CFrame *,-0.05,0)).Position -- the thing you probably need

Might be wrong because I’m not in Roblox Studio to test the stuff

1 Like

I appreciate the help. Fixed the problem perfectly

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.