Hello! I have a problem trying to simulate vehicle acceleration, I tried doing for i loops
Seat.Changed:Connect(function()
for currentspeed, 100 do
wait(1)
Speed = Speed + 1
end
end)
or using repeat loop
Seat.Changed:Connect(function(pro)
local input = Seat.Throttle
repeat
wait(.5)
Speed = Speed + 1
until seat.Throttle ~= input
end)
Hope you can help! (And thanks for reading :D )

3 comments
Upvoted, no idea about vehicles lol. Else i'd help
Can you provide a bit more context. What are you doing with the variable 'Speed' other than changing it's value? Are you applying it to the vehicle somehow?
Yes. I want to make it simple and clear, Speed is just the Vehicle Speed, I will apply it to the vehicle after.