local object = game.ServerStorage.Part3

local infinite = 1

repeat
	local partClone = object:Clone()
	wait(2)
	partClone.Parent = game.Workspace
	partClone.Position = Vector3.new(-56.202, 28.997, 19.723)
	print("Test")
until infinite == 0 

 -------- the problem is here and below
game.Workspace.Part3.Touched:Connect(function(hit)
	if  hit.Parent:FindFirstChild("Humanoid") then
		hit.Parent.HumanoidRootPart.Anchored = true
	end
end)

Creating clones but the player does not freeze when he touches one of the cloned blocks. The script belongs to Workspace.