Need help with weld

Hi,
Today I have the question, How to make a weld part that doesn’t rotate follow another part
like PartA are rotating and welding with PartB I want PartB to don’t rotating follow PartA

Used this script to rotate partA

local x = 0
while true do
	script.Parent.CFrame = script.Parent .CFrame * CFrame.Angles(0, math.rad(x), 0)
	x = x + 1
	wait()
end

Thanks in advance.

Could we possibly see a video or some sort of visulization of the problem?

If you don’t want the part to be rotated, consider a new CFrame using just the position, not its orientation.