Trying to make a part go after nodes

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Just a part that follows a path set by nodes.
  2. What is the issue? Include screenshots / videos if possible!
    It won’t follow the nodes.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Just googling and experimenting and looking it up here.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local Part = script.Parent
local AO = Part.AlignOrientation
local AP = Part.AlignPosition

local Attachments = game.Workspace.Baseplate:GetChildren()

for i = 0, #Attachments do
	local Attachment = Attachments[i]
	AO.Attachment1 = Attachment
	AP.Attachment1 = Attachment

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.