How Would I Get This Car To Move Straight?

This code actually won’t work for a full model.

Based off of the code you have before,

local TweenService = game:GetService("TweenService")
local model = workspace.Taxi
local timeToMove = 4.5 -- Adjust this number to the speed (less = faster, more = slower)
local info = TweenInfo.new(timeToMove) 

local function tweenModel(model, CF)
	local CFrameValue = Instance.new("CFrameValue")
	CFrameValue.Value = model:GetPrimaryPartCFrame()
	
	CFrameValue:GetPropertyChangedSignal("Value"):Connect(function()
		model:SetPrimaryPartCFrame(CFrameValue.Value)
	end)
	
	local tween = TweenService:Create(CFrameValue, info, {Value = CF})
	tween:Play()
	
	tween.Completed:Connect(function()
		CFrameValue:Destroy()
	end)
end

while true do
	tweenModel(model, CFrame.new(-335.404, 2.069, 206.151)*CFrame.Angles(0,math.rad(model.PrimaryPart.Orientation.Y),0))
	wait(timeToMove+0.5)
end

Tell me if this works
Make sure you replace the whole script you just did with this, no need to adjust anything but the value of timeToMove.

Edit: Use the script I just edited. Also, set the PrimaryPart of the model to the “Cab Sign”.

1 Like

Does it need to be anchored because if its not it keeps falling.

Yeah, it should be anchored if it can be.

Where do I change it I must be blind.

Change what? The primarypart?

Just click on the model in explorer and in the properties window, theres a thing that says “PrimaryPart”. Click on the empty space next to it and then click back on the union/mesh called “Cab Sign” in explorer.

You may have to open the properties window to see it.

1 Like

It did not work I am just wondering why.

Any errors in output? If so, please give a screenshot

There is no errors in the output I will brb