I am trying to make a vehicle drive without pressing 'w'. I am able to set VehicleSeat.Throttle to 1 in a loop, however, it drops back to 0 again, and setting to 1 in a loop only results in the vehicle stuttering forward. Is there any way to persistently set Throttle so the vehicle will travel smoothly at full (or partial) speed? (And steer while we're at it. Setting steer seems to have the same behavior)

The code:

local seat = script.Parent

while true do
	seat.Throttle = 10
	wait(0.01)
end

7 comments

0

Include your code

0

He's asking a question, not a question about his programming

0

He knows that, he wants to see what he has to try and fix it.

0

Code added to question.

0

this just constantly sets the throttle to 10, the while loop isnt doing anything

0

You have to keep setting the throttle because it drops back to 0.

0

Air resistance, but this is roblox so that doesnt matter.