Bezier Curve module returns a table with vector3 positions, how do i make a parts position change with the table?

So im using crazyman or something bezier curve module, and a function to get path is BezierModule:GetPath(step), and then it returns a table with vector 3’s,
image

Wouldn’t it just be Part.Position = path

It’s returning a table, so you would need to iterate through it for the values:

for _, Waypoint in pairs(path) do
	
	--Example use code
	local Clone = Part:Clone()
	Clone.Position = Waypoint
	
end
1 Like

What :GetPath() is doing is returning a list of Vectors that allow you to follow through the Bezier Curve, otherwise you will just get a Single point of Data marking the percentage your went through on the bezier curve. (which in this case is .1, meaning 10% of the way)

As Stated above, you have to iterate through the data using a for loop, Based on how much data is inside the table, is how many times the loop will run, and with each iteration, it will move on to the next index, and value, it is very useful for when applying data.