Help with the weld or something like that

So i want to make like a mill for a task but it does not break and falls … what can I do?

image
https://cdn.discordapp.com/attachments/809810556240265216/861780375000842260/robloxapp-20210705-2224256.wmv

local weldedParts = {}

function Weld(x, y)
	local weld = Instance.new("Weld") 
	weld.Part0 = x
	weld.Part1 = y
	local CJ = CFrame.new(x.Position) 
	weld.C0 = x.CFrame:inverse() * CJ  
	weld.C1 = y.CFrame:inverse() * CJ  
	weld.Parent = x	
	table.insert(weldedParts,y)
end

function RotateV(x,y, c0, c1)
	local W = Instance.new("RotateV")
	W.Part0 = x
	W.Part1 = y
	W.C0 = c0
	W.C1 = c1
	W.Parent = x
	return W
end

function WeldRec(instance)
	local childs = instance:GetChildren()
	for _,v in pairs(childs) do
		if v:IsA("BasePart") then
			Weld(script.Parent.Center, v)
		end
		WeldRec(v)
	end	
end--
WeldRec(script.Parent)
RotateV(script.Parent.Center,script.Parent.Center, CFrame.new(), CFrame.new(0,0,15.5) * CFrame.Angles(math.rad(-10),0,0))

for _,v in pairs(weldedParts) do
	if v:IsA("BasePart") then
		v.Anchored = false
	end
end

Try making the constraints without a script.
I was trying to make a rotating platform with code, and it did not work at all.
I found this tutorial here which uses the built in Roblox physics:

Try this instead of the script