Picture: Click Here
Problem Code:
for i=1,d do --i/d is what helps tell the brick where to position itself, as there is 20 points in each section
--Code not important to rotation
local CP=script.Parent.ControlPoints
t.Rotation=CP.p1.Rotation:Lerp(CP.p3.Rotation,i/d)
end
I am thrown off by this glitch and am really confused as to why it is doing this. Any help would be greatly appreciated. :)

2 comments
We can't see all of line 3. I guesst making another variable for 'script.Parent.ControlPoints', so we can see the entire line
Fixed