How do I make a moving road illusion

So, took a break from my game to make another game. But I ran into a problem. I don’t know how to make a moving road just like other games. This is what I made. It’s choppy and when you jump, you become as fast as the vehicle for a few seconds. It’s a server script.

local tweenService = game:GetService("TweenService")

local baseplate = workspace.Baseplate

local startPosition = baseplate.Position

function move()
	baseplate.Position = startPosition
	local tween = tweenService:Create(baseplate, TweenInfo.new(21, Enum.EasingStyle.Linear), {Position = Vector3.new(0,-10,baseplate.Size.Z/10 - 10)})
	tween.Completed:Connect(move)
	tween:Play()
end

move()
1 Like

Is the script on the client or server?

1 Like

It’s a server script in serverscriptservice.

tweens on the server are super choppy

1 Like

Ok, I used a local script anyway. I placed it in startercharacterscripts. But the road keeps getting slower every reset. Can you help?

Is it supposed to get faster?
I think the issue is because you’re placing it in startercharacterscripts, which every time you lose the character adds a new script and removes the old one (cause when you reset you lose the character model)
I think placing it in starterplayerscripts would solve the issue

No. It’s not supposed to go faster. It’s supposed to go normal speed. But it works! But there’s still one issue. When I jump, the baseplate just moves normally probably because it’s a conveyer and not an actual moving platform.