Instance.new only creates 1 instance and doesn't work after

So i have this code which clones some model inside another model and it can be done endless times and i have created RootPart in main model to tween it and im using WeldConstraint for that (adding via instance could also use :Clone() tho) and my problem is that it only adds WeldConstraint instance only once and after that it doesn’t add even though it runs that part of the code again.

TweenAnimation_Finish.Completed:Connect(function()
	local WeldContraint = Instance.new("WeldConstraint")
	WeldContraint.Parent = ClonedProduct.Parent
	WeldContraint.Part0 = ClonedProduct:FindFirstChildOfClass("MeshPart")
	WeldContraint.Part1 = ClonedProduct.Parent.RootPart
					
	Finished = true
end)

This is how part of the code looks like where it creates new instance of WeldConstraint.

1 Like

Have you tried using print to see if the code is being run multiple times?

1 Like

I’m so dumb… it was issue with tween, i had other animation which was happening after first animation that’s why it only worked for first one, thanks.

1 Like

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