# Problem With CFrames and Vector

So I’m working on a mini-project where it makes a line of dominos and It knocks it over. However, when attempting to make a turn, I realize it won’t move forward in the direction it’s facing. Easy, just add a LookVector and move on. Well, apparently not, because it turn my code into a giant mess of whenever to use Vector3 or Cframe. Its madness and I need help organizing this.

My Full Code
``````local Original = game.Workspace.Part

CurrentPosition = Original.Position
CurrentOrientation = Original.Orientation

wait(3)

for count = 1, 10, 1 do

local Copy = Original:Clone()

CurrentPosition = CurrentPosition + Vector3.new(0,0,4)
Copy.Position = CurrentPosition
Copy.Parent = game.Workspace

end

wait(3)
for count = 1, 5, 1 do

local Copy = Original:Clone()

CurrentOrientation = CurrentOrientation + CFrame.Angles(0, math.rad(36), 0)
CurrentPosition = CurrentPosition + Original.CFrame.LookVector * 2
Copy.Position = CurrentPosition
Copy.Orientation = CurrentOrientation
Copy.Parent = game.Workspace

print(Copy.Position)
end

wait(3)

``````

Any help would be greatly appreciated.

I did some changes to your script adding some colour and height to see the two sets of cloned parts and set the Part to Anchored.

``````local Original = game.Workspace.Part

CurrentPosition = Original.Position
CurrentOrientation = Original.Orientation

wait(3)

for count = 1, 10, 1 do

local Copy = Original:Clone()

CurrentPosition = CurrentPosition + Vector3.new(0,0,4)
Copy.Position = CurrentPosition + Vector3.new(0,2,0)
Copy.BrickColor = BrickColor.Green()
Copy.Parent = game.Workspace

end

wait(3)
for count = 1, 5, 1 do

local Copy = Original:Clone()

tCFrame = CFrame.Angles(0, math.rad(36), 0) + Vector3.new(CurrentOrientation.x,CurrentOrientation.y,CurrentOrientation.z)
CurrentOrientation = tCFrame
--	CurrentOrientation = CurrentOrientation + CFrame.Angles(0, math.rad(36), 0)
CurrentPosition = CurrentPosition + Original.CFrame.LookVector * 2
Copy.Position = CurrentPosition
Copy.BrickColor = BrickColor.Blue()
Copy.Orientation = Vector3.new(tCFrame.x,tCFrame.y,tCFrame.z)
Copy.Parent = game.Workspace

print(Copy.Position)
end

wait(3)

Original.Orientation = Vector3.new(tCFrame.x,tCFrame.y,tCFrame.z)
``````

Hope this helps you.

Well, keep in mind that I’m cloning the original domino, so the height and color don’t need to be changed. They’re also dominos, so they need to be unanchored in order to tip over.
I understand the code up until the curve part:

Said Curve Part

for count = 1, 5, 1 do

``````local Copy = Original:Clone()

tCFrame = CFrame.Angles(0, math.rad(36), 0) + Vector3.new(CurrentOrientation.x,CurrentOrientation.y,CurrentOrientation.z)
CurrentOrientation = tCFrame
--	CurrentOrientation = CurrentOrientation + CFrame.Angles(0, math.rad(36), 0)
CurrentPosition = CurrentPosition + Original.CFrame.LookVector * 2
Copy.Position = CurrentPosition
Copy.BrickColor = BrickColor.Blue()
Copy.Orientation = Vector3.new(tCFrame.x,tCFrame.y,tCFrame.z)
Copy.Parent = game.Workspace

print(Copy.Position)
``````

end

Where I don’t understand what tCFrame is, and not only that, but it didn’t reach my goal of creating a turn with the dominoes. (Such as this)