How to rotate part with weld?

i want to my hammer model fit in players hand but i tried c0 and other things but its keep giving errors and errors could you help me where i was wrong in my code 1

i want looks like this
Ekran görüntüsü 2024-04-26 144507

but its looks like this
Ekran görüntüsü 2024-04-26 144433

and here is my code
resim_2024-04-26_144916941

Use Weld.C0

A rough estimation of your CFrame is like:

CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(180),math.rad(-90))

So you can do:

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

I would also suggest setting the Weld’s Part0 to the arm and Part1 to the hammer because it’s much better and C0 would work better that way.

1 Like

thanks man it worked‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

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