Hello everyone!! How are you?
So, the question is: I was doing a street, and wanted to program cars to be passing on this street infinitely. As I do not know how to program, I tried to start with something simple: try to program any object to move from point A to point B.
I watched several tutorials and ended up with the following code:
model = game.Workspace.group
start = model.A
end = model.B
position = model.object
while true
position.Position = end.Position
wait (2)
position.Position = start.Position
wait (2)
end
To help understand my variables:
But what happens when I run the code, is the object “teleporting” from point A to point B every 2 seconds hahahah xD
Can someone help me make this object go from point A to point B, instead of appearing and disappearing from one point to another?
Thank you!