How to apply speed boosts dynamically in a Roblox racing game using Lua?

I'm developing a futuristic racing game in Roblox Studio and need help implementing a dynamic speed boost system for vehicles.
View full source