Useing a While true do loop how do i make it so in a weld the rotation of the X and Z axis are always 0? I wrote this script but it doesnt work, the parts are just fliping arround:

for i,v in pairs(script.Parent.Parent.HovP:GetChildren()) do
	if v:IsA("BasePart") then
		v:WaitForChild("Weld")
		v.Weld.C0 = script.Parent.CFrame:inverse()
		v.Weld.C1 = (v.CFrame *CFrame.Angles((v.Rotation.X)*(-1),0,(v.Rotation.Z)*(-1)))
	end
end

1 comment

0

Wah?