-- Function to handle sprinting and meter depletion

local function handleSprinting()
	humanoid.WalkSpeed = defaultWalkSpeed * (isSprinting and sprintSpeedMultiplier or 1)

	while isSprinting and meterV > 0 do
		meterV = meterV - 1
		if MeterLocation:FindFirstChild("Meter" .. meterV + 1) then
			MeterLocation["Meter" .. meterV + 1].ImageTransparency = 1
		end
		wait(1)
	end

	if meterV <= 0 then
		isSprinting = false
		humanoid.WalkSpeed = defaultWalkSpeed
	end
end
