Rotating Part Trough Script

So this is my script

                local Hammer = Instance.new("Part")
				Hammer.Parent = char["Right Arm"].RightGripAttachment
				Hammer.Size = Vector3.new(1.705, 6.034, 3.254)
				Hammer.CanCollide = false
				Hammer.Color = Color3.fromRGB(255, 0, 0)
				Hammer.Material = Enum.Material.SmoothPlastic
				local Hammer2 = Instance.new("SpecialMesh")
				Hammer2.Parent = Hammer
				Hammer2.MeshId = "rbxassetid://8225106649"
				Hammer2.TextureId = ""
				Hammer2.Scale = Vector3.new(1, 1, 1)
				local weld = Instance.new("Weld")
				weld.Part0 = Hammer
				weld.Part1 = char["Right Arm"]
				weld.Parent = char["Right Arm"]

and what I want to do is rotate the Hammer but I already tried orientation but this didnt work
this is how it looks right now:
468b214618c336923b7b1b88a5ca6d5a
but I want it to be correct in the hands if you know how to solve this pls tell me.
Have a great day

1 Like

Rotate the weld, not the orientation. Weld.C0 *= CFrame.Angles(x, y, z)

Thanks will try it out if I have time

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