--Values--

local Drain = script.Parent.Values.Drain

stat = Player:WaitForChild("Data")

RS.Heartbeat:Connect(function(Time)
	if State:GetState() == "boost" then
		ElapsedTime = ElapsedTime + Time
		if math.clamp(ElapsedTime, 0.3, 0.8) > 0.3 then
			ElapsedTime = 0
			stat.BoostGauge.Value = stat.BoostGauge.Value - Drain.Value
		end
	else
		ElapsedTime = 0
	end
end)
