THIS THREAD USES PICTURES TO WALK THROUGH THE PROBLEM So I am making a bezier curve based roller coaster maker... Picture 1: Click Here As you can probably see, there are a few problem spots... Problem 1: Click Here Problem 2: Click Here However, some spots work just fine... Picture 2: Click Here
I believe this has something to do with some points having a negative Z rotation while the other rotation point has a positive Z rotation, and it causes this 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
... to rotate in bad ways. Any help would be greatly appreciated. Thank you.

1 comment
Thank you SO much, this means a lot to me. The rotation was the only thing holding me back from touching the tool for a long time. Now I am much closer to putting my plans into action.