local function r(r)local i=gui:WaitForChild("\083\112\101\101\100\111\109\101\116\101\114")local j=i:WaitForChild("\066\097\114")local t=j:WaitForChild("\083\112\101\101\100\066\097\114")BoostButton.InputBegan:Connect(function()r(true)end)BoostButton.InputEnded:Connect(function()r(false)end)function GuiController.UpdateBoost(i,r)local x=math.clamp(r/engine._settings.BoostAmount,0,1)j.Position=UDim2.new(-1+x,0,0,0)t.Position=UDim2.new(1-1*x,0,0,0)end end
-- ================================================================================
-- LOCAL FUNCTIONS
-- ================================================================================
local function BoostSetup(callback)
	local Speedometer = gui:WaitForChild("Speedometer")
	local Bar = Speedometer:WaitForChild("Bar")
	local SpeedBar = Bar:WaitForChild("SpeedBar")

	BoostButton.InputBegan:Connect(function()
		callback(true)
	end)

	BoostButton.InputEnded:Connect(function()
		callback(false)
	end)

	function GuiController:UpdateBoost(boostAmount)
		local boostPercentage = math.clamp(boostAmount / engine._settings.BoostAmount, 0, 1)
		Bar.Position = UDim2.new(-1 + boostPercentage, 0, 0, 0)
		SpeedBar.Position = UDim2.new(1 - 1 * boostPercentage, 0, 0, 0)
	end
end -- BoostSetup()
