Welding Model Issue

  1. I want to correctly weld my Sign to the character’s hand, instead of it “floating” outside the character’s hand

Issue:

My code:

                        local Part = script.Sign:Clone()
			Part.Parent = workspace
			Part:SetPrimaryPartCFrame(Character:WaitForChild("RightHand").CFrame)
			Part.PrimaryPart.Orientation = HumanoidRP.Orientation

			local weld = Instance.new("Weld")
			weld.C0 =  CFrame.new(0,-7,0) * CFrame.Angles(math.rad(90),0,0)
			weld.Part0 = Part.PrimaryPart
			weld.Part1 = Character:WaitForChild("RightHand")
			weld.Parent = Part.PrimaryPart
```.
2 Likes

When is the code run? Maybe there are multiple Welds that are creating issues?

You should use :PivotTo instead of :SetPrimaryPartCFrame, because the latter is deprecated.

It’s difficult to understand what you’re trying to say. Is the sign always supposed to be visible in the player’s hand?

I’m sorry, what I mean is that the sign must always be in the character’s hand, but the sign is floating outside of the character’s hand, dispiting being welded correctly

Try testing on a normal tool with no other script expect just the welding. And then see if its in the correction position (the weld)

weld.C0 = CFrame.new(0, -7, 0) * CFrame.Angles(math.rad(90), 0, 0)

Possibly the -7 y in the weld?

This -7 is what makes the character hold the sign by the base and not by the sign itself.

Damn, you guys gave up my post

I made the C0 part after the part0 and part1 part and now It works.

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