How to tween something forward infinitely

title is pretty self explanatory (is it even possible? if so, please provide alternatives i can check on)

You may want to explain why.
If you plan on moving a car or train forward infinitely then you are going to run in to floating point error issues where the Position of the items becomes messed up because computers start rounding higher numbers to bigger gaps. Instead of rounding to .001 studs they start rounding to 2 studs, or 4 studs, or 16 studs the farther you travel from 0,0,0.

3 Likes

I sceond what @Scottifly said.

Small stuff starts getting strange about 10,000 studs from 0,0,0 and just keeps getting further misplaced the further you go until it is unrecognizable as the object it was.

1 Like

Not sure if this would work, but try it out

local part = --locate the thing you want to tween here
local TS = game:GetService("TweenService")
local TI = TweenInfo.new(1, Enum.EasingStyle.Linear) 
local goal = {}
goal.Position += Vector3.new(5,0,0)
local Tween = TS:Create(part, TI, goal)

while wait(1) do
   Tween:Play()
end

I didn’t write that in the script editor, so it might give an error. If it did, tell me.

if you want to move something forward infinitely without disturbing its movement, you shouldn’t use tween, since if you use any easingstyle other than Linear it would look pretty stupid itself. if you want to use Linear to move a object forward, since linear style has no other fancy effects you can use a loop and move the object by its LookVector.