function Forward (actionName, state, actionInputObject)
if state == Enum.UserInputState.Begin then
repeat
Truck.Thrust.Force = Truck.Thrust.force + Vector3.new(10,0,0)
wait(0.01)
until
state == Enum.UserInputState.End
end
end
contextActionService:BindAction("Forward",Forward,true,"t")
I'm trying to make an object stop increasing its thrust when I lift up the key and that is the until part. For some reason it isn't working and there are no errors. Basically, I want to increase thrust as I'm holding key down but stop increasing when I release key.
