Change orientation of welded object

Hello, I am trying to weld a lightstick model to my character’s hand while it is waving continuously.

I have it successfully welded to the hand, however it is not in the orientation that I want it to be (it is currently horizontal, while I want it to be a bit diagonal so the handle is in the hand and no part are sticking into the hand):

I would like it to fit in the hand like this:

If someone could let me know how I can achieve this, that would be much appreciated :sweat_smile:

2 Likes
Old Post

Here’s a function, you change the offset part of the weld.

function RotateWeld(weld,angleToRotate)
	weld.C0 *= CFrame.Angles(math.rad(angleToRotate),0,0)
end

I don’t know the orientation of your object, so change this part:

CFrame.Angles(math.rad(angleToRotate),0,0)

to

CFrame.Angles(0,math.rad(angleToRotate),0)

or

CFrame.Angles(0,0,math.rad(angleToRotate))

until it works for that weld.

Do you have Tool Grip Editor? You can rotate it to what you want easily with it.

1 Like

I’d recommend using tool grip editor. I use it all the time for stuff like this.
Just a heads up, it costs 5 robux.