local J=script.Parent.Values.Drain stat=Player:WaitForChild("\068\097\116\097")RS.Heartbeat:Connect(function(v)if State:GetState()=="\098\111\111\115\116"then ElapsedTime=ElapsedTime+v if math.clamp(ElapsedTime,.3,.8)>.3 then ElapsedTime=0 stat.BoostGauge.Value=stat.BoostGauge.Value-J.Value end else ElapsedTime=0 end end)
--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)
