CFrame a roller coaster

Hello! I am currently working on a roller coaster game, and i am going to CFrame it yet i have no idea how but here is my script i am using,

local Model = script.Parent

for i = 0,1,.001 do

Model:SetPrimaryPartCFrame(Model:GetPrimaryPartCFrame() *CFrame.new(-1, 0,0))

wait()

end

Here is a very useful post by @EchoReaper, that demonstrates how you can move a cart or roller coaster along tracks using CFrame and a node system:

1 Like