Help with weld C1 Orientation

I’m wanting to change the C1 Orientation on a created weld part.
I’ve tried looking this up but nothing seems to work as I understand it.


It starts out a (0, 0, 0) I want it to be (0, 0, 8) like I’m showing.
What I have now only changes the Position and I don’t need that.

Testing script to change this value.
Just need this to work and I can modify it from there.
Just don’t understand how this is done.

local acc = script.Parent
while true do task.wait(2)
	if acc:FindFirstChild("AccessoryWeld") ~= nil then
		acc.AccessoryWeld.C1 = CFrame.new(0, 0, 8)
		break
	end
end

Think I got it off some other Question …

acc.AccessoryWeld.C1 = CFrame.Angles(0,0,math.rad(8))

I guess the Orientation is done with Angles and math.rad().

1 Like

Try this:

acc.AccessoryWeld.C1.Orientation = Vector3.new(0,0,8)

Just use a WeldConstraint it’s much more ethical

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