Basically I am making a script for a shield. After played pressed G it should clone the object to the player’s arm, move it to the arm coordinates and weld it. It does that perfectly, what I am stuck with is moving Shield slightly to the edge of the arm. If I won’t, it will be in the center, but I need it to be at the left side of the left arm. If I do “+Vector3.new(0, 0, .6)” it will move it, but only if player is faced into the right direction. If while activating player is faced to the opposite direction, it will be different from what I want.
Without “+Vector3.new(0, 0, .6)”: https://gyazo.com/6608fbe460b5b5fc5a63b306b28e6a92
local arm = plr.Character:WaitForChild("Left Arm")
local clone = shieldModel:Clone()
clone.ShieldHitBox.Anchored = false
clone.Parent = arm
clone.ShieldHitBox.CFrame = arm.CFrame + Vector3.new(0, 0, .6) -- Main problem
clone.ShieldHitBox.WeldConstraint.Part0 = arm
You could make it a tool and adjust the tool grip in tool grip editor, and you could make it so that when you press G the tool is parented to the character.
yep, they’re different. WeldConstraints will weld the 2 parts in the positions they’re currently in. Welds will force them together, no matter what position the 2 parts were in originally, and then apply the C0 as an offset to one of the parts.