Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you help me with my welding problem?

Asked by 8 years ago
I was making a weld script with a hammer and I have gotten the welding right, I just need to rotate the hammer to face the right way( picture: http://prnt.sc/b17y6o )

I tried to use CFrame.fromEulerAnglesXYZ() & CFrame.Angles() but it pushes the hammer to the top of my arm. Can someone help me with this? Here is the script if you need it:

hammer.CFrame = plr:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-1.72,0)
local weld = Instance.new("Weld",hammer)
weld.Part0 = plr:FindFirstChild("Right Arm")
weld.C0 = plr:FindFirstChild("Right Arm").CFrame:inverse()
weld.Part1 = hammer
weld.C1 = hammer.CFrame:inverse()
0
weld.C0 = plr:FindFirstChild("Right Arm").CFrame:inverse()*CFrame.Angles(math.rad(90),0,0) try that theCJarmy7 1293 — 8y
0
@theCJarmy7 It rotates, but it goes off the map glitching the player, thanks anyway NICCO890 35 — 8y

Answer this question